diff --git a/staging/src/k8s.io/client-go/Godeps/Godeps.json b/staging/src/k8s.io/client-go/Godeps/Godeps.json index 054d6f58e62..a1ba1dcca6a 100644 --- a/staging/src/k8s.io/client-go/Godeps/Godeps.json +++ b/staging/src/k8s.io/client-go/Godeps/Godeps.json @@ -25,11 +25,6 @@ "ImportPath": "github.com/PuerkitoBio/urlesc", "Rev": "5bd2802263f21d8788851d5305584c82a5c75d7e" }, - { - "ImportPath": "github.com/blang/semver", - "Comment": "v3.0.1", - "Rev": "31b736133b98f26d5e078ec9eb591666edfd091f" - }, { "ImportPath": "github.com/coreos/go-oidc/http", "Rev": "5644a2f50e2d2d5ba0b474bc5bc55fea1925936d" @@ -89,18 +84,18 @@ }, { "ImportPath": "github.com/emicklei/go-restful", - "Comment": "v1.2-79-g89ef8af", - "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + "Comment": "v1.2-96-g09691a3", + "Rev": "09691a3b6378b740595c1002f40c34dd5f218a22" }, { "ImportPath": "github.com/emicklei/go-restful/log", - "Comment": "v1.2-79-g89ef8af", - "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + "Comment": "v1.2-96-g09691a3", + "Rev": "09691a3b6378b740595c1002f40c34dd5f218a22" }, { "ImportPath": "github.com/emicklei/go-restful/swagger", - "Comment": "v1.2-79-g89ef8af", - "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + "Comment": "v1.2-96-g09691a3", + "Rev": "09691a3b6378b740595c1002f40c34dd5f218a22" }, { "ImportPath": "github.com/ghodss/yaml", @@ -146,7 +141,7 @@ }, { "ImportPath": "github.com/google/gofuzz", - "Rev": "bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5" + "Rev": "44d81051d367757e1c7c6a5a86423ece9afcf63c" }, { "ImportPath": "github.com/howeyc/gopass", diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/LICENSE b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/LICENSE deleted file mode 100644 index 5ba5c86fcb0..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License - -Copyright (c) 2014 Benedikt Lang - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/README.md b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/README.md deleted file mode 100644 index 5171c5c5571..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/README.md +++ /dev/null @@ -1,142 +0,0 @@ -semver for golang [![Build Status](https://drone.io/github.com/blang/semver/status.png)](https://drone.io/github.com/blang/semver/latest) [![GoDoc](https://godoc.org/github.com/blang/semver?status.png)](https://godoc.org/github.com/blang/semver) [![Coverage Status](https://img.shields.io/coveralls/blang/semver.svg)](https://coveralls.io/r/blang/semver?branch=master) -====== - -semver is a [Semantic Versioning](http://semver.org/) library written in golang. It fully covers spec version `2.0.0`. - -Usage ------ -```bash -$ go get github.com/blang/semver -``` -Note: Always vendor your dependencies or fix on a specific version tag. - -```go -import github.com/blang/semver -v1, err := semver.Make("1.0.0-beta") -v2, err := semver.Make("2.0.0-beta") -v1.Compare(v2) -``` - -Also check the [GoDocs](http://godoc.org/github.com/blang/semver). - -Why should I use this lib? ------ - -- Fully spec compatible -- No reflection -- No regex -- Fully tested (Coverage >99%) -- Readable parsing/validation errors -- Fast (See [Benchmarks](#benchmarks)) -- Only Stdlib -- Uses values instead of pointers -- Many features, see below - - -Features ------ - -- Parsing and validation at all levels -- Comparator-like comparisons -- Compare Helper Methods -- InPlace manipulation -- Sortable (implements sort.Interface) -- database/sql compatible (sql.Scanner/Valuer) -- encoding/json compatible (json.Marshaler/Unmarshaler) - - -Example ------ - -Have a look at full examples in [examples/main.go](examples/main.go) - -```go -import github.com/blang/semver - -v, err := semver.Make("0.0.1-alpha.preview+123.github") -fmt.Printf("Major: %d\n", v.Major) -fmt.Printf("Minor: %d\n", v.Minor) -fmt.Printf("Patch: %d\n", v.Patch) -fmt.Printf("Pre: %s\n", v.Pre) -fmt.Printf("Build: %s\n", v.Build) - -// Prerelease versions array -if len(v.Pre) > 0 { - fmt.Println("Prerelease versions:") - for i, pre := range v.Pre { - fmt.Printf("%d: %q\n", i, pre) - } -} - -// Build meta data array -if len(v.Build) > 0 { - fmt.Println("Build meta data:") - for i, build := range v.Build { - fmt.Printf("%d: %q\n", i, build) - } -} - -v001, err := semver.Make("0.0.1") -// Compare using helpers: v.GT(v2), v.LT, v.GTE, v.LTE -v001.GT(v) == true -v.LT(v001) == true -v.GTE(v) == true -v.LTE(v) == true - -// Or use v.Compare(v2) for comparisons (-1, 0, 1): -v001.Compare(v) == 1 -v.Compare(v001) == -1 -v.Compare(v) == 0 - -// Manipulate Version in place: -v.Pre[0], err = semver.NewPRVersion("beta") -if err != nil { - fmt.Printf("Error parsing pre release version: %q", err) -} - -fmt.Println("\nValidate versions:") -v.Build[0] = "?" - -err = v.Validate() -if err != nil { - fmt.Printf("Validation failed: %s\n", err) -} -``` - -Benchmarks ------ - - BenchmarkParseSimple 5000000 328 ns/op 49 B/op 1 allocs/op - BenchmarkParseComplex 1000000 2105 ns/op 263 B/op 7 allocs/op - BenchmarkParseAverage 1000000 1301 ns/op 168 B/op 4 allocs/op - BenchmarkStringSimple 10000000 130 ns/op 5 B/op 1 allocs/op - BenchmarkStringLarger 5000000 280 ns/op 32 B/op 2 allocs/op - BenchmarkStringComplex 3000000 512 ns/op 80 B/op 3 allocs/op - BenchmarkStringAverage 5000000 387 ns/op 47 B/op 2 allocs/op - BenchmarkValidateSimple 500000000 7.92 ns/op 0 B/op 0 allocs/op - BenchmarkValidateComplex 2000000 923 ns/op 0 B/op 0 allocs/op - BenchmarkValidateAverage 5000000 452 ns/op 0 B/op 0 allocs/op - BenchmarkCompareSimple 100000000 11.2 ns/op 0 B/op 0 allocs/op - BenchmarkCompareComplex 50000000 40.9 ns/op 0 B/op 0 allocs/op - BenchmarkCompareAverage 50000000 43.8 ns/op 0 B/op 0 allocs/op - BenchmarkSort 5000000 436 ns/op 259 B/op 2 allocs/op - -See benchmark cases at [semver_test.go](semver_test.go) - - -Motivation ------ - -I simply couldn't find any lib supporting the full spec. Others were just wrong or used reflection and regex which i don't like. - - -Contribution ------ - -Feel free to make a pull request. For bigger changes create a issue first to discuss about it. - - -License ------ - -See [LICENSE](LICENSE) file. diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/json.go b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/json.go deleted file mode 100644 index a74bf7c4494..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/json.go +++ /dev/null @@ -1,23 +0,0 @@ -package semver - -import ( - "encoding/json" -) - -// MarshalJSON implements the encoding/json.Marshaler interface. -func (v Version) MarshalJSON() ([]byte, error) { - return json.Marshal(v.String()) -} - -// UnmarshalJSON implements the encoding/json.Unmarshaler interface. -func (v *Version) UnmarshalJSON(data []byte) (err error) { - var versionString string - - if err = json.Unmarshal(data, &versionString); err != nil { - return - } - - *v, err = Parse(versionString) - - return -} diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/semver.go b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/semver.go deleted file mode 100644 index bbf85ce972d..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/semver.go +++ /dev/null @@ -1,395 +0,0 @@ -package semver - -import ( - "errors" - "fmt" - "strconv" - "strings" -) - -const ( - numbers string = "0123456789" - alphas = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-" - alphanum = alphas + numbers -) - -// SpecVersion is the latest fully supported spec version of semver -var SpecVersion = Version{ - Major: 2, - Minor: 0, - Patch: 0, -} - -// Version represents a semver compatible version -type Version struct { - Major uint64 - Minor uint64 - Patch uint64 - Pre []PRVersion - Build []string //No Precendence -} - -// Version to string -func (v Version) String() string { - b := make([]byte, 0, 5) - b = strconv.AppendUint(b, v.Major, 10) - b = append(b, '.') - b = strconv.AppendUint(b, v.Minor, 10) - b = append(b, '.') - b = strconv.AppendUint(b, v.Patch, 10) - - if len(v.Pre) > 0 { - b = append(b, '-') - b = append(b, v.Pre[0].String()...) - - for _, pre := range v.Pre[1:] { - b = append(b, '.') - b = append(b, pre.String()...) - } - } - - if len(v.Build) > 0 { - b = append(b, '+') - b = append(b, v.Build[0]...) - - for _, build := range v.Build[1:] { - b = append(b, '.') - b = append(b, build...) - } - } - - return string(b) -} - -// Equals checks if v is equal to o. -func (v Version) Equals(o Version) bool { - return (v.Compare(o) == 0) -} - -// EQ checks if v is equal to o. -func (v Version) EQ(o Version) bool { - return (v.Compare(o) == 0) -} - -// NE checks if v is not equal to o. -func (v Version) NE(o Version) bool { - return (v.Compare(o) != 0) -} - -// GT checks if v is greater than o. -func (v Version) GT(o Version) bool { - return (v.Compare(o) == 1) -} - -// GTE checks if v is greater than or equal to o. -func (v Version) GTE(o Version) bool { - return (v.Compare(o) >= 0) -} - -// GE checks if v is greater than or equal to o. -func (v Version) GE(o Version) bool { - return (v.Compare(o) >= 0) -} - -// LT checks if v is less than o. -func (v Version) LT(o Version) bool { - return (v.Compare(o) == -1) -} - -// LTE checks if v is less than or equal to o. -func (v Version) LTE(o Version) bool { - return (v.Compare(o) <= 0) -} - -// LE checks if v is less than or equal to o. -func (v Version) LE(o Version) bool { - return (v.Compare(o) <= 0) -} - -// Compare compares Versions v to o: -// -1 == v is less than o -// 0 == v is equal to o -// 1 == v is greater than o -func (v Version) Compare(o Version) int { - if v.Major != o.Major { - if v.Major > o.Major { - return 1 - } - return -1 - } - if v.Minor != o.Minor { - if v.Minor > o.Minor { - return 1 - } - return -1 - } - if v.Patch != o.Patch { - if v.Patch > o.Patch { - return 1 - } - return -1 - } - - // Quick comparison if a version has no prerelease versions - if len(v.Pre) == 0 && len(o.Pre) == 0 { - return 0 - } else if len(v.Pre) == 0 && len(o.Pre) > 0 { - return 1 - } else if len(v.Pre) > 0 && len(o.Pre) == 0 { - return -1 - } - - i := 0 - for ; i < len(v.Pre) && i < len(o.Pre); i++ { - if comp := v.Pre[i].Compare(o.Pre[i]); comp == 0 { - continue - } else if comp == 1 { - return 1 - } else { - return -1 - } - } - - // If all pr versions are the equal but one has further prversion, this one greater - if i == len(v.Pre) && i == len(o.Pre) { - return 0 - } else if i == len(v.Pre) && i < len(o.Pre) { - return -1 - } else { - return 1 - } - -} - -// Validate validates v and returns error in case -func (v Version) Validate() error { - // Major, Minor, Patch already validated using uint64 - - for _, pre := range v.Pre { - if !pre.IsNum { //Numeric prerelease versions already uint64 - if len(pre.VersionStr) == 0 { - return fmt.Errorf("Prerelease can not be empty %q", pre.VersionStr) - } - if !containsOnly(pre.VersionStr, alphanum) { - return fmt.Errorf("Invalid character(s) found in prerelease %q", pre.VersionStr) - } - } - } - - for _, build := range v.Build { - if len(build) == 0 { - return fmt.Errorf("Build meta data can not be empty %q", build) - } - if !containsOnly(build, alphanum) { - return fmt.Errorf("Invalid character(s) found in build meta data %q", build) - } - } - - return nil -} - -// New is an alias for Parse and returns a pointer, parses version string and returns a validated Version or error -func New(s string) (vp *Version, err error) { - v, err := Parse(s) - vp = &v - return -} - -// Make is an alias for Parse, parses version string and returns a validated Version or error -func Make(s string) (Version, error) { - return Parse(s) -} - -// Parse parses version string and returns a validated Version or error -func Parse(s string) (Version, error) { - if len(s) == 0 { - return Version{}, errors.New("Version string empty") - } - - // Split into major.minor.(patch+pr+meta) - parts := strings.SplitN(s, ".", 3) - if len(parts) != 3 { - return Version{}, errors.New("No Major.Minor.Patch elements found") - } - - // Major - if !containsOnly(parts[0], numbers) { - return Version{}, fmt.Errorf("Invalid character(s) found in major number %q", parts[0]) - } - if hasLeadingZeroes(parts[0]) { - return Version{}, fmt.Errorf("Major number must not contain leading zeroes %q", parts[0]) - } - major, err := strconv.ParseUint(parts[0], 10, 64) - if err != nil { - return Version{}, err - } - - // Minor - if !containsOnly(parts[1], numbers) { - return Version{}, fmt.Errorf("Invalid character(s) found in minor number %q", parts[1]) - } - if hasLeadingZeroes(parts[1]) { - return Version{}, fmt.Errorf("Minor number must not contain leading zeroes %q", parts[1]) - } - minor, err := strconv.ParseUint(parts[1], 10, 64) - if err != nil { - return Version{}, err - } - - v := Version{} - v.Major = major - v.Minor = minor - - var build, prerelease []string - patchStr := parts[2] - - if buildIndex := strings.IndexRune(patchStr, '+'); buildIndex != -1 { - build = strings.Split(patchStr[buildIndex+1:], ".") - patchStr = patchStr[:buildIndex] - } - - if preIndex := strings.IndexRune(patchStr, '-'); preIndex != -1 { - prerelease = strings.Split(patchStr[preIndex+1:], ".") - patchStr = patchStr[:preIndex] - } - - if !containsOnly(patchStr, numbers) { - return Version{}, fmt.Errorf("Invalid character(s) found in patch number %q", patchStr) - } - if hasLeadingZeroes(patchStr) { - return Version{}, fmt.Errorf("Patch number must not contain leading zeroes %q", patchStr) - } - patch, err := strconv.ParseUint(patchStr, 10, 64) - if err != nil { - return Version{}, err - } - - v.Patch = patch - - // Prerelease - for _, prstr := range prerelease { - parsedPR, err := NewPRVersion(prstr) - if err != nil { - return Version{}, err - } - v.Pre = append(v.Pre, parsedPR) - } - - // Build meta data - for _, str := range build { - if len(str) == 0 { - return Version{}, errors.New("Build meta data is empty") - } - if !containsOnly(str, alphanum) { - return Version{}, fmt.Errorf("Invalid character(s) found in build meta data %q", str) - } - v.Build = append(v.Build, str) - } - - return v, nil -} - -// MustParse is like Parse but panics if the version cannot be parsed. -func MustParse(s string) Version { - v, err := Parse(s) - if err != nil { - panic(`semver: Parse(` + s + `): ` + err.Error()) - } - return v -} - -// PRVersion represents a PreRelease Version -type PRVersion struct { - VersionStr string - VersionNum uint64 - IsNum bool -} - -// NewPRVersion creates a new valid prerelease version -func NewPRVersion(s string) (PRVersion, error) { - if len(s) == 0 { - return PRVersion{}, errors.New("Prerelease is empty") - } - v := PRVersion{} - if containsOnly(s, numbers) { - if hasLeadingZeroes(s) { - return PRVersion{}, fmt.Errorf("Numeric PreRelease version must not contain leading zeroes %q", s) - } - num, err := strconv.ParseUint(s, 10, 64) - - // Might never be hit, but just in case - if err != nil { - return PRVersion{}, err - } - v.VersionNum = num - v.IsNum = true - } else if containsOnly(s, alphanum) { - v.VersionStr = s - v.IsNum = false - } else { - return PRVersion{}, fmt.Errorf("Invalid character(s) found in prerelease %q", s) - } - return v, nil -} - -// IsNumeric checks if prerelease-version is numeric -func (v PRVersion) IsNumeric() bool { - return v.IsNum -} - -// Compare compares two PreRelease Versions v and o: -// -1 == v is less than o -// 0 == v is equal to o -// 1 == v is greater than o -func (v PRVersion) Compare(o PRVersion) int { - if v.IsNum && !o.IsNum { - return -1 - } else if !v.IsNum && o.IsNum { - return 1 - } else if v.IsNum && o.IsNum { - if v.VersionNum == o.VersionNum { - return 0 - } else if v.VersionNum > o.VersionNum { - return 1 - } else { - return -1 - } - } else { // both are Alphas - if v.VersionStr == o.VersionStr { - return 0 - } else if v.VersionStr > o.VersionStr { - return 1 - } else { - return -1 - } - } -} - -// PreRelease version to string -func (v PRVersion) String() string { - if v.IsNum { - return strconv.FormatUint(v.VersionNum, 10) - } - return v.VersionStr -} - -func containsOnly(s string, set string) bool { - return strings.IndexFunc(s, func(r rune) bool { - return !strings.ContainsRune(set, r) - }) == -1 -} - -func hasLeadingZeroes(s string) bool { - return len(s) > 1 && s[0] == '0' -} - -// NewBuildVersion creates a new valid build version -func NewBuildVersion(s string) (string, error) { - if len(s) == 0 { - return "", errors.New("Buildversion is empty") - } - if !containsOnly(s, alphanum) { - return "", fmt.Errorf("Invalid character(s) found in build meta data %q", s) - } - return s, nil -} diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sort.go b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sort.go deleted file mode 100644 index e18f880826a..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sort.go +++ /dev/null @@ -1,28 +0,0 @@ -package semver - -import ( - "sort" -) - -// Versions represents multiple versions. -type Versions []Version - -// Len returns length of version collection -func (s Versions) Len() int { - return len(s) -} - -// Swap swaps two versions inside the collection by its indices -func (s Versions) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -// Less checks if version at index i is less than version at index j -func (s Versions) Less(i, j int) bool { - return s[i].LT(s[j]) -} - -// Sort sorts a slice of versions -func Sort(versions []Version) { - sort.Sort(Versions(versions)) -} diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sql.go b/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sql.go deleted file mode 100644 index eb4d802666e..00000000000 --- a/staging/src/k8s.io/client-go/_vendor/github.com/blang/semver/sql.go +++ /dev/null @@ -1,30 +0,0 @@ -package semver - -import ( - "database/sql/driver" - "fmt" -) - -// Scan implements the database/sql.Scanner interface. -func (v *Version) Scan(src interface{}) (err error) { - var str string - switch src := src.(type) { - case string: - str = src - case []byte: - str = string(src) - default: - return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) - } - - if t, err := Parse(str); err == nil { - *v = t - } - - return -} - -// Value implements the database/sql/driver.Valuer interface. -func (v Version) Value() (driver.Value, error) { - return v.String(), nil -} diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/CHANGES.md b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/CHANGES.md index 070bca7cdc4..133da800ae5 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/CHANGES.md +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/CHANGES.md @@ -1,5 +1,13 @@ Change history of go-restful = +2016-11-26 +- Default change! now use CurlyRouter (was RouterJSR311) +- Default change! no more caching of request content +- Default change! do not recover from panics + +2016-09-22 +- fix the DefaultRequestContentType feature + 2016-02-14 - take the qualify factor of the Accept header mediatype into account when deciding the contentype of the response - add constructors for custom entity accessors for xml and json diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/container.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/container.go index 4e53cccb933..79eb3c4cfae 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/container.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/container.go @@ -25,10 +25,10 @@ type Container struct { ServeMux *http.ServeMux isRegisteredOnRoot bool containerFilters []FilterFunction - doNotRecover bool // default is false + doNotRecover bool // default is true recoverHandleFunc RecoverHandleFunction serviceErrorHandleFunc ServiceErrorHandleFunction - router RouteSelector // default is a RouterJSR311, CurlyRouter is the faster alternative + router RouteSelector // default is a CurlyRouter (RouterJSR311 is a slower alternative) contentEncodingEnabled bool // default is false } @@ -39,10 +39,10 @@ func NewContainer() *Container { ServeMux: http.NewServeMux(), isRegisteredOnRoot: false, containerFilters: []FilterFunction{}, - doNotRecover: false, + doNotRecover: true, recoverHandleFunc: logStackOnRecover, serviceErrorHandleFunc: writeServiceError, - router: RouterJSR311{}, + router: CurlyRouter{}, contentEncodingEnabled: false} } @@ -69,7 +69,7 @@ func (c *Container) ServiceErrorHandler(handler ServiceErrorHandleFunction) { // DoNotRecover controls whether panics will be caught to return HTTP 500. // If set to true, Route functions are responsible for handling any error situation. -// Default value is false = recover from panics. This has performance implications. +// Default value is true. func (c *Container) DoNotRecover(doNot bool) { c.doNotRecover = doNot } diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/curly.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/curly.go index 185300dbc73..79f1f5aa200 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/curly.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/curly.go @@ -108,11 +108,13 @@ func (c CurlyRouter) regularMatchesPathToken(routeToken string, colon int, reque return (matched && err == nil), false } +var jsr311Router = RouterJSR311{} + // detectRoute selectes from a list of Route the first match by inspecting both the Accept and Content-Type // headers of the Request. See also RouterJSR311 in jsr311.go func (c CurlyRouter) detectRoute(candidateRoutes sortableCurlyRoutes, httpRequest *http.Request) (*Route, error) { // tracing is done inside detectRoute - return RouterJSR311{}.detectRoute(candidateRoutes.routes(), httpRequest) + return jsr311Router.detectRoute(candidateRoutes.routes(), httpRequest) } // detectWebService returns the best matching webService given the list of path tokens. diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/doc.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/doc.go index d40405bf76a..21b26ac5a41 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/doc.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/doc.go @@ -145,22 +145,11 @@ Performance options This package has several options that affect the performance of your service. It is important to understand them and how you can change it. - restful.DefaultContainer.Router(CurlyRouter{}) - -The default router is the RouterJSR311 which is an implementation of its spec (http://jsr311.java.net/nonav/releases/1.1/spec/spec.html). -However, it uses regular expressions for all its routes which, depending on your usecase, may consume a significant amount of time. -The CurlyRouter implementation is more lightweight that also allows you to use wildcards and expressions, but only if needed. - - restful.DefaultContainer.DoNotRecover(true) + restful.DefaultContainer.DoNotRecover(false) DoNotRecover controls whether panics will be caught to return HTTP 500. -If set to true, Route functions are responsible for handling any error situation. -Default value is false; it will recover from panics. This has performance implications. - - restful.SetCacheReadEntity(false) - -SetCacheReadEntity controls whether the response data ([]byte) is cached such that ReadEntity is repeatable. -If you expect to read large amounts of payload data, and you do not use this feature, you should set it to false. +If set to false, the container will recover from panics. +Default value is true restful.SetCompressorProvider(NewBoundedCachedCompressors(20, 20)) diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/filter.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/filter.go index 4b86656e179..c23bfb591ad 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/filter.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/filter.go @@ -24,3 +24,12 @@ func (f *FilterChain) ProcessFilter(request *Request, response *Response) { // FilterFunction definitions must call ProcessFilter on the FilterChain to pass on the control and eventually call the RouteFunction type FilterFunction func(*Request, *Response, *FilterChain) + +// NoBrowserCacheFilter is a filter function to set HTTP headers that disable browser caching +// See examples/restful-no-cache-filter.go for usage +func NoBrowserCacheFilter(req *Request, resp *Response, chain *FilterChain) { + resp.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") // HTTP 1.1. + resp.Header().Set("Pragma", "no-cache") // HTTP 1.0. + resp.Header().Set("Expires", "0") // Proxies. + chain.ProcessFilter(req, resp) +} diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/request.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/request.go index 3e4234697d6..295e6acde3f 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/request.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/request.go @@ -13,7 +13,7 @@ import ( var defaultRequestContentType string -var doCacheReadEntityBytes = true +var doCacheReadEntityBytes = false // Request is a wrapper for a http Request that provides convenience methods type Request struct { @@ -107,10 +107,15 @@ func (r *Request) ReadEntity(entityPointer interface{}) (err error) { r.Request.Body = zlibReader } - // lookup the EntityReader + // lookup the EntityReader, use defaultRequestContentType if needed and provided entityReader, ok := entityAccessRegistry.accessorAt(contentType) if !ok { - return NewError(http.StatusBadRequest, "Unable to unmarshal content of type:"+contentType) + if len(defaultRequestContentType) != 0 { + entityReader, ok = entityAccessRegistry.accessorAt(defaultRequestContentType) + } + if !ok { + return NewError(http.StatusBadRequest, "Unable to unmarshal content of type:"+contentType) + } } return entityReader.Read(r, entityPointer) } diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/config.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/config.go index 510d6fc133a..18f8e57d903 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/config.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/config.go @@ -2,6 +2,7 @@ package swagger import ( "net/http" + "reflect" "github.com/emicklei/go-restful" ) @@ -9,8 +10,13 @@ import ( // PostBuildDeclarationMapFunc can be used to modify the api declaration map. type PostBuildDeclarationMapFunc func(apiDeclarationMap *ApiDeclarationList) +// MapSchemaFormatFunc can be used to modify typeName at definition time. type MapSchemaFormatFunc func(typeName string) string +// MapModelTypeNameFunc can be used to return the desired typeName for a given +// type. It will return false if the default name should be used. +type MapModelTypeNameFunc func(t reflect.Type) (string, bool) + type Config struct { // url where the services are available, e.g. http://localhost:8080 // if left empty then the basePath of Swagger is taken from the actual request @@ -33,6 +39,8 @@ type Config struct { PostBuildHandler PostBuildDeclarationMapFunc // Swagger global info struct Info Info - // [optional] If set, model builder should call this handler to get addition typename-to-swagger-format-field convertion. + // [optional] If set, model builder should call this handler to get addition typename-to-swagger-format-field conversion. SchemaFormatHandler MapSchemaFormatFunc + // [optional] If set, model builder should call this handler to retrieve the name for a given type. + ModelTypeNameHandler MapModelTypeNameFunc } diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_builder.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_builder.go index 398e83049c4..d40786f251f 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_builder.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_builder.go @@ -43,6 +43,12 @@ func (b modelBuilder) addModelFrom(sample interface{}) { } func (b modelBuilder) addModel(st reflect.Type, nameOverride string) *Model { + // Turn pointers into simpler types so further checks are + // correct. + if st.Kind() == reflect.Ptr { + st = st.Elem() + } + modelName := b.keyFrom(st) if nameOverride != "" { modelName = nameOverride @@ -137,6 +143,11 @@ func (b modelBuilder) buildProperty(field reflect.StructField, model *Model, mod return "", "", prop } + if field.Name == "XMLName" && field.Type.String() == "xml.Name" { + // property is metadata for the xml.Name attribute, can be skipped + return "", "", prop + } + if tag := field.Tag.Get("modelDescription"); tag != "" { modelDescription = tag } @@ -155,7 +166,7 @@ func (b modelBuilder) buildProperty(field reflect.StructField, model *Model, mod prop.Type = &pType } if prop.Format == "" { - prop.Format = b.jsonSchemaFormat(fieldType.String()) + prop.Format = b.jsonSchemaFormat(b.keyFrom(fieldType)) } return jsonName, modelDescription, prop } @@ -192,13 +203,14 @@ func (b modelBuilder) buildProperty(field reflect.StructField, model *Model, mod return jsonName, modelDescription, prop } - if b.isPrimitiveType(fieldType.String()) { - mapped := b.jsonSchemaType(fieldType.String()) + fieldTypeName := b.keyFrom(fieldType) + if b.isPrimitiveType(fieldTypeName) { + mapped := b.jsonSchemaType(fieldTypeName) prop.Type = &mapped - prop.Format = b.jsonSchemaFormat(fieldType.String()) + prop.Format = b.jsonSchemaFormat(fieldTypeName) return jsonName, modelDescription, prop } - modelType := fieldType.String() + modelType := b.keyFrom(fieldType) prop.Ref = &modelType if fieldType.Name() == "" { // override type of anonymous structs @@ -272,7 +284,7 @@ func (b modelBuilder) buildStructTypeProperty(field reflect.StructField, jsonNam } // simple struct b.addModel(fieldType, "") - var pType = fieldType.String() + var pType = b.keyFrom(fieldType) prop.Ref = &pType return jsonName, prop } @@ -336,10 +348,11 @@ func (b modelBuilder) buildPointerTypeProperty(field reflect.StructField, jsonNa } } else { // non-array, pointer type - var pType = b.jsonSchemaType(fieldType.String()[1:]) // no star, include pkg path - if b.isPrimitiveType(fieldType.String()[1:]) { + fieldTypeName := b.keyFrom(fieldType.Elem()) + var pType = b.jsonSchemaType(fieldTypeName) // no star, include pkg path + if b.isPrimitiveType(fieldTypeName) { prop.Type = &pType - prop.Format = b.jsonSchemaFormat(fieldType.String()[1:]) + prop.Format = b.jsonSchemaFormat(fieldTypeName) return jsonName, prop } prop.Ref = &pType @@ -355,7 +368,7 @@ func (b modelBuilder) buildPointerTypeProperty(field reflect.StructField, jsonNa func (b modelBuilder) getElementTypeName(modelName, jsonName string, t reflect.Type) string { if t.Kind() == reflect.Ptr { - return t.String()[1:] + t = t.Elem() } if t.Name() == "" { return modelName + "." + jsonName @@ -365,6 +378,11 @@ func (b modelBuilder) getElementTypeName(modelName, jsonName string, t reflect.T func (b modelBuilder) keyFrom(st reflect.Type) string { key := st.String() + if b.Config != nil && b.Config.ModelTypeNameHandler != nil { + if name, ok := b.Config.ModelTypeNameHandler(st); ok { + key = name + } + } if len(st.Name()) == 0 { // unnamed type // Swagger UI has special meaning for [ key = strings.Replace(key, "[]", "||", -1) diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_property_ext.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_property_ext.go index 04fff2c57aa..a433b6b7027 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_property_ext.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/model_property_ext.go @@ -33,6 +33,21 @@ func (prop *ModelProperty) setMaximum(field reflect.StructField) { func (prop *ModelProperty) setType(field reflect.StructField) { if tag := field.Tag.Get("type"); tag != "" { + // Check if the first two characters of the type tag are + // intended to emulate slice/array behaviour. + // + // If type is intended to be a slice/array then add the + // overriden type to the array item instead of the main property + if len(tag) > 2 && tag[0:2] == "[]" { + pType := "array" + prop.Type = &pType + prop.Items = new(Item) + + iType := tag[2:] + prop.Items.Type = &iType + return + } + prop.Type = &tag } } diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/swagger_webservice.go b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/swagger_webservice.go index 58dd6259022..f12b6b10747 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/swagger_webservice.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/emicklei/go-restful/swagger/swagger_webservice.go @@ -277,7 +277,7 @@ func composeResponseMessages(route restful.Route, decl *ApiDeclaration, config * } // sort by code codes := sort.IntSlice{} - for code, _ := range route.ResponseErrors { + for code := range route.ResponseErrors { codes = append(codes, code) } codes.Sort() diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/README.md b/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/README.md index 68fcf2cabb2..64869af347a 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/README.md +++ b/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/README.md @@ -14,21 +14,21 @@ This is useful for testing: Import with ```import "github.com/google/gofuzz"``` You can use it on single variables: -``` +```go f := fuzz.New() var myInt int f.Fuzz(&myInt) // myInt gets a random value. ``` You can use it on maps: -``` +```go f := fuzz.New().NilChance(0).NumElements(1, 1) var myMap map[ComplexKeyType]string f.Fuzz(&myMap) // myMap will have exactly one element. ``` Customize the chance of getting a nil pointer: -``` +```go f := fuzz.New().NilChance(.5) var fancyStruct struct { A, B, C, D *string @@ -37,7 +37,7 @@ f.Fuzz(&fancyStruct) // About half the pointers should be set. ``` You can even customize the randomization completely if needed: -``` +```go type MyEnum string const ( A MyEnum = "A" diff --git a/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/fuzz.go b/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/fuzz.go index 42d9a48b3e2..4f888fbc8fa 100644 --- a/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/fuzz.go +++ b/staging/src/k8s.io/client-go/_vendor/github.com/google/gofuzz/fuzz.go @@ -129,7 +129,7 @@ func (f *Fuzzer) genElementCount() int { if f.minElements == f.maxElements { return f.minElements } - return f.minElements + f.r.Intn(f.maxElements-f.minElements) + return f.minElements + f.r.Intn(f.maxElements-f.minElements+1) } func (f *Fuzzer) genShouldFill() bool { @@ -229,12 +229,19 @@ func (f *Fuzzer) doFuzz(v reflect.Value, flags uint64) { return } v.Set(reflect.Zero(v.Type())) + case reflect.Array: + if f.genShouldFill() { + n := v.Len() + for i := 0; i < n; i++ { + f.doFuzz(v.Index(i), 0) + } + return + } + v.Set(reflect.Zero(v.Type())) case reflect.Struct: for i := 0; i < v.NumField(); i++ { f.doFuzz(v.Field(i), 0) } - case reflect.Array: - fallthrough case reflect.Chan: fallthrough case reflect.Func: diff --git a/staging/src/k8s.io/client-go/kubernetes/clientset.go b/staging/src/k8s.io/client-go/kubernetes/clientset.go index 432162a87a6..4271f9ec537 100644 --- a/staging/src/k8s.io/client-go/kubernetes/clientset.go +++ b/staging/src/k8s.io/client-go/kubernetes/clientset.go @@ -299,102 +299,102 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) } - var clientset Clientset + var cs Clientset var err error - clientset.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy) + cs.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.AppsV1beta1Client, err = v1beta1apps.NewForConfig(&configShallowCopy) + cs.AppsV1beta1Client, err = v1beta1apps.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.AuthenticationV1beta1Client, err = v1beta1authentication.NewForConfig(&configShallowCopy) + cs.AuthenticationV1beta1Client, err = v1beta1authentication.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.AuthorizationV1beta1Client, err = v1beta1authorization.NewForConfig(&configShallowCopy) + cs.AuthorizationV1beta1Client, err = v1beta1authorization.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.AutoscalingV1Client, err = v1autoscaling.NewForConfig(&configShallowCopy) + cs.AutoscalingV1Client, err = v1autoscaling.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy) + cs.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.BatchV2alpha1Client, err = v2alpha1batch.NewForConfig(&configShallowCopy) + cs.BatchV2alpha1Client, err = v2alpha1batch.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.CertificatesV1alpha1Client, err = v1alpha1certificates.NewForConfig(&configShallowCopy) + cs.CertificatesV1alpha1Client, err = v1alpha1certificates.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy) + cs.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.PolicyV1beta1Client, err = v1beta1policy.NewForConfig(&configShallowCopy) + cs.PolicyV1beta1Client, err = v1beta1policy.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.RbacV1alpha1Client, err = v1alpha1rbac.NewForConfig(&configShallowCopy) + cs.RbacV1alpha1Client, err = v1alpha1rbac.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.StorageV1beta1Client, err = v1beta1storage.NewForConfig(&configShallowCopy) + cs.StorageV1beta1Client, err = v1beta1storage.NewForConfig(&configShallowCopy) if err != nil { return nil, err } - clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) + cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { glog.Errorf("failed to create the DiscoveryClient: %v", err) return nil, err } - return &clientset, nil + return &cs, 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) + var cs Clientset + cs.CoreV1Client = v1core.NewForConfigOrDie(c) + cs.AppsV1beta1Client = v1beta1apps.NewForConfigOrDie(c) + cs.AuthenticationV1beta1Client = v1beta1authentication.NewForConfigOrDie(c) + cs.AuthorizationV1beta1Client = v1beta1authorization.NewForConfigOrDie(c) + cs.AutoscalingV1Client = v1autoscaling.NewForConfigOrDie(c) + cs.BatchV1Client = v1batch.NewForConfigOrDie(c) + cs.BatchV2alpha1Client = v2alpha1batch.NewForConfigOrDie(c) + cs.CertificatesV1alpha1Client = v1alpha1certificates.NewForConfigOrDie(c) + cs.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c) + cs.PolicyV1beta1Client = v1beta1policy.NewForConfigOrDie(c) + cs.RbacV1alpha1Client = v1alpha1rbac.NewForConfigOrDie(c) + cs.StorageV1beta1Client = v1beta1storage.NewForConfigOrDie(c) - clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) - return &clientset + cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) + return &cs } // 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) + var cs Clientset + cs.CoreV1Client = v1core.New(c) + cs.AppsV1beta1Client = v1beta1apps.New(c) + cs.AuthenticationV1beta1Client = v1beta1authentication.New(c) + cs.AuthorizationV1beta1Client = v1beta1authorization.New(c) + cs.AutoscalingV1Client = v1autoscaling.New(c) + cs.BatchV1Client = v1batch.New(c) + cs.BatchV2alpha1Client = v2alpha1batch.New(c) + cs.CertificatesV1alpha1Client = v1alpha1certificates.New(c) + cs.ExtensionsV1beta1Client = v1beta1extensions.New(c) + cs.PolicyV1beta1Client = v1beta1policy.New(c) + cs.RbacV1alpha1Client = v1alpha1rbac.New(c) + cs.StorageV1beta1Client = v1beta1storage.New(c) - clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) - return &clientset + cs.DiscoveryClient = discovery.NewDiscoveryClient(c) + return &cs } diff --git a/staging/src/k8s.io/client-go/kubernetes/doc.go b/staging/src/k8s.io/client-go/kubernetes/doc.go index 2f2e8e111ef..69ee3d9525f 100644 --- a/staging/src/k8s.io/client-go/kubernetes/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go b/staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go index 1cd49d00384..f458b94b7db 100644 --- a/staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go +++ b/staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go @@ -19,7 +19,7 @@ package fake import ( "k8s.io/client-go/discovery" fakediscovery "k8s.io/client-go/discovery/fake" - clientset "k8s.io/client-go/kubernetes" + kubernetes "k8s.io/client-go/kubernetes" v1beta1apps "k8s.io/client-go/kubernetes/typed/apps/v1beta1" fakev1beta1apps "k8s.io/client-go/kubernetes/typed/apps/v1beta1/fake" v1beta1authentication "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" @@ -71,7 +71,7 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { return &Clientset{fakePtr} } -// Clientset implements clientset.Interface. Meant to be embedded into a +// Clientset implements kubernetes.Interface. Meant to be embedded into a // struct to get a default implementation. This makes faking out just the method // you want to test easier. type Clientset struct { @@ -82,7 +82,7 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface { return &fakediscovery.FakeDiscovery{Fake: &c.Fake} } -var _ clientset.Interface = &Clientset{} +var _ kubernetes.Interface = &Clientset{} // CoreV1 retrieves the CoreV1Client func (c *Clientset) CoreV1() v1core.CoreV1Interface { diff --git a/staging/src/k8s.io/client-go/kubernetes/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/fake/doc.go index 3e97a8d69f0..e55472284d7 100644 --- a/staging/src/k8s.io/client-go/kubernetes/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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 fake clientset. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/apps/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go index ce67c0e5d52..916befbf68b 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go index ce67c0e5d52..916befbf68b 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go index 05887a553d9..3d2fc001033 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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 v2alpha1 diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go index 4ca4e887ae2..59d5bb205a7 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/doc.go index ce67c0e5d52..916befbf68b 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go index 0f3e79cefc4..d7cf10c8d56 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go @@ -30,7 +30,6 @@ type ExtensionsV1beta1Interface interface { DaemonSetsGetter DeploymentsGetter IngressesGetter - JobsGetter PodSecurityPoliciesGetter ReplicaSetsGetter ScalesGetter @@ -54,10 +53,6 @@ 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) } diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go index d40f5788ccd..14d7e20a9de 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go @@ -38,10 +38,6 @@ func (c *FakeExtensionsV1beta1) Ingresses(namespace string) v1beta1.IngressInter return &FakeIngresses{c, namespace} } -func (c *FakeExtensionsV1beta1) Jobs(namespace string) v1beta1.JobInterface { - return &FakeJobs{c, namespace} -} - func (c *FakeExtensionsV1beta1) PodSecurityPolicies() v1beta1.PodSecurityPolicyInterface { return &FakePodSecurityPolicies{c} } diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_job.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_job.go deleted file mode 100644 index 354d5c2a74b..00000000000 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_job.go +++ /dev/null @@ -1,129 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package fake - -import ( - api "k8s.io/client-go/pkg/api" - v1 "k8s.io/client-go/pkg/api/v1" - v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" - meta_v1 "k8s.io/client-go/pkg/apis/meta/v1" - labels "k8s.io/client-go/pkg/labels" - schema "k8s.io/client-go/pkg/runtime/schema" - watch "k8s.io/client-go/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeJobs implements JobInterface -type FakeJobs struct { - Fake *FakeExtensionsV1beta1 - ns string -} - -var jobsResource = schema.GroupVersionResource{Group: "extensions", Version: "v1beta1", Resource: "jobs"} - -func (c *FakeJobs) Create(job *v1beta1.Job) (result *v1beta1.Job, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &v1beta1.Job{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.Job), err -} - -func (c *FakeJobs) Update(job *v1beta1.Job) (result *v1beta1.Job, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &v1beta1.Job{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.Job), err -} - -func (c *FakeJobs) UpdateStatus(job *v1beta1.Job) (*v1beta1.Job, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &v1beta1.Job{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.Job), err -} - -func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &v1beta1.Job{}) - - return err -} - -func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1beta1.JobList{}) - return err -} - -func (c *FakeJobs) Get(name string, options meta_v1.GetOptions) (result *v1beta1.Job, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(jobsResource, c.ns, name), &v1beta1.Job{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.Job), err -} - -func (c *FakeJobs) List(opts v1.ListOptions) (result *v1beta1.JobList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(jobsResource, c.ns, opts), &v1beta1.JobList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1beta1.JobList{} - for _, item := range obj.(*v1beta1.JobList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested jobs. -func (c *FakeJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(jobsResource, c.ns, opts)) - -} - -// Patch applies the patch and returns the patched job. -func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Job, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, name, data, subresources...), &v1beta1.Job{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.Job), err -} diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go index 60cf61d4b26..2922553f95e 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go @@ -20,8 +20,6 @@ type DaemonSetExpansion interface{} type IngressExpansion interface{} -type JobExpansion interface{} - type PodSecurityPolicyExpansion interface{} type ReplicaSetExpansion interface{} diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go b/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go deleted file mode 100644 index 89dbdccc5cb..00000000000 --- a/staging/src/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go +++ /dev/null @@ -1,172 +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/pkg/api" - v1 "k8s.io/client-go/pkg/api/v1" - v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" - meta_v1 "k8s.io/client-go/pkg/apis/meta/v1" - 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(*v1beta1.Job) (*v1beta1.Job, error) - Update(*v1beta1.Job) (*v1beta1.Job, error) - UpdateStatus(*v1beta1.Job) (*v1beta1.Job, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options meta_v1.GetOptions) (*v1beta1.Job, 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 rest.Interface - ns string -} - -// newJobs returns a Jobs -func newJobs(c *ExtensionsV1beta1Client, 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 *v1beta1.Job) (result *v1beta1.Job, err error) { - result = &v1beta1.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 *v1beta1.Job) (result *v1beta1.Job, err error) { - result = &v1beta1.Job{} - err = c.client.Put(). - Namespace(c.ns). - Resource("jobs"). - Name(job.Name). - Body(job). - Do(). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclientstatus=false comment above the type to avoid generating UpdateStatus(). - -func (c *jobs) UpdateStatus(job *v1beta1.Job) (result *v1beta1.Job, err error) { - result = &v1beta1.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, options meta_v1.GetOptions) (result *v1beta1.Job, err error) { - result = &v1beta1.Job{} - err = c.client.Get(). - Namespace(c.ns). - Resource("jobs"). - Name(name). - VersionedParams(&options, api.ParameterCodec). - 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 *v1beta1.JobList, err error) { - result = &v1beta1.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 *v1beta1.Job, err error) { - result = &v1beta1.Job{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("jobs"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go index 4ca4e887ae2..59d5bb205a7 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go index c15d0baccf8..f7631fa4e6a 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/doc.go b/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/doc.go index 87e4dda424d..ab41d136d93 100644 --- a/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/doc.go +++ b/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_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 is generated by client-gen with arguments: --clientset-name=clientset --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] // Package fake has the automatically generated clients. package fake diff --git a/staging/src/k8s.io/client-go/pkg/api/errors/errors.go b/staging/src/k8s.io/client-go/pkg/api/errors/errors.go index 815e180464a..dc77be457a4 100644 --- a/staging/src/k8s.io/client-go/pkg/api/errors/errors.go +++ b/staging/src/k8s.io/client-go/pkg/api/errors/errors.go @@ -308,7 +308,8 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource schema.Gr message = "the server has asked for the client to provide credentials" case http.StatusForbidden: reason = metav1.StatusReasonForbidden - message = "the server does not allow access to the requested resource" + // the server message has details about who is trying to perform what action. Keep its message. + message = serverMessage case http.StatusMethodNotAllowed: reason = metav1.StatusReasonMethodNotAllowed message = "the server does not allow this method on the requested resource" diff --git a/staging/src/k8s.io/client-go/pkg/api/meta/priority.go b/staging/src/k8s.io/client-go/pkg/api/meta/priority.go index 3d662c76436..b2591137b8d 100644 --- a/staging/src/k8s.io/client-go/pkg/api/meta/priority.go +++ b/staging/src/k8s.io/client-go/pkg/api/meta/priority.go @@ -163,9 +163,9 @@ func (m PriorityRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) if len(versions) > 0 { priorities = make([]schema.GroupVersionKind, 0, len(m.KindPriority)+len(versions)) for _, version := range versions { - gv, err := schema.ParseGroupVersion(version) - if err != nil { - return nil, err + gv := schema.GroupVersion{ + Version: version, + Group: gk.Group, } priorities = append(priorities, gv.WithKind(AnyKind)) } diff --git a/staging/src/k8s.io/client-go/pkg/api/types.generated.go b/staging/src/k8s.io/client-go/pkg/api/types.generated.go deleted file mode 100644 index 22360b6442c..00000000000 --- a/staging/src/k8s.io/client-go/pkg/api/types.generated.go +++ /dev/null @@ -1,63010 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package api - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg3_resource "k8s.io/client-go/pkg/api/resource" - pkg2_v1 "k8s.io/client-go/pkg/apis/meta/v1" - 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" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg3_resource.Quantity - var v1 pkg2_v1.Time - var v2 pkg6_fields.Selector - var v3 pkg5_labels.Selector - var v4 pkg7_runtime.Object - var v5 pkg1_types.UID - var v6 pkg4_intstr.IntOrString - var v7 time.Time - _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7 - } -} - -func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [15]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Name != "" - yyq2[1] = x.GenerateName != "" - yyq2[2] = x.Namespace != "" - yyq2[3] = x.SelfLink != "" - yyq2[4] = x.UID != "" - yyq2[5] = x.ResourceVersion != "" - yyq2[6] = x.Generation != 0 - yyq2[7] = true - yyq2[8] = x.DeletionTimestamp != nil - yyq2[9] = x.DeletionGracePeriodSeconds != nil - yyq2[10] = len(x.Labels) != 0 - yyq2[11] = len(x.Annotations) != 0 - yyq2[12] = len(x.OwnerReferences) != 0 - yyq2[13] = len(x.Finalizers) != 0 - yyq2[14] = x.ClusterName != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(15) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yy25 := &x.CreationTimestamp - yym26 := z.EncBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.EncExt(yy25) { - } else if yym26 { - z.EncBinaryMarshal(yy25) - } else if !yym26 && z.IsJSONHandle() { - z.EncJSONMarshal(yy25) - } else { - z.EncFallback(yy25) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy27 := &x.CreationTimestamp - yym28 := z.EncBinary() - _ = yym28 - if false { - } else if z.HasExtensions() && z.EncExt(yy27) { - } else if yym28 { - z.EncBinaryMarshal(yy27) - } else if !yym28 && z.IsJSONHandle() { - z.EncJSONMarshal(yy27) - } else { - z.EncFallback(yy27) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym30 := z.EncBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym30 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym30 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym31 := z.EncBinary() - _ = yym31 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym31 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym31 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy33 := *x.DeletionGracePeriodSeconds - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeInt(int64(yy33)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy35 := *x.DeletionGracePeriodSeconds - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeInt(int64(yy35)) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym39 := z.EncBinary() - _ = yym39 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg2_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg2_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym52 := z.DecBinary() - _ = yym52 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct53 := r.ContainerType() - if yyct53 == codecSelferValueTypeMap1234 { - yyl53 := r.ReadMapStart() - if yyl53 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl53, d) - } - } else if yyct53 == codecSelferValueTypeArray1234 { - yyl53 := r.ReadArrayStart() - if yyl53 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl53, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys54Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys54Slc - var yyhl54 bool = l >= 0 - for yyj54 := 0; ; yyj54++ { - if yyhl54 { - if yyj54 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys54Slc = r.DecodeBytes(yys54Slc, true, true) - yys54 := string(yys54Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys54 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg1_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg2_v1.Time{} - } else { - yyv62 := &x.CreationTimestamp - yym63 := z.DecBinary() - _ = yym63 - if false { - } else if z.HasExtensions() && z.DecExt(yyv62) { - } else if yym63 { - z.DecBinaryUnmarshal(yyv62) - } else if !yym63 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv62) - } else { - z.DecFallback(yyv62, false) - } - } - case "deletionTimestamp": - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg2_v1.Time) - } - yym65 := z.DecBinary() - _ = yym65 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym65 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym65 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym67 := z.DecBinary() - _ = yym67 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv68 := &x.Labels - yym69 := z.DecBinary() - _ = yym69 - if false { - } else { - z.F.DecMapStringStringX(yyv68, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv70 := &x.Annotations - yym71 := z.DecBinary() - _ = yym71 - if false { - } else { - z.F.DecMapStringStringX(yyv70, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv72 := &x.OwnerReferences - yym73 := z.DecBinary() - _ = yym73 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg2_v1.OwnerReference)(yyv72), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv74 := &x.Finalizers - yym75 := z.DecBinary() - _ = yym75 - if false { - } else { - z.F.DecSliceStringX(yyv74, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys54) - } // end switch yys54 - } // end for yyj54 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj77 int - var yyb77 bool - var yyhl77 bool = l >= 0 - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg1_types.UID(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg2_v1.Time{} - } else { - yyv85 := &x.CreationTimestamp - yym86 := z.DecBinary() - _ = yym86 - if false { - } else if z.HasExtensions() && z.DecExt(yyv85) { - } else if yym86 { - z.DecBinaryUnmarshal(yyv85) - } else if !yym86 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv85) - } else { - z.DecFallback(yyv85, false) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg2_v1.Time) - } - yym88 := z.DecBinary() - _ = yym88 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym88 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym88 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym90 := z.DecBinary() - _ = yym90 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv91 := &x.Labels - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - z.F.DecMapStringStringX(yyv91, false, d) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv93 := &x.Annotations - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - z.F.DecMapStringStringX(yyv93, false, d) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv95 := &x.OwnerReferences - yym96 := z.DecBinary() - _ = yym96 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg2_v1.OwnerReference)(yyv95), d) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv97 := &x.Finalizers - yym98 := z.DecBinary() - _ = yym98 - if false { - } else { - z.F.DecSliceStringX(yyv97, false, d) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - for { - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj77-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym100 := z.EncBinary() - _ = yym100 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep101 := !z.EncBinary() - yy2arr101 := z.EncBasicHandle().StructToArray - var yyq101 [24]bool - _, _, _ = yysep101, yyq101, yy2arr101 - const yyr101 bool = false - yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil - yyq101[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil - yyq101[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq101[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq101[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil - yyq101[6] = x.VolumeSource.Secret != nil && x.Secret != nil - yyq101[7] = x.VolumeSource.NFS != nil && x.NFS != nil - yyq101[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil - yyq101[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq101[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil - yyq101[11] = x.VolumeSource.RBD != nil && x.RBD != nil - yyq101[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil - yyq101[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq101[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil - yyq101[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil - yyq101[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil - yyq101[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil - yyq101[18] = x.VolumeSource.FC != nil && x.FC != nil - yyq101[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil - yyq101[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil - yyq101[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - yyq101[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil - yyq101[23] = x.VolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil - var yynn101 int - if yyr101 || yy2arr101 { - r.EncodeArrayStart(24) - } else { - yynn101 = 1 - for _, b := range yyq101 { - if b { - yynn101++ - } - } - r.EncodeMapStart(yynn101) - yynn101 = 0 - } - if yyr101 || yy2arr101 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym103 := z.EncBinary() - _ = yym103 - 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) - yym104 := z.EncBinary() - _ = yym104 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - var yyn105 bool - if x.VolumeSource.HostPath == nil { - yyn105 = true - goto LABEL105 - } - LABEL105: - if yyr101 || yy2arr101 { - if yyn105 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[1] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn105 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn106 bool - if x.VolumeSource.EmptyDir == nil { - yyn106 = true - goto LABEL106 - } - LABEL106: - if yyr101 || yy2arr101 { - if yyn106 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[2] { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn106 { - r.EncodeNil() - } else { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } - } - } - var yyn107 bool - if x.VolumeSource.GCEPersistentDisk == nil { - yyn107 = true - goto LABEL107 - } - LABEL107: - if yyr101 || yy2arr101 { - if yyn107 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[3] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn107 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn108 bool - if x.VolumeSource.AWSElasticBlockStore == nil { - yyn108 = true - goto LABEL108 - } - LABEL108: - if yyr101 || yy2arr101 { - if yyn108 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[4] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn108 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn109 bool - if x.VolumeSource.GitRepo == nil { - yyn109 = true - goto LABEL109 - } - LABEL109: - if yyr101 || yy2arr101 { - if yyn109 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[5] { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn109 { - r.EncodeNil() - } else { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } - } - } - var yyn110 bool - if x.VolumeSource.Secret == nil { - yyn110 = true - goto LABEL110 - } - LABEL110: - if yyr101 || yy2arr101 { - if yyn110 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[6] { - if x.Secret == nil { - r.EncodeNil() - } else { - x.Secret.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secret")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn110 { - r.EncodeNil() - } else { - if x.Secret == nil { - r.EncodeNil() - } else { - x.Secret.CodecEncodeSelf(e) - } - } - } - } - var yyn111 bool - if x.VolumeSource.NFS == nil { - yyn111 = true - goto LABEL111 - } - LABEL111: - if yyr101 || yy2arr101 { - if yyn111 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[7] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn111 { - r.EncodeNil() - } else { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - } - var yyn112 bool - if x.VolumeSource.ISCSI == nil { - yyn112 = true - goto LABEL112 - } - LABEL112: - if yyr101 || yy2arr101 { - if yyn112 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[8] { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn112 { - r.EncodeNil() - } else { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } - } - } - var yyn113 bool - if x.VolumeSource.Glusterfs == nil { - yyn113 = true - goto LABEL113 - } - LABEL113: - if yyr101 || yy2arr101 { - if yyn113 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[9] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn113 { - r.EncodeNil() - } else { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - } - var yyn114 bool - if x.VolumeSource.PersistentVolumeClaim == nil { - yyn114 = true - goto LABEL114 - } - LABEL114: - if yyr101 || yy2arr101 { - if yyn114 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[10] { - if x.PersistentVolumeClaim == nil { - r.EncodeNil() - } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn114 { - r.EncodeNil() - } else { - if x.PersistentVolumeClaim == nil { - r.EncodeNil() - } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) - } - } - } - } - var yyn115 bool - if x.VolumeSource.RBD == nil { - yyn115 = true - goto LABEL115 - } - LABEL115: - if yyr101 || yy2arr101 { - if yyn115 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[11] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn115 { - r.EncodeNil() - } else { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - } - var yyn116 bool - if x.VolumeSource.Quobyte == nil { - yyn116 = true - goto LABEL116 - } - LABEL116: - if yyr101 || yy2arr101 { - if yyn116 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[12] { - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("quobyte")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn116 { - r.EncodeNil() - } else { - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } - } - } - var yyn117 bool - if x.VolumeSource.FlexVolume == nil { - yyn117 = true - goto LABEL117 - } - LABEL117: - if yyr101 || yy2arr101 { - if yyn117 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[13] { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn117 { - r.EncodeNil() - } else { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } - } - } - var yyn118 bool - if x.VolumeSource.Cinder == nil { - yyn118 = true - goto LABEL118 - } - LABEL118: - if yyr101 || yy2arr101 { - if yyn118 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[14] { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn118 { - r.EncodeNil() - } else { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } - } - } - var yyn119 bool - if x.VolumeSource.CephFS == nil { - yyn119 = true - goto LABEL119 - } - LABEL119: - if yyr101 || yy2arr101 { - if yyn119 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[15] { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn119 { - r.EncodeNil() - } else { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } - } - } - var yyn120 bool - if x.VolumeSource.Flocker == nil { - yyn120 = true - goto LABEL120 - } - LABEL120: - if yyr101 || yy2arr101 { - if yyn120 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[16] { - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn120 { - r.EncodeNil() - } else { - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } - } - } - var yyn121 bool - if x.VolumeSource.DownwardAPI == nil { - yyn121 = true - goto LABEL121 - } - LABEL121: - if yyr101 || yy2arr101 { - if yyn121 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[17] { - if x.DownwardAPI == nil { - r.EncodeNil() - } else { - x.DownwardAPI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[17] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn121 { - r.EncodeNil() - } else { - if x.DownwardAPI == nil { - r.EncodeNil() - } else { - x.DownwardAPI.CodecEncodeSelf(e) - } - } - } - } - var yyn122 bool - if x.VolumeSource.FC == nil { - yyn122 = true - goto LABEL122 - } - LABEL122: - if yyr101 || yy2arr101 { - if yyn122 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[18] { - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[18] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn122 { - r.EncodeNil() - } else { - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } - } - } - var yyn123 bool - if x.VolumeSource.AzureFile == nil { - yyn123 = true - goto LABEL123 - } - LABEL123: - if yyr101 || yy2arr101 { - if yyn123 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[19] { - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[19] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn123 { - r.EncodeNil() - } else { - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } - } - } - var yyn124 bool - if x.VolumeSource.ConfigMap == nil { - yyn124 = true - goto LABEL124 - } - LABEL124: - if yyr101 || yy2arr101 { - if yyn124 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[20] { - if x.ConfigMap == nil { - r.EncodeNil() - } else { - x.ConfigMap.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[20] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configMap")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn124 { - r.EncodeNil() - } else { - if x.ConfigMap == nil { - r.EncodeNil() - } else { - x.ConfigMap.CodecEncodeSelf(e) - } - } - } - } - var yyn125 bool - if x.VolumeSource.VsphereVolume == nil { - yyn125 = true - goto LABEL125 - } - LABEL125: - if yyr101 || yy2arr101 { - if yyn125 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[21] { - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[21] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn125 { - r.EncodeNil() - } else { - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } - } - } - var yyn126 bool - if x.VolumeSource.AzureDisk == nil { - yyn126 = true - goto LABEL126 - } - LABEL126: - if yyr101 || yy2arr101 { - if yyn126 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq101[22] { - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq101[22] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn126 { - r.EncodeNil() - } else { - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } - } - } - 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 { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym128 := z.DecBinary() - _ = yym128 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct129 := r.ContainerType() - if yyct129 == codecSelferValueTypeMap1234 { - yyl129 := r.ReadMapStart() - if yyl129 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl129, d) - } - } else if yyct129 == codecSelferValueTypeArray1234 { - yyl129 := r.ReadArrayStart() - if yyl129 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl129, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys130Slc = r.DecodeBytes(yys130Slc, true, true) - yys130 := string(yys130Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys130 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "hostPath": - if x.VolumeSource.HostPath == nil { - x.VolumeSource.HostPath = new(HostPathVolumeSource) - } - if r.TryDecodeAsNil() { - if x.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - case "emptyDir": - if x.VolumeSource.EmptyDir == nil { - x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) - } - if r.TryDecodeAsNil() { - if x.EmptyDir != nil { - x.EmptyDir = nil - } - } else { - if x.EmptyDir == nil { - x.EmptyDir = new(EmptyDirVolumeSource) - } - x.EmptyDir.CodecDecodeSelf(d) - } - case "gcePersistentDisk": - if x.VolumeSource.GCEPersistentDisk == nil { - x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - case "awsElasticBlockStore": - if x.VolumeSource.AWSElasticBlockStore == nil { - x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - case "gitRepo": - if x.VolumeSource.GitRepo == nil { - x.VolumeSource.GitRepo = new(GitRepoVolumeSource) - } - if r.TryDecodeAsNil() { - if x.GitRepo != nil { - x.GitRepo = nil - } - } else { - if x.GitRepo == nil { - x.GitRepo = new(GitRepoVolumeSource) - } - x.GitRepo.CodecDecodeSelf(d) - } - case "secret": - if x.VolumeSource.Secret == nil { - x.VolumeSource.Secret = new(SecretVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Secret != nil { - x.Secret = nil - } - } else { - if x.Secret == nil { - x.Secret = new(SecretVolumeSource) - } - x.Secret.CodecDecodeSelf(d) - } - case "nfs": - if x.VolumeSource.NFS == nil { - x.VolumeSource.NFS = new(NFSVolumeSource) - } - if r.TryDecodeAsNil() { - if x.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - case "iscsi": - if x.VolumeSource.ISCSI == nil { - x.VolumeSource.ISCSI = new(ISCSIVolumeSource) - } - if r.TryDecodeAsNil() { - if x.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - case "glusterfs": - if x.VolumeSource.Glusterfs == nil { - x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - case "persistentVolumeClaim": - if x.VolumeSource.PersistentVolumeClaim == nil { - x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - if r.TryDecodeAsNil() { - if x.PersistentVolumeClaim != nil { - x.PersistentVolumeClaim = nil - } - } else { - if x.PersistentVolumeClaim == nil { - x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - x.PersistentVolumeClaim.CodecDecodeSelf(d) - } - case "rbd": - if x.VolumeSource.RBD == nil { - x.VolumeSource.RBD = new(RBDVolumeSource) - } - if r.TryDecodeAsNil() { - if x.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - case "quobyte": - if x.VolumeSource.Quobyte == nil { - x.VolumeSource.Quobyte = new(QuobyteVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - case "flexVolume": - if x.VolumeSource.FlexVolume == nil { - x.VolumeSource.FlexVolume = new(FlexVolumeSource) - } - if r.TryDecodeAsNil() { - if x.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - case "cinder": - if x.VolumeSource.Cinder == nil { - x.VolumeSource.Cinder = new(CinderVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - case "cephfs": - if x.VolumeSource.CephFS == nil { - x.VolumeSource.CephFS = new(CephFSVolumeSource) - } - if r.TryDecodeAsNil() { - if x.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - case "flocker": - if x.VolumeSource.Flocker == nil { - x.VolumeSource.Flocker = new(FlockerVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - case "downwardAPI": - if x.VolumeSource.DownwardAPI == nil { - x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) - } - if r.TryDecodeAsNil() { - if x.DownwardAPI != nil { - x.DownwardAPI = nil - } - } else { - if x.DownwardAPI == nil { - x.DownwardAPI = new(DownwardAPIVolumeSource) - } - x.DownwardAPI.CodecDecodeSelf(d) - } - case "fc": - if x.VolumeSource.FC == nil { - x.VolumeSource.FC = new(FCVolumeSource) - } - if r.TryDecodeAsNil() { - if x.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - case "azureFile": - if x.VolumeSource.AzureFile == nil { - x.VolumeSource.AzureFile = new(AzureFileVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - case "configMap": - if x.VolumeSource.ConfigMap == nil { - x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) - } - if r.TryDecodeAsNil() { - if x.ConfigMap != nil { - x.ConfigMap = nil - } - } else { - if x.ConfigMap == nil { - x.ConfigMap = new(ConfigMapVolumeSource) - } - x.ConfigMap.CodecDecodeSelf(d) - } - case "vsphereVolume": - if x.VolumeSource.VsphereVolume == nil { - x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - case "azureDisk": - if x.VolumeSource.AzureDisk == nil { - x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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, yys130) - } // end switch yys130 - } // end for yyj130 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj155 int - var yyb155 bool - var yyhl155 bool = l >= 0 - yyj155++ - if yyhl155 { - yyb155 = yyj155 > l - } else { - yyb155 = r.CheckBreak() - } - if yyb155 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - if x.VolumeSource.HostPath == nil { - x.VolumeSource.HostPath = new(HostPathVolumeSource) - } - 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.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - if x.VolumeSource.EmptyDir == nil { - x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) - } - 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.EmptyDir != nil { - x.EmptyDir = nil - } - } else { - if x.EmptyDir == nil { - x.EmptyDir = new(EmptyDirVolumeSource) - } - x.EmptyDir.CodecDecodeSelf(d) - } - if x.VolumeSource.GCEPersistentDisk == nil { - x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - 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.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - if x.VolumeSource.AWSElasticBlockStore == nil { - x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - 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.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - if x.VolumeSource.GitRepo == nil { - x.VolumeSource.GitRepo = new(GitRepoVolumeSource) - } - 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.GitRepo != nil { - x.GitRepo = nil - } - } else { - if x.GitRepo == nil { - x.GitRepo = new(GitRepoVolumeSource) - } - x.GitRepo.CodecDecodeSelf(d) - } - if x.VolumeSource.Secret == nil { - x.VolumeSource.Secret = new(SecretVolumeSource) - } - 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.Secret != nil { - x.Secret = nil - } - } else { - if x.Secret == nil { - x.Secret = new(SecretVolumeSource) - } - x.Secret.CodecDecodeSelf(d) - } - if x.VolumeSource.NFS == nil { - x.VolumeSource.NFS = new(NFSVolumeSource) - } - 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.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - if x.VolumeSource.ISCSI == nil { - x.VolumeSource.ISCSI = new(ISCSIVolumeSource) - } - 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.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - if x.VolumeSource.Glusterfs == nil { - x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) - } - 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.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - if x.VolumeSource.PersistentVolumeClaim == nil { - x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - 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.PersistentVolumeClaim != nil { - x.PersistentVolumeClaim = nil - } - } else { - if x.PersistentVolumeClaim == nil { - x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - x.PersistentVolumeClaim.CodecDecodeSelf(d) - } - if x.VolumeSource.RBD == nil { - x.VolumeSource.RBD = new(RBDVolumeSource) - } - 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.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - if x.VolumeSource.Quobyte == nil { - x.VolumeSource.Quobyte = new(QuobyteVolumeSource) - } - 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.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - if x.VolumeSource.FlexVolume == nil { - x.VolumeSource.FlexVolume = new(FlexVolumeSource) - } - 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.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - if x.VolumeSource.Cinder == nil { - x.VolumeSource.Cinder = new(CinderVolumeSource) - } - 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.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - if x.VolumeSource.CephFS == nil { - x.VolumeSource.CephFS = new(CephFSVolumeSource) - } - 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.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - if x.VolumeSource.Flocker == nil { - x.VolumeSource.Flocker = new(FlockerVolumeSource) - } - 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.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - if x.VolumeSource.DownwardAPI == nil { - x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) - } - 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.DownwardAPI != nil { - x.DownwardAPI = nil - } - } else { - if x.DownwardAPI == nil { - x.DownwardAPI = new(DownwardAPIVolumeSource) - } - x.DownwardAPI.CodecDecodeSelf(d) - } - if x.VolumeSource.FC == nil { - x.VolumeSource.FC = new(FCVolumeSource) - } - 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.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - if x.VolumeSource.AzureFile == nil { - x.VolumeSource.AzureFile = new(AzureFileVolumeSource) - } - 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.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - if x.VolumeSource.ConfigMap == nil { - x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) - } - 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.ConfigMap != nil { - x.ConfigMap = nil - } - } else { - if x.ConfigMap == nil { - x.ConfigMap = new(ConfigMapVolumeSource) - } - x.ConfigMap.CodecDecodeSelf(d) - } - if x.VolumeSource.VsphereVolume == nil { - x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - 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.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - if x.VolumeSource.AzureDisk == nil { - x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) - } - 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.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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 - } - } 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(yyj155-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym180 := z.EncBinary() - _ = yym180 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn181 = 0 - for _, b := range yyq181 { - if b { - yynn181++ - } - } - r.EncodeMapStart(yynn181) - yynn181 = 0 - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[0] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[1] { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[2] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[3] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[4] { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[5] { - if x.Secret == nil { - r.EncodeNil() - } else { - x.Secret.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secret")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Secret == nil { - r.EncodeNil() - } else { - x.Secret.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[6] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[7] { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[8] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[9] { - if x.PersistentVolumeClaim == nil { - r.EncodeNil() - } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PersistentVolumeClaim == nil { - r.EncodeNil() - } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[10] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[11] { - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("quobyte")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[12] { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[13] { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[14] { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[15] { - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[16] { - if x.DownwardAPI == nil { - r.EncodeNil() - } else { - x.DownwardAPI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DownwardAPI == nil { - r.EncodeNil() - } else { - x.DownwardAPI.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[17] { - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[17] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[18] { - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[18] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[19] { - if x.ConfigMap == nil { - r.EncodeNil() - } else { - x.ConfigMap.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[19] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configMap")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ConfigMap == nil { - r.EncodeNil() - } else { - x.ConfigMap.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[20] { - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[20] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } - } - if yyr181 || yy2arr181 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq181[21] { - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq181[21] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } - } - if 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) - } - } - } -} - -func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym205 := z.DecBinary() - _ = yym205 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct206 := r.ContainerType() - if yyct206 == codecSelferValueTypeMap1234 { - yyl206 := r.ReadMapStart() - if yyl206 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl206, d) - } - } else if yyct206 == codecSelferValueTypeArray1234 { - yyl206 := r.ReadArrayStart() - if yyl206 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl206, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys207Slc = r.DecodeBytes(yys207Slc, true, true) - yys207 := string(yys207Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys207 { - case "hostPath": - if r.TryDecodeAsNil() { - if x.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - case "emptyDir": - if r.TryDecodeAsNil() { - if x.EmptyDir != nil { - x.EmptyDir = nil - } - } else { - if x.EmptyDir == nil { - x.EmptyDir = new(EmptyDirVolumeSource) - } - x.EmptyDir.CodecDecodeSelf(d) - } - case "gcePersistentDisk": - if r.TryDecodeAsNil() { - if x.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - case "awsElasticBlockStore": - if r.TryDecodeAsNil() { - if x.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - case "gitRepo": - if r.TryDecodeAsNil() { - if x.GitRepo != nil { - x.GitRepo = nil - } - } else { - if x.GitRepo == nil { - x.GitRepo = new(GitRepoVolumeSource) - } - x.GitRepo.CodecDecodeSelf(d) - } - case "secret": - if r.TryDecodeAsNil() { - if x.Secret != nil { - x.Secret = nil - } - } else { - if x.Secret == nil { - x.Secret = new(SecretVolumeSource) - } - x.Secret.CodecDecodeSelf(d) - } - case "nfs": - if r.TryDecodeAsNil() { - if x.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - case "iscsi": - if r.TryDecodeAsNil() { - if x.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - case "glusterfs": - if r.TryDecodeAsNil() { - if x.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - case "persistentVolumeClaim": - if r.TryDecodeAsNil() { - if x.PersistentVolumeClaim != nil { - x.PersistentVolumeClaim = nil - } - } else { - if x.PersistentVolumeClaim == nil { - x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - x.PersistentVolumeClaim.CodecDecodeSelf(d) - } - case "rbd": - if r.TryDecodeAsNil() { - if x.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - case "quobyte": - if r.TryDecodeAsNil() { - if x.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - case "flexVolume": - if r.TryDecodeAsNil() { - if x.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - case "cinder": - if r.TryDecodeAsNil() { - if x.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - case "cephfs": - if r.TryDecodeAsNil() { - if x.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - case "flocker": - if r.TryDecodeAsNil() { - if x.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - case "downwardAPI": - if r.TryDecodeAsNil() { - if x.DownwardAPI != nil { - x.DownwardAPI = nil - } - } else { - if x.DownwardAPI == nil { - x.DownwardAPI = new(DownwardAPIVolumeSource) - } - x.DownwardAPI.CodecDecodeSelf(d) - } - case "fc": - if r.TryDecodeAsNil() { - if x.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - case "azureFile": - if r.TryDecodeAsNil() { - if x.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - case "configMap": - if r.TryDecodeAsNil() { - if x.ConfigMap != nil { - x.ConfigMap = nil - } - } else { - if x.ConfigMap == nil { - x.ConfigMap = new(ConfigMapVolumeSource) - } - x.ConfigMap.CodecDecodeSelf(d) - } - case "vsphereVolume": - if r.TryDecodeAsNil() { - if x.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - case "azureDisk": - if r.TryDecodeAsNil() { - if x.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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, yys207) - } // end switch yys207 - } // end for yyj207 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj231 int - var yyb231 bool - var yyhl231 bool = l >= 0 - 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.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - 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.EmptyDir != nil { - x.EmptyDir = nil - } - } else { - if x.EmptyDir == nil { - x.EmptyDir = new(EmptyDirVolumeSource) - } - x.EmptyDir.CodecDecodeSelf(d) - } - 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.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - 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.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - 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.GitRepo != nil { - x.GitRepo = nil - } - } else { - if x.GitRepo == nil { - x.GitRepo = new(GitRepoVolumeSource) - } - x.GitRepo.CodecDecodeSelf(d) - } - 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.Secret != nil { - x.Secret = nil - } - } else { - if x.Secret == nil { - x.Secret = new(SecretVolumeSource) - } - x.Secret.CodecDecodeSelf(d) - } - 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.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - 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.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - 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.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - 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.PersistentVolumeClaim != nil { - x.PersistentVolumeClaim = nil - } - } else { - if x.PersistentVolumeClaim == nil { - x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - x.PersistentVolumeClaim.CodecDecodeSelf(d) - } - 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.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - 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.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - 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.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - 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.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - 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.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - 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.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - 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.DownwardAPI != nil { - x.DownwardAPI = nil - } - } else { - if x.DownwardAPI == nil { - x.DownwardAPI = new(DownwardAPIVolumeSource) - } - x.DownwardAPI.CodecDecodeSelf(d) - } - 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.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - 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.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - 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.ConfigMap != nil { - x.ConfigMap = nil - } - } else { - if x.ConfigMap == nil { - x.ConfigMap = new(ConfigMapVolumeSource) - } - x.ConfigMap.CodecDecodeSelf(d) - } - 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.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - 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.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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 - } - } 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(yyj231-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym255 := z.EncBinary() - _ = yym255 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn256 = 0 - for _, b := range yyq256 { - if b { - yynn256++ - } - } - r.EncodeMapStart(yynn256) - yynn256 = 0 - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[0] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[1] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[2] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[3] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[4] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[5] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[6] { - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("quobyte")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Quobyte == nil { - r.EncodeNil() - } else { - x.Quobyte.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[7] { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[8] { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[9] { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[10] { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[11] { - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FC == nil { - r.EncodeNil() - } else { - x.FC.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[12] { - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Flocker == nil { - r.EncodeNil() - } else { - x.Flocker.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[13] { - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AzureFile == nil { - r.EncodeNil() - } else { - x.AzureFile.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[14] { - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VsphereVolume == nil { - r.EncodeNil() - } else { - x.VsphereVolume.CodecEncodeSelf(e) - } - } - } - if yyr256 || yy2arr256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq256[15] { - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq256[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } - } - if 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) - } - } - } -} - -func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym274 := z.DecBinary() - _ = yym274 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct275 := r.ContainerType() - if yyct275 == codecSelferValueTypeMap1234 { - yyl275 := r.ReadMapStart() - if yyl275 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl275, d) - } - } else if yyct275 == codecSelferValueTypeArray1234 { - yyl275 := r.ReadArrayStart() - if yyl275 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl275, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys276Slc = r.DecodeBytes(yys276Slc, true, true) - yys276 := string(yys276Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys276 { - case "gcePersistentDisk": - if r.TryDecodeAsNil() { - if x.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - case "awsElasticBlockStore": - if r.TryDecodeAsNil() { - if x.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - case "hostPath": - if r.TryDecodeAsNil() { - if x.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - case "glusterfs": - if r.TryDecodeAsNil() { - if x.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - case "nfs": - if r.TryDecodeAsNil() { - if x.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - case "rbd": - if r.TryDecodeAsNil() { - if x.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - case "quobyte": - if r.TryDecodeAsNil() { - if x.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - case "iscsi": - if r.TryDecodeAsNil() { - if x.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - case "flexVolume": - if r.TryDecodeAsNil() { - if x.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - case "cinder": - if r.TryDecodeAsNil() { - if x.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - case "cephfs": - if r.TryDecodeAsNil() { - if x.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - case "fc": - if r.TryDecodeAsNil() { - if x.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - case "flocker": - if r.TryDecodeAsNil() { - if x.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - case "azureFile": - if r.TryDecodeAsNil() { - if x.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - case "vsphereVolume": - if r.TryDecodeAsNil() { - if x.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - case "azureDisk": - if r.TryDecodeAsNil() { - if x.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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, yys276) - } // end switch yys276 - } // end for yyj276 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj294 int - var yyb294 bool - var yyhl294 bool = l >= 0 - 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.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - 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.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - 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.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - 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.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - 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.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - 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.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - 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.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - 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.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - 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.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - 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.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - 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.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - 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.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - 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.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - 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.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - 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.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - 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.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - 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 - } - } 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(yyj294-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym312 := z.EncBinary() - _ = yym312 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn313 = 1 - for _, b := range yyq313 { - if b { - yynn313++ - } - } - r.EncodeMapStart(yynn313) - yynn313 = 0 - } - if yyr313 || yy2arr313 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym315 := z.EncBinary() - _ = yym315 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("claimName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym316 := z.EncBinary() - _ = yym316 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) - } - } - if yyr313 || yy2arr313 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq313[1] { - yym318 := z.EncBinary() - _ = yym318 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq313[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym319 := z.EncBinary() - _ = yym319 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr313 || yy2arr313 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym320 := z.DecBinary() - _ = yym320 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct321 := r.ContainerType() - if yyct321 == codecSelferValueTypeMap1234 { - yyl321 := r.ReadMapStart() - if yyl321 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl321, d) - } - } else if yyct321 == codecSelferValueTypeArray1234 { - yyl321 := r.ReadArrayStart() - if yyl321 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl321, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys322Slc = r.DecodeBytes(yys322Slc, true, true) - yys322 := string(yys322Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys322 { - case "claimName": - if r.TryDecodeAsNil() { - x.ClaimName = "" - } else { - x.ClaimName = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys322) - } // end switch yys322 - } // end for yyj322 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj325 int - var yyb325 bool - var yyhl325 bool = l >= 0 - yyj325++ - if yyhl325 { - yyb325 = yyj325 > l - } else { - yyb325 = r.CheckBreak() - } - if yyb325 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClaimName = "" - } else { - x.ClaimName = string(r.DecodeString()) - } - yyj325++ - if yyhl325 { - yyb325 = yyj325 > l - } else { - yyb325 = r.CheckBreak() - } - if yyb325 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj325++ - if yyhl325 { - yyb325 = yyj325 > l - } else { - yyb325 = r.CheckBreak() - } - if yyb325 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj325-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym328 := z.EncBinary() - _ = yym328 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep329 := !z.EncBinary() - yy2arr329 := z.EncBasicHandle().StructToArray - var yyq329 [5]bool - _, _, _ = yysep329, yyq329, yy2arr329 - const yyr329 bool = false - yyq329[0] = x.Kind != "" - yyq329[1] = x.APIVersion != "" - yyq329[2] = true - yyq329[3] = true - yyq329[4] = true - var yynn329 int - if yyr329 || yy2arr329 { - r.EncodeArrayStart(5) - } else { - yynn329 = 0 - for _, b := range yyq329 { - if b { - yynn329++ - } - } - r.EncodeMapStart(yynn329) - yynn329 = 0 - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[0] { - yym331 := z.EncBinary() - _ = yym331 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq329[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym332 := z.EncBinary() - _ = yym332 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[1] { - yym334 := z.EncBinary() - _ = yym334 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq329[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym335 := z.EncBinary() - _ = yym335 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[2] { - yy337 := &x.ObjectMeta - yy337.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq329[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy338 := &x.ObjectMeta - yy338.CodecEncodeSelf(e) - } - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[3] { - yy340 := &x.Spec - yy340.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq329[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy341 := &x.Spec - yy341.CodecEncodeSelf(e) - } - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[4] { - yy343 := &x.Status - yy343.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq329[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy344 := &x.Status - yy344.CodecEncodeSelf(e) - } - } - if yyr329 || yy2arr329 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym345 := z.DecBinary() - _ = yym345 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct346 := r.ContainerType() - if yyct346 == codecSelferValueTypeMap1234 { - yyl346 := r.ReadMapStart() - if yyl346 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl346, d) - } - } else if yyct346 == codecSelferValueTypeArray1234 { - yyl346 := r.ReadArrayStart() - if yyl346 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl346, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys347Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys347Slc - var yyhl347 bool = l >= 0 - for yyj347 := 0; ; yyj347++ { - if yyhl347 { - if yyj347 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys347Slc = r.DecodeBytes(yys347Slc, true, true) - yys347 := string(yys347Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys347 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv350 := &x.ObjectMeta - yyv350.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} - } else { - yyv351 := &x.Spec - yyv351.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} - } else { - yyv352 := &x.Status - yyv352.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys347) - } // end switch yys347 - } // end for yyj347 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj353 int - var yyb353 bool - var yyhl353 bool = l >= 0 - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv356 := &x.ObjectMeta - yyv356.CodecDecodeSelf(d) - } - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeSpec{} - } else { - yyv357 := &x.Spec - yyv357.CodecDecodeSelf(d) - } - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeStatus{} - } else { - yyv358 := &x.Status - yyv358.CodecDecodeSelf(d) - } - for { - yyj353++ - if yyhl353 { - yyb353 = yyj353 > l - } else { - yyb353 = r.CheckBreak() - } - if yyb353 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj353-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym359 := z.EncBinary() - _ = yym359 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn360 = 1 - for _, b := range yyq360 { - if b { - yynn360++ - } - } - r.EncodeMapStart(yynn360) - yynn360 = 0 - } - if yyr360 || yy2arr360 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capacity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } - var yyn362 bool - if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn362 = true - goto LABEL362 - } - LABEL362: - if yyr360 || yy2arr360 { - if yyn362 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[1] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn362 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn363 bool - if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn363 = true - goto LABEL363 - } - LABEL363: - if yyr360 || yy2arr360 { - if yyn363 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[2] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn363 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn364 bool - if x.PersistentVolumeSource.HostPath == nil { - yyn364 = true - goto LABEL364 - } - LABEL364: - if yyr360 || yy2arr360 { - if yyn364 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[3] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn364 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn365 bool - if x.PersistentVolumeSource.Glusterfs == nil { - yyn365 = true - goto LABEL365 - } - LABEL365: - if yyr360 || yy2arr360 { - if yyn365 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[4] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn365 { - r.EncodeNil() - } else { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - } - var yyn366 bool - if x.PersistentVolumeSource.NFS == nil { - yyn366 = true - goto LABEL366 - } - LABEL366: - if yyr360 || yy2arr360 { - if yyn366 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[5] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn366 { - r.EncodeNil() - } else { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - } - var yyn367 bool - if x.PersistentVolumeSource.RBD == nil { - yyn367 = true - goto LABEL367 - } - LABEL367: - if yyr360 || yy2arr360 { - if yyn367 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[6] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn367 { - r.EncodeNil() - } else { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - } - var yyn368 bool - if x.PersistentVolumeSource.Quobyte == nil { - yyn368 = true - goto LABEL368 - } - LABEL368: - if yyr360 || yy2arr360 { - if yyn368 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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 { - x.AzureDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq360[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn377 { - r.EncodeNil() - } else { - if x.AzureDisk == nil { - r.EncodeNil() - } else { - x.AzureDisk.CodecEncodeSelf(e) - } - } - } - } - 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 yyq360[18] { - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym380 := z.EncBinary() - _ = yym380 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq360[18] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("accessModes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym381 := z.EncBinary() - _ = yym381 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } - } - if yyr360 || yy2arr360 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[19] { - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq360[19] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("claimRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ClaimRef == nil { - r.EncodeNil() - } else { - x.ClaimRef.CodecEncodeSelf(e) - } - } - } - if yyr360 || yy2arr360 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq360[20] { - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq360[20] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) - } - } - if yyr360 || yy2arr360 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym384 := z.DecBinary() - _ = yym384 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct385 := r.ContainerType() - if yyct385 == codecSelferValueTypeMap1234 { - yyl385 := r.ReadMapStart() - if yyl385 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl385, d) - } - } else if yyct385 == codecSelferValueTypeArray1234 { - yyl385 := r.ReadArrayStart() - if yyl385 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl385, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys386Slc = r.DecodeBytes(yys386Slc, true, true) - yys386 := string(yys386Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys386 { - case "capacity": - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv387 := &x.Capacity - yyv387.CodecDecodeSelf(d) - } - case "gcePersistentDisk": - if x.PersistentVolumeSource.GCEPersistentDisk == nil { - x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - case "awsElasticBlockStore": - if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - case "hostPath": - if x.PersistentVolumeSource.HostPath == nil { - x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) - } - if r.TryDecodeAsNil() { - if x.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - case "glusterfs": - if x.PersistentVolumeSource.Glusterfs == nil { - x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - case "nfs": - if x.PersistentVolumeSource.NFS == nil { - x.PersistentVolumeSource.NFS = new(NFSVolumeSource) - } - if r.TryDecodeAsNil() { - if x.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - case "rbd": - if x.PersistentVolumeSource.RBD == nil { - x.PersistentVolumeSource.RBD = new(RBDVolumeSource) - } - if r.TryDecodeAsNil() { - if x.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - case "quobyte": - if x.PersistentVolumeSource.Quobyte == nil { - x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - case "iscsi": - if x.PersistentVolumeSource.ISCSI == nil { - x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) - } - if r.TryDecodeAsNil() { - if x.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - case "flexVolume": - if x.PersistentVolumeSource.FlexVolume == nil { - x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) - } - if r.TryDecodeAsNil() { - if x.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - case "cinder": - if x.PersistentVolumeSource.Cinder == nil { - x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - case "cephfs": - if x.PersistentVolumeSource.CephFS == nil { - x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) - } - if r.TryDecodeAsNil() { - if x.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - case "fc": - if x.PersistentVolumeSource.FC == nil { - x.PersistentVolumeSource.FC = new(FCVolumeSource) - } - if r.TryDecodeAsNil() { - if x.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - case "flocker": - if x.PersistentVolumeSource.Flocker == nil { - x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) - } - if r.TryDecodeAsNil() { - if x.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - case "azureFile": - if x.PersistentVolumeSource.AzureFile == nil { - x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - case "vsphereVolume": - if x.PersistentVolumeSource.VsphereVolume == nil { - x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - case "azureDisk": - if x.PersistentVolumeSource.AzureDisk == nil { - x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) - } - if r.TryDecodeAsNil() { - if x.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - case "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 { - yyv405 := &x.AccessModes - yym406 := z.DecBinary() - _ = yym406 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv405), d) - } - } - case "claimRef": - if r.TryDecodeAsNil() { - if x.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - case "persistentVolumeReclaimPolicy": - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys386) - } // end switch yys386 - } // end for yyj386 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj409 int - var yyb409 bool - var yyhl409 bool = l >= 0 - yyj409++ - if yyhl409 { - yyb409 = yyj409 > l - } else { - yyb409 = r.CheckBreak() - } - if yyb409 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv410 := &x.Capacity - yyv410.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.GCEPersistentDisk == nil { - x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - 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.GCEPersistentDisk != nil { - x.GCEPersistentDisk = nil - } - } else { - if x.GCEPersistentDisk == nil { - x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - x.GCEPersistentDisk.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - 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.AWSElasticBlockStore != nil { - x.AWSElasticBlockStore = nil - } - } else { - if x.AWSElasticBlockStore == nil { - x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - x.AWSElasticBlockStore.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.HostPath == nil { - x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) - } - 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.HostPath != nil { - x.HostPath = nil - } - } else { - if x.HostPath == nil { - x.HostPath = new(HostPathVolumeSource) - } - x.HostPath.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.Glusterfs == nil { - x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) - } - 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.Glusterfs != nil { - x.Glusterfs = nil - } - } else { - if x.Glusterfs == nil { - x.Glusterfs = new(GlusterfsVolumeSource) - } - x.Glusterfs.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.NFS == nil { - x.PersistentVolumeSource.NFS = new(NFSVolumeSource) - } - 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.NFS != nil { - x.NFS = nil - } - } else { - if x.NFS == nil { - x.NFS = new(NFSVolumeSource) - } - x.NFS.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.RBD == nil { - x.PersistentVolumeSource.RBD = new(RBDVolumeSource) - } - 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.RBD != nil { - x.RBD = nil - } - } else { - if x.RBD == nil { - x.RBD = new(RBDVolumeSource) - } - x.RBD.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.Quobyte == nil { - x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) - } - 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.Quobyte != nil { - x.Quobyte = nil - } - } else { - if x.Quobyte == nil { - x.Quobyte = new(QuobyteVolumeSource) - } - x.Quobyte.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.ISCSI == nil { - x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) - } - 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.ISCSI != nil { - x.ISCSI = nil - } - } else { - if x.ISCSI == nil { - x.ISCSI = new(ISCSIVolumeSource) - } - x.ISCSI.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.FlexVolume == nil { - x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) - } - 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.FlexVolume != nil { - x.FlexVolume = nil - } - } else { - if x.FlexVolume == nil { - x.FlexVolume = new(FlexVolumeSource) - } - x.FlexVolume.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.Cinder == nil { - x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) - } - 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.Cinder != nil { - x.Cinder = nil - } - } else { - if x.Cinder == nil { - x.Cinder = new(CinderVolumeSource) - } - x.Cinder.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.CephFS == nil { - x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) - } - 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.CephFS != nil { - x.CephFS = nil - } - } else { - if x.CephFS == nil { - x.CephFS = new(CephFSVolumeSource) - } - x.CephFS.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.FC == nil { - x.PersistentVolumeSource.FC = new(FCVolumeSource) - } - 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.FC != nil { - x.FC = nil - } - } else { - if x.FC == nil { - x.FC = new(FCVolumeSource) - } - x.FC.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.Flocker == nil { - x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) - } - 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.Flocker != nil { - x.Flocker = nil - } - } else { - if x.Flocker == nil { - x.Flocker = new(FlockerVolumeSource) - } - x.Flocker.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.AzureFile == nil { - x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) - } - 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.AzureFile != nil { - x.AzureFile = nil - } - } else { - if x.AzureFile == nil { - x.AzureFile = new(AzureFileVolumeSource) - } - x.AzureFile.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.VsphereVolume == nil { - x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - 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.VsphereVolume != nil { - x.VsphereVolume = nil - } - } else { - if x.VsphereVolume == nil { - x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - x.VsphereVolume.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.AzureDisk == nil { - x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) - } - 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.AzureDisk != nil { - x.AzureDisk = nil - } - } else { - if x.AzureDisk == nil { - x.AzureDisk = new(AzureDiskVolumeSource) - } - x.AzureDisk.CodecDecodeSelf(d) - } - if x.PersistentVolumeSource.PhotonPersistentDisk == nil { - x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - 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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv428 := &x.AccessModes - yym429 := z.DecBinary() - _ = yym429 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv428), d) - } - } - 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.ClaimRef != nil { - x.ClaimRef = nil - } - } else { - if x.ClaimRef == nil { - x.ClaimRef = new(ObjectReference) - } - x.ClaimRef.CodecDecodeSelf(d) - } - yyj409++ - if yyhl409 { - yyb409 = yyj409 > l - } else { - yyb409 = r.CheckBreak() - } - if yyb409 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PersistentVolumeReclaimPolicy = "" - } else { - x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) - } - for { - yyj409++ - if yyhl409 { - yyb409 = yyj409 > l - } else { - yyb409 = r.CheckBreak() - } - if yyb409 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj409-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym432 := z.EncBinary() - _ = yym432 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym433 := z.DecBinary() - _ = yym433 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym434 := z.EncBinary() - _ = yym434 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn435 = 0 - for _, b := range yyq435 { - if b { - yynn435++ - } - } - r.EncodeMapStart(yynn435) - yynn435 = 0 - } - if yyr435 || yy2arr435 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq435[0] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq435[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr435 || yy2arr435 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq435[1] { - yym438 := z.EncBinary() - _ = yym438 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq435[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym439 := z.EncBinary() - _ = yym439 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr435 || yy2arr435 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq435[2] { - yym441 := z.EncBinary() - _ = yym441 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq435[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym442 := z.EncBinary() - _ = yym442 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr435 || yy2arr435 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym443 := z.DecBinary() - _ = yym443 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct444 := r.ContainerType() - if yyct444 == codecSelferValueTypeMap1234 { - yyl444 := r.ReadMapStart() - if yyl444 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl444, d) - } - } else if yyct444 == codecSelferValueTypeArray1234 { - yyl444 := r.ReadArrayStart() - if yyl444 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl444, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys445Slc = r.DecodeBytes(yys445Slc, true, true) - yys445 := string(yys445Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys445 { - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumePhase(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys445) - } // end switch yys445 - } // end for yyj445 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj449 int - var yyb449 bool - var yyhl449 bool = l >= 0 - 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.Phase = "" - } else { - x.Phase = PersistentVolumePhase(r.DecodeString()) - } - 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.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - 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.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - for { - yyj449++ - if yyhl449 { - yyb449 = yyj449 > l - } else { - yyb449 = r.CheckBreak() - } - if yyb449 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj449-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym453 := z.EncBinary() - _ = yym453 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn454 = 1 - for _, b := range yyq454 { - if b { - yynn454++ - } - } - r.EncodeMapStart(yynn454) - yynn454 = 0 - } - if yyr454 || yy2arr454 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq454[0] { - yym456 := z.EncBinary() - _ = yym456 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq454[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym457 := z.EncBinary() - _ = yym457 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr454 || yy2arr454 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq454[1] { - yym459 := z.EncBinary() - _ = yym459 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq454[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym460 := z.EncBinary() - _ = yym460 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr454 || yy2arr454 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq454[2] { - yy462 := &x.ListMeta - yym463 := z.EncBinary() - _ = yym463 - if false { - } else if z.HasExtensions() && z.EncExt(yy462) { - } else { - z.EncFallback(yy462) - } - } else { - r.EncodeNil() - } - } else { - if yyq454[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy464 := &x.ListMeta - yym465 := z.EncBinary() - _ = yym465 - if false { - } else if z.HasExtensions() && z.EncExt(yy464) { - } else { - z.EncFallback(yy464) - } - } - } - if yyr454 || yy2arr454 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym467 := z.EncBinary() - _ = yym467 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym468 := z.EncBinary() - _ = yym468 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } - if yyr454 || yy2arr454 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym469 := z.DecBinary() - _ = yym469 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct470 := r.ContainerType() - if yyct470 == codecSelferValueTypeMap1234 { - yyl470 := r.ReadMapStart() - if yyl470 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl470, d) - } - } else if yyct470 == codecSelferValueTypeArray1234 { - yyl470 := r.ReadArrayStart() - if yyl470 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl470, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys471Slc = r.DecodeBytes(yys471Slc, true, true) - yys471 := string(yys471Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys471 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv474 := &x.ListMeta - yym475 := z.DecBinary() - _ = yym475 - if false { - } else if z.HasExtensions() && z.DecExt(yyv474) { - } else { - z.DecFallback(yyv474, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv476 := &x.Items - yym477 := z.DecBinary() - _ = yym477 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv476), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys471) - } // end switch yys471 - } // end for yyj471 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj478 int - var yyb478 bool - var yyhl478 bool = l >= 0 - yyj478++ - if yyhl478 { - yyb478 = yyj478 > l - } else { - yyb478 = r.CheckBreak() - } - if yyb478 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj478++ - if yyhl478 { - yyb478 = yyj478 > l - } else { - yyb478 = r.CheckBreak() - } - if yyb478 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj478++ - if yyhl478 { - yyb478 = yyj478 > l - } else { - yyb478 = r.CheckBreak() - } - if yyb478 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv481 := &x.ListMeta - yym482 := z.DecBinary() - _ = yym482 - if false { - } else if z.HasExtensions() && z.DecExt(yyv481) { - } else { - z.DecFallback(yyv481, false) - } - } - yyj478++ - if yyhl478 { - yyb478 = yyj478 > l - } else { - yyb478 = r.CheckBreak() - } - if yyb478 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv483 := &x.Items - yym484 := z.DecBinary() - _ = yym484 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv483), d) - } - } - for { - yyj478++ - if yyhl478 { - yyb478 = yyj478 > l - } else { - yyb478 = r.CheckBreak() - } - if yyb478 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj478-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym485 := z.EncBinary() - _ = yym485 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn486 = 0 - for _, b := range yyq486 { - if b { - yynn486++ - } - } - r.EncodeMapStart(yynn486) - yynn486 = 0 - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq486[0] { - yym488 := z.EncBinary() - _ = yym488 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq486[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym489 := z.EncBinary() - _ = yym489 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq486[1] { - yym491 := z.EncBinary() - _ = yym491 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq486[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym492 := z.EncBinary() - _ = yym492 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq486[2] { - yy494 := &x.ObjectMeta - yy494.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq486[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy495 := &x.ObjectMeta - yy495.CodecEncodeSelf(e) - } - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq486[3] { - yy497 := &x.Spec - yy497.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq486[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy498 := &x.Spec - yy498.CodecEncodeSelf(e) - } - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq486[4] { - yy500 := &x.Status - yy500.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq486[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy501 := &x.Status - yy501.CodecEncodeSelf(e) - } - } - if yyr486 || yy2arr486 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym502 := z.DecBinary() - _ = yym502 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct503 := r.ContainerType() - if yyct503 == codecSelferValueTypeMap1234 { - yyl503 := r.ReadMapStart() - if yyl503 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl503, d) - } - } else if yyct503 == codecSelferValueTypeArray1234 { - yyl503 := r.ReadArrayStart() - if yyl503 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl503, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys504Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys504Slc - var yyhl504 bool = l >= 0 - for yyj504 := 0; ; yyj504++ { - if yyhl504 { - if yyj504 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys504Slc = r.DecodeBytes(yys504Slc, true, true) - yys504 := string(yys504Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys504 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv507 := &x.ObjectMeta - yyv507.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv508 := &x.Spec - yyv508.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv509 := &x.Status - yyv509.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys504) - } // end switch yys504 - } // end for yyj504 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj510 int - var yyb510 bool - var yyhl510 bool = l >= 0 - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv513 := &x.ObjectMeta - yyv513.CodecDecodeSelf(d) - } - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv514 := &x.Spec - yyv514.CodecDecodeSelf(d) - } - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv515 := &x.Status - yyv515.CodecDecodeSelf(d) - } - for { - yyj510++ - if yyhl510 { - yyb510 = yyj510 > l - } else { - yyb510 = r.CheckBreak() - } - if yyb510 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj510-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym516 := z.EncBinary() - _ = yym516 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn517 = 1 - for _, b := range yyq517 { - if b { - yynn517++ - } - } - r.EncodeMapStart(yynn517) - yynn517 = 0 - } - if yyr517 || yy2arr517 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq517[0] { - yym519 := z.EncBinary() - _ = yym519 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq517[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym520 := z.EncBinary() - _ = yym520 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr517 || yy2arr517 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq517[1] { - yym522 := z.EncBinary() - _ = yym522 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq517[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym523 := z.EncBinary() - _ = yym523 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr517 || yy2arr517 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq517[2] { - yy525 := &x.ListMeta - yym526 := z.EncBinary() - _ = yym526 - if false { - } else if z.HasExtensions() && z.EncExt(yy525) { - } else { - z.EncFallback(yy525) - } - } else { - r.EncodeNil() - } - } else { - if yyq517[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy527 := &x.ListMeta - yym528 := z.EncBinary() - _ = yym528 - if false { - } else if z.HasExtensions() && z.EncExt(yy527) { - } else { - z.EncFallback(yy527) - } - } - } - if yyr517 || yy2arr517 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym530 := z.EncBinary() - _ = yym530 - if false { - } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym531 := z.EncBinary() - _ = yym531 - if false { - } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) - } - } - } - if yyr517 || yy2arr517 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym532 := z.DecBinary() - _ = yym532 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct533 := r.ContainerType() - if yyct533 == codecSelferValueTypeMap1234 { - yyl533 := r.ReadMapStart() - if yyl533 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl533, d) - } - } else if yyct533 == codecSelferValueTypeArray1234 { - yyl533 := r.ReadArrayStart() - if yyl533 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl533, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys534Slc = r.DecodeBytes(yys534Slc, true, true) - yys534 := string(yys534Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys534 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv537 := &x.ListMeta - yym538 := z.DecBinary() - _ = yym538 - if false { - } else if z.HasExtensions() && z.DecExt(yyv537) { - } else { - z.DecFallback(yyv537, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv539 := &x.Items - yym540 := z.DecBinary() - _ = yym540 - if false { - } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv539), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys534) - } // end switch yys534 - } // end for yyj534 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj541 int - var yyb541 bool - var yyhl541 bool = l >= 0 - yyj541++ - if yyhl541 { - yyb541 = yyj541 > l - } else { - yyb541 = r.CheckBreak() - } - if yyb541 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj541++ - if yyhl541 { - yyb541 = yyj541 > l - } else { - yyb541 = r.CheckBreak() - } - if yyb541 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj541++ - if yyhl541 { - yyb541 = yyj541 > l - } else { - yyb541 = r.CheckBreak() - } - if yyb541 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv544 := &x.ListMeta - yym545 := z.DecBinary() - _ = yym545 - if false { - } else if z.HasExtensions() && z.DecExt(yyv544) { - } else { - z.DecFallback(yyv544, false) - } - } - yyj541++ - if yyhl541 { - yyb541 = yyj541 > l - } else { - yyb541 = r.CheckBreak() - } - if yyb541 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv546 := &x.Items - yym547 := z.DecBinary() - _ = yym547 - if false { - } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv546), d) - } - } - for { - yyj541++ - if yyhl541 { - yyb541 = yyj541 > l - } else { - yyb541 = r.CheckBreak() - } - if yyb541 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj541-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym548 := z.EncBinary() - _ = yym548 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn549 = 0 - for _, b := range yyq549 { - if b { - yynn549++ - } - } - r.EncodeMapStart(yynn549) - yynn549 = 0 - } - if yyr549 || yy2arr549 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq549[0] { - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym551 := z.EncBinary() - _ = yym551 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq549[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("accessModes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym552 := z.EncBinary() - _ = yym552 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } - } - if yyr549 || yy2arr549 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq549[1] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym554 := z.EncBinary() - _ = yym554 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq549[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym555 := z.EncBinary() - _ = yym555 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr549 || yy2arr549 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq549[2] { - yy557 := &x.Resources - yy557.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq549[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy558 := &x.Resources - yy558.CodecEncodeSelf(e) - } - } - if yyr549 || yy2arr549 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq549[3] { - yym560 := z.EncBinary() - _ = yym560 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq549[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym561 := z.EncBinary() - _ = yym561 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) - } - } - } - if yyr549 || yy2arr549 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym562 := z.DecBinary() - _ = yym562 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct563 := r.ContainerType() - if yyct563 == codecSelferValueTypeMap1234 { - yyl563 := r.ReadMapStart() - if yyl563 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl563, d) - } - } else if yyct563 == codecSelferValueTypeArray1234 { - yyl563 := r.ReadArrayStart() - if yyl563 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl563, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys564Slc = r.DecodeBytes(yys564Slc, true, true) - yys564 := string(yys564Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys564 { - case "accessModes": - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv565 := &x.AccessModes - yym566 := z.DecBinary() - _ = yym566 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv565), d) - } - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg2_v1.LabelSelector) - } - yym568 := z.DecBinary() - _ = yym568 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "resources": - if r.TryDecodeAsNil() { - x.Resources = ResourceRequirements{} - } else { - yyv569 := &x.Resources - yyv569.CodecDecodeSelf(d) - } - case "volumeName": - if r.TryDecodeAsNil() { - x.VolumeName = "" - } else { - x.VolumeName = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys564) - } // end switch yys564 - } // end for yyj564 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj571 int - var yyb571 bool - var yyhl571 bool = l >= 0 - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv572 := &x.AccessModes - yym573 := z.DecBinary() - _ = yym573 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv572), d) - } - } - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg2_v1.LabelSelector) - } - yym575 := z.DecBinary() - _ = yym575 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Resources = ResourceRequirements{} - } else { - yyv576 := &x.Resources - yyv576.CodecDecodeSelf(d) - } - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeName = "" - } else { - x.VolumeName = string(r.DecodeString()) - } - for { - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj571-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym578 := z.EncBinary() - _ = yym578 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn579 = 0 - for _, b := range yyq579 { - if b { - yynn579++ - } - } - r.EncodeMapStart(yynn579) - yynn579 = 0 - } - if yyr579 || yy2arr579 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq579[0] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq579[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr579 || yy2arr579 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq579[1] { - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym582 := z.EncBinary() - _ = yym582 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq579[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("accessModes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AccessModes == nil { - r.EncodeNil() - } else { - yym583 := z.EncBinary() - _ = yym583 - if false { - } else { - h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) - } - } - } - } - if yyr579 || yy2arr579 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq579[2] { - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq579[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capacity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } - } - if yyr579 || yy2arr579 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym585 := z.DecBinary() - _ = yym585 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct586 := r.ContainerType() - if yyct586 == codecSelferValueTypeMap1234 { - yyl586 := r.ReadMapStart() - if yyl586 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl586, d) - } - } else if yyct586 == codecSelferValueTypeArray1234 { - yyl586 := r.ReadArrayStart() - if yyl586 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl586, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys587Slc = r.DecodeBytes(yys587Slc, true, true) - yys587 := string(yys587Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys587 { - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) - } - case "accessModes": - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv589 := &x.AccessModes - yym590 := z.DecBinary() - _ = yym590 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv589), d) - } - } - case "capacity": - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv591 := &x.Capacity - yyv591.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys587) - } // end switch yys587 - } // end for yyj587 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj592 int - var yyb592 bool - var yyhl592 bool = l >= 0 - yyj592++ - if yyhl592 { - yyb592 = yyj592 > l - } else { - yyb592 = r.CheckBreak() - } - if yyb592 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) - } - yyj592++ - if yyhl592 { - yyb592 = yyj592 > l - } else { - yyb592 = r.CheckBreak() - } - if yyb592 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv594 := &x.AccessModes - yym595 := z.DecBinary() - _ = yym595 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv594), d) - } - } - yyj592++ - if yyhl592 { - yyb592 = yyj592 > l - } else { - yyb592 = r.CheckBreak() - } - if yyb592 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv596 := &x.Capacity - yyv596.CodecDecodeSelf(d) - } - for { - yyj592++ - if yyhl592 { - yyb592 = yyj592 > l - } else { - yyb592 = r.CheckBreak() - } - if yyb592 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj592-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym597 := z.EncBinary() - _ = yym597 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym598 := z.DecBinary() - _ = yym598 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym599 := z.EncBinary() - _ = yym599 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym600 := z.DecBinary() - _ = yym600 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym601 := z.EncBinary() - _ = yym601 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym602 := z.DecBinary() - _ = yym602 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym603 := z.EncBinary() - _ = yym603 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn604 = 1 - for _, b := range yyq604 { - if b { - yynn604++ - } - } - r.EncodeMapStart(yynn604) - yynn604 = 0 - } - if yyr604 || yy2arr604 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym606 := z.EncBinary() - _ = yym606 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym607 := z.EncBinary() - _ = yym607 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr604 || yy2arr604 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym608 := z.DecBinary() - _ = yym608 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct609 := r.ContainerType() - if yyct609 == codecSelferValueTypeMap1234 { - yyl609 := r.ReadMapStart() - if yyl609 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl609, d) - } - } else if yyct609 == codecSelferValueTypeArray1234 { - yyl609 := r.ReadArrayStart() - if yyl609 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl609, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys610Slc = r.DecodeBytes(yys610Slc, true, true) - yys610 := string(yys610Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys610 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys610) - } // end switch yys610 - } // end for yyj610 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj612 int - var yyb612 bool - var yyhl612 bool = l >= 0 - yyj612++ - if yyhl612 { - yyb612 = yyj612 > l - } else { - yyb612 = r.CheckBreak() - } - if yyb612 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj612++ - if yyhl612 { - yyb612 = yyj612 > l - } else { - yyb612 = r.CheckBreak() - } - if yyb612 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj612-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym614 := z.EncBinary() - _ = yym614 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn615 = 0 - for _, b := range yyq615 { - if b { - yynn615++ - } - } - r.EncodeMapStart(yynn615) - yynn615 = 0 - } - if yyr615 || yy2arr615 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq615[0] { - x.Medium.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq615[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("medium")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Medium.CodecEncodeSelf(e) - } - } - if yyr615 || yy2arr615 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym617 := z.DecBinary() - _ = yym617 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct618 := r.ContainerType() - if yyct618 == codecSelferValueTypeMap1234 { - yyl618 := r.ReadMapStart() - if yyl618 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl618, d) - } - } else if yyct618 == codecSelferValueTypeArray1234 { - yyl618 := r.ReadArrayStart() - if yyl618 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl618, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys619Slc = r.DecodeBytes(yys619Slc, true, true) - yys619 := string(yys619Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys619 { - case "medium": - if r.TryDecodeAsNil() { - x.Medium = "" - } else { - x.Medium = StorageMedium(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys619) - } // end switch yys619 - } // end for yyj619 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj621 int - var yyb621 bool - var yyhl621 bool = l >= 0 - yyj621++ - if yyhl621 { - yyb621 = yyj621 > l - } else { - yyb621 = r.CheckBreak() - } - if yyb621 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Medium = "" - } else { - x.Medium = StorageMedium(r.DecodeString()) - } - for { - yyj621++ - if yyhl621 { - yyb621 = yyj621 > l - } else { - yyb621 = r.CheckBreak() - } - if yyb621 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj621-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym623 := z.EncBinary() - _ = yym623 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym624 := z.DecBinary() - _ = yym624 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym625 := z.EncBinary() - _ = yym625 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym626 := z.DecBinary() - _ = yym626 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym627 := z.EncBinary() - _ = yym627 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn628 = 1 - for _, b := range yyq628 { - if b { - yynn628++ - } - } - r.EncodeMapStart(yynn628) - yynn628 = 0 - } - if yyr628 || yy2arr628 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym630 := z.EncBinary() - _ = yym630 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("pdName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym631 := z.EncBinary() - _ = yym631 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) - } - } - if yyr628 || yy2arr628 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq628[1] { - yym633 := z.EncBinary() - _ = yym633 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq628[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym634 := z.EncBinary() - _ = yym634 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr628 || yy2arr628 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq628[2] { - yym636 := z.EncBinary() - _ = yym636 - if false { - } else { - r.EncodeInt(int64(x.Partition)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq628[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("partition")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym637 := z.EncBinary() - _ = yym637 - if false { - } else { - r.EncodeInt(int64(x.Partition)) - } - } - } - if yyr628 || yy2arr628 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq628[3] { - yym639 := z.EncBinary() - _ = yym639 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq628[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym640 := z.EncBinary() - _ = yym640 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr628 || yy2arr628 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym641 := z.DecBinary() - _ = yym641 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct642 := r.ContainerType() - if yyct642 == codecSelferValueTypeMap1234 { - yyl642 := r.ReadMapStart() - if yyl642 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl642, d) - } - } else if yyct642 == codecSelferValueTypeArray1234 { - yyl642 := r.ReadArrayStart() - if yyl642 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl642, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys643Slc = r.DecodeBytes(yys643Slc, true, true) - yys643 := string(yys643Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys643 { - case "pdName": - if r.TryDecodeAsNil() { - x.PDName = "" - } else { - x.PDName = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "partition": - if r.TryDecodeAsNil() { - x.Partition = 0 - } else { - x.Partition = int32(r.DecodeInt(32)) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys643) - } // end switch yys643 - } // end for yyj643 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj648 int - var yyb648 bool - var yyhl648 bool = l >= 0 - yyj648++ - if yyhl648 { - yyb648 = yyj648 > l - } else { - yyb648 = r.CheckBreak() - } - if yyb648 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PDName = "" - } else { - x.PDName = string(r.DecodeString()) - } - yyj648++ - if yyhl648 { - yyb648 = yyj648 > l - } else { - yyb648 = r.CheckBreak() - } - if yyb648 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj648++ - if yyhl648 { - yyb648 = yyj648 > l - } else { - yyb648 = r.CheckBreak() - } - if yyb648 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Partition = 0 - } else { - x.Partition = int32(r.DecodeInt(32)) - } - yyj648++ - if yyhl648 { - yyb648 = yyj648 > l - } else { - yyb648 = r.CheckBreak() - } - if yyb648 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj648++ - if yyhl648 { - yyb648 = yyj648 > l - } else { - yyb648 = r.CheckBreak() - } - if yyb648 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj648-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym653 := z.EncBinary() - _ = yym653 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn654 = 0 - for _, b := range yyq654 { - if b { - yynn654++ - } - } - r.EncodeMapStart(yynn654) - yynn654 = 0 - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[0] { - yym656 := z.EncBinary() - _ = yym656 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq654[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym657 := z.EncBinary() - _ = yym657 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[1] { - yym659 := z.EncBinary() - _ = yym659 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq654[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iqn")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym660 := z.EncBinary() - _ = yym660 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[2] { - yym662 := z.EncBinary() - _ = yym662 - if false { - } else { - r.EncodeInt(int64(x.Lun)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq654[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lun")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym663 := z.EncBinary() - _ = yym663 - if false { - } else { - r.EncodeInt(int64(x.Lun)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[3] { - yym665 := z.EncBinary() - _ = yym665 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq654[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym666 := z.EncBinary() - _ = yym666 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[4] { - yym668 := z.EncBinary() - _ = yym668 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq654[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym669 := z.EncBinary() - _ = yym669 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq654[5] { - yym671 := z.EncBinary() - _ = yym671 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq654[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym672 := z.EncBinary() - _ = yym672 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr654 || yy2arr654 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym673 := z.DecBinary() - _ = yym673 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct674 := r.ContainerType() - if yyct674 == codecSelferValueTypeMap1234 { - yyl674 := r.ReadMapStart() - if yyl674 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl674, d) - } - } else if yyct674 == codecSelferValueTypeArray1234 { - yyl674 := r.ReadArrayStart() - if yyl674 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl674, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys675Slc = r.DecodeBytes(yys675Slc, true, true) - yys675 := string(yys675Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys675 { - case "targetPortal": - if r.TryDecodeAsNil() { - x.TargetPortal = "" - } else { - x.TargetPortal = string(r.DecodeString()) - } - case "iqn": - if r.TryDecodeAsNil() { - x.IQN = "" - } else { - x.IQN = string(r.DecodeString()) - } - case "lun": - if r.TryDecodeAsNil() { - x.Lun = 0 - } else { - x.Lun = int32(r.DecodeInt(32)) - } - case "iscsiInterface": - if r.TryDecodeAsNil() { - x.ISCSIInterface = "" - } else { - x.ISCSIInterface = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys675) - } // end switch yys675 - } // end for yyj675 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj682 int - var yyb682 bool - var yyhl682 bool = l >= 0 - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TargetPortal = "" - } else { - x.TargetPortal = string(r.DecodeString()) - } - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IQN = "" - } else { - x.IQN = string(r.DecodeString()) - } - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Lun = 0 - } else { - x.Lun = int32(r.DecodeInt(32)) - } - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ISCSIInterface = "" - } else { - x.ISCSIInterface = string(r.DecodeString()) - } - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj682++ - if yyhl682 { - yyb682 = yyj682 > l - } else { - yyb682 = r.CheckBreak() - } - if yyb682 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj682-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym689 := z.EncBinary() - _ = yym689 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn690 = 2 - for _, b := range yyq690 { - if b { - yynn690++ - } - } - r.EncodeMapStart(yynn690) - yynn690 = 0 - } - if yyr690 || yy2arr690 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.TargetWWNs == nil { - r.EncodeNil() - } else { - yym692 := z.EncBinary() - _ = yym692 - if false { - } else { - z.F.EncSliceStringV(x.TargetWWNs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("targetWWNs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TargetWWNs == nil { - r.EncodeNil() - } else { - yym693 := z.EncBinary() - _ = yym693 - if false { - } else { - z.F.EncSliceStringV(x.TargetWWNs, false, e) - } - } - } - if yyr690 || yy2arr690 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Lun == nil { - r.EncodeNil() - } else { - yy695 := *x.Lun - yym696 := z.EncBinary() - _ = yym696 - if false { - } else { - r.EncodeInt(int64(yy695)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lun")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Lun == nil { - r.EncodeNil() - } else { - yy697 := *x.Lun - yym698 := z.EncBinary() - _ = yym698 - if false { - } else { - r.EncodeInt(int64(yy697)) - } - } - } - if yyr690 || yy2arr690 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq690[2] { - yym700 := z.EncBinary() - _ = yym700 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq690[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym701 := z.EncBinary() - _ = yym701 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr690 || yy2arr690 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq690[3] { - yym703 := z.EncBinary() - _ = yym703 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq690[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym704 := z.EncBinary() - _ = yym704 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr690 || yy2arr690 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym705 := z.DecBinary() - _ = yym705 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct706 := r.ContainerType() - if yyct706 == codecSelferValueTypeMap1234 { - yyl706 := r.ReadMapStart() - if yyl706 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl706, d) - } - } else if yyct706 == codecSelferValueTypeArray1234 { - yyl706 := r.ReadArrayStart() - if yyl706 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl706, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys707Slc = r.DecodeBytes(yys707Slc, true, true) - yys707 := string(yys707Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys707 { - case "targetWWNs": - if r.TryDecodeAsNil() { - x.TargetWWNs = nil - } else { - yyv708 := &x.TargetWWNs - yym709 := z.DecBinary() - _ = yym709 - if false { - } else { - z.F.DecSliceStringX(yyv708, false, d) - } - } - case "lun": - if r.TryDecodeAsNil() { - if x.Lun != nil { - x.Lun = nil - } - } else { - if x.Lun == nil { - x.Lun = new(int32) - } - yym711 := z.DecBinary() - _ = yym711 - if false { - } else { - *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) - } - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys707) - } // end switch yys707 - } // end for yyj707 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj714 int - var yyb714 bool - var yyhl714 bool = l >= 0 - yyj714++ - if yyhl714 { - yyb714 = yyj714 > l - } else { - yyb714 = r.CheckBreak() - } - if yyb714 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TargetWWNs = nil - } else { - yyv715 := &x.TargetWWNs - yym716 := z.DecBinary() - _ = yym716 - if false { - } else { - z.F.DecSliceStringX(yyv715, false, d) - } - } - yyj714++ - if yyhl714 { - yyb714 = yyj714 > l - } else { - yyb714 = r.CheckBreak() - } - if yyb714 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Lun != nil { - x.Lun = nil - } - } else { - if x.Lun == nil { - x.Lun = new(int32) - } - yym718 := z.DecBinary() - _ = yym718 - if false { - } else { - *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) - } - } - yyj714++ - if yyhl714 { - yyb714 = yyj714 > l - } else { - yyb714 = r.CheckBreak() - } - if yyb714 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj714++ - if yyhl714 { - yyb714 = yyj714 > l - } else { - yyb714 = r.CheckBreak() - } - if yyb714 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj714++ - if yyhl714 { - yyb714 = yyj714 > l - } else { - yyb714 = r.CheckBreak() - } - if yyb714 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj714-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym721 := z.EncBinary() - _ = yym721 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn722 = 1 - for _, b := range yyq722 { - if b { - yynn722++ - } - } - r.EncodeMapStart(yynn722) - yynn722 = 0 - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym724 := z.EncBinary() - _ = yym724 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("driver")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym725 := z.EncBinary() - _ = yym725 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) - } - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[1] { - yym727 := z.EncBinary() - _ = yym727 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq722[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym728 := z.EncBinary() - _ = yym728 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[2] { - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq722[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[3] { - yym731 := z.EncBinary() - _ = yym731 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq722[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym732 := z.EncBinary() - _ = yym732 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[4] { - if x.Options == nil { - r.EncodeNil() - } else { - yym734 := z.EncBinary() - _ = yym734 - if false { - } else { - z.F.EncMapStringStringV(x.Options, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq722[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("options")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Options == nil { - r.EncodeNil() - } else { - yym735 := z.EncBinary() - _ = yym735 - if false { - } else { - z.F.EncMapStringStringV(x.Options, false, e) - } - } - } - } - if yyr722 || yy2arr722 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym736 := z.DecBinary() - _ = yym736 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct737 := r.ContainerType() - if yyct737 == codecSelferValueTypeMap1234 { - yyl737 := r.ReadMapStart() - if yyl737 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl737, d) - } - } else if yyct737 == codecSelferValueTypeArray1234 { - yyl737 := r.ReadArrayStart() - if yyl737 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl737, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys738Slc = r.DecodeBytes(yys738Slc, true, true) - yys738 := string(yys738Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys738 { - case "driver": - if r.TryDecodeAsNil() { - x.Driver = "" - } else { - x.Driver = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "secretRef": - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - case "options": - if r.TryDecodeAsNil() { - x.Options = nil - } else { - yyv743 := &x.Options - yym744 := z.DecBinary() - _ = yym744 - if false { - } else { - z.F.DecMapStringStringX(yyv743, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys738) - } // end switch yys738 - } // end for yyj738 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj745 int - var yyb745 bool - var yyhl745 bool = l >= 0 - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Driver = "" - } else { - x.Driver = string(r.DecodeString()) - } - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Options = nil - } else { - yyv750 := &x.Options - yym751 := z.DecBinary() - _ = yym751 - if false { - } else { - z.F.DecMapStringStringX(yyv750, false, d) - } - } - for { - yyj745++ - if yyhl745 { - yyb745 = yyj745 > l - } else { - yyb745 = r.CheckBreak() - } - if yyb745 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj745-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym752 := z.EncBinary() - _ = yym752 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn753 = 1 - for _, b := range yyq753 { - if b { - yynn753++ - } - } - r.EncodeMapStart(yynn753) - yynn753 = 0 - } - if yyr753 || yy2arr753 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym755 := z.EncBinary() - _ = yym755 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym756 := z.EncBinary() - _ = yym756 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) - } - } - if yyr753 || yy2arr753 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq753[1] { - yym758 := z.EncBinary() - _ = yym758 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq753[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym759 := z.EncBinary() - _ = yym759 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr753 || yy2arr753 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq753[2] { - yym761 := z.EncBinary() - _ = yym761 - if false { - } else { - r.EncodeInt(int64(x.Partition)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq753[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("partition")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym762 := z.EncBinary() - _ = yym762 - if false { - } else { - r.EncodeInt(int64(x.Partition)) - } - } - } - if yyr753 || yy2arr753 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq753[3] { - yym764 := z.EncBinary() - _ = yym764 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq753[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym765 := z.EncBinary() - _ = yym765 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr753 || yy2arr753 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym766 := z.DecBinary() - _ = yym766 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct767 := r.ContainerType() - if yyct767 == codecSelferValueTypeMap1234 { - yyl767 := r.ReadMapStart() - if yyl767 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl767, d) - } - } else if yyct767 == codecSelferValueTypeArray1234 { - yyl767 := r.ReadArrayStart() - if yyl767 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl767, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys768Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys768Slc - var yyhl768 bool = l >= 0 - for yyj768 := 0; ; yyj768++ { - if yyhl768 { - if yyj768 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys768Slc = r.DecodeBytes(yys768Slc, true, true) - yys768 := string(yys768Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys768 { - case "volumeID": - if r.TryDecodeAsNil() { - x.VolumeID = "" - } else { - x.VolumeID = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "partition": - if r.TryDecodeAsNil() { - x.Partition = 0 - } else { - x.Partition = int32(r.DecodeInt(32)) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys768) - } // end switch yys768 - } // end for yyj768 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj773 int - var yyb773 bool - var yyhl773 bool = l >= 0 - yyj773++ - if yyhl773 { - yyb773 = yyj773 > l - } else { - yyb773 = r.CheckBreak() - } - if yyb773 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeID = "" - } else { - x.VolumeID = string(r.DecodeString()) - } - yyj773++ - if yyhl773 { - yyb773 = yyj773 > l - } else { - yyb773 = r.CheckBreak() - } - if yyb773 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj773++ - if yyhl773 { - yyb773 = yyj773 > l - } else { - yyb773 = r.CheckBreak() - } - if yyb773 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Partition = 0 - } else { - x.Partition = int32(r.DecodeInt(32)) - } - yyj773++ - if yyhl773 { - yyb773 = yyj773 > l - } else { - yyb773 = r.CheckBreak() - } - if yyb773 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj773++ - if yyhl773 { - yyb773 = yyj773 > l - } else { - yyb773 = r.CheckBreak() - } - if yyb773 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj773-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym778 := z.EncBinary() - _ = yym778 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn779 = 1 - for _, b := range yyq779 { - if b { - yynn779++ - } - } - r.EncodeMapStart(yynn779) - yynn779 = 0 - } - if yyr779 || yy2arr779 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym781 := z.EncBinary() - _ = yym781 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("repository")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym782 := z.EncBinary() - _ = yym782 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) - } - } - if yyr779 || yy2arr779 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq779[1] { - yym784 := z.EncBinary() - _ = yym784 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq779[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("revision")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym785 := z.EncBinary() - _ = yym785 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) - } - } - } - if yyr779 || yy2arr779 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq779[2] { - yym787 := z.EncBinary() - _ = yym787 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq779[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("directory")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym788 := z.EncBinary() - _ = yym788 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) - } - } - } - if yyr779 || yy2arr779 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym789 := z.DecBinary() - _ = yym789 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct790 := r.ContainerType() - if yyct790 == codecSelferValueTypeMap1234 { - yyl790 := r.ReadMapStart() - if yyl790 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl790, d) - } - } else if yyct790 == codecSelferValueTypeArray1234 { - yyl790 := r.ReadArrayStart() - if yyl790 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl790, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys791Slc = r.DecodeBytes(yys791Slc, true, true) - yys791 := string(yys791Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys791 { - case "repository": - if r.TryDecodeAsNil() { - x.Repository = "" - } else { - x.Repository = string(r.DecodeString()) - } - case "revision": - if r.TryDecodeAsNil() { - x.Revision = "" - } else { - x.Revision = string(r.DecodeString()) - } - case "directory": - if r.TryDecodeAsNil() { - x.Directory = "" - } else { - x.Directory = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys791) - } // end switch yys791 - } // end for yyj791 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj795 int - var yyb795 bool - var yyhl795 bool = l >= 0 - yyj795++ - if yyhl795 { - yyb795 = yyj795 > l - } else { - yyb795 = r.CheckBreak() - } - if yyb795 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Repository = "" - } else { - x.Repository = string(r.DecodeString()) - } - yyj795++ - if yyhl795 { - yyb795 = yyj795 > l - } else { - yyb795 = r.CheckBreak() - } - if yyb795 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Revision = "" - } else { - x.Revision = string(r.DecodeString()) - } - yyj795++ - if yyhl795 { - yyb795 = yyj795 > l - } else { - yyb795 = r.CheckBreak() - } - if yyb795 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Directory = "" - } else { - x.Directory = string(r.DecodeString()) - } - for { - yyj795++ - if yyhl795 { - yyb795 = yyj795 > l - } else { - yyb795 = r.CheckBreak() - } - if yyb795 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj795-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym799 := z.EncBinary() - _ = yym799 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn800 = 0 - for _, b := range yyq800 { - if b { - yynn800++ - } - } - r.EncodeMapStart(yynn800) - yynn800 = 0 - } - if yyr800 || yy2arr800 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq800[0] { - yym802 := z.EncBinary() - _ = yym802 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq800[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym803 := z.EncBinary() - _ = yym803 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } - } - if yyr800 || yy2arr800 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq800[1] { - if x.Items == nil { - r.EncodeNil() - } else { - yym805 := z.EncBinary() - _ = yym805 - if false { - } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq800[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym806 := z.EncBinary() - _ = yym806 - if false { - } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) - } - } - } - } - if yyr800 || yy2arr800 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq800[2] { - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy808 := *x.DefaultMode - yym809 := z.EncBinary() - _ = yym809 - if false { - } else { - r.EncodeInt(int64(yy808)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq800[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy810 := *x.DefaultMode - yym811 := z.EncBinary() - _ = yym811 - if false { - } else { - r.EncodeInt(int64(yy810)) - } - } - } - } - if yyr800 || yy2arr800 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym812 := z.DecBinary() - _ = yym812 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct813 := r.ContainerType() - if yyct813 == codecSelferValueTypeMap1234 { - yyl813 := r.ReadMapStart() - if yyl813 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl813, d) - } - } else if yyct813 == codecSelferValueTypeArray1234 { - yyl813 := r.ReadArrayStart() - if yyl813 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl813, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys814Slc = r.DecodeBytes(yys814Slc, true, true) - yys814 := string(yys814Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys814 { - case "secretName": - if r.TryDecodeAsNil() { - x.SecretName = "" - } else { - x.SecretName = string(r.DecodeString()) - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv816 := &x.Items - yym817 := z.DecBinary() - _ = yym817 - if false { - } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv816), d) - } - } - case "defaultMode": - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym819 := z.DecBinary() - _ = yym819 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys814) - } // end switch yys814 - } // end for yyj814 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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.SecretName = "" - } else { - x.SecretName = string(r.DecodeString()) - } - 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.Items = nil - } else { - yyv822 := &x.Items - yym823 := z.DecBinary() - _ = yym823 - if false { - } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv822), d) - } - } - yyj820++ - if yyhl820 { - yyb820 = yyj820 > l - } else { - yyb820 = r.CheckBreak() - } - if yyb820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym825 := z.DecBinary() - _ = yym825 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - 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 *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym826 := z.EncBinary() - _ = yym826 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn827 = 2 - for _, b := range yyq827 { - if b { - yynn827++ - } - } - r.EncodeMapStart(yynn827) - yynn827 = 0 - } - if yyr827 || yy2arr827 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym829 := z.EncBinary() - _ = yym829 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Server)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("server")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym830 := z.EncBinary() - _ = yym830 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Server)) - } - } - if yyr827 || yy2arr827 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym832 := z.EncBinary() - _ = yym832 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym833 := z.EncBinary() - _ = yym833 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr827 || yy2arr827 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq827[2] { - yym835 := z.EncBinary() - _ = yym835 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq827[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym836 := z.EncBinary() - _ = yym836 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr827 || yy2arr827 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym837 := z.DecBinary() - _ = yym837 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct838 := r.ContainerType() - if yyct838 == codecSelferValueTypeMap1234 { - yyl838 := r.ReadMapStart() - if yyl838 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl838, d) - } - } else if yyct838 == codecSelferValueTypeArray1234 { - yyl838 := r.ReadArrayStart() - if yyl838 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl838, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys839Slc = r.DecodeBytes(yys839Slc, true, true) - yys839 := string(yys839Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys839 { - case "server": - if r.TryDecodeAsNil() { - x.Server = "" - } else { - x.Server = string(r.DecodeString()) - } - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys839) - } // end switch yys839 - } // end for yyj839 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj843 int - var yyb843 bool - var yyhl843 bool = l >= 0 - yyj843++ - if yyhl843 { - yyb843 = yyj843 > l - } else { - yyb843 = r.CheckBreak() - } - if yyb843 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Server = "" - } else { - x.Server = string(r.DecodeString()) - } - yyj843++ - if yyhl843 { - yyb843 = yyj843 > l - } else { - yyb843 = r.CheckBreak() - } - if yyb843 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj843++ - if yyhl843 { - yyb843 = yyj843 > l - } else { - yyb843 = r.CheckBreak() - } - if yyb843 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj843++ - if yyhl843 { - yyb843 = yyj843 > l - } else { - yyb843 = r.CheckBreak() - } - if yyb843 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj843-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym847 := z.EncBinary() - _ = yym847 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn848 = 2 - for _, b := range yyq848 { - if b { - yynn848++ - } - } - r.EncodeMapStart(yynn848) - yynn848 = 0 - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym850 := z.EncBinary() - _ = yym850 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registry")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym851 := z.EncBinary() - _ = yym851 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) - } - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym853 := z.EncBinary() - _ = yym853 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym854 := z.EncBinary() - _ = yym854 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) - } - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq848[2] { - yym856 := z.EncBinary() - _ = yym856 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq848[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym857 := z.EncBinary() - _ = yym857 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq848[3] { - yym859 := z.EncBinary() - _ = yym859 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq848[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("user")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym860 := z.EncBinary() - _ = yym860 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq848[4] { - yym862 := z.EncBinary() - _ = yym862 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Group)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq848[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("group")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym863 := z.EncBinary() - _ = yym863 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Group)) - } - } - } - if yyr848 || yy2arr848 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym864 := z.DecBinary() - _ = yym864 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct865 := r.ContainerType() - if yyct865 == codecSelferValueTypeMap1234 { - yyl865 := r.ReadMapStart() - if yyl865 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl865, d) - } - } else if yyct865 == codecSelferValueTypeArray1234 { - yyl865 := r.ReadArrayStart() - if yyl865 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl865, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys866Slc = r.DecodeBytes(yys866Slc, true, true) - yys866 := string(yys866Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys866 { - case "registry": - if r.TryDecodeAsNil() { - x.Registry = "" - } else { - x.Registry = string(r.DecodeString()) - } - case "volume": - if r.TryDecodeAsNil() { - x.Volume = "" - } else { - x.Volume = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - case "user": - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - case "group": - if r.TryDecodeAsNil() { - x.Group = "" - } else { - x.Group = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys866) - } // end switch yys866 - } // end for yyj866 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj872 int - var yyb872 bool - var yyhl872 bool = l >= 0 - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Registry = "" - } else { - x.Registry = string(r.DecodeString()) - } - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Volume = "" - } else { - x.Volume = string(r.DecodeString()) - } - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Group = "" - } else { - x.Group = string(r.DecodeString()) - } - for { - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj872-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym878 := z.EncBinary() - _ = yym878 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn879 = 2 - for _, b := range yyq879 { - if b { - yynn879++ - } - } - r.EncodeMapStart(yynn879) - yynn879 = 0 - } - if yyr879 || yy2arr879 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym881 := z.EncBinary() - _ = yym881 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("endpoints")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym882 := z.EncBinary() - _ = yym882 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) - } - } - if yyr879 || yy2arr879 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym884 := z.EncBinary() - _ = yym884 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym885 := z.EncBinary() - _ = yym885 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr879 || yy2arr879 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq879[2] { - yym887 := z.EncBinary() - _ = yym887 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq879[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym888 := z.EncBinary() - _ = yym888 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr879 || yy2arr879 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym889 := z.DecBinary() - _ = yym889 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct890 := r.ContainerType() - if yyct890 == codecSelferValueTypeMap1234 { - yyl890 := r.ReadMapStart() - if yyl890 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl890, d) - } - } else if yyct890 == codecSelferValueTypeArray1234 { - yyl890 := r.ReadArrayStart() - if yyl890 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl890, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys891Slc = r.DecodeBytes(yys891Slc, true, true) - yys891 := string(yys891Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys891 { - case "endpoints": - if r.TryDecodeAsNil() { - x.EndpointsName = "" - } else { - x.EndpointsName = string(r.DecodeString()) - } - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys891) - } // end switch yys891 - } // end for yyj891 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj895 int - var yyb895 bool - var yyhl895 bool = l >= 0 - yyj895++ - if yyhl895 { - yyb895 = yyj895 > l - } else { - yyb895 = r.CheckBreak() - } - if yyb895 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EndpointsName = "" - } else { - x.EndpointsName = string(r.DecodeString()) - } - yyj895++ - if yyhl895 { - yyb895 = yyj895 > l - } else { - yyb895 = r.CheckBreak() - } - if yyb895 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj895++ - if yyhl895 { - yyb895 = yyj895 > l - } else { - yyb895 = r.CheckBreak() - } - if yyb895 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj895++ - if yyhl895 { - yyb895 = yyj895 > l - } else { - yyb895 = r.CheckBreak() - } - if yyb895 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj895-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym899 := z.EncBinary() - _ = yym899 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn900 = 2 - for _, b := range yyq900 { - if b { - yynn900++ - } - } - r.EncodeMapStart(yynn900) - yynn900 = 0 - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.CephMonitors == nil { - r.EncodeNil() - } else { - yym902 := z.EncBinary() - _ = yym902 - if false { - } else { - z.F.EncSliceStringV(x.CephMonitors, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("monitors")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CephMonitors == nil { - r.EncodeNil() - } else { - yym903 := z.EncBinary() - _ = yym903 - if false { - } else { - z.F.EncSliceStringV(x.CephMonitors, false, e) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym905 := z.EncBinary() - _ = yym905 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym906 := z.EncBinary() - _ = yym906 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[2] { - yym908 := z.EncBinary() - _ = yym908 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq900[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym909 := z.EncBinary() - _ = yym909 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[3] { - yym911 := z.EncBinary() - _ = yym911 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq900[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("pool")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym912 := z.EncBinary() - _ = yym912 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[4] { - yym914 := z.EncBinary() - _ = yym914 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq900[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("user")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym915 := z.EncBinary() - _ = yym915 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[5] { - yym917 := z.EncBinary() - _ = yym917 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq900[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("keyring")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym918 := z.EncBinary() - _ = yym918 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[6] { - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq900[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq900[7] { - yym921 := z.EncBinary() - _ = yym921 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq900[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym922 := z.EncBinary() - _ = yym922 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr900 || yy2arr900 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym923 := z.DecBinary() - _ = yym923 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct924 := r.ContainerType() - if yyct924 == codecSelferValueTypeMap1234 { - yyl924 := r.ReadMapStart() - if yyl924 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl924, d) - } - } else if yyct924 == codecSelferValueTypeArray1234 { - yyl924 := r.ReadArrayStart() - if yyl924 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl924, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys925Slc = r.DecodeBytes(yys925Slc, true, true) - yys925 := string(yys925Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys925 { - case "monitors": - if r.TryDecodeAsNil() { - x.CephMonitors = nil - } else { - yyv926 := &x.CephMonitors - yym927 := z.DecBinary() - _ = yym927 - if false { - } else { - z.F.DecSliceStringX(yyv926, false, d) - } - } - case "image": - if r.TryDecodeAsNil() { - x.RBDImage = "" - } else { - x.RBDImage = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "pool": - if r.TryDecodeAsNil() { - x.RBDPool = "" - } else { - x.RBDPool = string(r.DecodeString()) - } - case "user": - if r.TryDecodeAsNil() { - x.RadosUser = "" - } else { - x.RadosUser = string(r.DecodeString()) - } - case "keyring": - if r.TryDecodeAsNil() { - x.Keyring = "" - } else { - x.Keyring = string(r.DecodeString()) - } - case "secretRef": - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys925) - } // end switch yys925 - } // end for yyj925 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj935 int - var yyb935 bool - var yyhl935 bool = l >= 0 - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CephMonitors = nil - } else { - yyv936 := &x.CephMonitors - yym937 := z.DecBinary() - _ = yym937 - if false { - } else { - z.F.DecSliceStringX(yyv936, false, d) - } - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RBDImage = "" - } else { - x.RBDImage = string(r.DecodeString()) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RBDPool = "" - } else { - x.RBDPool = string(r.DecodeString()) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RadosUser = "" - } else { - x.RadosUser = string(r.DecodeString()) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Keyring = "" - } else { - x.Keyring = string(r.DecodeString()) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj935++ - if yyhl935 { - yyb935 = yyj935 > l - } else { - yyb935 = r.CheckBreak() - } - if yyb935 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj935-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym945 := z.EncBinary() - _ = yym945 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep946 := !z.EncBinary() - yy2arr946 := z.EncBasicHandle().StructToArray - var yyq946 [3]bool - _, _, _ = yysep946, yyq946, yy2arr946 - const yyr946 bool = false - yyq946[1] = x.FSType != "" - yyq946[2] = x.ReadOnly != false - var yynn946 int - if yyr946 || yy2arr946 { - r.EncodeArrayStart(3) - } else { - yynn946 = 1 - for _, b := range yyq946 { - if b { - yynn946++ - } - } - r.EncodeMapStart(yynn946) - yynn946 = 0 - } - if yyr946 || yy2arr946 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym948 := z.EncBinary() - _ = yym948 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym949 := z.EncBinary() - _ = yym949 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) - } - } - if yyr946 || yy2arr946 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq946[1] { - yym951 := z.EncBinary() - _ = yym951 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq946[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym952 := z.EncBinary() - _ = yym952 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr946 || yy2arr946 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq946[2] { - yym954 := z.EncBinary() - _ = yym954 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq946[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym955 := z.EncBinary() - _ = yym955 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr946 || yy2arr946 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym956 := z.DecBinary() - _ = yym956 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct957 := r.ContainerType() - if yyct957 == codecSelferValueTypeMap1234 { - yyl957 := r.ReadMapStart() - if yyl957 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl957, d) - } - } else if yyct957 == codecSelferValueTypeArray1234 { - yyl957 := r.ReadArrayStart() - if yyl957 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl957, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys958Slc = r.DecodeBytes(yys958Slc, true, true) - yys958 := string(yys958Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys958 { - case "volumeID": - if r.TryDecodeAsNil() { - x.VolumeID = "" - } else { - x.VolumeID = string(r.DecodeString()) - } - case "fsType": - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys958) - } // end switch yys958 - } // end for yyj958 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj962 int - var yyb962 bool - var yyhl962 bool = l >= 0 - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l - } else { - yyb962 = r.CheckBreak() - } - if yyb962 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeID = "" - } else { - x.VolumeID = string(r.DecodeString()) - } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l - } else { - yyb962 = r.CheckBreak() - } - if yyb962 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSType = "" - } else { - x.FSType = string(r.DecodeString()) - } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l - } else { - yyb962 = r.CheckBreak() - } - if yyb962 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l - } else { - yyb962 = r.CheckBreak() - } - if yyb962 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj962-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym966 := z.EncBinary() - _ = yym966 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn967 = 1 - for _, b := range yyq967 { - if b { - yynn967++ - } - } - r.EncodeMapStart(yynn967) - yynn967 = 0 - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Monitors == nil { - r.EncodeNil() - } else { - yym969 := z.EncBinary() - _ = yym969 - if false { - } else { - z.F.EncSliceStringV(x.Monitors, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("monitors")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Monitors == nil { - r.EncodeNil() - } else { - yym970 := z.EncBinary() - _ = yym970 - if false { - } else { - z.F.EncSliceStringV(x.Monitors, false, e) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq967[1] { - yym972 := z.EncBinary() - _ = yym972 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq967[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym973 := z.EncBinary() - _ = yym973 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq967[2] { - yym975 := z.EncBinary() - _ = yym975 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq967[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("user")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym976 := z.EncBinary() - _ = yym976 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq967[3] { - yym978 := z.EncBinary() - _ = yym978 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq967[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym979 := z.EncBinary() - _ = yym979 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq967[4] { - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq967[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq967[5] { - yym982 := z.EncBinary() - _ = yym982 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq967[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym983 := z.EncBinary() - _ = yym983 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr967 || yy2arr967 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym984 := z.DecBinary() - _ = yym984 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct985 := r.ContainerType() - if yyct985 == codecSelferValueTypeMap1234 { - yyl985 := r.ReadMapStart() - if yyl985 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl985, d) - } - } else if yyct985 == codecSelferValueTypeArray1234 { - yyl985 := r.ReadArrayStart() - if yyl985 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl985, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys986Slc = r.DecodeBytes(yys986Slc, true, true) - yys986 := string(yys986Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys986 { - case "monitors": - if r.TryDecodeAsNil() { - x.Monitors = nil - } else { - yyv987 := &x.Monitors - yym988 := z.DecBinary() - _ = yym988 - if false { - } else { - z.F.DecSliceStringX(yyv987, false, d) - } - } - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "user": - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - case "secretFile": - if r.TryDecodeAsNil() { - x.SecretFile = "" - } else { - x.SecretFile = string(r.DecodeString()) - } - case "secretRef": - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys986) - } // end switch yys986 - } // end for yyj986 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj994 int - var yyb994 bool - var yyhl994 bool = l >= 0 - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Monitors = nil - } else { - yyv995 := &x.Monitors - yym996 := z.DecBinary() - _ = yym996 - if false { - } else { - z.F.DecSliceStringX(yyv995, false, d) - } - } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SecretFile = "" - } else { - x.SecretFile = string(r.DecodeString()) - } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l - } else { - yyb994 = r.CheckBreak() - } - if yyb994 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj994-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1002 := z.EncBinary() - _ = yym1002 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1003 = 0 - for _, b := range yyq1003 { - if b { - yynn1003++ - } - } - r.EncodeMapStart(yynn1003) - yynn1003 = 0 - } - if yyr1003 || yy2arr1003 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1003[0] { - yym1005 := z.EncBinary() - _ = yym1005 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - 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 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) - } - } - } -} - -func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1010 := z.DecBinary() - _ = yym1010 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1011 := r.ContainerType() - if yyct1011 == codecSelferValueTypeMap1234 { - yyl1011 := r.ReadMapStart() - if yyl1011 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1011, d) - } - } else if yyct1011 == codecSelferValueTypeArray1234 { - yyl1011 := r.ReadArrayStart() - if yyl1011 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1011, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1012Slc = r.DecodeBytes(yys1012Slc, true, true) - yys1012 := string(yys1012Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - 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, yys1012) - } // end switch yys1012 - } // end for yyj1012 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1015 int - var yyb1015 bool - var yyhl1015 bool = l >= 0 - 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.DatasetName = "" - } 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 { - yyj1015++ - if yyhl1015 { - yyb1015 = yyj1015 > l - } else { - yyb1015 = r.CheckBreak() - } - if yyb1015 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1015-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1018 := z.EncBinary() - _ = yym1018 - 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 - yyq1019[0] = len(x.Items) != 0 - yyq1019[1] = x.DefaultMode != nil - var yynn1019 int - if yyr1019 || yy2arr1019 { - r.EncodeArrayStart(2) - } else { - yynn1019 = 0 - for _, b := range yyq1019 { - if b { - yynn1019++ - } - } - r.EncodeMapStart(yynn1019) - yynn1019 = 0 - } - if yyr1019 || yy2arr1019 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1019[0] { - if x.Items == nil { - r.EncodeNil() - } else { - yym1021 := z.EncBinary() - _ = yym1021 - if false { - } else { - h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1019[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1022 := z.EncBinary() - _ = yym1022 - if false { - } else { - h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) - } - } - } - } - if yyr1019 || yy2arr1019 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1019[1] { - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy1024 := *x.DefaultMode - yym1025 := z.EncBinary() - _ = yym1025 - if false { - } else { - r.EncodeInt(int64(yy1024)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1019[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy1026 := *x.DefaultMode - yym1027 := z.EncBinary() - _ = yym1027 - if false { - } else { - r.EncodeInt(int64(yy1026)) - } - } - } - } - if yyr1019 || yy2arr1019 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1028 := z.DecBinary() - _ = yym1028 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1029 := r.ContainerType() - if yyct1029 == codecSelferValueTypeMap1234 { - yyl1029 := r.ReadMapStart() - if yyl1029 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1029, d) - } - } else if yyct1029 == codecSelferValueTypeArray1234 { - yyl1029 := r.ReadArrayStart() - if yyl1029 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1029, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1030Slc = r.DecodeBytes(yys1030Slc, true, true) - yys1030 := string(yys1030Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1030 { - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1031 := &x.Items - yym1032 := z.DecBinary() - _ = yym1032 - if false { - } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1031), d) - } - } - case "defaultMode": - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym1034 := z.DecBinary() - _ = yym1034 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys1030) - } // end switch yys1030 - } // end for yyj1030 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1035 int - var yyb1035 bool - var yyhl1035 bool = l >= 0 - 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.Items = nil - } else { - yyv1036 := &x.Items - yym1037 := z.DecBinary() - _ = yym1037 - if false { - } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1036), d) - } - } - yyj1035++ - if yyhl1035 { - yyb1035 = yyj1035 > l - } else { - yyb1035 = r.CheckBreak() - } - if yyb1035 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym1039 := z.DecBinary() - _ = yym1039 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - for { - yyj1035++ - if yyhl1035 { - yyb1035 = yyj1035 > l - } else { - yyb1035 = r.CheckBreak() - } - if yyb1035 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1035-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1040 := z.EncBinary() - _ = yym1040 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1041 = 1 - for _, b := range yyq1041 { - if b { - yynn1041++ - } - } - r.EncodeMapStart(yynn1041) - yynn1041 = 0 - } - if yyr1041 || yy2arr1041 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1043 := z.EncBinary() - _ = yym1043 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1044 := z.EncBinary() - _ = yym1044 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr1041 || yy2arr1041 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[1] { - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1041[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } - } - if yyr1041 || yy2arr1041 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[2] { - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1041[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } - } - if yyr1041 || yy2arr1041 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[3] { - if x.Mode == nil { - r.EncodeNil() - } else { - yy1048 := *x.Mode - yym1049 := z.EncBinary() - _ = yym1049 - if false { - } else { - r.EncodeInt(int64(yy1048)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1041[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("mode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Mode == nil { - r.EncodeNil() - } else { - yy1050 := *x.Mode - yym1051 := z.EncBinary() - _ = yym1051 - if false { - } else { - r.EncodeInt(int64(yy1050)) - } - } - } - } - if yyr1041 || yy2arr1041 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1052 := z.DecBinary() - _ = yym1052 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1053 := r.ContainerType() - if yyct1053 == codecSelferValueTypeMap1234 { - yyl1053 := r.ReadMapStart() - if yyl1053 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1053, d) - } - } else if yyct1053 == codecSelferValueTypeArray1234 { - yyl1053 := r.ReadArrayStart() - if yyl1053 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1053, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1054Slc = r.DecodeBytes(yys1054Slc, true, true) - yys1054 := string(yys1054Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1054 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "fieldRef": - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - case "resourceFieldRef": - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - case "mode": - if r.TryDecodeAsNil() { - if x.Mode != nil { - x.Mode = nil - } - } else { - if x.Mode == nil { - x.Mode = new(int32) - } - yym1059 := z.DecBinary() - _ = yym1059 - if false { - } else { - *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys1054) - } // end switch yys1054 - } // end for yyj1054 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1060 int - var yyb1060 bool - var yyhl1060 bool = l >= 0 - yyj1060++ - if yyhl1060 { - yyb1060 = yyj1060 > l - } else { - yyb1060 = r.CheckBreak() - } - if yyb1060 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj1060++ - if yyhl1060 { - yyb1060 = yyj1060 > l - } else { - yyb1060 = r.CheckBreak() - } - if yyb1060 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - yyj1060++ - if yyhl1060 { - yyb1060 = yyj1060 > l - } else { - yyb1060 = r.CheckBreak() - } - if yyb1060 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - yyj1060++ - if yyhl1060 { - yyb1060 = yyj1060 > l - } else { - yyb1060 = r.CheckBreak() - } - if yyb1060 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Mode != nil { - x.Mode = nil - } - } else { - if x.Mode == nil { - x.Mode = new(int32) - } - yym1065 := z.DecBinary() - _ = yym1065 - if false { - } else { - *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) - } - } - for { - yyj1060++ - if yyhl1060 { - yyb1060 = yyj1060 > l - } else { - yyb1060 = r.CheckBreak() - } - if yyb1060 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1060-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1066 := z.EncBinary() - _ = yym1066 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1067 = 2 - for _, b := range yyq1067 { - if b { - yynn1067++ - } - } - r.EncodeMapStart(yynn1067) - yynn1067 = 0 - } - if yyr1067 || yy2arr1067 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1069 := z.EncBinary() - _ = yym1069 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1070 := z.EncBinary() - _ = yym1070 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } - if yyr1067 || yy2arr1067 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1072 := z.EncBinary() - _ = yym1072 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("shareName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1073 := z.EncBinary() - _ = yym1073 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) - } - } - if yyr1067 || yy2arr1067 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1067[2] { - yym1075 := z.EncBinary() - _ = yym1075 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1067[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1076 := z.EncBinary() - _ = yym1076 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr1067 || yy2arr1067 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1077 := z.DecBinary() - _ = yym1077 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1078 := r.ContainerType() - if yyct1078 == codecSelferValueTypeMap1234 { - yyl1078 := r.ReadMapStart() - if yyl1078 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1078, d) - } - } else if yyct1078 == codecSelferValueTypeArray1234 { - yyl1078 := r.ReadArrayStart() - if yyl1078 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1078, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1079Slc = r.DecodeBytes(yys1079Slc, true, true) - yys1079 := string(yys1079Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1079 { - case "secretName": - if r.TryDecodeAsNil() { - x.SecretName = "" - } else { - x.SecretName = string(r.DecodeString()) - } - case "shareName": - if r.TryDecodeAsNil() { - x.ShareName = "" - } else { - x.ShareName = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, 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 yyj1083 int - var yyb1083 bool - var yyhl1083 bool = l >= 0 - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l - } else { - yyb1083 = r.CheckBreak() - } - if yyb1083 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SecretName = "" - } else { - x.SecretName = 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.ShareName = "" - } else { - 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++ - if yyhl1083 { - yyb1083 = yyj1083 > l - } else { - yyb1083 = r.CheckBreak() - } - if yyb1083 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1083-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *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 - yym1119 := z.EncBinary() - _ = yym1119 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1120 := z.DecBinary() - _ = yym1120 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1121 := z.EncBinary() - _ = yym1121 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1122 = 2 - for _, b := range yyq1122 { - if b { - yynn1122++ - } - } - r.EncodeMapStart(yynn1122) - yynn1122 = 0 - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1124 := z.EncBinary() - _ = yym1124 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("diskName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1125 := z.EncBinary() - _ = yym1125 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) - } - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1127 := z.EncBinary() - _ = yym1127 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("diskURI")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1128 := z.EncBinary() - _ = yym1128 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) - } - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1122[2] { - if x.CachingMode == nil { - r.EncodeNil() - } else { - yy1130 := *x.CachingMode - yy1130.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1122[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cachingMode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CachingMode == nil { - r.EncodeNil() - } else { - yy1131 := *x.CachingMode - yy1131.CodecEncodeSelf(e) - } - } - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1122[3] { - if x.FSType == nil { - r.EncodeNil() - } else { - yy1133 := *x.FSType - yym1134 := z.EncBinary() - _ = yym1134 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1133)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1122[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FSType == nil { - r.EncodeNil() - } else { - yy1135 := *x.FSType - yym1136 := z.EncBinary() - _ = yym1136 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1135)) - } - } - } - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1122[4] { - if x.ReadOnly == nil { - r.EncodeNil() - } else { - yy1138 := *x.ReadOnly - yym1139 := z.EncBinary() - _ = yym1139 - if false { - } else { - r.EncodeBool(bool(yy1138)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1122[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ReadOnly == nil { - r.EncodeNil() - } else { - yy1140 := *x.ReadOnly - yym1141 := z.EncBinary() - _ = yym1141 - if false { - } else { - r.EncodeBool(bool(yy1140)) - } - } - } - } - if yyr1122 || yy2arr1122 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1142 := z.DecBinary() - _ = yym1142 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1143 := r.ContainerType() - if yyct1143 == codecSelferValueTypeMap1234 { - yyl1143 := r.ReadMapStart() - if yyl1143 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1143, d) - } - } else if yyct1143 == codecSelferValueTypeArray1234 { - yyl1143 := r.ReadArrayStart() - if yyl1143 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1143, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1144Slc = r.DecodeBytes(yys1144Slc, true, true) - yys1144 := string(yys1144Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1144 { - case "diskName": - if r.TryDecodeAsNil() { - x.DiskName = "" - } else { - x.DiskName = string(r.DecodeString()) - } - case "diskURI": - if r.TryDecodeAsNil() { - x.DataDiskURI = "" - } else { - x.DataDiskURI = string(r.DecodeString()) - } - case "cachingMode": - if r.TryDecodeAsNil() { - if x.CachingMode != nil { - x.CachingMode = nil - } - } else { - if x.CachingMode == nil { - x.CachingMode = new(AzureDataDiskCachingMode) - } - x.CachingMode.CodecDecodeSelf(d) - } - case "fsType": - if r.TryDecodeAsNil() { - if x.FSType != nil { - x.FSType = nil - } - } else { - if x.FSType == nil { - x.FSType = new(string) - } - yym1149 := z.DecBinary() - _ = yym1149 - if false { - } else { - *((*string)(x.FSType)) = r.DecodeString() - } - } - case "readOnly": - if r.TryDecodeAsNil() { - if x.ReadOnly != nil { - x.ReadOnly = nil - } - } else { - if x.ReadOnly == nil { - x.ReadOnly = new(bool) - } - yym1151 := z.DecBinary() - _ = yym1151 - if false { - } else { - *((*bool)(x.ReadOnly)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys1144) - } // end switch yys1144 - } // end for yyj1144 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1152 int - var yyb1152 bool - var yyhl1152 bool = l >= 0 - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DiskName = "" - } else { - x.DiskName = string(r.DecodeString()) - } - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DataDiskURI = "" - } else { - x.DataDiskURI = string(r.DecodeString()) - } - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.CachingMode != nil { - x.CachingMode = nil - } - } else { - if x.CachingMode == nil { - x.CachingMode = new(AzureDataDiskCachingMode) - } - x.CachingMode.CodecDecodeSelf(d) - } - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.FSType != nil { - x.FSType = nil - } - } else { - if x.FSType == nil { - x.FSType = new(string) - } - yym1157 := z.DecBinary() - _ = yym1157 - if false { - } else { - *((*string)(x.FSType)) = r.DecodeString() - } - } - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ReadOnly != nil { - x.ReadOnly = nil - } - } else { - if x.ReadOnly == nil { - x.ReadOnly = new(bool) - } - yym1159 := z.DecBinary() - _ = yym1159 - if false { - } else { - *((*bool)(x.ReadOnly)) = r.DecodeBool() - } - } - for { - yyj1152++ - if yyhl1152 { - yyb1152 = yyj1152 > l - } else { - yyb1152 = r.CheckBreak() - } - if yyb1152 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1152-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1160 := z.EncBinary() - _ = yym1160 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1161 = 1 - for _, b := range yyq1161 { - if b { - yynn1161++ - } - } - r.EncodeMapStart(yynn1161) - yynn1161 = 0 - } - if yyr1161 || yy2arr1161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1163 := z.EncBinary() - _ = yym1163 - 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) - yym1164 := z.EncBinary() - _ = yym1164 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1161 || yy2arr1161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1161[1] { - if x.Items == nil { - r.EncodeNil() - } else { - yym1166 := z.EncBinary() - _ = yym1166 - if false { - } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1161[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1167 := z.EncBinary() - _ = yym1167 - if false { - } else { - h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) - } - } - } - } - if yyr1161 || yy2arr1161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1161[2] { - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy1169 := *x.DefaultMode - yym1170 := z.EncBinary() - _ = yym1170 - if false { - } else { - r.EncodeInt(int64(yy1169)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1161[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultMode == nil { - r.EncodeNil() - } else { - yy1171 := *x.DefaultMode - yym1172 := z.EncBinary() - _ = yym1172 - if false { - } else { - r.EncodeInt(int64(yy1171)) - } - } - } - } - if yyr1161 || yy2arr1161 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1173 := z.DecBinary() - _ = yym1173 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1174 := r.ContainerType() - if yyct1174 == codecSelferValueTypeMap1234 { - yyl1174 := r.ReadMapStart() - if yyl1174 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1174, d) - } - } else if yyct1174 == codecSelferValueTypeArray1234 { - yyl1174 := r.ReadArrayStart() - if yyl1174 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1174, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) - yys1175 := string(yys1175Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1175 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1177 := &x.Items - yym1178 := z.DecBinary() - _ = yym1178 - if false { - } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1177), d) - } - } - case "defaultMode": - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym1180 := z.DecBinary() - _ = yym1180 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys1175) - } // end switch yys1175 - } // end for yyj1175 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1181 int - var yyb1181 bool - var yyhl1181 bool = l >= 0 - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l - } else { - yyb1181 = r.CheckBreak() - } - if yyb1181 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l - } else { - yyb1181 = r.CheckBreak() - } - if yyb1181 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1183 := &x.Items - yym1184 := z.DecBinary() - _ = yym1184 - if false { - } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1183), d) - } - } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l - } else { - yyb1181 = r.CheckBreak() - } - if yyb1181 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DefaultMode != nil { - x.DefaultMode = nil - } - } else { - if x.DefaultMode == nil { - x.DefaultMode = new(int32) - } - yym1186 := z.DecBinary() - _ = yym1186 - if false { - } else { - *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) - } - } - for { - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l - } else { - yyb1181 = r.CheckBreak() - } - if yyb1181 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1181-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1187 := z.EncBinary() - _ = yym1187 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1188 = 2 - for _, b := range yyq1188 { - if b { - yynn1188++ - } - } - r.EncodeMapStart(yynn1188) - yynn1188 = 0 - } - if yyr1188 || yy2arr1188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1190 := z.EncBinary() - _ = yym1190 - 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) - yym1191 := z.EncBinary() - _ = yym1191 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr1188 || yy2arr1188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1193 := z.EncBinary() - _ = yym1193 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1194 := z.EncBinary() - _ = yym1194 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr1188 || yy2arr1188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1188[2] { - if x.Mode == nil { - r.EncodeNil() - } else { - yy1196 := *x.Mode - yym1197 := z.EncBinary() - _ = yym1197 - if false { - } else { - r.EncodeInt(int64(yy1196)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1188[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("mode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Mode == nil { - r.EncodeNil() - } else { - yy1198 := *x.Mode - yym1199 := z.EncBinary() - _ = yym1199 - if false { - } else { - r.EncodeInt(int64(yy1198)) - } - } - } - } - if yyr1188 || yy2arr1188 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1200 := z.DecBinary() - _ = yym1200 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1201 := r.ContainerType() - if yyct1201 == codecSelferValueTypeMap1234 { - yyl1201 := r.ReadMapStart() - if yyl1201 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1201, d) - } - } else if yyct1201 == codecSelferValueTypeArray1234 { - yyl1201 := r.ReadArrayStart() - if yyl1201 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1201, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1202Slc = r.DecodeBytes(yys1202Slc, true, true) - yys1202 := string(yys1202Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1202 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "mode": - if r.TryDecodeAsNil() { - if x.Mode != nil { - x.Mode = nil - } - } else { - if x.Mode == nil { - x.Mode = new(int32) - } - yym1206 := z.DecBinary() - _ = yym1206 - if false { - } else { - *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys1202) - } // end switch yys1202 - } // end for yyj1202 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1207 int - var yyb1207 bool - var yyhl1207 bool = l >= 0 - yyj1207++ - if yyhl1207 { - yyb1207 = yyj1207 > l - } else { - yyb1207 = r.CheckBreak() - } - if yyb1207 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj1207++ - if yyhl1207 { - yyb1207 = yyj1207 > l - } else { - yyb1207 = r.CheckBreak() - } - if yyb1207 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj1207++ - if yyhl1207 { - yyb1207 = yyj1207 > l - } else { - yyb1207 = r.CheckBreak() - } - if yyb1207 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Mode != nil { - x.Mode = nil - } - } else { - if x.Mode == nil { - x.Mode = new(int32) - } - yym1211 := z.DecBinary() - _ = yym1211 - if false { - } else { - *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) - } - } - for { - yyj1207++ - if yyhl1207 { - yyb1207 = yyj1207 > l - } else { - yyb1207 = r.CheckBreak() - } - if yyb1207 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1207-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1212 := z.EncBinary() - _ = yym1212 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1213 = 1 - for _, b := range yyq1213 { - if b { - yynn1213++ - } - } - r.EncodeMapStart(yynn1213) - yynn1213 = 0 - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1213[0] { - yym1215 := z.EncBinary() - _ = yym1215 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1213[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1216 := z.EncBinary() - _ = yym1216 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1213[1] { - yym1218 := z.EncBinary() - _ = yym1218 - if false { - } else { - r.EncodeInt(int64(x.HostPort)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1213[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1219 := z.EncBinary() - _ = yym1219 - if false { - } else { - r.EncodeInt(int64(x.HostPort)) - } - } - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1221 := z.EncBinary() - _ = yym1221 - if false { - } else { - r.EncodeInt(int64(x.ContainerPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1222 := z.EncBinary() - _ = yym1222 - if false { - } else { - r.EncodeInt(int64(x.ContainerPort)) - } - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1213[3] { - x.Protocol.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1213[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("protocol")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Protocol.CodecEncodeSelf(e) - } - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1213[4] { - yym1225 := z.EncBinary() - _ = yym1225 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1213[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1226 := z.EncBinary() - _ = yym1226 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) - } - } - } - if yyr1213 || yy2arr1213 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1227 := z.DecBinary() - _ = yym1227 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1228 := r.ContainerType() - if yyct1228 == codecSelferValueTypeMap1234 { - yyl1228 := r.ReadMapStart() - if yyl1228 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1228, d) - } - } else if yyct1228 == codecSelferValueTypeArray1234 { - yyl1228 := r.ReadArrayStart() - if yyl1228 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1228, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1229Slc = r.DecodeBytes(yys1229Slc, true, true) - yys1229 := string(yys1229Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1229 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "hostPort": - if r.TryDecodeAsNil() { - x.HostPort = 0 - } else { - x.HostPort = int32(r.DecodeInt(32)) - } - case "containerPort": - if r.TryDecodeAsNil() { - x.ContainerPort = 0 - } else { - x.ContainerPort = int32(r.DecodeInt(32)) - } - case "protocol": - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - case "hostIP": - if r.TryDecodeAsNil() { - x.HostIP = "" - } else { - x.HostIP = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1229) - } // end switch yys1229 - } // end for yyj1229 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1235 int - var yyb1235 bool - var yyhl1235 bool = l >= 0 - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPort = 0 - } else { - x.HostPort = int32(r.DecodeInt(32)) - } - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerPort = 0 - } else { - x.ContainerPort = int32(r.DecodeInt(32)) - } - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIP = "" - } else { - x.HostIP = string(r.DecodeString()) - } - for { - yyj1235++ - if yyhl1235 { - yyb1235 = yyj1235 > l - } else { - yyb1235 = r.CheckBreak() - } - if yyb1235 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1235-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1241 := z.EncBinary() - _ = yym1241 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1242 = 2 - for _, b := range yyq1242 { - if b { - yynn1242++ - } - } - r.EncodeMapStart(yynn1242) - yynn1242 = 0 - } - if yyr1242 || yy2arr1242 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1244 := z.EncBinary() - _ = yym1244 - 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) - yym1245 := z.EncBinary() - _ = yym1245 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1242 || yy2arr1242 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1242[1] { - yym1247 := z.EncBinary() - _ = yym1247 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1242[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1248 := z.EncBinary() - _ = yym1248 - if false { - } else { - r.EncodeBool(bool(x.ReadOnly)) - } - } - } - if yyr1242 || yy2arr1242 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1250 := z.EncBinary() - _ = yym1250 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("mountPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1251 := z.EncBinary() - _ = yym1251 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) - } - } - if yyr1242 || yy2arr1242 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1242[3] { - yym1253 := z.EncBinary() - _ = yym1253 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1242[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("subPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1254 := z.EncBinary() - _ = yym1254 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) - } - } - } - if yyr1242 || yy2arr1242 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1255 := z.DecBinary() - _ = yym1255 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1256 := r.ContainerType() - if yyct1256 == codecSelferValueTypeMap1234 { - yyl1256 := r.ReadMapStart() - if yyl1256 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1256, d) - } - } else if yyct1256 == codecSelferValueTypeArray1234 { - yyl1256 := r.ReadArrayStart() - if yyl1256 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1256, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1257Slc = r.DecodeBytes(yys1257Slc, true, true) - yys1257 := string(yys1257Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1257 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "readOnly": - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - case "mountPath": - if r.TryDecodeAsNil() { - x.MountPath = "" - } else { - x.MountPath = string(r.DecodeString()) - } - case "subPath": - if r.TryDecodeAsNil() { - x.SubPath = "" - } else { - x.SubPath = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1257) - } // end switch yys1257 - } // end for yyj1257 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1262 int - var yyb1262 bool - var yyhl1262 bool = l >= 0 - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MountPath = "" - } else { - x.MountPath = string(r.DecodeString()) - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SubPath = "" - } else { - x.SubPath = string(r.DecodeString()) - } - for { - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1262-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1267 := z.EncBinary() - _ = yym1267 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1268 = 1 - for _, b := range yyq1268 { - if b { - yynn1268++ - } - } - r.EncodeMapStart(yynn1268) - yynn1268 = 0 - } - if yyr1268 || yy2arr1268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1270 := z.EncBinary() - _ = yym1270 - 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) - yym1271 := z.EncBinary() - _ = yym1271 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1268 || yy2arr1268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1268[1] { - yym1273 := z.EncBinary() - _ = yym1273 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1268[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1274 := z.EncBinary() - _ = yym1274 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } - } - if yyr1268 || yy2arr1268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1268[2] { - if x.ValueFrom == nil { - r.EncodeNil() - } else { - x.ValueFrom.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1268[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ValueFrom == nil { - r.EncodeNil() - } else { - x.ValueFrom.CodecEncodeSelf(e) - } - } - } - if yyr1268 || yy2arr1268 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1276 := z.DecBinary() - _ = yym1276 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1277 := r.ContainerType() - if yyct1277 == codecSelferValueTypeMap1234 { - yyl1277 := r.ReadMapStart() - if yyl1277 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1277, d) - } - } else if yyct1277 == codecSelferValueTypeArray1234 { - yyl1277 := r.ReadArrayStart() - if yyl1277 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1277, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) - yys1278 := string(yys1278Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1278 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "value": - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - case "valueFrom": - if r.TryDecodeAsNil() { - if x.ValueFrom != nil { - x.ValueFrom = nil - } - } else { - if x.ValueFrom == nil { - x.ValueFrom = new(EnvVarSource) - } - x.ValueFrom.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1278) - } // end switch yys1278 - } // end for yyj1278 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1282 int - var yyb1282 bool - var yyhl1282 bool = l >= 0 - yyj1282++ - if yyhl1282 { - yyb1282 = yyj1282 > l - } else { - yyb1282 = r.CheckBreak() - } - if yyb1282 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1282++ - if yyhl1282 { - yyb1282 = yyj1282 > l - } else { - yyb1282 = r.CheckBreak() - } - if yyb1282 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - yyj1282++ - if yyhl1282 { - yyb1282 = yyj1282 > l - } else { - yyb1282 = r.CheckBreak() - } - if yyb1282 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ValueFrom != nil { - x.ValueFrom = nil - } - } else { - if x.ValueFrom == nil { - x.ValueFrom = new(EnvVarSource) - } - x.ValueFrom.CodecDecodeSelf(d) - } - for { - yyj1282++ - if yyhl1282 { - yyb1282 = yyj1282 > l - } else { - yyb1282 = r.CheckBreak() - } - if yyb1282 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1282-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1286 := z.EncBinary() - _ = yym1286 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1287 = 0 - for _, b := range yyq1287 { - if b { - yynn1287++ - } - } - r.EncodeMapStart(yynn1287) - yynn1287 = 0 - } - if yyr1287 || yy2arr1287 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1287[0] { - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1287[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } - } - if yyr1287 || yy2arr1287 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1287[1] { - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1287[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } - } - if yyr1287 || yy2arr1287 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1287[2] { - if x.ConfigMapKeyRef == nil { - r.EncodeNil() - } else { - x.ConfigMapKeyRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1287[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ConfigMapKeyRef == nil { - r.EncodeNil() - } else { - x.ConfigMapKeyRef.CodecEncodeSelf(e) - } - } - } - if yyr1287 || yy2arr1287 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1287[3] { - if x.SecretKeyRef == nil { - r.EncodeNil() - } else { - x.SecretKeyRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1287[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecretKeyRef == nil { - r.EncodeNil() - } else { - x.SecretKeyRef.CodecEncodeSelf(e) - } - } - } - if yyr1287 || yy2arr1287 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1292 := z.DecBinary() - _ = yym1292 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1293 := r.ContainerType() - if yyct1293 == codecSelferValueTypeMap1234 { - yyl1293 := r.ReadMapStart() - if yyl1293 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1293, d) - } - } else if yyct1293 == codecSelferValueTypeArray1234 { - yyl1293 := r.ReadArrayStart() - if yyl1293 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1293, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1294Slc = r.DecodeBytes(yys1294Slc, true, true) - yys1294 := string(yys1294Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1294 { - case "fieldRef": - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - case "resourceFieldRef": - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - case "configMapKeyRef": - if r.TryDecodeAsNil() { - if x.ConfigMapKeyRef != nil { - x.ConfigMapKeyRef = nil - } - } else { - if x.ConfigMapKeyRef == nil { - x.ConfigMapKeyRef = new(ConfigMapKeySelector) - } - x.ConfigMapKeyRef.CodecDecodeSelf(d) - } - case "secretKeyRef": - if r.TryDecodeAsNil() { - if x.SecretKeyRef != nil { - x.SecretKeyRef = nil - } - } else { - if x.SecretKeyRef == nil { - x.SecretKeyRef = new(SecretKeySelector) - } - x.SecretKeyRef.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1294) - } // end switch yys1294 - } // end for yyj1294 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1299 int - var yyb1299 bool - var yyhl1299 bool = l >= 0 - yyj1299++ - if yyhl1299 { - yyb1299 = yyj1299 > l - } else { - yyb1299 = r.CheckBreak() - } - if yyb1299 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - yyj1299++ - if yyhl1299 { - yyb1299 = yyj1299 > l - } else { - yyb1299 = r.CheckBreak() - } - if yyb1299 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - yyj1299++ - if yyhl1299 { - yyb1299 = yyj1299 > l - } else { - yyb1299 = r.CheckBreak() - } - if yyb1299 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ConfigMapKeyRef != nil { - x.ConfigMapKeyRef = nil - } - } else { - if x.ConfigMapKeyRef == nil { - x.ConfigMapKeyRef = new(ConfigMapKeySelector) - } - x.ConfigMapKeyRef.CodecDecodeSelf(d) - } - yyj1299++ - if yyhl1299 { - yyb1299 = yyj1299 > l - } else { - yyb1299 = r.CheckBreak() - } - if yyb1299 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SecretKeyRef != nil { - x.SecretKeyRef = nil - } - } else { - if x.SecretKeyRef == nil { - x.SecretKeyRef = new(SecretKeySelector) - } - x.SecretKeyRef.CodecDecodeSelf(d) - } - for { - yyj1299++ - if yyhl1299 { - yyb1299 = yyj1299 > l - } else { - yyb1299 = r.CheckBreak() - } - if yyb1299 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1299-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1304 := z.EncBinary() - _ = yym1304 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1305 = 2 - for _, b := range yyq1305 { - if b { - yynn1305++ - } - } - r.EncodeMapStart(yynn1305) - yynn1305 = 0 - } - if yyr1305 || yy2arr1305 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1307 := z.EncBinary() - _ = yym1307 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1308 := z.EncBinary() - _ = yym1308 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - if yyr1305 || yy2arr1305 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1310 := z.EncBinary() - _ = yym1310 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1311 := z.EncBinary() - _ = yym1311 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) - } - } - if yyr1305 || yy2arr1305 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1312 := z.DecBinary() - _ = yym1312 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1313 := r.ContainerType() - if yyct1313 == codecSelferValueTypeMap1234 { - yyl1313 := r.ReadMapStart() - if yyl1313 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1313, d) - } - } else if yyct1313 == codecSelferValueTypeArray1234 { - yyl1313 := r.ReadArrayStart() - if yyl1313 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1313, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1314Slc = r.DecodeBytes(yys1314Slc, true, true) - yys1314 := string(yys1314Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1314 { - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "fieldPath": - if r.TryDecodeAsNil() { - x.FieldPath = "" - } else { - x.FieldPath = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1314) - } // end switch yys1314 - } // end for yyj1314 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1317 int - var yyb1317 bool - var yyhl1317 bool = l >= 0 - yyj1317++ - if yyhl1317 { - yyb1317 = yyj1317 > l - } else { - yyb1317 = r.CheckBreak() - } - if yyb1317 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1317++ - if yyhl1317 { - yyb1317 = yyj1317 > l - } else { - yyb1317 = r.CheckBreak() - } - if yyb1317 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FieldPath = "" - } else { - x.FieldPath = string(r.DecodeString()) - } - for { - yyj1317++ - if yyhl1317 { - yyb1317 = yyj1317 > l - } else { - yyb1317 = r.CheckBreak() - } - if yyb1317 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1317-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1320 := z.EncBinary() - _ = yym1320 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1321 = 1 - for _, b := range yyq1321 { - if b { - yynn1321++ - } - } - r.EncodeMapStart(yynn1321) - yynn1321 = 0 - } - if yyr1321 || yy2arr1321 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1321[0] { - yym1323 := z.EncBinary() - _ = yym1323 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1321[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1324 := z.EncBinary() - _ = yym1324 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) - } - } - } - if yyr1321 || yy2arr1321 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1326 := z.EncBinary() - _ = yym1326 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resource")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1327 := z.EncBinary() - _ = yym1327 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) - } - } - if yyr1321 || yy2arr1321 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1321[2] { - yy1329 := &x.Divisor - yym1330 := z.EncBinary() - _ = yym1330 - if false { - } else if z.HasExtensions() && z.EncExt(yy1329) { - } else if !yym1330 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1329) - } else { - z.EncFallback(yy1329) - } - } else { - r.EncodeNil() - } - } else { - if yyq1321[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("divisor")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1331 := &x.Divisor - yym1332 := z.EncBinary() - _ = yym1332 - if false { - } else if z.HasExtensions() && z.EncExt(yy1331) { - } else if !yym1332 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1331) - } else { - z.EncFallback(yy1331) - } - } - } - if yyr1321 || yy2arr1321 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1333 := z.DecBinary() - _ = yym1333 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1334 := r.ContainerType() - if yyct1334 == codecSelferValueTypeMap1234 { - yyl1334 := r.ReadMapStart() - if yyl1334 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1334, d) - } - } else if yyct1334 == codecSelferValueTypeArray1234 { - yyl1334 := r.ReadArrayStart() - if yyl1334 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1334, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1335Slc = r.DecodeBytes(yys1335Slc, true, true) - yys1335 := string(yys1335Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1335 { - case "containerName": - if r.TryDecodeAsNil() { - x.ContainerName = "" - } else { - x.ContainerName = string(r.DecodeString()) - } - case "resource": - if r.TryDecodeAsNil() { - x.Resource = "" - } else { - x.Resource = string(r.DecodeString()) - } - case "divisor": - if r.TryDecodeAsNil() { - x.Divisor = pkg3_resource.Quantity{} - } else { - yyv1338 := &x.Divisor - yym1339 := z.DecBinary() - _ = yym1339 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1338) { - } else if !yym1339 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1338) - } else { - z.DecFallback(yyv1338, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys1335) - } // end switch yys1335 - } // end for yyj1335 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1340 int - var yyb1340 bool - var yyhl1340 bool = l >= 0 - yyj1340++ - if yyhl1340 { - yyb1340 = yyj1340 > l - } else { - yyb1340 = r.CheckBreak() - } - if yyb1340 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerName = "" - } else { - x.ContainerName = string(r.DecodeString()) - } - yyj1340++ - if yyhl1340 { - yyb1340 = yyj1340 > l - } else { - yyb1340 = r.CheckBreak() - } - if yyb1340 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Resource = "" - } else { - x.Resource = string(r.DecodeString()) - } - yyj1340++ - if yyhl1340 { - yyb1340 = yyj1340 > l - } else { - yyb1340 = r.CheckBreak() - } - if yyb1340 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Divisor = pkg3_resource.Quantity{} - } else { - yyv1343 := &x.Divisor - yym1344 := z.DecBinary() - _ = yym1344 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1343) { - } else if !yym1344 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1343) - } else { - z.DecFallback(yyv1343, false) - } - } - for { - yyj1340++ - if yyhl1340 { - yyb1340 = yyj1340 > l - } else { - yyb1340 = r.CheckBreak() - } - if yyb1340 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1340-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1345 := z.EncBinary() - _ = yym1345 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1346 = 2 - for _, b := range yyq1346 { - if b { - yynn1346++ - } - } - r.EncodeMapStart(yynn1346) - yynn1346 = 0 - } - if yyr1346 || yy2arr1346 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1348 := z.EncBinary() - _ = yym1348 - 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) - yym1349 := z.EncBinary() - _ = yym1349 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1346 || yy2arr1346 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1351 := z.EncBinary() - _ = yym1351 - 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) - yym1352 := z.EncBinary() - _ = yym1352 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr1346 || yy2arr1346 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1353 := z.DecBinary() - _ = yym1353 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1354 := r.ContainerType() - if yyct1354 == codecSelferValueTypeMap1234 { - yyl1354 := r.ReadMapStart() - if yyl1354 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1354, d) - } - } else if yyct1354 == codecSelferValueTypeArray1234 { - yyl1354 := r.ReadArrayStart() - if yyl1354 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1354, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1355Slc = r.DecodeBytes(yys1355Slc, true, true) - yys1355 := string(yys1355Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1355 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1355) - } // end switch yys1355 - } // end for yyj1355 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1358 int - var yyb1358 bool - var yyhl1358 bool = l >= 0 - yyj1358++ - if yyhl1358 { - yyb1358 = yyj1358 > l - } else { - yyb1358 = r.CheckBreak() - } - if yyb1358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1358++ - if yyhl1358 { - yyb1358 = yyj1358 > l - } else { - yyb1358 = r.CheckBreak() - } - if yyb1358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - for { - yyj1358++ - if yyhl1358 { - yyb1358 = yyj1358 > l - } else { - yyb1358 = r.CheckBreak() - } - if yyb1358 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1358-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1361 := z.EncBinary() - _ = yym1361 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1362 = 2 - for _, b := range yyq1362 { - if b { - yynn1362++ - } - } - r.EncodeMapStart(yynn1362) - yynn1362 = 0 - } - if yyr1362 || yy2arr1362 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1364 := z.EncBinary() - _ = yym1364 - 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) - yym1365 := z.EncBinary() - _ = yym1365 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1362 || yy2arr1362 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1367 := z.EncBinary() - _ = yym1367 - 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) - yym1368 := z.EncBinary() - _ = yym1368 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr1362 || yy2arr1362 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1369 := z.DecBinary() - _ = yym1369 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1370 := r.ContainerType() - if yyct1370 == codecSelferValueTypeMap1234 { - yyl1370 := r.ReadMapStart() - if yyl1370 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1370, d) - } - } else if yyct1370 == codecSelferValueTypeArray1234 { - yyl1370 := r.ReadArrayStart() - if yyl1370 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1370, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) - yys1371 := string(yys1371Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1371 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1371) - } // end switch yys1371 - } // end for yyj1371 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1374 int - var yyb1374 bool - var yyhl1374 bool = l >= 0 - yyj1374++ - if yyhl1374 { - yyb1374 = yyj1374 > l - } else { - yyb1374 = r.CheckBreak() - } - if yyb1374 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1374++ - if yyhl1374 { - yyb1374 = yyj1374 > l - } else { - yyb1374 = r.CheckBreak() - } - if yyb1374 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - for { - yyj1374++ - if yyhl1374 { - yyb1374 = yyj1374 > l - } else { - yyb1374 = r.CheckBreak() - } - if yyb1374 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1374-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1377 := z.EncBinary() - _ = yym1377 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1378 = 2 - for _, b := range yyq1378 { - if b { - yynn1378++ - } - } - r.EncodeMapStart(yynn1378) - yynn1378 = 0 - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1380 := z.EncBinary() - _ = yym1380 - 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) - yym1381 := z.EncBinary() - _ = yym1381 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1383 := z.EncBinary() - _ = yym1383 - 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) - yym1384 := z.EncBinary() - _ = yym1384 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1385 := z.DecBinary() - _ = yym1385 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1386 := r.ContainerType() - if yyct1386 == codecSelferValueTypeMap1234 { - yyl1386 := r.ReadMapStart() - if yyl1386 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1386, d) - } - } else if yyct1386 == codecSelferValueTypeArray1234 { - yyl1386 := r.ReadArrayStart() - if yyl1386 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1386, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1387Slc = r.DecodeBytes(yys1387Slc, true, true) - yys1387 := string(yys1387Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1387 { - 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, yys1387) - } // end switch yys1387 - } // end for yyj1387 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1390 int - var yyb1390 bool - var yyhl1390 bool = l >= 0 - yyj1390++ - if yyhl1390 { - yyb1390 = yyj1390 > l - } else { - yyb1390 = r.CheckBreak() - } - if yyb1390 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1390++ - if yyhl1390 { - yyb1390 = yyj1390 > l - } else { - yyb1390 = r.CheckBreak() - } - if yyb1390 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - for { - yyj1390++ - if yyhl1390 { - yyb1390 = yyj1390 > l - } else { - yyb1390 = r.CheckBreak() - } - if yyb1390 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1390-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1393 := z.EncBinary() - _ = yym1393 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1394 = 0 - for _, b := range yyq1394 { - if b { - yynn1394++ - } - } - r.EncodeMapStart(yynn1394) - yynn1394 = 0 - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1394[0] { - yym1396 := z.EncBinary() - _ = yym1396 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1394[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1397 := z.EncBinary() - _ = yym1397 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1394[1] { - yy1399 := &x.Port - yym1400 := z.EncBinary() - _ = yym1400 - if false { - } else if z.HasExtensions() && z.EncExt(yy1399) { - } else if !yym1400 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1399) - } else { - z.EncFallback(yy1399) - } - } else { - r.EncodeNil() - } - } else { - if yyq1394[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1401 := &x.Port - yym1402 := z.EncBinary() - _ = yym1402 - if false { - } else if z.HasExtensions() && z.EncExt(yy1401) { - } else if !yym1402 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1401) - } else { - z.EncFallback(yy1401) - } - } - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1394[2] { - yym1404 := z.EncBinary() - _ = yym1404 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1394[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("host")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1405 := z.EncBinary() - _ = yym1405 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1394[3] { - x.Scheme.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1394[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("scheme")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Scheme.CodecEncodeSelf(e) - } - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1394[4] { - if x.HTTPHeaders == nil { - r.EncodeNil() - } else { - yym1408 := z.EncBinary() - _ = yym1408 - if false { - } else { - h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1394[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HTTPHeaders == nil { - r.EncodeNil() - } else { - yym1409 := z.EncBinary() - _ = yym1409 - if false { - } else { - h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) - } - } - } - } - if yyr1394 || yy2arr1394 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1410 := z.DecBinary() - _ = yym1410 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1411 := r.ContainerType() - if yyct1411 == codecSelferValueTypeMap1234 { - yyl1411 := r.ReadMapStart() - if yyl1411 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1411, d) - } - } else if yyct1411 == codecSelferValueTypeArray1234 { - yyl1411 := r.ReadArrayStart() - if yyl1411 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1411, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1412Slc = r.DecodeBytes(yys1412Slc, true, true) - yys1412 := string(yys1412Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1412 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "port": - if r.TryDecodeAsNil() { - x.Port = pkg4_intstr.IntOrString{} - } else { - yyv1414 := &x.Port - yym1415 := z.DecBinary() - _ = yym1415 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1414) { - } else if !yym1415 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1414) - } else { - z.DecFallback(yyv1414, false) - } - } - case "host": - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - case "scheme": - if r.TryDecodeAsNil() { - x.Scheme = "" - } else { - x.Scheme = URIScheme(r.DecodeString()) - } - case "httpHeaders": - if r.TryDecodeAsNil() { - x.HTTPHeaders = nil - } else { - yyv1418 := &x.HTTPHeaders - yym1419 := z.DecBinary() - _ = yym1419 - if false { - } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1418), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1412) - } // end switch yys1412 - } // end for yyj1412 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1420 int - var yyb1420 bool - var yyhl1420 bool = l >= 0 - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = pkg4_intstr.IntOrString{} - } else { - yyv1422 := &x.Port - yym1423 := z.DecBinary() - _ = yym1423 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1422) { - } else if !yym1423 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1422) - } else { - z.DecFallback(yyv1422, false) - } - } - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Scheme = "" - } else { - x.Scheme = URIScheme(r.DecodeString()) - } - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HTTPHeaders = nil - } else { - yyv1426 := &x.HTTPHeaders - yym1427 := z.DecBinary() - _ = yym1427 - if false { - } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1426), d) - } - } - for { - yyj1420++ - if yyhl1420 { - yyb1420 = yyj1420 > l - } else { - yyb1420 = r.CheckBreak() - } - if yyb1420 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1420-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1428 := z.EncBinary() - _ = yym1428 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1429 := z.DecBinary() - _ = yym1429 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1430 := z.EncBinary() - _ = yym1430 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1431 = 0 - for _, b := range yyq1431 { - if b { - yynn1431++ - } - } - r.EncodeMapStart(yynn1431) - yynn1431 = 0 - } - if yyr1431 || yy2arr1431 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[0] { - yy1433 := &x.Port - yym1434 := z.EncBinary() - _ = yym1434 - if false { - } else if z.HasExtensions() && z.EncExt(yy1433) { - } else if !yym1434 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1433) - } else { - z.EncFallback(yy1433) - } - } else { - r.EncodeNil() - } - } else { - if yyq1431[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1435 := &x.Port - yym1436 := z.EncBinary() - _ = yym1436 - if false { - } else if z.HasExtensions() && z.EncExt(yy1435) { - } else if !yym1436 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1435) - } else { - z.EncFallback(yy1435) - } - } - } - if yyr1431 || yy2arr1431 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1437 := z.DecBinary() - _ = yym1437 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1438 := r.ContainerType() - if yyct1438 == codecSelferValueTypeMap1234 { - yyl1438 := r.ReadMapStart() - if yyl1438 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1438, d) - } - } else if yyct1438 == codecSelferValueTypeArray1234 { - yyl1438 := r.ReadArrayStart() - if yyl1438 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1438, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1439Slc = r.DecodeBytes(yys1439Slc, true, true) - yys1439 := string(yys1439Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1439 { - case "port": - if r.TryDecodeAsNil() { - x.Port = pkg4_intstr.IntOrString{} - } else { - yyv1440 := &x.Port - yym1441 := z.DecBinary() - _ = yym1441 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1440) { - } else if !yym1441 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1440) - } else { - z.DecFallback(yyv1440, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys1439) - } // end switch yys1439 - } // end for yyj1439 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1442 int - var yyb1442 bool - var yyhl1442 bool = l >= 0 - yyj1442++ - if yyhl1442 { - yyb1442 = yyj1442 > l - } else { - yyb1442 = r.CheckBreak() - } - if yyb1442 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = pkg4_intstr.IntOrString{} - } else { - yyv1443 := &x.Port - yym1444 := z.DecBinary() - _ = yym1444 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1443) { - } else if !yym1444 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1443) - } else { - z.DecFallback(yyv1443, false) - } - } - for { - yyj1442++ - if yyhl1442 { - yyb1442 = yyj1442 > l - } else { - yyb1442 = r.CheckBreak() - } - if yyb1442 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1442-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1445 := z.EncBinary() - _ = yym1445 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1446 = 0 - for _, b := range yyq1446 { - if b { - yynn1446++ - } - } - r.EncodeMapStart(yynn1446) - yynn1446 = 0 - } - if yyr1446 || yy2arr1446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1446[0] { - if x.Command == nil { - r.EncodeNil() - } else { - yym1448 := z.EncBinary() - _ = yym1448 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1446[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("command")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Command == nil { - r.EncodeNil() - } else { - yym1449 := z.EncBinary() - _ = yym1449 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } - } - if yyr1446 || yy2arr1446 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1450 := z.DecBinary() - _ = yym1450 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1451 := r.ContainerType() - if yyct1451 == codecSelferValueTypeMap1234 { - yyl1451 := r.ReadMapStart() - if yyl1451 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1451, d) - } - } else if yyct1451 == codecSelferValueTypeArray1234 { - yyl1451 := r.ReadArrayStart() - if yyl1451 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1451, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1452Slc = r.DecodeBytes(yys1452Slc, true, true) - yys1452 := string(yys1452Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1452 { - case "command": - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv1453 := &x.Command - yym1454 := z.DecBinary() - _ = yym1454 - if false { - } else { - z.F.DecSliceStringX(yyv1453, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1452) - } // end switch yys1452 - } // end for yyj1452 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1455 int - var yyb1455 bool - var yyhl1455 bool = l >= 0 - yyj1455++ - if yyhl1455 { - yyb1455 = yyj1455 > l - } else { - yyb1455 = r.CheckBreak() - } - if yyb1455 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv1456 := &x.Command - yym1457 := z.DecBinary() - _ = yym1457 - if false { - } else { - z.F.DecSliceStringX(yyv1456, false, d) - } - } - for { - yyj1455++ - if yyhl1455 { - yyb1455 = yyj1455 > l - } else { - yyb1455 = r.CheckBreak() - } - if yyb1455 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1455-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1458 := z.EncBinary() - _ = yym1458 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1459 = 0 - for _, b := range yyq1459 { - if b { - yynn1459++ - } - } - r.EncodeMapStart(yynn1459) - yynn1459 = 0 - } - var yyn1460 bool - if x.Handler.Exec == nil { - yyn1460 = true - goto LABEL1460 - } - LABEL1460: - if yyr1459 || yy2arr1459 { - if yyn1460 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[0] { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq1459[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1460 { - r.EncodeNil() - } else { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } - } - } - } - var yyn1461 bool - if x.Handler.HTTPGet == nil { - yyn1461 = true - goto LABEL1461 - } - LABEL1461: - if yyr1459 || yy2arr1459 { - if yyn1461 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[1] { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq1459[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpGet")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1461 { - r.EncodeNil() - } else { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } - } - } - } - var yyn1462 bool - if x.Handler.TCPSocket == nil { - yyn1462 = true - goto LABEL1462 - } - LABEL1462: - if yyr1459 || yy2arr1459 { - if yyn1462 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[2] { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq1459[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1462 { - r.EncodeNil() - } else { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[3] { - yym1464 := z.EncBinary() - _ = yym1464 - if false { - } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1459[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1465 := z.EncBinary() - _ = yym1465 - if false { - } else { - r.EncodeInt(int64(x.InitialDelaySeconds)) - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[4] { - yym1467 := z.EncBinary() - _ = yym1467 - if false { - } else { - r.EncodeInt(int64(x.TimeoutSeconds)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1459[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1468 := z.EncBinary() - _ = yym1468 - if false { - } else { - r.EncodeInt(int64(x.TimeoutSeconds)) - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[5] { - yym1470 := z.EncBinary() - _ = yym1470 - if false { - } else { - r.EncodeInt(int64(x.PeriodSeconds)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1459[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1471 := z.EncBinary() - _ = yym1471 - if false { - } else { - r.EncodeInt(int64(x.PeriodSeconds)) - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[6] { - yym1473 := z.EncBinary() - _ = yym1473 - if false { - } else { - r.EncodeInt(int64(x.SuccessThreshold)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1459[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1474 := z.EncBinary() - _ = yym1474 - if false { - } else { - r.EncodeInt(int64(x.SuccessThreshold)) - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1459[7] { - yym1476 := z.EncBinary() - _ = yym1476 - if false { - } else { - r.EncodeInt(int64(x.FailureThreshold)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1459[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1477 := z.EncBinary() - _ = yym1477 - if false { - } else { - r.EncodeInt(int64(x.FailureThreshold)) - } - } - } - if yyr1459 || yy2arr1459 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1478 := z.DecBinary() - _ = yym1478 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1479 := r.ContainerType() - if yyct1479 == codecSelferValueTypeMap1234 { - yyl1479 := r.ReadMapStart() - if yyl1479 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1479, d) - } - } else if yyct1479 == codecSelferValueTypeArray1234 { - yyl1479 := r.ReadArrayStart() - if yyl1479 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1479, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1480Slc = r.DecodeBytes(yys1480Slc, true, true) - yys1480 := string(yys1480Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1480 { - case "exec": - if x.Handler.Exec == nil { - x.Handler.Exec = new(ExecAction) - } - if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } - } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - case "httpGet": - if x.Handler.HTTPGet == nil { - x.Handler.HTTPGet = new(HTTPGetAction) - } - if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } - } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - case "tcpSocket": - if x.Handler.TCPSocket == nil { - x.Handler.TCPSocket = new(TCPSocketAction) - } - if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } - } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) - } - case "initialDelaySeconds": - if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 - } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) - } - case "timeoutSeconds": - if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 - } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) - } - case "periodSeconds": - if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 - } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) - } - case "successThreshold": - if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 - } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) - } - case "failureThreshold": - if r.TryDecodeAsNil() { - x.FailureThreshold = 0 - } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys1480) - } // end switch yys1480 - } // end for yyj1480 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1489 int - var yyb1489 bool - var yyhl1489 bool = l >= 0 - if x.Handler.Exec == nil { - x.Handler.Exec = new(ExecAction) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } - } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - if x.Handler.HTTPGet == nil { - x.Handler.HTTPGet = new(HTTPGetAction) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } - } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - if x.Handler.TCPSocket == nil { - x.Handler.TCPSocket = new(TCPSocketAction) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } - } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.InitialDelaySeconds = 0 - } else { - x.InitialDelaySeconds = int32(r.DecodeInt(32)) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TimeoutSeconds = 0 - } else { - x.TimeoutSeconds = int32(r.DecodeInt(32)) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PeriodSeconds = 0 - } else { - x.PeriodSeconds = int32(r.DecodeInt(32)) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SuccessThreshold = 0 - } else { - x.SuccessThreshold = int32(r.DecodeInt(32)) - } - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FailureThreshold = 0 - } else { - x.FailureThreshold = int32(r.DecodeInt(32)) - } - for { - yyj1489++ - if yyhl1489 { - yyb1489 = yyj1489 > l - } else { - yyb1489 = r.CheckBreak() - } - if yyb1489 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1489-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1498 := z.EncBinary() - _ = yym1498 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1499 := z.DecBinary() - _ = yym1499 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1500 := z.EncBinary() - _ = yym1500 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1501 := z.DecBinary() - _ = yym1501 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1502 := z.EncBinary() - _ = yym1502 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1503 = 0 - for _, b := range yyq1503 { - if b { - yynn1503++ - } - } - r.EncodeMapStart(yynn1503) - yynn1503 = 0 - } - if yyr1503 || yy2arr1503 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1503[0] { - if x.Add == nil { - r.EncodeNil() - } else { - yym1505 := z.EncBinary() - _ = yym1505 - if false { - } else { - h.encSliceCapability(([]Capability)(x.Add), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1503[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("add")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Add == nil { - r.EncodeNil() - } else { - yym1506 := z.EncBinary() - _ = yym1506 - if false { - } else { - h.encSliceCapability(([]Capability)(x.Add), e) - } - } - } - } - if yyr1503 || yy2arr1503 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1503[1] { - if x.Drop == nil { - r.EncodeNil() - } else { - yym1508 := z.EncBinary() - _ = yym1508 - if false { - } else { - h.encSliceCapability(([]Capability)(x.Drop), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1503[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("drop")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Drop == nil { - r.EncodeNil() - } else { - yym1509 := z.EncBinary() - _ = yym1509 - if false { - } else { - h.encSliceCapability(([]Capability)(x.Drop), e) - } - } - } - } - if yyr1503 || yy2arr1503 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1510 := z.DecBinary() - _ = yym1510 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1511 := r.ContainerType() - if yyct1511 == codecSelferValueTypeMap1234 { - yyl1511 := r.ReadMapStart() - if yyl1511 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1511, d) - } - } else if yyct1511 == codecSelferValueTypeArray1234 { - yyl1511 := r.ReadArrayStart() - if yyl1511 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1511, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1512Slc = r.DecodeBytes(yys1512Slc, true, true) - yys1512 := string(yys1512Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1512 { - case "add": - if r.TryDecodeAsNil() { - x.Add = nil - } else { - yyv1513 := &x.Add - yym1514 := z.DecBinary() - _ = yym1514 - if false { - } else { - h.decSliceCapability((*[]Capability)(yyv1513), d) - } - } - case "drop": - if r.TryDecodeAsNil() { - x.Drop = nil - } else { - yyv1515 := &x.Drop - yym1516 := z.DecBinary() - _ = yym1516 - if false { - } else { - h.decSliceCapability((*[]Capability)(yyv1515), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1512) - } // end switch yys1512 - } // end for yyj1512 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1517 int - var yyb1517 bool - var yyhl1517 bool = l >= 0 - yyj1517++ - if yyhl1517 { - yyb1517 = yyj1517 > l - } else { - yyb1517 = r.CheckBreak() - } - if yyb1517 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Add = nil - } else { - yyv1518 := &x.Add - yym1519 := z.DecBinary() - _ = yym1519 - if false { - } else { - h.decSliceCapability((*[]Capability)(yyv1518), d) - } - } - yyj1517++ - if yyhl1517 { - yyb1517 = yyj1517 > l - } else { - yyb1517 = r.CheckBreak() - } - if yyb1517 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Drop = nil - } else { - yyv1520 := &x.Drop - yym1521 := z.DecBinary() - _ = yym1521 - if false { - } else { - h.decSliceCapability((*[]Capability)(yyv1520), d) - } - } - for { - yyj1517++ - if yyhl1517 { - yyb1517 = yyj1517 > l - } else { - yyb1517 = r.CheckBreak() - } - if yyb1517 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1517-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1522 := z.EncBinary() - _ = yym1522 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1523 = 0 - for _, b := range yyq1523 { - if b { - yynn1523++ - } - } - r.EncodeMapStart(yynn1523) - yynn1523 = 0 - } - if yyr1523 || yy2arr1523 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1523[0] { - if x.Limits == nil { - r.EncodeNil() - } else { - x.Limits.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1523[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("limits")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Limits == nil { - r.EncodeNil() - } else { - x.Limits.CodecEncodeSelf(e) - } - } - } - if yyr1523 || yy2arr1523 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1523[1] { - if x.Requests == nil { - r.EncodeNil() - } else { - x.Requests.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1523[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("requests")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Requests == nil { - r.EncodeNil() - } else { - x.Requests.CodecEncodeSelf(e) - } - } - } - if yyr1523 || yy2arr1523 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1526 := z.DecBinary() - _ = yym1526 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1527 := r.ContainerType() - if yyct1527 == codecSelferValueTypeMap1234 { - yyl1527 := r.ReadMapStart() - if yyl1527 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1527, d) - } - } else if yyct1527 == codecSelferValueTypeArray1234 { - yyl1527 := r.ReadArrayStart() - if yyl1527 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1527, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1528Slc = r.DecodeBytes(yys1528Slc, true, true) - yys1528 := string(yys1528Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1528 { - case "limits": - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv1529 := &x.Limits - yyv1529.CodecDecodeSelf(d) - } - case "requests": - if r.TryDecodeAsNil() { - x.Requests = nil - } else { - yyv1530 := &x.Requests - yyv1530.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1528) - } // end switch yys1528 - } // end for yyj1528 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1531 int - var yyb1531 bool - var yyhl1531 bool = l >= 0 - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l - } else { - yyb1531 = r.CheckBreak() - } - if yyb1531 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv1532 := &x.Limits - yyv1532.CodecDecodeSelf(d) - } - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l - } else { - yyb1531 = r.CheckBreak() - } - if yyb1531 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Requests = nil - } else { - yyv1533 := &x.Requests - yyv1533.CodecDecodeSelf(d) - } - for { - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l - } else { - yyb1531 = r.CheckBreak() - } - if yyb1531 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1531-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1534 := z.EncBinary() - _ = yym1534 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1535 = 3 - for _, b := range yyq1535 { - if b { - yynn1535++ - } - } - r.EncodeMapStart(yynn1535) - yynn1535 = 0 - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1537 := z.EncBinary() - _ = yym1537 - 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) - yym1538 := z.EncBinary() - _ = yym1538 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1540 := z.EncBinary() - _ = yym1540 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1541 := z.EncBinary() - _ = yym1541 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[2] { - if x.Command == nil { - r.EncodeNil() - } else { - yym1543 := z.EncBinary() - _ = yym1543 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("command")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Command == nil { - r.EncodeNil() - } else { - yym1544 := z.EncBinary() - _ = yym1544 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[3] { - if x.Args == nil { - r.EncodeNil() - } else { - yym1546 := z.EncBinary() - _ = yym1546 - if false { - } else { - z.F.EncSliceStringV(x.Args, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("args")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Args == nil { - r.EncodeNil() - } else { - yym1547 := z.EncBinary() - _ = yym1547 - if false { - } else { - z.F.EncSliceStringV(x.Args, false, e) - } - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[4] { - yym1549 := z.EncBinary() - _ = yym1549 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1535[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("workingDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1550 := z.EncBinary() - _ = yym1550 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[5] { - if x.Ports == nil { - r.EncodeNil() - } else { - yym1552 := z.EncBinary() - _ = yym1552 - if false { - } else { - h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ports")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym1553 := z.EncBinary() - _ = yym1553 - if false { - } else { - h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) - } - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[6] { - if x.Env == nil { - r.EncodeNil() - } else { - yym1555 := z.EncBinary() - _ = yym1555 - if false { - } else { - h.encSliceEnvVar(([]EnvVar)(x.Env), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("env")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Env == nil { - r.EncodeNil() - } else { - yym1556 := z.EncBinary() - _ = yym1556 - if false { - } else { - h.encSliceEnvVar(([]EnvVar)(x.Env), e) - } - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[7] { - yy1558 := &x.Resources - yy1558.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1535[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1559 := &x.Resources - yy1559.CodecEncodeSelf(e) - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[8] { - if x.VolumeMounts == nil { - r.EncodeNil() - } else { - yym1561 := z.EncBinary() - _ = yym1561 - if false { - } else { - h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VolumeMounts == nil { - r.EncodeNil() - } else { - yym1562 := z.EncBinary() - _ = yym1562 - if false { - } else { - h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) - } - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[9] { - if x.LivenessProbe == nil { - r.EncodeNil() - } else { - x.LivenessProbe.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LivenessProbe == nil { - r.EncodeNil() - } else { - x.LivenessProbe.CodecEncodeSelf(e) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[10] { - if x.ReadinessProbe == nil { - r.EncodeNil() - } else { - x.ReadinessProbe.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ReadinessProbe == nil { - r.EncodeNil() - } else { - x.ReadinessProbe.CodecEncodeSelf(e) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[11] { - if x.Lifecycle == nil { - r.EncodeNil() - } else { - x.Lifecycle.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Lifecycle == nil { - r.EncodeNil() - } else { - x.Lifecycle.CodecEncodeSelf(e) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[12] { - yym1567 := z.EncBinary() - _ = yym1567 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1535[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1568 := z.EncBinary() - _ = yym1568 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.ImagePullPolicy.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.ImagePullPolicy.CodecEncodeSelf(e) - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[14] { - if x.SecurityContext == nil { - r.EncodeNil() - } else { - x.SecurityContext.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1535[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("securityContext")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecurityContext == nil { - r.EncodeNil() - } else { - x.SecurityContext.CodecEncodeSelf(e) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[15] { - yym1572 := z.EncBinary() - _ = yym1572 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1535[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1573 := z.EncBinary() - _ = yym1573 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[16] { - yym1575 := z.EncBinary() - _ = yym1575 - if false { - } else { - r.EncodeBool(bool(x.StdinOnce)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1535[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1576 := z.EncBinary() - _ = yym1576 - if false { - } else { - r.EncodeBool(bool(x.StdinOnce)) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[17] { - yym1578 := z.EncBinary() - _ = yym1578 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1535[17] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tty")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1579 := z.EncBinary() - _ = yym1579 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } - } - if yyr1535 || yy2arr1535 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1580 := z.DecBinary() - _ = yym1580 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1581 := r.ContainerType() - if yyct1581 == codecSelferValueTypeMap1234 { - yyl1581 := r.ReadMapStart() - if yyl1581 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1581, d) - } - } else if yyct1581 == codecSelferValueTypeArray1234 { - yyl1581 := r.ReadArrayStart() - if yyl1581 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1581, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1582Slc = r.DecodeBytes(yys1582Slc, true, true) - yys1582 := string(yys1582Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1582 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "image": - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - case "command": - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv1585 := &x.Command - yym1586 := z.DecBinary() - _ = yym1586 - if false { - } else { - z.F.DecSliceStringX(yyv1585, false, d) - } - } - case "args": - if r.TryDecodeAsNil() { - x.Args = nil - } else { - yyv1587 := &x.Args - yym1588 := z.DecBinary() - _ = yym1588 - if false { - } else { - z.F.DecSliceStringX(yyv1587, false, d) - } - } - case "workingDir": - if r.TryDecodeAsNil() { - x.WorkingDir = "" - } else { - x.WorkingDir = string(r.DecodeString()) - } - case "ports": - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv1590 := &x.Ports - yym1591 := z.DecBinary() - _ = yym1591 - if false { - } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1590), d) - } - } - case "env": - if r.TryDecodeAsNil() { - x.Env = nil - } else { - yyv1592 := &x.Env - yym1593 := z.DecBinary() - _ = yym1593 - if false { - } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1592), d) - } - } - case "resources": - if r.TryDecodeAsNil() { - x.Resources = ResourceRequirements{} - } else { - yyv1594 := &x.Resources - yyv1594.CodecDecodeSelf(d) - } - case "volumeMounts": - if r.TryDecodeAsNil() { - x.VolumeMounts = nil - } else { - yyv1595 := &x.VolumeMounts - yym1596 := z.DecBinary() - _ = yym1596 - if false { - } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1595), d) - } - } - case "livenessProbe": - if r.TryDecodeAsNil() { - if x.LivenessProbe != nil { - x.LivenessProbe = nil - } - } else { - if x.LivenessProbe == nil { - x.LivenessProbe = new(Probe) - } - x.LivenessProbe.CodecDecodeSelf(d) - } - case "readinessProbe": - if r.TryDecodeAsNil() { - if x.ReadinessProbe != nil { - x.ReadinessProbe = nil - } - } else { - if x.ReadinessProbe == nil { - x.ReadinessProbe = new(Probe) - } - x.ReadinessProbe.CodecDecodeSelf(d) - } - case "lifecycle": - if r.TryDecodeAsNil() { - if x.Lifecycle != nil { - x.Lifecycle = nil - } - } else { - if x.Lifecycle == nil { - x.Lifecycle = new(Lifecycle) - } - x.Lifecycle.CodecDecodeSelf(d) - } - case "terminationMessagePath": - if r.TryDecodeAsNil() { - x.TerminationMessagePath = "" - } else { - x.TerminationMessagePath = string(r.DecodeString()) - } - case "imagePullPolicy": - if r.TryDecodeAsNil() { - x.ImagePullPolicy = "" - } else { - x.ImagePullPolicy = PullPolicy(r.DecodeString()) - } - case "securityContext": - if r.TryDecodeAsNil() { - if x.SecurityContext != nil { - x.SecurityContext = nil - } - } else { - if x.SecurityContext == nil { - x.SecurityContext = new(SecurityContext) - } - x.SecurityContext.CodecDecodeSelf(d) - } - case "stdin": - if r.TryDecodeAsNil() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - case "stdinOnce": - if r.TryDecodeAsNil() { - x.StdinOnce = false - } else { - x.StdinOnce = bool(r.DecodeBool()) - } - case "tty": - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys1582) - } // end switch yys1582 - } // end for yyj1582 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1606 int - var yyb1606 bool - var yyhl1606 bool = l >= 0 - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv1609 := &x.Command - yym1610 := z.DecBinary() - _ = yym1610 - if false { - } else { - z.F.DecSliceStringX(yyv1609, false, 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() { - x.Args = nil - } else { - yyv1611 := &x.Args - yym1612 := z.DecBinary() - _ = yym1612 - if false { - } else { - z.F.DecSliceStringX(yyv1611, false, 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() { - x.WorkingDir = "" - } else { - x.WorkingDir = string(r.DecodeString()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv1614 := &x.Ports - yym1615 := z.DecBinary() - _ = yym1615 - if false { - } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1614), 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() { - x.Env = nil - } else { - yyv1616 := &x.Env - yym1617 := z.DecBinary() - _ = yym1617 - if false { - } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1616), 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() { - x.Resources = ResourceRequirements{} - } else { - yyv1618 := &x.Resources - yyv1618.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() { - x.VolumeMounts = nil - } else { - yyv1619 := &x.VolumeMounts - yym1620 := z.DecBinary() - _ = yym1620 - if false { - } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1619), 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.LivenessProbe != nil { - x.LivenessProbe = nil - } - } else { - if x.LivenessProbe == nil { - x.LivenessProbe = new(Probe) - } - x.LivenessProbe.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.ReadinessProbe != nil { - x.ReadinessProbe = nil - } - } else { - if x.ReadinessProbe == nil { - x.ReadinessProbe = new(Probe) - } - x.ReadinessProbe.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.Lifecycle != nil { - x.Lifecycle = nil - } - } else { - if x.Lifecycle == nil { - x.Lifecycle = new(Lifecycle) - } - x.Lifecycle.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() { - x.TerminationMessagePath = "" - } else { - x.TerminationMessagePath = string(r.DecodeString()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImagePullPolicy = "" - } else { - x.ImagePullPolicy = PullPolicy(r.DecodeString()) - } - 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.SecurityContext != nil { - x.SecurityContext = nil - } - } else { - if x.SecurityContext == nil { - x.SecurityContext = new(SecurityContext) - } - x.SecurityContext.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() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.StdinOnce = false - } else { - x.StdinOnce = bool(r.DecodeBool()) - } - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - for { - yyj1606++ - if yyhl1606 { - yyb1606 = yyj1606 > l - } else { - yyb1606 = r.CheckBreak() - } - if yyb1606 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1606-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1630 := z.EncBinary() - _ = yym1630 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1631 = 0 - for _, b := range yyq1631 { - if b { - yynn1631++ - } - } - r.EncodeMapStart(yynn1631) - yynn1631 = 0 - } - if yyr1631 || yy2arr1631 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1631[0] { - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1631[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Exec == nil { - r.EncodeNil() - } else { - x.Exec.CodecEncodeSelf(e) - } - } - } - if yyr1631 || yy2arr1631 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1631[1] { - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1631[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpGet")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HTTPGet == nil { - r.EncodeNil() - } else { - x.HTTPGet.CodecEncodeSelf(e) - } - } - } - if yyr1631 || yy2arr1631 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1631[2] { - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1631[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TCPSocket == nil { - r.EncodeNil() - } else { - x.TCPSocket.CodecEncodeSelf(e) - } - } - } - if yyr1631 || yy2arr1631 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1635 := z.DecBinary() - _ = yym1635 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1636 := r.ContainerType() - if yyct1636 == codecSelferValueTypeMap1234 { - yyl1636 := r.ReadMapStart() - if yyl1636 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1636, d) - } - } else if yyct1636 == codecSelferValueTypeArray1234 { - yyl1636 := r.ReadArrayStart() - if yyl1636 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1636, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1637Slc = r.DecodeBytes(yys1637Slc, true, true) - yys1637 := string(yys1637Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1637 { - case "exec": - if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } - } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - case "httpGet": - if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } - } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - case "tcpSocket": - if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } - } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1637) - } // end switch yys1637 - } // end for yyj1637 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1641 int - var yyb1641 bool - var yyhl1641 bool = l >= 0 - yyj1641++ - if yyhl1641 { - yyb1641 = yyj1641 > l - } else { - yyb1641 = r.CheckBreak() - } - if yyb1641 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Exec != nil { - x.Exec = nil - } - } else { - if x.Exec == nil { - x.Exec = new(ExecAction) - } - x.Exec.CodecDecodeSelf(d) - } - yyj1641++ - if yyhl1641 { - yyb1641 = yyj1641 > l - } else { - yyb1641 = r.CheckBreak() - } - if yyb1641 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.HTTPGet != nil { - x.HTTPGet = nil - } - } else { - if x.HTTPGet == nil { - x.HTTPGet = new(HTTPGetAction) - } - x.HTTPGet.CodecDecodeSelf(d) - } - yyj1641++ - if yyhl1641 { - yyb1641 = yyj1641 > l - } else { - yyb1641 = r.CheckBreak() - } - if yyb1641 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.TCPSocket != nil { - x.TCPSocket = nil - } - } else { - if x.TCPSocket == nil { - x.TCPSocket = new(TCPSocketAction) - } - x.TCPSocket.CodecDecodeSelf(d) - } - for { - yyj1641++ - if yyhl1641 { - yyb1641 = yyj1641 > l - } else { - yyb1641 = r.CheckBreak() - } - if yyb1641 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1641-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1645 := z.EncBinary() - _ = yym1645 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1646 = 0 - for _, b := range yyq1646 { - if b { - yynn1646++ - } - } - r.EncodeMapStart(yynn1646) - yynn1646 = 0 - } - if yyr1646 || yy2arr1646 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1646[0] { - if x.PostStart == nil { - r.EncodeNil() - } else { - x.PostStart.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1646[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("postStart")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PostStart == nil { - r.EncodeNil() - } else { - x.PostStart.CodecEncodeSelf(e) - } - } - } - if yyr1646 || yy2arr1646 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1646[1] { - if x.PreStop == nil { - r.EncodeNil() - } else { - x.PreStop.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1646[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preStop")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreStop == nil { - r.EncodeNil() - } else { - x.PreStop.CodecEncodeSelf(e) - } - } - } - if yyr1646 || yy2arr1646 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1649 := z.DecBinary() - _ = yym1649 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1650 := r.ContainerType() - if yyct1650 == codecSelferValueTypeMap1234 { - yyl1650 := r.ReadMapStart() - if yyl1650 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1650, d) - } - } else if yyct1650 == codecSelferValueTypeArray1234 { - yyl1650 := r.ReadArrayStart() - if yyl1650 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1650, 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 yys1651Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1651Slc - var yyhl1651 bool = l >= 0 - for yyj1651 := 0; ; yyj1651++ { - if yyhl1651 { - if yyj1651 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1651Slc = r.DecodeBytes(yys1651Slc, true, true) - yys1651 := string(yys1651Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1651 { - 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, yys1651) - } // end switch yys1651 - } // end for yyj1651 - 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 yyj1654 int - var yyb1654 bool - var yyhl1654 bool = l >= 0 - 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.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++ - if yyhl1654 { - yyb1654 = yyj1654 > l - } else { - yyb1654 = r.CheckBreak() - } - if yyb1654 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1654-1, "") - } - 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_v1.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_v1.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) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1690 := z.EncBinary() - _ = yym1690 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1691 = 1 - for _, b := range yyq1691 { - if b { - yynn1691++ - } - } - r.EncodeMapStart(yynn1691) - yynn1691 = 0 - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1693 := z.EncBinary() - _ = yym1693 - if false { - } else { - r.EncodeInt(int64(x.ExitCode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exitCode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1694 := z.EncBinary() - _ = yym1694 - if false { - } else { - r.EncodeInt(int64(x.ExitCode)) - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[1] { - yym1696 := z.EncBinary() - _ = yym1696 - if false { - } else { - r.EncodeInt(int64(x.Signal)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq1691[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("signal")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1697 := z.EncBinary() - _ = yym1697 - if false { - } else { - r.EncodeInt(int64(x.Signal)) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[2] { - yym1699 := z.EncBinary() - _ = yym1699 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1691[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1700 := z.EncBinary() - _ = yym1700 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[3] { - yym1702 := z.EncBinary() - _ = yym1702 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1691[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1703 := z.EncBinary() - _ = yym1703 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[4] { - yy1705 := &x.StartedAt - yym1706 := z.EncBinary() - _ = yym1706 - if false { - } else if z.HasExtensions() && z.EncExt(yy1705) { - } else if yym1706 { - z.EncBinaryMarshal(yy1705) - } else if !yym1706 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1705) - } else { - z.EncFallback(yy1705) - } - } else { - r.EncodeNil() - } - } else { - if yyq1691[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1707 := &x.StartedAt - yym1708 := z.EncBinary() - _ = yym1708 - if false { - } else if z.HasExtensions() && z.EncExt(yy1707) { - } else if yym1708 { - z.EncBinaryMarshal(yy1707) - } else if !yym1708 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1707) - } else { - z.EncFallback(yy1707) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[5] { - yy1710 := &x.FinishedAt - yym1711 := z.EncBinary() - _ = yym1711 - if false { - } else if z.HasExtensions() && z.EncExt(yy1710) { - } else if yym1711 { - z.EncBinaryMarshal(yy1710) - } else if !yym1711 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1710) - } else { - z.EncFallback(yy1710) - } - } else { - r.EncodeNil() - } - } else { - if yyq1691[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1712 := &x.FinishedAt - yym1713 := z.EncBinary() - _ = yym1713 - if false { - } else if z.HasExtensions() && z.EncExt(yy1712) { - } else if yym1713 { - z.EncBinaryMarshal(yy1712) - } else if !yym1713 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1712) - } else { - z.EncFallback(yy1712) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[6] { - yym1715 := z.EncBinary() - _ = yym1715 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1691[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1716 := z.EncBinary() - _ = yym1716 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) - } - } - } - if yyr1691 || yy2arr1691 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1717 := z.DecBinary() - _ = yym1717 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1718 := r.ContainerType() - if yyct1718 == codecSelferValueTypeMap1234 { - yyl1718 := r.ReadMapStart() - if yyl1718 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1718, d) - } - } else if yyct1718 == codecSelferValueTypeArray1234 { - yyl1718 := r.ReadArrayStart() - if yyl1718 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1718, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1719Slc = r.DecodeBytes(yys1719Slc, true, true) - yys1719 := string(yys1719Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1719 { - case "exitCode": - if r.TryDecodeAsNil() { - x.ExitCode = 0 - } else { - x.ExitCode = int32(r.DecodeInt(32)) - } - case "signal": - if r.TryDecodeAsNil() { - x.Signal = 0 - } else { - x.Signal = int32(r.DecodeInt(32)) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "startedAt": - if r.TryDecodeAsNil() { - x.StartedAt = pkg2_v1.Time{} - } else { - yyv1724 := &x.StartedAt - yym1725 := z.DecBinary() - _ = yym1725 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1724) { - } else if yym1725 { - z.DecBinaryUnmarshal(yyv1724) - } else if !yym1725 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1724) - } else { - z.DecFallback(yyv1724, false) - } - } - case "finishedAt": - if r.TryDecodeAsNil() { - x.FinishedAt = pkg2_v1.Time{} - } else { - yyv1726 := &x.FinishedAt - yym1727 := z.DecBinary() - _ = yym1727 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1726) { - } else if yym1727 { - z.DecBinaryUnmarshal(yyv1726) - } else if !yym1727 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1726) - } else { - z.DecFallback(yyv1726, false) - } - } - case "containerID": - if r.TryDecodeAsNil() { - x.ContainerID = "" - } else { - x.ContainerID = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1719) - } // end switch yys1719 - } // end for yyj1719 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1729 int - var yyb1729 bool - var yyhl1729 bool = l >= 0 - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExitCode = 0 - } else { - x.ExitCode = int32(r.DecodeInt(32)) - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Signal = 0 - } else { - x.Signal = int32(r.DecodeInt(32)) - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.StartedAt = pkg2_v1.Time{} - } else { - yyv1734 := &x.StartedAt - yym1735 := z.DecBinary() - _ = yym1735 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1734) { - } else if yym1735 { - z.DecBinaryUnmarshal(yyv1734) - } else if !yym1735 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1734) - } else { - z.DecFallback(yyv1734, false) - } - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FinishedAt = pkg2_v1.Time{} - } else { - yyv1736 := &x.FinishedAt - yym1737 := z.DecBinary() - _ = yym1737 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1736) { - } else if yym1737 { - z.DecBinaryUnmarshal(yyv1736) - } else if !yym1737 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1736) - } else { - z.DecFallback(yyv1736, false) - } - } - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerID = "" - } else { - x.ContainerID = string(r.DecodeString()) - } - for { - yyj1729++ - if yyhl1729 { - yyb1729 = yyj1729 > l - } else { - yyb1729 = r.CheckBreak() - } - if yyb1729 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1729-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1739 := z.EncBinary() - _ = yym1739 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1740 = 0 - for _, b := range yyq1740 { - if b { - yynn1740++ - } - } - r.EncodeMapStart(yynn1740) - yynn1740 = 0 - } - if yyr1740 || yy2arr1740 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1740[0] { - if x.Waiting == nil { - r.EncodeNil() - } else { - x.Waiting.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1740[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("waiting")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Waiting == nil { - r.EncodeNil() - } else { - x.Waiting.CodecEncodeSelf(e) - } - } - } - if yyr1740 || yy2arr1740 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1740[1] { - if x.Running == nil { - r.EncodeNil() - } else { - x.Running.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1740[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("running")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Running == nil { - r.EncodeNil() - } else { - x.Running.CodecEncodeSelf(e) - } - } - } - if yyr1740 || yy2arr1740 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1740[2] { - if x.Terminated == nil { - r.EncodeNil() - } else { - x.Terminated.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1740[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminated")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Terminated == nil { - r.EncodeNil() - } else { - x.Terminated.CodecEncodeSelf(e) - } - } - } - if yyr1740 || yy2arr1740 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1744 := z.DecBinary() - _ = yym1744 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1745 := r.ContainerType() - if yyct1745 == codecSelferValueTypeMap1234 { - yyl1745 := r.ReadMapStart() - if yyl1745 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1745, d) - } - } else if yyct1745 == codecSelferValueTypeArray1234 { - yyl1745 := r.ReadArrayStart() - if yyl1745 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1745, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1746Slc = r.DecodeBytes(yys1746Slc, true, true) - yys1746 := string(yys1746Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1746 { - case "waiting": - if r.TryDecodeAsNil() { - if x.Waiting != nil { - x.Waiting = nil - } - } else { - if x.Waiting == nil { - x.Waiting = new(ContainerStateWaiting) - } - x.Waiting.CodecDecodeSelf(d) - } - case "running": - if r.TryDecodeAsNil() { - if x.Running != nil { - x.Running = nil - } - } else { - if x.Running == nil { - x.Running = new(ContainerStateRunning) - } - x.Running.CodecDecodeSelf(d) - } - case "terminated": - if r.TryDecodeAsNil() { - if x.Terminated != nil { - x.Terminated = nil - } - } else { - if x.Terminated == nil { - x.Terminated = new(ContainerStateTerminated) - } - x.Terminated.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1746) - } // end switch yys1746 - } // end for yyj1746 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1750 int - var yyb1750 bool - var yyhl1750 bool = l >= 0 - yyj1750++ - if yyhl1750 { - yyb1750 = yyj1750 > l - } else { - yyb1750 = r.CheckBreak() - } - if yyb1750 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Waiting != nil { - x.Waiting = nil - } - } else { - if x.Waiting == nil { - x.Waiting = new(ContainerStateWaiting) - } - x.Waiting.CodecDecodeSelf(d) - } - yyj1750++ - if yyhl1750 { - yyb1750 = yyj1750 > l - } else { - yyb1750 = r.CheckBreak() - } - if yyb1750 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Running != nil { - x.Running = nil - } - } else { - if x.Running == nil { - x.Running = new(ContainerStateRunning) - } - x.Running.CodecDecodeSelf(d) - } - yyj1750++ - if yyhl1750 { - yyb1750 = yyj1750 > l - } else { - yyb1750 = r.CheckBreak() - } - if yyb1750 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Terminated != nil { - x.Terminated = nil - } - } else { - if x.Terminated == nil { - x.Terminated = new(ContainerStateTerminated) - } - x.Terminated.CodecDecodeSelf(d) - } - for { - yyj1750++ - if yyhl1750 { - yyb1750 = yyj1750 > l - } else { - yyb1750 = r.CheckBreak() - } - if yyb1750 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1750-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1754 := z.EncBinary() - _ = yym1754 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1755 = 5 - for _, b := range yyq1755 { - if b { - yynn1755++ - } - } - r.EncodeMapStart(yynn1755) - yynn1755 = 0 - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1757 := z.EncBinary() - _ = yym1757 - 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) - yym1758 := z.EncBinary() - _ = yym1758 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[1] { - yy1760 := &x.State - yy1760.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1755[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("state")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1761 := &x.State - yy1761.CodecEncodeSelf(e) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[2] { - yy1763 := &x.LastTerminationState - yy1763.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1755[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastState")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1764 := &x.LastTerminationState - yy1764.CodecEncodeSelf(e) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1766 := z.EncBinary() - _ = yym1766 - if false { - } else { - r.EncodeBool(bool(x.Ready)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ready")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1767 := z.EncBinary() - _ = yym1767 - if false { - } else { - r.EncodeBool(bool(x.Ready)) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1769 := z.EncBinary() - _ = yym1769 - if false { - } else { - r.EncodeInt(int64(x.RestartCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("restartCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1770 := z.EncBinary() - _ = yym1770 - if false { - } else { - r.EncodeInt(int64(x.RestartCount)) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1772 := z.EncBinary() - _ = yym1772 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1773 := z.EncBinary() - _ = yym1773 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1775 := z.EncBinary() - _ = yym1775 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1776 := z.EncBinary() - _ = yym1776 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[7] { - yym1778 := z.EncBinary() - _ = yym1778 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1755[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1779 := z.EncBinary() - _ = yym1779 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) - } - } - } - if yyr1755 || yy2arr1755 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1780 := z.DecBinary() - _ = yym1780 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1781 := r.ContainerType() - if yyct1781 == codecSelferValueTypeMap1234 { - yyl1781 := r.ReadMapStart() - if yyl1781 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1781, d) - } - } else if yyct1781 == codecSelferValueTypeArray1234 { - yyl1781 := r.ReadArrayStart() - if yyl1781 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1781, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1782Slc = r.DecodeBytes(yys1782Slc, true, true) - yys1782 := string(yys1782Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1782 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "state": - if r.TryDecodeAsNil() { - x.State = ContainerState{} - } else { - yyv1784 := &x.State - yyv1784.CodecDecodeSelf(d) - } - case "lastState": - if r.TryDecodeAsNil() { - x.LastTerminationState = ContainerState{} - } else { - yyv1785 := &x.LastTerminationState - yyv1785.CodecDecodeSelf(d) - } - case "ready": - if r.TryDecodeAsNil() { - x.Ready = false - } else { - x.Ready = bool(r.DecodeBool()) - } - case "restartCount": - if r.TryDecodeAsNil() { - x.RestartCount = 0 - } else { - x.RestartCount = int32(r.DecodeInt(32)) - } - case "image": - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - case "imageID": - if r.TryDecodeAsNil() { - x.ImageID = "" - } else { - x.ImageID = string(r.DecodeString()) - } - case "containerID": - if r.TryDecodeAsNil() { - x.ContainerID = "" - } else { - x.ContainerID = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1782) - } // end switch yys1782 - } // end for yyj1782 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1791 int - var yyb1791 bool - var yyhl1791 bool = l >= 0 - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.State = ContainerState{} - } else { - yyv1793 := &x.State - yyv1793.CodecDecodeSelf(d) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTerminationState = ContainerState{} - } else { - yyv1794 := &x.LastTerminationState - yyv1794.CodecDecodeSelf(d) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ready = false - } else { - x.Ready = bool(r.DecodeBool()) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RestartCount = 0 - } else { - x.RestartCount = int32(r.DecodeInt(32)) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageID = "" - } else { - x.ImageID = string(r.DecodeString()) - } - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerID = "" - } else { - x.ContainerID = string(r.DecodeString()) - } - for { - yyj1791++ - if yyhl1791 { - yyb1791 = yyj1791 > l - } else { - yyb1791 = r.CheckBreak() - } - if yyb1791 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1791-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1800 := z.EncBinary() - _ = yym1800 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1801 := z.DecBinary() - _ = yym1801 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1802 := z.EncBinary() - _ = yym1802 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1803 := z.DecBinary() - _ = yym1803 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1804 := z.EncBinary() - _ = yym1804 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1805 = 2 - for _, b := range yyq1805 { - if b { - yynn1805++ - } - } - r.EncodeMapStart(yynn1805) - yynn1805 = 0 - } - if yyr1805 || yy2arr1805 { - 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 yyr1805 || yy2arr1805 { - 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 yyr1805 || yy2arr1805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1805[2] { - yy1809 := &x.LastProbeTime - yym1810 := z.EncBinary() - _ = yym1810 - if false { - } else if z.HasExtensions() && z.EncExt(yy1809) { - } else if yym1810 { - z.EncBinaryMarshal(yy1809) - } else if !yym1810 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1809) - } else { - z.EncFallback(yy1809) - } - } else { - r.EncodeNil() - } - } else { - if yyq1805[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1811 := &x.LastProbeTime - yym1812 := z.EncBinary() - _ = yym1812 - if false { - } else if z.HasExtensions() && z.EncExt(yy1811) { - } else if yym1812 { - z.EncBinaryMarshal(yy1811) - } else if !yym1812 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1811) - } else { - z.EncFallback(yy1811) - } - } - } - if yyr1805 || yy2arr1805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1805[3] { - yy1814 := &x.LastTransitionTime - yym1815 := z.EncBinary() - _ = yym1815 - if false { - } else if z.HasExtensions() && z.EncExt(yy1814) { - } else if yym1815 { - z.EncBinaryMarshal(yy1814) - } else if !yym1815 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1814) - } else { - z.EncFallback(yy1814) - } - } else { - r.EncodeNil() - } - } else { - if yyq1805[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1816 := &x.LastTransitionTime - yym1817 := z.EncBinary() - _ = yym1817 - if false { - } else if z.HasExtensions() && z.EncExt(yy1816) { - } else if yym1817 { - z.EncBinaryMarshal(yy1816) - } else if !yym1817 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1816) - } else { - z.EncFallback(yy1816) - } - } - } - if yyr1805 || yy2arr1805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1805[4] { - yym1819 := z.EncBinary() - _ = yym1819 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1805[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1820 := z.EncBinary() - _ = yym1820 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr1805 || yy2arr1805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1805[5] { - yym1822 := z.EncBinary() - _ = yym1822 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1805[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1823 := z.EncBinary() - _ = yym1823 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr1805 || yy2arr1805 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1824 := z.DecBinary() - _ = yym1824 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1825 := r.ContainerType() - if yyct1825 == codecSelferValueTypeMap1234 { - yyl1825 := r.ReadMapStart() - if yyl1825 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1825, d) - } - } else if yyct1825 == codecSelferValueTypeArray1234 { - yyl1825 := r.ReadArrayStart() - if yyl1825 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1825, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1826Slc = r.DecodeBytes(yys1826Slc, true, true) - yys1826 := string(yys1826Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1826 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = PodConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "lastProbeTime": - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg2_v1.Time{} - } else { - yyv1829 := &x.LastProbeTime - yym1830 := z.DecBinary() - _ = yym1830 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1829) { - } else if yym1830 { - z.DecBinaryUnmarshal(yyv1829) - } else if !yym1830 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1829) - } else { - z.DecFallback(yyv1829, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv1831 := &x.LastTransitionTime - yym1832 := z.DecBinary() - _ = yym1832 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1831) { - } else if yym1832 { - z.DecBinaryUnmarshal(yyv1831) - } else if !yym1832 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1831) - } else { - z.DecFallback(yyv1831, 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, yys1826) - } // end switch yys1826 - } // end for yyj1826 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1835 int - var yyb1835 bool - var yyhl1835 bool = l >= 0 - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = PodConditionType(r.DecodeString()) - } - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg2_v1.Time{} - } else { - yyv1838 := &x.LastProbeTime - yym1839 := z.DecBinary() - _ = yym1839 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1838) { - } else if yym1839 { - z.DecBinaryUnmarshal(yyv1838) - } else if !yym1839 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1838) - } else { - z.DecFallback(yyv1838, false) - } - } - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv1840 := &x.LastTransitionTime - yym1841 := z.DecBinary() - _ = yym1841 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1840) { - } else if yym1841 { - z.DecBinaryUnmarshal(yyv1840) - } else if !yym1841 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1840) - } else { - z.DecFallback(yyv1840, false) - } - } - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj1835++ - if yyhl1835 { - yyb1835 = yyj1835 > l - } else { - yyb1835 = r.CheckBreak() - } - if yyb1835 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1835-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1844 := z.EncBinary() - _ = yym1844 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1845 := z.DecBinary() - _ = yym1845 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1846 := z.EncBinary() - _ = yym1846 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1847 = 1 - for _, b := range yyq1847 { - if b { - yynn1847++ - } - } - r.EncodeMapStart(yynn1847) - yynn1847 = 0 - } - if yyr1847 || yy2arr1847 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1847[0] { - yym1849 := z.EncBinary() - _ = yym1849 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1847[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1850 := z.EncBinary() - _ = yym1850 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1847 || yy2arr1847 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1847[1] { - yym1852 := z.EncBinary() - _ = yym1852 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1847[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1853 := z.EncBinary() - _ = yym1853 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1847 || yy2arr1847 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1847[2] { - yy1855 := &x.ListMeta - yym1856 := z.EncBinary() - _ = yym1856 - if false { - } else if z.HasExtensions() && z.EncExt(yy1855) { - } else { - z.EncFallback(yy1855) - } - } else { - r.EncodeNil() - } - } else { - if yyq1847[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1857 := &x.ListMeta - yym1858 := z.EncBinary() - _ = yym1858 - if false { - } else if z.HasExtensions() && z.EncExt(yy1857) { - } else { - z.EncFallback(yy1857) - } - } - } - if yyr1847 || yy2arr1847 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1860 := z.EncBinary() - _ = yym1860 - if false { - } else { - h.encSlicePod(([]Pod)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1861 := z.EncBinary() - _ = yym1861 - if false { - } else { - h.encSlicePod(([]Pod)(x.Items), e) - } - } - } - if yyr1847 || yy2arr1847 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1862 := z.DecBinary() - _ = yym1862 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1863 := r.ContainerType() - if yyct1863 == codecSelferValueTypeMap1234 { - yyl1863 := r.ReadMapStart() - if yyl1863 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1863, d) - } - } else if yyct1863 == codecSelferValueTypeArray1234 { - yyl1863 := r.ReadArrayStart() - if yyl1863 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1863, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1864Slc = r.DecodeBytes(yys1864Slc, true, true) - yys1864 := string(yys1864Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1864 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv1867 := &x.ListMeta - yym1868 := z.DecBinary() - _ = yym1868 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1867) { - } else { - z.DecFallback(yyv1867, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1869 := &x.Items - yym1870 := z.DecBinary() - _ = yym1870 - if false { - } else { - h.decSlicePod((*[]Pod)(yyv1869), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1864) - } // end switch yys1864 - } // end for yyj1864 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1871 int - var yyb1871 bool - var yyhl1871 bool = l >= 0 - yyj1871++ - if yyhl1871 { - yyb1871 = yyj1871 > l - } else { - yyb1871 = r.CheckBreak() - } - if yyb1871 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1871++ - if yyhl1871 { - yyb1871 = yyj1871 > l - } else { - yyb1871 = r.CheckBreak() - } - if yyb1871 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1871++ - if yyhl1871 { - yyb1871 = yyj1871 > l - } else { - yyb1871 = r.CheckBreak() - } - if yyb1871 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv1874 := &x.ListMeta - yym1875 := z.DecBinary() - _ = yym1875 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1874) { - } else { - z.DecFallback(yyv1874, false) - } - } - yyj1871++ - if yyhl1871 { - yyb1871 = yyj1871 > l - } else { - yyb1871 = r.CheckBreak() - } - if yyb1871 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1876 := &x.Items - yym1877 := z.DecBinary() - _ = yym1877 - if false { - } else { - h.decSlicePod((*[]Pod)(yyv1876), d) - } - } - for { - yyj1871++ - if yyhl1871 { - yyb1871 = yyj1871 > l - } else { - yyb1871 = r.CheckBreak() - } - if yyb1871 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1871-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1878 := z.EncBinary() - _ = yym1878 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1879 := z.DecBinary() - _ = yym1879 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1880 := z.EncBinary() - _ = yym1880 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1881 = 1 - for _, b := range yyq1881 { - if b { - yynn1881++ - } - } - r.EncodeMapStart(yynn1881) - yynn1881 = 0 - } - if yyr1881 || yy2arr1881 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NodeSelectorTerms == nil { - r.EncodeNil() - } else { - yym1883 := z.EncBinary() - _ = yym1883 - if false { - } else { - h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NodeSelectorTerms == nil { - r.EncodeNil() - } else { - yym1884 := z.EncBinary() - _ = yym1884 - if false { - } else { - h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) - } - } - } - if yyr1881 || yy2arr1881 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1885 := z.DecBinary() - _ = yym1885 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1886 := r.ContainerType() - if yyct1886 == codecSelferValueTypeMap1234 { - yyl1886 := r.ReadMapStart() - if yyl1886 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1886, d) - } - } else if yyct1886 == codecSelferValueTypeArray1234 { - yyl1886 := r.ReadArrayStart() - if yyl1886 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1886, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1887Slc = r.DecodeBytes(yys1887Slc, true, true) - yys1887 := string(yys1887Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1887 { - case "nodeSelectorTerms": - if r.TryDecodeAsNil() { - x.NodeSelectorTerms = nil - } else { - yyv1888 := &x.NodeSelectorTerms - yym1889 := z.DecBinary() - _ = yym1889 - if false { - } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1888), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1887) - } // end switch yys1887 - } // end for yyj1887 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1890 int - var yyb1890 bool - var yyhl1890 bool = l >= 0 - yyj1890++ - if yyhl1890 { - yyb1890 = yyj1890 > l - } else { - yyb1890 = r.CheckBreak() - } - if yyb1890 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeSelectorTerms = nil - } else { - yyv1891 := &x.NodeSelectorTerms - yym1892 := z.DecBinary() - _ = yym1892 - if false { - } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1891), d) - } - } - for { - yyj1890++ - if yyhl1890 { - yyb1890 = yyj1890 > l - } else { - yyb1890 = r.CheckBreak() - } - if yyb1890 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1890-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1893 := z.EncBinary() - _ = yym1893 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1894 = 1 - for _, b := range yyq1894 { - if b { - yynn1894++ - } - } - r.EncodeMapStart(yynn1894) - yynn1894 = 0 - } - if yyr1894 || yy2arr1894 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym1896 := z.EncBinary() - _ = yym1896 - if false { - } else { - h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym1897 := z.EncBinary() - _ = yym1897 - if false { - } else { - h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) - } - } - } - if yyr1894 || yy2arr1894 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1898 := z.DecBinary() - _ = yym1898 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1899 := r.ContainerType() - if yyct1899 == codecSelferValueTypeMap1234 { - yyl1899 := r.ReadMapStart() - if yyl1899 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1899, d) - } - } else if yyct1899 == codecSelferValueTypeArray1234 { - yyl1899 := r.ReadArrayStart() - if yyl1899 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1899, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1900Slc = r.DecodeBytes(yys1900Slc, true, true) - yys1900 := string(yys1900Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1900 { - case "matchExpressions": - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv1901 := &x.MatchExpressions - yym1902 := z.DecBinary() - _ = yym1902 - if false { - } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1901), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1900) - } // end switch yys1900 - } // end for yyj1900 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1903 int - var yyb1903 bool - var yyhl1903 bool = l >= 0 - yyj1903++ - if yyhl1903 { - yyb1903 = yyj1903 > l - } else { - yyb1903 = r.CheckBreak() - } - if yyb1903 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv1904 := &x.MatchExpressions - yym1905 := z.DecBinary() - _ = yym1905 - if false { - } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1904), d) - } - } - for { - yyj1903++ - if yyhl1903 { - yyb1903 = yyj1903 > l - } else { - yyb1903 = r.CheckBreak() - } - if yyb1903 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1903-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1906 := z.EncBinary() - _ = yym1906 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1907 = 2 - for _, b := range yyq1907 { - if b { - yynn1907++ - } - } - r.EncodeMapStart(yynn1907) - yynn1907 = 0 - } - if yyr1907 || yy2arr1907 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1909 := z.EncBinary() - _ = yym1909 - 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) - yym1910 := z.EncBinary() - _ = yym1910 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr1907 || yy2arr1907 { - 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 yyr1907 || yy2arr1907 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1907[2] { - if x.Values == nil { - r.EncodeNil() - } else { - yym1913 := z.EncBinary() - _ = yym1913 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1907[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("values")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Values == nil { - r.EncodeNil() - } else { - yym1914 := z.EncBinary() - _ = yym1914 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } - } - if yyr1907 || yy2arr1907 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1915 := z.DecBinary() - _ = yym1915 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1916 := r.ContainerType() - if yyct1916 == codecSelferValueTypeMap1234 { - yyl1916 := r.ReadMapStart() - if yyl1916 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1916, d) - } - } else if yyct1916 == codecSelferValueTypeArray1234 { - yyl1916 := r.ReadArrayStart() - if yyl1916 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1916, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1917Slc = r.DecodeBytes(yys1917Slc, true, true) - yys1917 := string(yys1917Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1917 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "operator": - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = NodeSelectorOperator(r.DecodeString()) - } - case "values": - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv1920 := &x.Values - yym1921 := z.DecBinary() - _ = yym1921 - if false { - } else { - z.F.DecSliceStringX(yyv1920, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1917) - } // end switch yys1917 - } // end for yyj1917 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1922 int - var yyb1922 bool - var yyhl1922 bool = l >= 0 - yyj1922++ - if yyhl1922 { - yyb1922 = yyj1922 > l - } else { - yyb1922 = r.CheckBreak() - } - if yyb1922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj1922++ - if yyhl1922 { - yyb1922 = yyj1922 > l - } else { - yyb1922 = r.CheckBreak() - } - if yyb1922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = NodeSelectorOperator(r.DecodeString()) - } - yyj1922++ - if yyhl1922 { - yyb1922 = yyj1922 > l - } else { - yyb1922 = r.CheckBreak() - } - if yyb1922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv1925 := &x.Values - yym1926 := z.DecBinary() - _ = yym1926 - if false { - } else { - z.F.DecSliceStringX(yyv1925, false, d) - } - } - for { - yyj1922++ - if yyhl1922 { - yyb1922 = yyj1922 > l - } else { - yyb1922 = r.CheckBreak() - } - if yyb1922 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1922-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1927 := z.EncBinary() - _ = yym1927 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1928 := z.DecBinary() - _ = yym1928 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1929 := z.EncBinary() - _ = yym1929 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1930 = 0 - for _, b := range yyq1930 { - if b { - yynn1930++ - } - } - r.EncodeMapStart(yynn1930) - yynn1930 = 0 - } - if yyr1930 || yy2arr1930 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1930[0] { - if x.NodeAffinity == nil { - r.EncodeNil() - } else { - x.NodeAffinity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1930[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NodeAffinity == nil { - r.EncodeNil() - } else { - x.NodeAffinity.CodecEncodeSelf(e) - } - } - } - if yyr1930 || yy2arr1930 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1930[1] { - if x.PodAffinity == nil { - r.EncodeNil() - } else { - x.PodAffinity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1930[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PodAffinity == nil { - r.EncodeNil() - } else { - x.PodAffinity.CodecEncodeSelf(e) - } - } - } - if yyr1930 || yy2arr1930 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1930[2] { - if x.PodAntiAffinity == nil { - r.EncodeNil() - } else { - x.PodAntiAffinity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1930[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PodAntiAffinity == nil { - r.EncodeNil() - } else { - x.PodAntiAffinity.CodecEncodeSelf(e) - } - } - } - if yyr1930 || yy2arr1930 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1934 := z.DecBinary() - _ = yym1934 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1935 := r.ContainerType() - if yyct1935 == codecSelferValueTypeMap1234 { - yyl1935 := r.ReadMapStart() - if yyl1935 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1935, d) - } - } else if yyct1935 == codecSelferValueTypeArray1234 { - yyl1935 := r.ReadArrayStart() - if yyl1935 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1935, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1936Slc = r.DecodeBytes(yys1936Slc, true, true) - yys1936 := string(yys1936Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1936 { - case "nodeAffinity": - if r.TryDecodeAsNil() { - if x.NodeAffinity != nil { - x.NodeAffinity = nil - } - } else { - if x.NodeAffinity == nil { - x.NodeAffinity = new(NodeAffinity) - } - x.NodeAffinity.CodecDecodeSelf(d) - } - case "podAffinity": - if r.TryDecodeAsNil() { - if x.PodAffinity != nil { - x.PodAffinity = nil - } - } else { - if x.PodAffinity == nil { - x.PodAffinity = new(PodAffinity) - } - x.PodAffinity.CodecDecodeSelf(d) - } - case "podAntiAffinity": - if r.TryDecodeAsNil() { - if x.PodAntiAffinity != nil { - x.PodAntiAffinity = nil - } - } else { - if x.PodAntiAffinity == nil { - x.PodAntiAffinity = new(PodAntiAffinity) - } - x.PodAntiAffinity.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1936) - } // end switch yys1936 - } // end for yyj1936 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1940 int - var yyb1940 bool - var yyhl1940 bool = l >= 0 - yyj1940++ - if yyhl1940 { - yyb1940 = yyj1940 > l - } else { - yyb1940 = r.CheckBreak() - } - if yyb1940 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.NodeAffinity != nil { - x.NodeAffinity = nil - } - } else { - if x.NodeAffinity == nil { - x.NodeAffinity = new(NodeAffinity) - } - x.NodeAffinity.CodecDecodeSelf(d) - } - yyj1940++ - if yyhl1940 { - yyb1940 = yyj1940 > l - } else { - yyb1940 = r.CheckBreak() - } - if yyb1940 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.PodAffinity != nil { - x.PodAffinity = nil - } - } else { - if x.PodAffinity == nil { - x.PodAffinity = new(PodAffinity) - } - x.PodAffinity.CodecDecodeSelf(d) - } - yyj1940++ - if yyhl1940 { - yyb1940 = yyj1940 > l - } else { - yyb1940 = r.CheckBreak() - } - if yyb1940 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.PodAntiAffinity != nil { - x.PodAntiAffinity = nil - } - } else { - if x.PodAntiAffinity == nil { - x.PodAntiAffinity = new(PodAntiAffinity) - } - x.PodAntiAffinity.CodecDecodeSelf(d) - } - for { - yyj1940++ - if yyhl1940 { - yyb1940 = yyj1940 > l - } else { - yyb1940 = r.CheckBreak() - } - if yyb1940 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1940-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1944 := z.EncBinary() - _ = yym1944 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1945 = 0 - for _, b := range yyq1945 { - if b { - yynn1945++ - } - } - r.EncodeMapStart(yynn1945) - yynn1945 = 0 - } - if yyr1945 || yy2arr1945 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1945[0] { - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1947 := z.EncBinary() - _ = yym1947 - if false { - } else { - h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1945[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1948 := z.EncBinary() - _ = yym1948 - if false { - } else { - h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) - } - } - } - } - if yyr1945 || yy2arr1945 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1945[1] { - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1950 := z.EncBinary() - _ = yym1950 - if false { - } else { - h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1945[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1951 := z.EncBinary() - _ = yym1951 - if false { - } else { - h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } - } - if yyr1945 || yy2arr1945 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1952 := z.DecBinary() - _ = yym1952 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1953 := r.ContainerType() - if yyct1953 == codecSelferValueTypeMap1234 { - yyl1953 := r.ReadMapStart() - if yyl1953 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1953, d) - } - } else if yyct1953 == codecSelferValueTypeArray1234 { - yyl1953 := r.ReadArrayStart() - if yyl1953 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1953, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1954Slc = r.DecodeBytes(yys1954Slc, true, true) - yys1954 := string(yys1954Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1954 { - case "requiredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1955 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1956 := z.DecBinary() - _ = yym1956 - if false { - } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1955), d) - } - } - case "preferredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1957 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1958 := z.DecBinary() - _ = yym1958 - if false { - } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1957), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1954) - } // end switch yys1954 - } // end for yyj1954 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1959 int - var yyb1959 bool - var yyhl1959 bool = l >= 0 - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l - } else { - yyb1959 = r.CheckBreak() - } - if yyb1959 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1960 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1961 := z.DecBinary() - _ = yym1961 - if false { - } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1960), d) - } - } - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l - } else { - yyb1959 = r.CheckBreak() - } - if yyb1959 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1962 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1963 := z.DecBinary() - _ = yym1963 - if false { - } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1962), d) - } - } - for { - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l - } else { - yyb1959 = r.CheckBreak() - } - if yyb1959 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1959-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1964 := z.EncBinary() - _ = yym1964 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1965 = 0 - for _, b := range yyq1965 { - if b { - yynn1965++ - } - } - r.EncodeMapStart(yynn1965) - yynn1965 = 0 - } - if yyr1965 || yy2arr1965 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1965[0] { - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1967 := z.EncBinary() - _ = yym1967 - if false { - } else { - h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1965[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1968 := z.EncBinary() - _ = yym1968 - if false { - } else { - h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) - } - } - } - } - if yyr1965 || yy2arr1965 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1965[1] { - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1970 := z.EncBinary() - _ = yym1970 - if false { - } else { - h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1965[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym1971 := z.EncBinary() - _ = yym1971 - if false { - } else { - h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } - } - if yyr1965 || yy2arr1965 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1972 := z.DecBinary() - _ = yym1972 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1973 := r.ContainerType() - if yyct1973 == codecSelferValueTypeMap1234 { - yyl1973 := r.ReadMapStart() - if yyl1973 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1973, d) - } - } else if yyct1973 == codecSelferValueTypeArray1234 { - yyl1973 := r.ReadArrayStart() - if yyl1973 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1973, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1974Slc = r.DecodeBytes(yys1974Slc, true, true) - yys1974 := string(yys1974Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1974 { - case "requiredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1975 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1976 := z.DecBinary() - _ = yym1976 - if false { - } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1975), d) - } - } - case "preferredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1977 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1978 := z.DecBinary() - _ = yym1978 - if false { - } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1977), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1974) - } // end switch yys1974 - } // end for yyj1974 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1979 int - var yyb1979 bool - var yyhl1979 bool = l >= 0 - yyj1979++ - if yyhl1979 { - yyb1979 = yyj1979 > l - } else { - yyb1979 = r.CheckBreak() - } - if yyb1979 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1980 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1981 := z.DecBinary() - _ = yym1981 - if false { - } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1980), d) - } - } - yyj1979++ - if yyhl1979 { - yyb1979 = yyj1979 > l - } else { - yyb1979 = r.CheckBreak() - } - if yyb1979 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv1982 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1983 := z.DecBinary() - _ = yym1983 - if false { - } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1982), d) - } - } - for { - yyj1979++ - if yyhl1979 { - yyb1979 = yyj1979 > l - } else { - yyb1979 = r.CheckBreak() - } - if yyb1979 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1979-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1984 := z.EncBinary() - _ = yym1984 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1985 = 2 - for _, b := range yyq1985 { - if b { - yynn1985++ - } - } - r.EncodeMapStart(yynn1985) - yynn1985 = 0 - } - if yyr1985 || yy2arr1985 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1987 := z.EncBinary() - _ = yym1987 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("weight")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1988 := z.EncBinary() - _ = yym1988 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } - if yyr1985 || yy2arr1985 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1990 := &x.PodAffinityTerm - yy1990.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1991 := &x.PodAffinityTerm - yy1991.CodecEncodeSelf(e) - } - if yyr1985 || yy2arr1985 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1992 := z.DecBinary() - _ = yym1992 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1993 := r.ContainerType() - if yyct1993 == codecSelferValueTypeMap1234 { - yyl1993 := r.ReadMapStart() - if yyl1993 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1993, d) - } - } else if yyct1993 == codecSelferValueTypeArray1234 { - yyl1993 := r.ReadArrayStart() - if yyl1993 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1993, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1994Slc = r.DecodeBytes(yys1994Slc, true, true) - yys1994 := string(yys1994Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1994 { - case "weight": - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int32(r.DecodeInt(32)) - } - case "podAffinityTerm": - if r.TryDecodeAsNil() { - x.PodAffinityTerm = PodAffinityTerm{} - } else { - yyv1996 := &x.PodAffinityTerm - yyv1996.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1994) - } // end switch yys1994 - } // end for yyj1994 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1997 int - var yyb1997 bool - var yyhl1997 bool = l >= 0 - yyj1997++ - if yyhl1997 { - yyb1997 = yyj1997 > l - } else { - yyb1997 = r.CheckBreak() - } - if yyb1997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int32(r.DecodeInt(32)) - } - yyj1997++ - if yyhl1997 { - yyb1997 = yyj1997 > l - } else { - yyb1997 = r.CheckBreak() - } - if yyb1997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodAffinityTerm = PodAffinityTerm{} - } else { - yyv1999 := &x.PodAffinityTerm - yyv1999.CodecDecodeSelf(d) - } - for { - yyj1997++ - if yyhl1997 { - yyb1997 = yyj1997 > l - } else { - yyb1997 = r.CheckBreak() - } - if yyb1997 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1997-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2000 := z.EncBinary() - _ = yym2000 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2001 = 1 - for _, b := range yyq2001 { - if b { - yynn2001++ - } - } - r.EncodeMapStart(yynn2001) - yynn2001 = 0 - } - if yyr2001 || yy2arr2001 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2001[0] { - if x.LabelSelector == nil { - r.EncodeNil() - } else { - yym2003 := z.EncBinary() - _ = yym2003 - if false { - } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { - } else { - z.EncFallback(x.LabelSelector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2001[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LabelSelector == nil { - r.EncodeNil() - } else { - yym2004 := z.EncBinary() - _ = yym2004 - if false { - } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { - } else { - z.EncFallback(x.LabelSelector) - } - } - } - } - if yyr2001 || yy2arr2001 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym2006 := z.EncBinary() - _ = yym2006 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym2007 := z.EncBinary() - _ = yym2007 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } - if yyr2001 || yy2arr2001 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2001[2] { - yym2009 := z.EncBinary() - _ = yym2009 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2001[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2010 := z.EncBinary() - _ = yym2010 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) - } - } - } - if yyr2001 || yy2arr2001 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2011 := z.DecBinary() - _ = yym2011 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2012 := r.ContainerType() - if yyct2012 == codecSelferValueTypeMap1234 { - yyl2012 := r.ReadMapStart() - if yyl2012 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2012, d) - } - } else if yyct2012 == codecSelferValueTypeArray1234 { - yyl2012 := r.ReadArrayStart() - if yyl2012 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2012, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2013Slc = r.DecodeBytes(yys2013Slc, true, true) - yys2013 := string(yys2013Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2013 { - case "labelSelector": - if r.TryDecodeAsNil() { - if x.LabelSelector != nil { - x.LabelSelector = nil - } - } else { - if x.LabelSelector == nil { - x.LabelSelector = new(pkg2_v1.LabelSelector) - } - yym2015 := z.DecBinary() - _ = yym2015 - if false { - } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { - } else { - z.DecFallback(x.LabelSelector, false) - } - } - case "namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv2016 := &x.Namespaces - yym2017 := z.DecBinary() - _ = yym2017 - if false { - } else { - z.F.DecSliceStringX(yyv2016, false, d) - } - } - case "topologyKey": - if r.TryDecodeAsNil() { - x.TopologyKey = "" - } else { - x.TopologyKey = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2013) - } // end switch yys2013 - } // end for yyj2013 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2019 int - var yyb2019 bool - var yyhl2019 bool = l >= 0 - yyj2019++ - if yyhl2019 { - yyb2019 = yyj2019 > l - } else { - yyb2019 = r.CheckBreak() - } - if yyb2019 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.LabelSelector != nil { - x.LabelSelector = nil - } - } else { - if x.LabelSelector == nil { - x.LabelSelector = new(pkg2_v1.LabelSelector) - } - yym2021 := z.DecBinary() - _ = yym2021 - if false { - } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { - } else { - z.DecFallback(x.LabelSelector, false) - } - } - yyj2019++ - if yyhl2019 { - yyb2019 = yyj2019 > l - } else { - yyb2019 = r.CheckBreak() - } - if yyb2019 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv2022 := &x.Namespaces - yym2023 := z.DecBinary() - _ = yym2023 - if false { - } else { - z.F.DecSliceStringX(yyv2022, false, d) - } - } - yyj2019++ - if yyhl2019 { - yyb2019 = yyj2019 > l - } else { - yyb2019 = r.CheckBreak() - } - if yyb2019 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TopologyKey = "" - } else { - x.TopologyKey = string(r.DecodeString()) - } - for { - yyj2019++ - if yyhl2019 { - yyb2019 = yyj2019 > l - } else { - yyb2019 = r.CheckBreak() - } - if yyb2019 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2019-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2025 := z.EncBinary() - _ = yym2025 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2026 = 0 - for _, b := range yyq2026 { - if b { - yynn2026++ - } - } - r.EncodeMapStart(yynn2026) - yynn2026 = 0 - } - if yyr2026 || yy2arr2026 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2026[0] { - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2026[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) - } - } - } - if yyr2026 || yy2arr2026 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2026[1] { - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym2029 := z.EncBinary() - _ = yym2029 - if false { - } else { - h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2026[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { - r.EncodeNil() - } else { - yym2030 := z.EncBinary() - _ = yym2030 - if false { - } else { - h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) - } - } - } - } - if yyr2026 || yy2arr2026 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2031 := z.DecBinary() - _ = yym2031 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2032 := r.ContainerType() - if yyct2032 == codecSelferValueTypeMap1234 { - yyl2032 := r.ReadMapStart() - if yyl2032 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2032, d) - } - } else if yyct2032 == codecSelferValueTypeArray1234 { - yyl2032 := r.ReadArrayStart() - if yyl2032 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2032, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2033Slc = r.DecodeBytes(yys2033Slc, true, true) - yys2033 := string(yys2033Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2033 { - case "requiredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - } else { - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) - } - x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) - } - case "preferredDuringSchedulingIgnoredDuringExecution": - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv2035 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym2036 := z.DecBinary() - _ = yym2036 - if false { - } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2035), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2033) - } // end switch yys2033 - } // end for yyj2033 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2037 int - var yyb2037 bool - var yyhl2037 bool = l >= 0 - yyj2037++ - if yyhl2037 { - yyb2037 = yyj2037 > l - } else { - yyb2037 = r.CheckBreak() - } - if yyb2037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { - x.RequiredDuringSchedulingIgnoredDuringExecution = nil - } - } else { - if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { - x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) - } - x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) - } - yyj2037++ - if yyhl2037 { - yyb2037 = yyj2037 > l - } else { - yyb2037 = r.CheckBreak() - } - if yyb2037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - yyv2039 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym2040 := z.DecBinary() - _ = yym2040 - if false { - } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2039), d) - } - } - for { - yyj2037++ - if yyhl2037 { - yyb2037 = yyj2037 > l - } else { - yyb2037 = r.CheckBreak() - } - if yyb2037 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2037-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2041 := z.EncBinary() - _ = yym2041 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2042 = 2 - for _, b := range yyq2042 { - if b { - yynn2042++ - } - } - r.EncodeMapStart(yynn2042) - yynn2042 = 0 - } - if yyr2042 || yy2arr2042 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2044 := z.EncBinary() - _ = yym2044 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("weight")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2045 := z.EncBinary() - _ = yym2045 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } - if yyr2042 || yy2arr2042 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2047 := &x.Preference - yy2047.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preference")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2048 := &x.Preference - yy2048.CodecEncodeSelf(e) - } - if yyr2042 || yy2arr2042 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2049 := z.DecBinary() - _ = yym2049 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2050 := r.ContainerType() - if yyct2050 == codecSelferValueTypeMap1234 { - yyl2050 := r.ReadMapStart() - if yyl2050 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2050, d) - } - } else if yyct2050 == codecSelferValueTypeArray1234 { - yyl2050 := r.ReadArrayStart() - if yyl2050 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2050, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2051Slc = r.DecodeBytes(yys2051Slc, true, true) - yys2051 := string(yys2051Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2051 { - case "weight": - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int32(r.DecodeInt(32)) - } - case "preference": - if r.TryDecodeAsNil() { - x.Preference = NodeSelectorTerm{} - } else { - yyv2053 := &x.Preference - yyv2053.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2051) - } // end switch yys2051 - } // end for yyj2051 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2054 int - var yyb2054 bool - var yyhl2054 bool = l >= 0 - yyj2054++ - if yyhl2054 { - yyb2054 = yyj2054 > l - } else { - yyb2054 = r.CheckBreak() - } - if yyb2054 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int32(r.DecodeInt(32)) - } - yyj2054++ - if yyhl2054 { - yyb2054 = yyj2054 > l - } else { - yyb2054 = r.CheckBreak() - } - if yyb2054 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Preference = NodeSelectorTerm{} - } else { - yyv2056 := &x.Preference - yyv2056.CodecDecodeSelf(d) - } - for { - yyj2054++ - if yyhl2054 { - yyb2054 = yyj2054 > l - } else { - yyb2054 = r.CheckBreak() - } - if yyb2054 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2054-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2057 := z.EncBinary() - _ = yym2057 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2058 = 2 - for _, b := range yyq2058 { - if b { - yynn2058++ - } - } - r.EncodeMapStart(yynn2058) - yynn2058 = 0 - } - if yyr2058 || yy2arr2058 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2060 := z.EncBinary() - _ = yym2060 - 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) - yym2061 := z.EncBinary() - _ = yym2061 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr2058 || yy2arr2058 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2058[1] { - yym2063 := z.EncBinary() - _ = yym2063 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2058[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2064 := z.EncBinary() - _ = yym2064 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } - } - if yyr2058 || yy2arr2058 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Effect.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("effect")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Effect.CodecEncodeSelf(e) - } - if yyr2058 || yy2arr2058 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2066 := z.DecBinary() - _ = yym2066 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2067 := r.ContainerType() - if yyct2067 == codecSelferValueTypeMap1234 { - yyl2067 := r.ReadMapStart() - if yyl2067 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2067, d) - } - } else if yyct2067 == codecSelferValueTypeArray1234 { - yyl2067 := r.ReadArrayStart() - if yyl2067 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2067, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2068Slc = r.DecodeBytes(yys2068Slc, true, true) - yys2068 := string(yys2068Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2068 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "value": - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - case "effect": - if r.TryDecodeAsNil() { - x.Effect = "" - } else { - x.Effect = TaintEffect(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2068) - } // end switch yys2068 - } // end for yyj2068 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2072 int - var yyb2072 bool - var yyhl2072 bool = l >= 0 - yyj2072++ - if yyhl2072 { - yyb2072 = yyj2072 > l - } else { - yyb2072 = r.CheckBreak() - } - if yyb2072 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj2072++ - if yyhl2072 { - yyb2072 = yyj2072 > l - } else { - yyb2072 = r.CheckBreak() - } - if yyb2072 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - yyj2072++ - if yyhl2072 { - yyb2072 = yyj2072 > l - } else { - yyb2072 = r.CheckBreak() - } - if yyb2072 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Effect = "" - } else { - x.Effect = TaintEffect(r.DecodeString()) - } - for { - yyj2072++ - if yyhl2072 { - yyb2072 = yyj2072 > l - } else { - yyb2072 = r.CheckBreak() - } - if yyb2072 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2072-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2076 := z.EncBinary() - _ = yym2076 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2077 := z.DecBinary() - _ = yym2077 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2078 := z.EncBinary() - _ = yym2078 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2079 = 0 - for _, b := range yyq2079 { - if b { - yynn2079++ - } - } - r.EncodeMapStart(yynn2079) - yynn2079 = 0 - } - if yyr2079 || yy2arr2079 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2079[0] { - yym2081 := z.EncBinary() - _ = yym2081 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2079[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("key")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2082 := z.EncBinary() - _ = yym2082 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - } - if yyr2079 || yy2arr2079 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2079[1] { - x.Operator.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2079[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("operator")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Operator.CodecEncodeSelf(e) - } - } - if yyr2079 || yy2arr2079 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2079[2] { - yym2085 := z.EncBinary() - _ = yym2085 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2079[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2086 := z.EncBinary() - _ = yym2086 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Value)) - } - } - } - if yyr2079 || yy2arr2079 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2079[3] { - x.Effect.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2079[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("effect")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Effect.CodecEncodeSelf(e) - } - } - if yyr2079 || yy2arr2079 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2088 := z.DecBinary() - _ = yym2088 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2089 := r.ContainerType() - if yyct2089 == codecSelferValueTypeMap1234 { - yyl2089 := r.ReadMapStart() - if yyl2089 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2089, d) - } - } else if yyct2089 == codecSelferValueTypeArray1234 { - yyl2089 := r.ReadArrayStart() - if yyl2089 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2089, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2090Slc = r.DecodeBytes(yys2090Slc, true, true) - yys2090 := string(yys2090Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2090 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "operator": - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = TolerationOperator(r.DecodeString()) - } - case "value": - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - case "effect": - if r.TryDecodeAsNil() { - x.Effect = "" - } else { - x.Effect = TaintEffect(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2090) - } // end switch yys2090 - } // end for yyj2090 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2095 int - var yyb2095 bool - var yyhl2095 bool = l >= 0 - yyj2095++ - if yyhl2095 { - yyb2095 = yyj2095 > l - } else { - yyb2095 = r.CheckBreak() - } - if yyb2095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj2095++ - if yyhl2095 { - yyb2095 = yyj2095 > l - } else { - yyb2095 = r.CheckBreak() - } - if yyb2095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = TolerationOperator(r.DecodeString()) - } - yyj2095++ - if yyhl2095 { - yyb2095 = yyj2095 > l - } else { - yyb2095 = r.CheckBreak() - } - if yyb2095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Value = "" - } else { - x.Value = string(r.DecodeString()) - } - yyj2095++ - if yyhl2095 { - yyb2095 = yyj2095 > l - } else { - yyb2095 = r.CheckBreak() - } - if yyb2095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Effect = "" - } else { - x.Effect = TaintEffect(r.DecodeString()) - } - for { - yyj2095++ - if yyhl2095 { - yyb2095 = yyj2095 > l - } else { - yyb2095 = r.CheckBreak() - } - if yyb2095 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2095-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2100 := z.EncBinary() - _ = yym2100 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2101 := z.DecBinary() - _ = yym2101 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2102 := z.EncBinary() - _ = yym2102 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2103 = 3 - for _, b := range yyq2103 { - if b { - yynn2103++ - } - } - r.EncodeMapStart(yynn2103) - yynn2103 = 0 - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Volumes == nil { - r.EncodeNil() - } else { - yym2105 := z.EncBinary() - _ = yym2105 - if false { - } else { - h.encSliceVolume(([]Volume)(x.Volumes), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Volumes == nil { - r.EncodeNil() - } else { - yym2106 := z.EncBinary() - _ = yym2106 - if false { - } else { - h.encSliceVolume(([]Volume)(x.Volumes), e) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Containers == nil { - r.EncodeNil() - } else { - yym2108 := z.EncBinary() - _ = yym2108 - if false { - } else { - h.encSliceContainer(([]Container)(x.Containers), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Containers == nil { - r.EncodeNil() - } else { - yym2109 := z.EncBinary() - _ = yym2109 - if false { - } else { - h.encSliceContainer(([]Container)(x.Containers), e) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[2] { - x.RestartPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2103[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.RestartPolicy.CodecEncodeSelf(e) - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[3] { - if x.TerminationGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy2112 := *x.TerminationGracePeriodSeconds - yym2113 := z.EncBinary() - _ = yym2113 - if false { - } else { - r.EncodeInt(int64(yy2112)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2103[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TerminationGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy2114 := *x.TerminationGracePeriodSeconds - yym2115 := z.EncBinary() - _ = yym2115 - if false { - } else { - r.EncodeInt(int64(yy2114)) - } - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[4] { - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy2117 := *x.ActiveDeadlineSeconds - yym2118 := z.EncBinary() - _ = yym2118 - if false { - } else { - r.EncodeInt(int64(yy2117)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2103[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy2119 := *x.ActiveDeadlineSeconds - yym2120 := z.EncBinary() - _ = yym2120 - if false { - } else { - r.EncodeInt(int64(yy2119)) - } - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[5] { - x.DNSPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2103[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.DNSPolicy.CodecEncodeSelf(e) - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[6] { - if x.NodeSelector == nil { - r.EncodeNil() - } else { - yym2123 := z.EncBinary() - _ = yym2123 - if false { - } else { - z.F.EncMapStringStringV(x.NodeSelector, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2103[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NodeSelector == nil { - r.EncodeNil() - } else { - yym2124 := z.EncBinary() - _ = yym2124 - if false { - } else { - z.F.EncMapStringStringV(x.NodeSelector, false, e) - } - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2126 := z.EncBinary() - _ = yym2126 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2127 := z.EncBinary() - _ = yym2127 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[8] { - yym2129 := z.EncBinary() - _ = yym2129 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2103[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2130 := z.EncBinary() - _ = yym2130 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[9] { - if x.SecurityContext == nil { - r.EncodeNil() - } else { - x.SecurityContext.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2103[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("securityContext")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecurityContext == nil { - r.EncodeNil() - } else { - x.SecurityContext.CodecEncodeSelf(e) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[10] { - if x.ImagePullSecrets == nil { - r.EncodeNil() - } else { - yym2133 := z.EncBinary() - _ = yym2133 - if false { - } else { - h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2103[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ImagePullSecrets == nil { - r.EncodeNil() - } else { - yym2134 := z.EncBinary() - _ = yym2134 - if false { - } else { - h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) - } - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[11] { - yym2136 := z.EncBinary() - _ = yym2136 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2103[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostname")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2137 := z.EncBinary() - _ = yym2137 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2103[12] { - yym2139 := z.EncBinary() - _ = yym2139 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2103[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("subdomain")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2140 := z.EncBinary() - _ = yym2140 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) - } - } - } - if yyr2103 || yy2arr2103 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2141 := z.DecBinary() - _ = yym2141 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2142 := r.ContainerType() - if yyct2142 == codecSelferValueTypeMap1234 { - yyl2142 := r.ReadMapStart() - if yyl2142 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2142, d) - } - } else if yyct2142 == codecSelferValueTypeArray1234 { - yyl2142 := r.ReadArrayStart() - if yyl2142 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2142, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2143Slc = r.DecodeBytes(yys2143Slc, true, true) - yys2143 := string(yys2143Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2143 { - case "volumes": - if r.TryDecodeAsNil() { - x.Volumes = nil - } else { - yyv2144 := &x.Volumes - yym2145 := z.DecBinary() - _ = yym2145 - if false { - } else { - h.decSliceVolume((*[]Volume)(yyv2144), d) - } - } - case "containers": - if r.TryDecodeAsNil() { - x.Containers = nil - } else { - yyv2146 := &x.Containers - yym2147 := z.DecBinary() - _ = yym2147 - if false { - } else { - h.decSliceContainer((*[]Container)(yyv2146), d) - } - } - case "restartPolicy": - if r.TryDecodeAsNil() { - x.RestartPolicy = "" - } else { - x.RestartPolicy = RestartPolicy(r.DecodeString()) - } - case "terminationGracePeriodSeconds": - if r.TryDecodeAsNil() { - if x.TerminationGracePeriodSeconds != nil { - x.TerminationGracePeriodSeconds = nil - } - } else { - if x.TerminationGracePeriodSeconds == nil { - x.TerminationGracePeriodSeconds = new(int64) - } - yym2150 := z.DecBinary() - _ = yym2150 - if false { - } else { - *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "activeDeadlineSeconds": - if r.TryDecodeAsNil() { - if x.ActiveDeadlineSeconds != nil { - x.ActiveDeadlineSeconds = nil - } - } else { - if x.ActiveDeadlineSeconds == nil { - x.ActiveDeadlineSeconds = new(int64) - } - yym2152 := z.DecBinary() - _ = yym2152 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - case "dnsPolicy": - if r.TryDecodeAsNil() { - x.DNSPolicy = "" - } else { - x.DNSPolicy = DNSPolicy(r.DecodeString()) - } - case "nodeSelector": - if r.TryDecodeAsNil() { - x.NodeSelector = nil - } else { - yyv2154 := &x.NodeSelector - yym2155 := z.DecBinary() - _ = yym2155 - if false { - } else { - z.F.DecMapStringStringX(yyv2154, false, d) - } - } - case "serviceAccountName": - if r.TryDecodeAsNil() { - x.ServiceAccountName = "" - } else { - x.ServiceAccountName = string(r.DecodeString()) - } - case "nodeName": - if r.TryDecodeAsNil() { - x.NodeName = "" - } else { - x.NodeName = string(r.DecodeString()) - } - case "securityContext": - if r.TryDecodeAsNil() { - if x.SecurityContext != nil { - x.SecurityContext = nil - } - } else { - if x.SecurityContext == nil { - x.SecurityContext = new(PodSecurityContext) - } - x.SecurityContext.CodecDecodeSelf(d) - } - case "imagePullSecrets": - if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil - } else { - yyv2159 := &x.ImagePullSecrets - yym2160 := z.DecBinary() - _ = yym2160 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2159), d) - } - } - case "hostname": - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - case "subdomain": - if r.TryDecodeAsNil() { - x.Subdomain = "" - } else { - x.Subdomain = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, 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 yyj2163 int - var yyb2163 bool - var yyhl2163 bool = l >= 0 - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l - } else { - yyb2163 = r.CheckBreak() - } - if yyb2163 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Volumes = nil - } else { - yyv2164 := &x.Volumes - yym2165 := z.DecBinary() - _ = yym2165 - if false { - } else { - h.decSliceVolume((*[]Volume)(yyv2164), 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.Containers = nil - } else { - 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++ - if yyhl2163 { - yyb2163 = yyj2163 > l - } else { - yyb2163 = r.CheckBreak() - } - if yyb2163 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2163-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *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) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2199 := z.EncBinary() - _ = yym2199 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2200 = 0 - for _, b := range yyq2200 { - if b { - yynn2200++ - } - } - r.EncodeMapStart(yynn2200) - yynn2200 = 0 - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[0] { - yym2202 := z.EncBinary() - _ = yym2202 - if false { - } else { - r.EncodeBool(bool(x.HostNetwork)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq2200[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2203 := z.EncBinary() - _ = yym2203 - if false { - } else { - r.EncodeBool(bool(x.HostNetwork)) - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[1] { - yym2205 := z.EncBinary() - _ = yym2205 - if false { - } else { - r.EncodeBool(bool(x.HostPID)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq2200[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2206 := z.EncBinary() - _ = yym2206 - if false { - } else { - r.EncodeBool(bool(x.HostPID)) - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[2] { - yym2208 := z.EncBinary() - _ = yym2208 - if false { - } else { - r.EncodeBool(bool(x.HostIPC)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq2200[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2209 := z.EncBinary() - _ = yym2209 - if false { - } else { - r.EncodeBool(bool(x.HostIPC)) - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[3] { - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2200[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[4] { - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy2212 := *x.RunAsUser - yym2213 := z.EncBinary() - _ = yym2213 - if false { - } else { - r.EncodeInt(int64(yy2212)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2200[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy2214 := *x.RunAsUser - yym2215 := z.EncBinary() - _ = yym2215 - if false { - } else { - r.EncodeInt(int64(yy2214)) - } - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[5] { - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy2217 := *x.RunAsNonRoot - yym2218 := z.EncBinary() - _ = yym2218 - if false { - } else { - r.EncodeBool(bool(yy2217)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2200[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy2219 := *x.RunAsNonRoot - yym2220 := z.EncBinary() - _ = yym2220 - if false { - } else { - r.EncodeBool(bool(yy2219)) - } - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[6] { - if x.SupplementalGroups == nil { - r.EncodeNil() - } else { - yym2222 := z.EncBinary() - _ = yym2222 - if false { - } else { - z.F.EncSliceInt64V(x.SupplementalGroups, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2200[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SupplementalGroups == nil { - r.EncodeNil() - } else { - yym2223 := z.EncBinary() - _ = yym2223 - if false { - } else { - z.F.EncSliceInt64V(x.SupplementalGroups, false, e) - } - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2200[7] { - if x.FSGroup == nil { - r.EncodeNil() - } else { - yy2225 := *x.FSGroup - yym2226 := z.EncBinary() - _ = yym2226 - if false { - } else { - r.EncodeInt(int64(yy2225)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2200[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FSGroup == nil { - r.EncodeNil() - } else { - yy2227 := *x.FSGroup - yym2228 := z.EncBinary() - _ = yym2228 - if false { - } else { - r.EncodeInt(int64(yy2227)) - } - } - } - } - if yyr2200 || yy2arr2200 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2229 := z.DecBinary() - _ = yym2229 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2230 := r.ContainerType() - if yyct2230 == codecSelferValueTypeMap1234 { - yyl2230 := r.ReadMapStart() - if yyl2230 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2230, d) - } - } else if yyct2230 == codecSelferValueTypeArray1234 { - yyl2230 := r.ReadArrayStart() - if yyl2230 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2230, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2231Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2231Slc - var yyhl2231 bool = l >= 0 - for yyj2231 := 0; ; yyj2231++ { - if yyhl2231 { - if yyj2231 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2231Slc = r.DecodeBytes(yys2231Slc, true, true) - yys2231 := string(yys2231Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2231 { - case "hostNetwork": - if r.TryDecodeAsNil() { - x.HostNetwork = false - } else { - x.HostNetwork = bool(r.DecodeBool()) - } - case "hostPID": - if r.TryDecodeAsNil() { - x.HostPID = false - } else { - x.HostPID = bool(r.DecodeBool()) - } - case "hostIPC": - if r.TryDecodeAsNil() { - x.HostIPC = false - } else { - x.HostIPC = bool(r.DecodeBool()) - } - case "seLinuxOptions": - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - case "runAsUser": - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym2237 := z.DecBinary() - _ = yym2237 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - case "runAsNonRoot": - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym2239 := z.DecBinary() - _ = yym2239 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - case "supplementalGroups": - if r.TryDecodeAsNil() { - x.SupplementalGroups = nil - } else { - yyv2240 := &x.SupplementalGroups - yym2241 := z.DecBinary() - _ = yym2241 - if false { - } else { - z.F.DecSliceInt64X(yyv2240, false, d) - } - } - case "fsGroup": - if r.TryDecodeAsNil() { - if x.FSGroup != nil { - x.FSGroup = nil - } - } else { - if x.FSGroup == nil { - x.FSGroup = new(int64) - } - yym2243 := z.DecBinary() - _ = yym2243 - if false { - } else { - *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys2231) - } // end switch yys2231 - } // end for yyj2231 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2244 int - var yyb2244 bool - var yyhl2244 bool = l >= 0 - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostNetwork = false - } else { - x.HostNetwork = bool(r.DecodeBool()) - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPID = false - } else { - x.HostPID = bool(r.DecodeBool()) - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIPC = false - } else { - x.HostIPC = bool(r.DecodeBool()) - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym2250 := z.DecBinary() - _ = yym2250 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym2252 := z.DecBinary() - _ = yym2252 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SupplementalGroups = nil - } else { - yyv2253 := &x.SupplementalGroups - yym2254 := z.DecBinary() - _ = yym2254 - if false { - } else { - z.F.DecSliceInt64X(yyv2253, false, d) - } - } - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.FSGroup != nil { - x.FSGroup = nil - } - } else { - if x.FSGroup == nil { - x.FSGroup = new(int64) - } - yym2256 := z.DecBinary() - _ = yym2256 - if false { - } else { - *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) - } - } - for { - yyj2244++ - if yyhl2244 { - yyb2244 = yyj2244 > l - } else { - yyb2244 = r.CheckBreak() - } - if yyb2244 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2244-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2257 := z.EncBinary() - _ = yym2257 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2258 = 0 - for _, b := range yyq2258 { - if b { - yynn2258++ - } - } - r.EncodeMapStart(yynn2258) - yynn2258 = 0 - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[0] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2258[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[1] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym2261 := z.EncBinary() - _ = yym2261 - if false { - } else { - h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2258[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym2262 := z.EncBinary() - _ = yym2262 - if false { - } else { - h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) - } - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[2] { - yym2264 := z.EncBinary() - _ = yym2264 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2258[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2265 := z.EncBinary() - _ = yym2265 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[3] { - yym2267 := z.EncBinary() - _ = yym2267 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2258[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2268 := z.EncBinary() - _ = yym2268 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[4] { - yym2270 := z.EncBinary() - _ = yym2270 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2258[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2271 := z.EncBinary() - _ = yym2271 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[5] { - yym2273 := z.EncBinary() - _ = yym2273 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2258[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2274 := z.EncBinary() - _ = yym2274 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[6] { - if x.StartTime == nil { - r.EncodeNil() - } else { - yym2276 := z.EncBinary() - _ = yym2276 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2276 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym2276 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2258[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.StartTime == nil { - r.EncodeNil() - } else { - yym2277 := z.EncBinary() - _ = yym2277 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2277 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym2277 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2258[7] { - if x.ContainerStatuses == nil { - r.EncodeNil() - } else { - yym2279 := z.EncBinary() - _ = yym2279 - if false { - } else { - h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2258[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ContainerStatuses == nil { - r.EncodeNil() - } else { - yym2280 := z.EncBinary() - _ = yym2280 - if false { - } else { - h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) - } - } - } - } - if yyr2258 || yy2arr2258 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2281 := z.DecBinary() - _ = yym2281 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2282 := r.ContainerType() - if yyct2282 == codecSelferValueTypeMap1234 { - yyl2282 := r.ReadMapStart() - if yyl2282 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2282, d) - } - } else if yyct2282 == codecSelferValueTypeArray1234 { - yyl2282 := r.ReadArrayStart() - if yyl2282 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2282, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2283Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2283Slc - var yyhl2283 bool = l >= 0 - for yyj2283 := 0; ; yyj2283++ { - if yyhl2283 { - if yyj2283 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2283Slc = r.DecodeBytes(yys2283Slc, true, true) - yys2283 := string(yys2283Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2283 { - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PodPhase(r.DecodeString()) - } - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv2285 := &x.Conditions - yym2286 := z.DecBinary() - _ = yym2286 - if false { - } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2285), d) - } - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "hostIP": - if r.TryDecodeAsNil() { - x.HostIP = "" - } else { - x.HostIP = string(r.DecodeString()) - } - case "podIP": - if r.TryDecodeAsNil() { - x.PodIP = "" - } else { - x.PodIP = string(r.DecodeString()) - } - case "startTime": - if r.TryDecodeAsNil() { - if x.StartTime != nil { - x.StartTime = nil - } - } else { - if x.StartTime == nil { - x.StartTime = new(pkg2_v1.Time) - } - yym2292 := z.DecBinary() - _ = yym2292 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2292 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2292 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - case "containerStatuses": - if r.TryDecodeAsNil() { - x.ContainerStatuses = nil - } else { - yyv2293 := &x.ContainerStatuses - yym2294 := z.DecBinary() - _ = yym2294 - if false { - } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2293), d) - } - } - default: - 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 yyj2295 int - var yyb2295 bool - var yyhl2295 bool = l >= 0 - 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.Phase = "" - } else { - x.Phase = PodPhase(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.Conditions = nil - } else { - yyv2297 := &x.Conditions - yym2298 := z.DecBinary() - _ = yym2298 - if false { - } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2297), d) - } - } - 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.Message = "" - } else { - x.Message = 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.Reason = "" - } else { - 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_v1.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++ - if yyhl2295 { - yyb2295 = yyj2295 > l - } else { - yyb2295 = r.CheckBreak() - } - if yyb2295 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2295-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 { - 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) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2333 := z.EncBinary() - _ = yym2333 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2334 = 0 - for _, b := range yyq2334 { - if b { - yynn2334++ - } - } - r.EncodeMapStart(yynn2334) - yynn2334 = 0 - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2334[0] { - yym2336 := z.EncBinary() - _ = yym2336 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2334[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2337 := z.EncBinary() - _ = yym2337 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2334[1] { - yym2339 := z.EncBinary() - _ = yym2339 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2334[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2340 := z.EncBinary() - _ = yym2340 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2334[2] { - yy2342 := &x.ObjectMeta - yy2342.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2334[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2343 := &x.ObjectMeta - yy2343.CodecEncodeSelf(e) - } - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2334[3] { - yy2345 := &x.Spec - yy2345.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2334[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2346 := &x.Spec - yy2346.CodecEncodeSelf(e) - } - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2334[4] { - yy2348 := &x.Status - yy2348.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2334[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2349 := &x.Status - yy2349.CodecEncodeSelf(e) - } - } - if yyr2334 || yy2arr2334 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2350 := z.DecBinary() - _ = yym2350 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2351 := r.ContainerType() - if yyct2351 == codecSelferValueTypeMap1234 { - yyl2351 := r.ReadMapStart() - if yyl2351 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2351, d) - } - } else if yyct2351 == codecSelferValueTypeArray1234 { - yyl2351 := r.ReadArrayStart() - if yyl2351 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2351, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2352Slc = r.DecodeBytes(yys2352Slc, true, true) - yys2352 := string(yys2352Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2352 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2355 := &x.ObjectMeta - yyv2355.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodSpec{} - } else { - yyv2356 := &x.Spec - yyv2356.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PodStatus{} - } else { - yyv2357 := &x.Status - yyv2357.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2352) - } // end switch yys2352 - } // end for yyj2352 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2358 int - var yyb2358 bool - var yyhl2358 bool = l >= 0 - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2361 := &x.ObjectMeta - yyv2361.CodecDecodeSelf(d) - } - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PodSpec{} - } else { - yyv2362 := &x.Spec - yyv2362.CodecDecodeSelf(d) - } - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PodStatus{} - } else { - yyv2363 := &x.Status - yyv2363.CodecDecodeSelf(d) - } - for { - yyj2358++ - if yyhl2358 { - yyb2358 = yyj2358 > l - } else { - yyb2358 = r.CheckBreak() - } - if yyb2358 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2358-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2364 := z.EncBinary() - _ = yym2364 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2365 = 0 - for _, b := range yyq2365 { - if b { - yynn2365++ - } - } - r.EncodeMapStart(yynn2365) - yynn2365 = 0 - } - if yyr2365 || yy2arr2365 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2365[0] { - yy2367 := &x.ObjectMeta - yy2367.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2365[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2368 := &x.ObjectMeta - yy2368.CodecEncodeSelf(e) - } - } - if yyr2365 || yy2arr2365 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2365[1] { - yy2370 := &x.Spec - yy2370.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2365[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2371 := &x.Spec - yy2371.CodecEncodeSelf(e) - } - } - if yyr2365 || yy2arr2365 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2372 := z.DecBinary() - _ = yym2372 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2373 := r.ContainerType() - if yyct2373 == codecSelferValueTypeMap1234 { - yyl2373 := r.ReadMapStart() - if yyl2373 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2373, d) - } - } else if yyct2373 == codecSelferValueTypeArray1234 { - yyl2373 := r.ReadArrayStart() - if yyl2373 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2373, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2374Slc = r.DecodeBytes(yys2374Slc, true, true) - yys2374 := string(yys2374Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2374 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2375 := &x.ObjectMeta - yyv2375.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodSpec{} - } else { - yyv2376 := &x.Spec - yyv2376.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2374) - } // end switch yys2374 - } // end for yyj2374 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2377 int - var yyb2377 bool - var yyhl2377 bool = l >= 0 - yyj2377++ - if yyhl2377 { - yyb2377 = yyj2377 > l - } else { - yyb2377 = r.CheckBreak() - } - if yyb2377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2378 := &x.ObjectMeta - yyv2378.CodecDecodeSelf(d) - } - yyj2377++ - if yyhl2377 { - yyb2377 = yyj2377 > l - } else { - yyb2377 = r.CheckBreak() - } - if yyb2377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PodSpec{} - } else { - yyv2379 := &x.Spec - yyv2379.CodecDecodeSelf(d) - } - for { - yyj2377++ - if yyhl2377 { - yyb2377 = yyj2377 > l - } else { - yyb2377 = r.CheckBreak() - } - if yyb2377 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2377-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2380 := z.EncBinary() - _ = yym2380 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2381 = 0 - for _, b := range yyq2381 { - if b { - yynn2381++ - } - } - r.EncodeMapStart(yynn2381) - yynn2381 = 0 - } - if yyr2381 || yy2arr2381 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2381[0] { - yym2383 := z.EncBinary() - _ = yym2383 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2381[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2384 := z.EncBinary() - _ = yym2384 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2381 || yy2arr2381 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2381[1] { - yym2386 := z.EncBinary() - _ = yym2386 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2381[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2387 := z.EncBinary() - _ = yym2387 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2381 || yy2arr2381 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2381[2] { - yy2389 := &x.ObjectMeta - yy2389.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2381[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2390 := &x.ObjectMeta - yy2390.CodecEncodeSelf(e) - } - } - if yyr2381 || yy2arr2381 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2381[3] { - yy2392 := &x.Template - yy2392.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2381[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2393 := &x.Template - yy2393.CodecEncodeSelf(e) - } - } - if yyr2381 || yy2arr2381 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2394 := z.DecBinary() - _ = yym2394 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2395 := r.ContainerType() - if yyct2395 == codecSelferValueTypeMap1234 { - yyl2395 := r.ReadMapStart() - if yyl2395 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2395, d) - } - } else if yyct2395 == codecSelferValueTypeArray1234 { - yyl2395 := r.ReadArrayStart() - if yyl2395 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2395, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2396Slc = r.DecodeBytes(yys2396Slc, true, true) - yys2396 := string(yys2396Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2396 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2399 := &x.ObjectMeta - yyv2399.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} - } else { - yyv2400 := &x.Template - yyv2400.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2396) - } // end switch yys2396 - } // end for yyj2396 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2401 int - var yyb2401 bool - var yyhl2401 bool = l >= 0 - yyj2401++ - if yyhl2401 { - yyb2401 = yyj2401 > l - } else { - yyb2401 = r.CheckBreak() - } - if yyb2401 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2401++ - if yyhl2401 { - yyb2401 = yyj2401 > l - } else { - yyb2401 = r.CheckBreak() - } - if yyb2401 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2401++ - if yyhl2401 { - yyb2401 = yyj2401 > l - } else { - yyb2401 = r.CheckBreak() - } - if yyb2401 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2404 := &x.ObjectMeta - yyv2404.CodecDecodeSelf(d) - } - yyj2401++ - if yyhl2401 { - yyb2401 = yyj2401 > l - } else { - yyb2401 = r.CheckBreak() - } - if yyb2401 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = PodTemplateSpec{} - } else { - yyv2405 := &x.Template - yyv2405.CodecDecodeSelf(d) - } - for { - yyj2401++ - if yyhl2401 { - yyb2401 = yyj2401 > l - } else { - yyb2401 = r.CheckBreak() - } - if yyb2401 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2401-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2406 := z.EncBinary() - _ = yym2406 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2407 = 1 - for _, b := range yyq2407 { - if b { - yynn2407++ - } - } - r.EncodeMapStart(yynn2407) - yynn2407 = 0 - } - if yyr2407 || yy2arr2407 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2407[0] { - yym2409 := z.EncBinary() - _ = yym2409 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2407[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2410 := z.EncBinary() - _ = yym2410 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2407 || yy2arr2407 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2407[1] { - yym2412 := z.EncBinary() - _ = yym2412 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2407[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2413 := z.EncBinary() - _ = yym2413 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2407 || yy2arr2407 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2407[2] { - yy2415 := &x.ListMeta - yym2416 := z.EncBinary() - _ = yym2416 - if false { - } else if z.HasExtensions() && z.EncExt(yy2415) { - } else { - z.EncFallback(yy2415) - } - } else { - r.EncodeNil() - } - } else { - if yyq2407[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2417 := &x.ListMeta - yym2418 := z.EncBinary() - _ = yym2418 - if false { - } else if z.HasExtensions() && z.EncExt(yy2417) { - } else { - z.EncFallback(yy2417) - } - } - } - if yyr2407 || yy2arr2407 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2420 := z.EncBinary() - _ = yym2420 - if false { - } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2421 := z.EncBinary() - _ = yym2421 - if false { - } else { - h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) - } - } - } - if yyr2407 || yy2arr2407 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2422 := z.DecBinary() - _ = yym2422 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2423 := r.ContainerType() - if yyct2423 == codecSelferValueTypeMap1234 { - yyl2423 := r.ReadMapStart() - if yyl2423 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2423, d) - } - } else if yyct2423 == codecSelferValueTypeArray1234 { - yyl2423 := r.ReadArrayStart() - if yyl2423 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2423, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2424Slc = r.DecodeBytes(yys2424Slc, true, true) - yys2424 := string(yys2424Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2424 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv2427 := &x.ListMeta - yym2428 := z.DecBinary() - _ = yym2428 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2427) { - } else { - z.DecFallback(yyv2427, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2429 := &x.Items - yym2430 := z.DecBinary() - _ = yym2430 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2429), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2424) - } // end switch yys2424 - } // end for yyj2424 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2431 int - var yyb2431 bool - var yyhl2431 bool = l >= 0 - yyj2431++ - if yyhl2431 { - yyb2431 = yyj2431 > l - } else { - yyb2431 = r.CheckBreak() - } - if yyb2431 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2431++ - if yyhl2431 { - yyb2431 = yyj2431 > l - } else { - yyb2431 = r.CheckBreak() - } - if yyb2431 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2431++ - if yyhl2431 { - yyb2431 = yyj2431 > l - } else { - yyb2431 = r.CheckBreak() - } - if yyb2431 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv2434 := &x.ListMeta - yym2435 := z.DecBinary() - _ = yym2435 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2434) { - } else { - z.DecFallback(yyv2434, false) - } - } - yyj2431++ - if yyhl2431 { - yyb2431 = yyj2431 > l - } else { - yyb2431 = r.CheckBreak() - } - if yyb2431 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2436 := &x.Items - yym2437 := z.DecBinary() - _ = yym2437 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2436), d) - } - } - for { - yyj2431++ - if yyhl2431 { - yyb2431 = yyj2431 > l - } else { - yyb2431 = r.CheckBreak() - } - if yyb2431 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2431-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2438 := z.EncBinary() - _ = yym2438 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2439 = 2 - for _, b := range yyq2439 { - if b { - yynn2439++ - } - } - r.EncodeMapStart(yynn2439) - yynn2439 = 0 - } - if yyr2439 || yy2arr2439 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2441 := z.EncBinary() - _ = yym2441 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2442 := z.EncBinary() - _ = yym2442 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - 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 { - yym2447 := z.EncBinary() - _ = yym2447 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2448 := z.EncBinary() - _ = yym2448 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } - if yyr2439 || yy2arr2439 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2439[3] { - if x.Template == nil { - r.EncodeNil() - } else { - x.Template.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2439[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Template == nil { - r.EncodeNil() - } else { - x.Template.CodecEncodeSelf(e) - } - } - } - if yyr2439 || yy2arr2439 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2450 := z.DecBinary() - _ = yym2450 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2451 := r.ContainerType() - if yyct2451 == codecSelferValueTypeMap1234 { - yyl2451 := r.ReadMapStart() - if yyl2451 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2451, d) - } - } else if yyct2451 == codecSelferValueTypeArray1234 { - yyl2451 := r.ReadArrayStart() - if yyl2451 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2451, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2452Slc = r.DecodeBytes(yys2452Slc, true, true) - yys2452 := string(yys2452Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - 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 { - yyv2455 := &x.Selector - yym2456 := z.DecBinary() - _ = yym2456 - if false { - } else { - z.F.DecMapStringStringX(yyv2455, false, d) - } - } - case "template": - if r.TryDecodeAsNil() { - if x.Template != nil { - x.Template = nil - } - } else { - if x.Template == nil { - x.Template = new(PodTemplateSpec) - } - x.Template.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2452) - } // end switch yys2452 - } // end for yyj2452 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2458 int - var yyb2458 bool - var yyhl2458 bool = l >= 0 - yyj2458++ - if yyhl2458 { - yyb2458 = yyj2458 > l - } else { - yyb2458 = r.CheckBreak() - } - if yyb2458 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj2458++ - if yyhl2458 { - yyb2458 = yyj2458 > l - } else { - yyb2458 = r.CheckBreak() - } - 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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Selector = nil - } else { - yyv2461 := &x.Selector - yym2462 := z.DecBinary() - _ = yym2462 - if false { - } else { - z.F.DecMapStringStringX(yyv2461, false, d) - } - } - yyj2458++ - if yyhl2458 { - yyb2458 = yyj2458 > l - } else { - yyb2458 = r.CheckBreak() - } - if yyb2458 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Template != nil { - x.Template = nil - } - } else { - if x.Template == nil { - x.Template = new(PodTemplateSpec) - } - x.Template.CodecDecodeSelf(d) - } - for { - yyj2458++ - if yyhl2458 { - yyb2458 = yyj2458 > l - } else { - yyb2458 = r.CheckBreak() - } - if yyb2458 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2458-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2464 := z.EncBinary() - _ = yym2464 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2465 = 1 - for _, b := range yyq2465 { - if b { - yynn2465++ - } - } - r.EncodeMapStart(yynn2465) - yynn2465 = 0 - } - if yyr2465 || yy2arr2465 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2467 := z.EncBinary() - _ = yym2467 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2468 := z.EncBinary() - _ = yym2468 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr2465 || yy2arr2465 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2465[1] { - yym2470 := z.EncBinary() - _ = yym2470 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2465[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2471 := z.EncBinary() - _ = yym2471 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } - } - if yyr2465 || yy2arr2465 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2465[2] { - yym2473 := z.EncBinary() - _ = yym2473 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2465[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2474 := z.EncBinary() - _ = yym2474 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } - } - if yyr2465 || yy2arr2465 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2465[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2480 := z.EncBinary() - _ = yym2480 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } - } - 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) - } - } - } -} - -func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2484 := z.DecBinary() - _ = yym2484 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2485 := r.ContainerType() - if yyct2485 == codecSelferValueTypeMap1234 { - yyl2485 := r.ReadMapStart() - if yyl2485 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2485, d) - } - } else if yyct2485 == codecSelferValueTypeArray1234 { - yyl2485 := r.ReadArrayStart() - if yyl2485 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2485, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2486Slc = r.DecodeBytes(yys2486Slc, true, true) - yys2486 := string(yys2486Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2486 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "fullyLabeledReplicas": - if r.TryDecodeAsNil() { - x.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - case "readyReplicas": - if r.TryDecodeAsNil() { - x.ReadyReplicas = 0 - } else { - x.ReadyReplicas = int32(r.DecodeInt(32)) - } - case "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, yys2486) - } // end switch yys2486 - } // end for yyj2486 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2494 int - var yyb2494 bool - var yyhl2494 bool = l >= 0 - 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.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - 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.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - 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.ReadyReplicas = 0 - } else { - x.ReadyReplicas = int32(r.DecodeInt(32)) - } - 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.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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - 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 { - h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2500), d) - } - } - for { - yyj2494++ - if yyhl2494 { - yyb2494 = yyj2494 > l - } else { - yyb2494 = r.CheckBreak() - } - if yyb2494 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - 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_v1.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_v1.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) -} - -func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2535 := z.EncBinary() - _ = yym2535 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2536 = 0 - for _, b := range yyq2536 { - if b { - yynn2536++ - } - } - r.EncodeMapStart(yynn2536) - yynn2536 = 0 - } - if yyr2536 || yy2arr2536 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2536[0] { - yym2538 := z.EncBinary() - _ = yym2538 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2536[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2539 := z.EncBinary() - _ = yym2539 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2536 || yy2arr2536 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2536[1] { - yym2541 := z.EncBinary() - _ = yym2541 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2536[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2542 := z.EncBinary() - _ = yym2542 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2536 || yy2arr2536 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2536[2] { - yy2544 := &x.ObjectMeta - yy2544.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2536[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2545 := &x.ObjectMeta - yy2545.CodecEncodeSelf(e) - } - } - if yyr2536 || yy2arr2536 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2536[3] { - yy2547 := &x.Spec - yy2547.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2536[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2548 := &x.Spec - yy2548.CodecEncodeSelf(e) - } - } - if yyr2536 || yy2arr2536 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2536[4] { - yy2550 := &x.Status - yy2550.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2536[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2551 := &x.Status - yy2551.CodecEncodeSelf(e) - } - } - if yyr2536 || yy2arr2536 { - 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 - 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 *ReplicationController) 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 "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2557 := &x.ObjectMeta - yyv2557.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2558 := &x.Spec - yyv2558.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} - } else { - yyv2559 := &x.Status - yyv2559.CodecDecodeSelf(d) - } - default: - 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 yyj2560 int - var yyb2560 bool - var yyhl2560 bool = l >= 0 - yyj2560++ - if yyhl2560 { - yyb2560 = yyj2560 > l - } else { - yyb2560 = r.CheckBreak() - } - if yyb2560 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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++ - if yyhl2560 { - yyb2560 = yyj2560 > l - } else { - yyb2560 = r.CheckBreak() - } - if yyb2560 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2560-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *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_v1.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_v1.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_v1.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_v1.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) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2645 := z.EncBinary() - _ = yym2645 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2646 = 0 - for _, b := range yyq2646 { - if b { - yynn2646++ - } - } - r.EncodeMapStart(yynn2646) - yynn2646 = 0 - } - if yyr2646 || yy2arr2646 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2646[0] { - if x.Ingress == nil { - r.EncodeNil() - } else { - yym2648 := z.EncBinary() - _ = yym2648 - if false { - } else { - h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2646[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ingress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ingress == nil { - r.EncodeNil() - } else { - yym2649 := z.EncBinary() - _ = yym2649 - if false { - } else { - h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) - } - } - } - } - if yyr2646 || yy2arr2646 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2650 := z.DecBinary() - _ = yym2650 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2651 := r.ContainerType() - if yyct2651 == codecSelferValueTypeMap1234 { - yyl2651 := r.ReadMapStart() - if yyl2651 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2651, d) - } - } else if yyct2651 == codecSelferValueTypeArray1234 { - yyl2651 := r.ReadArrayStart() - if yyl2651 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2651, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2652Slc = r.DecodeBytes(yys2652Slc, true, true) - yys2652 := string(yys2652Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2652 { - case "ingress": - if r.TryDecodeAsNil() { - x.Ingress = nil - } else { - yyv2653 := &x.Ingress - yym2654 := z.DecBinary() - _ = yym2654 - if false { - } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2653), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2652) - } // end switch yys2652 - } // end for yyj2652 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2655 int - var yyb2655 bool - var yyhl2655 bool = l >= 0 - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l - } else { - yyb2655 = r.CheckBreak() - } - if yyb2655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ingress = nil - } else { - yyv2656 := &x.Ingress - yym2657 := z.DecBinary() - _ = yym2657 - if false { - } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2656), d) - } - } - for { - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l - } else { - yyb2655 = r.CheckBreak() - } - if yyb2655 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2655-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2658 := z.EncBinary() - _ = yym2658 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2659 = 0 - for _, b := range yyq2659 { - if b { - yynn2659++ - } - } - r.EncodeMapStart(yynn2659) - yynn2659 = 0 - } - if yyr2659 || yy2arr2659 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2659[0] { - yym2661 := z.EncBinary() - _ = yym2661 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2659[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ip")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2662 := z.EncBinary() - _ = yym2662 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } - } - if yyr2659 || yy2arr2659 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2659[1] { - yym2664 := z.EncBinary() - _ = yym2664 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2659[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostname")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2665 := z.EncBinary() - _ = yym2665 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } - } - if yyr2659 || yy2arr2659 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2666 := z.DecBinary() - _ = yym2666 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2667 := r.ContainerType() - if yyct2667 == codecSelferValueTypeMap1234 { - yyl2667 := r.ReadMapStart() - if yyl2667 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2667, d) - } - } else if yyct2667 == codecSelferValueTypeArray1234 { - yyl2667 := r.ReadArrayStart() - if yyl2667 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2667, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2668Slc = r.DecodeBytes(yys2668Slc, true, true) - yys2668 := string(yys2668Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2668 { - case "ip": - if r.TryDecodeAsNil() { - x.IP = "" - } else { - x.IP = string(r.DecodeString()) - } - case "hostname": - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2668) - } // end switch yys2668 - } // end for yyj2668 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2671 int - var yyb2671 bool - var yyhl2671 bool = l >= 0 - yyj2671++ - if yyhl2671 { - yyb2671 = yyj2671 > l - } else { - yyb2671 = r.CheckBreak() - } - if yyb2671 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IP = "" - } else { - x.IP = string(r.DecodeString()) - } - yyj2671++ - if yyhl2671 { - yyb2671 = yyj2671 > l - } else { - yyb2671 = r.CheckBreak() - } - if yyb2671 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - for { - yyj2671++ - if yyhl2671 { - yyb2671 = yyj2671 > l - } else { - yyb2671 = r.CheckBreak() - } - if yyb2671 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2671-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2674 := z.EncBinary() - _ = yym2674 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2675 = 3 - for _, b := range yyq2675 { - if b { - yynn2675++ - } - } - r.EncodeMapStart(yynn2675) - yynn2675 = 0 - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[0] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2675[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym2678 := z.EncBinary() - _ = yym2678 - if false { - } else { - h.encSliceServicePort(([]ServicePort)(x.Ports), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ports")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym2679 := z.EncBinary() - _ = yym2679 - if false { - } else { - h.encSliceServicePort(([]ServicePort)(x.Ports), e) - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2681 := z.EncBinary() - _ = yym2681 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2682 := z.EncBinary() - _ = yym2682 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[3] { - yym2684 := z.EncBinary() - _ = yym2684 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2675[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2685 := z.EncBinary() - _ = yym2685 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2687 := z.EncBinary() - _ = yym2687 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ExternalName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2688 := z.EncBinary() - _ = yym2688 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[5] { - if x.ExternalIPs == nil { - r.EncodeNil() - } else { - yym2690 := z.EncBinary() - _ = yym2690 - if false { - } else { - z.F.EncSliceStringV(x.ExternalIPs, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2675[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ExternalIPs == nil { - r.EncodeNil() - } else { - yym2691 := z.EncBinary() - _ = yym2691 - if false { - } else { - z.F.EncSliceStringV(x.ExternalIPs, false, e) - } - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[6] { - yym2693 := z.EncBinary() - _ = yym2693 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2675[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2694 := z.EncBinary() - _ = yym2694 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[7] { - x.SessionAffinity.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2675[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.SessionAffinity.CodecEncodeSelf(e) - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[8] { - if x.LoadBalancerSourceRanges == nil { - r.EncodeNil() - } else { - yym2697 := z.EncBinary() - _ = yym2697 - if false { - } else { - z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2675[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LoadBalancerSourceRanges == nil { - r.EncodeNil() - } else { - yym2698 := z.EncBinary() - _ = yym2698 - if false { - } else { - z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) - } - } - } - } - if yyr2675 || yy2arr2675 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2699 := z.DecBinary() - _ = yym2699 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2700 := r.ContainerType() - if yyct2700 == codecSelferValueTypeMap1234 { - yyl2700 := r.ReadMapStart() - if yyl2700 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2700, d) - } - } else if yyct2700 == codecSelferValueTypeArray1234 { - yyl2700 := r.ReadArrayStart() - if yyl2700 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2700, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2701Slc = r.DecodeBytes(yys2701Slc, true, true) - yys2701 := string(yys2701Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2701 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ServiceType(r.DecodeString()) - } - case "ports": - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv2703 := &x.Ports - yym2704 := z.DecBinary() - _ = yym2704 - if false { - } else { - h.decSliceServicePort((*[]ServicePort)(yyv2703), d) - } - } - case "selector": - if r.TryDecodeAsNil() { - x.Selector = nil - } else { - yyv2705 := &x.Selector - yym2706 := z.DecBinary() - _ = yym2706 - if false { - } else { - z.F.DecMapStringStringX(yyv2705, false, d) - } - } - case "clusterIP": - if r.TryDecodeAsNil() { - x.ClusterIP = "" - } else { - x.ClusterIP = string(r.DecodeString()) - } - case "ExternalName": - if r.TryDecodeAsNil() { - x.ExternalName = "" - } else { - x.ExternalName = string(r.DecodeString()) - } - case "externalIPs": - if r.TryDecodeAsNil() { - x.ExternalIPs = nil - } else { - yyv2709 := &x.ExternalIPs - yym2710 := z.DecBinary() - _ = yym2710 - if false { - } else { - z.F.DecSliceStringX(yyv2709, false, d) - } - } - case "loadBalancerIP": - if r.TryDecodeAsNil() { - x.LoadBalancerIP = "" - } else { - x.LoadBalancerIP = string(r.DecodeString()) - } - case "sessionAffinity": - if r.TryDecodeAsNil() { - x.SessionAffinity = "" - } else { - x.SessionAffinity = ServiceAffinity(r.DecodeString()) - } - case "loadBalancerSourceRanges": - if r.TryDecodeAsNil() { - x.LoadBalancerSourceRanges = nil - } else { - yyv2713 := &x.LoadBalancerSourceRanges - yym2714 := z.DecBinary() - _ = yym2714 - if false { - } else { - z.F.DecSliceStringX(yyv2713, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2701) - } // end switch yys2701 - } // end for yyj2701 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2715 int - var yyb2715 bool - var yyhl2715 bool = l >= 0 - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ServiceType(r.DecodeString()) - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv2717 := &x.Ports - yym2718 := z.DecBinary() - _ = yym2718 - if false { - } else { - h.decSliceServicePort((*[]ServicePort)(yyv2717), d) - } - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Selector = nil - } else { - yyv2719 := &x.Selector - yym2720 := z.DecBinary() - _ = yym2720 - if false { - } else { - z.F.DecMapStringStringX(yyv2719, false, d) - } - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterIP = "" - } else { - x.ClusterIP = string(r.DecodeString()) - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExternalName = "" - } else { - x.ExternalName = string(r.DecodeString()) - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExternalIPs = nil - } else { - yyv2723 := &x.ExternalIPs - yym2724 := z.DecBinary() - _ = yym2724 - if false { - } else { - z.F.DecSliceStringX(yyv2723, false, d) - } - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LoadBalancerIP = "" - } else { - x.LoadBalancerIP = string(r.DecodeString()) - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SessionAffinity = "" - } else { - x.SessionAffinity = ServiceAffinity(r.DecodeString()) - } - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LoadBalancerSourceRanges = nil - } else { - yyv2727 := &x.LoadBalancerSourceRanges - yym2728 := z.DecBinary() - _ = yym2728 - if false { - } else { - z.F.DecSliceStringX(yyv2727, false, d) - } - } - for { - yyj2715++ - if yyhl2715 { - yyb2715 = yyj2715 > l - } else { - yyb2715 = r.CheckBreak() - } - if yyb2715 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2715-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2729 := z.EncBinary() - _ = yym2729 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2730 = 5 - for _, b := range yyq2730 { - if b { - yynn2730++ - } - } - r.EncodeMapStart(yynn2730) - yynn2730 = 0 - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2732 := z.EncBinary() - _ = yym2732 - 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) - yym2733 := z.EncBinary() - _ = yym2733 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Protocol.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("protocol")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Protocol.CodecEncodeSelf(e) - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2736 := z.EncBinary() - _ = yym2736 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2737 := z.EncBinary() - _ = yym2737 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2739 := &x.TargetPort - yym2740 := z.EncBinary() - _ = yym2740 - if false { - } else if z.HasExtensions() && z.EncExt(yy2739) { - } else if !yym2740 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2739) - } else { - z.EncFallback(yy2739) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("targetPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2741 := &x.TargetPort - yym2742 := z.EncBinary() - _ = yym2742 - if false { - } else if z.HasExtensions() && z.EncExt(yy2741) { - } else if !yym2742 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2741) - } else { - z.EncFallback(yy2741) - } - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2744 := z.EncBinary() - _ = yym2744 - if false { - } else { - r.EncodeInt(int64(x.NodePort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodePort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2745 := z.EncBinary() - _ = yym2745 - if false { - } else { - r.EncodeInt(int64(x.NodePort)) - } - } - if yyr2730 || yy2arr2730 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2746 := z.DecBinary() - _ = yym2746 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2747 := r.ContainerType() - if yyct2747 == codecSelferValueTypeMap1234 { - yyl2747 := r.ReadMapStart() - if yyl2747 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2747, d) - } - } else if yyct2747 == codecSelferValueTypeArray1234 { - yyl2747 := r.ReadArrayStart() - if yyl2747 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2747, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2748Slc = r.DecodeBytes(yys2748Slc, true, true) - yys2748 := string(yys2748Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2748 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "protocol": - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - case "port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - case "targetPort": - if r.TryDecodeAsNil() { - x.TargetPort = pkg4_intstr.IntOrString{} - } else { - yyv2752 := &x.TargetPort - yym2753 := z.DecBinary() - _ = yym2753 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2752) { - } else if !yym2753 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2752) - } else { - z.DecFallback(yyv2752, false) - } - } - case "nodePort": - if r.TryDecodeAsNil() { - x.NodePort = 0 - } else { - x.NodePort = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys2748) - } // end switch yys2748 - } // end for yyj2748 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2755 int - var yyb2755 bool - var yyhl2755 bool = l >= 0 - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TargetPort = pkg4_intstr.IntOrString{} - } else { - yyv2759 := &x.TargetPort - yym2760 := z.DecBinary() - _ = yym2760 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2759) { - } else if !yym2760 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2759) - } else { - z.DecFallback(yyv2759, false) - } - } - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodePort = 0 - } else { - x.NodePort = int32(r.DecodeInt(32)) - } - for { - yyj2755++ - if yyhl2755 { - yyb2755 = yyj2755 > l - } else { - yyb2755 = r.CheckBreak() - } - if yyb2755 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2755-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2762 := z.EncBinary() - _ = yym2762 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2763 = 0 - for _, b := range yyq2763 { - if b { - yynn2763++ - } - } - r.EncodeMapStart(yynn2763) - yynn2763 = 0 - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[0] { - yym2765 := z.EncBinary() - _ = yym2765 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2763[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2766 := z.EncBinary() - _ = yym2766 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[1] { - yym2768 := z.EncBinary() - _ = yym2768 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2763[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2769 := z.EncBinary() - _ = yym2769 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[2] { - yy2771 := &x.ObjectMeta - yy2771.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2763[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2772 := &x.ObjectMeta - yy2772.CodecEncodeSelf(e) - } - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[3] { - yy2774 := &x.Spec - yy2774.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2763[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2775 := &x.Spec - yy2775.CodecEncodeSelf(e) - } - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[4] { - yy2777 := &x.Status - yy2777.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2763[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2778 := &x.Status - yy2778.CodecEncodeSelf(e) - } - } - if yyr2763 || yy2arr2763 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2779 := z.DecBinary() - _ = yym2779 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2780 := r.ContainerType() - if yyct2780 == codecSelferValueTypeMap1234 { - yyl2780 := r.ReadMapStart() - if yyl2780 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2780, d) - } - } else if yyct2780 == codecSelferValueTypeArray1234 { - yyl2780 := r.ReadArrayStart() - if yyl2780 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2780, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2781Slc = r.DecodeBytes(yys2781Slc, true, true) - yys2781 := string(yys2781Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2781 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2784 := &x.ObjectMeta - yyv2784.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} - } else { - yyv2785 := &x.Spec - yyv2785.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} - } else { - yyv2786 := &x.Status - yyv2786.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2781) - } // end switch yys2781 - } // end for yyj2781 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2787 int - var yyb2787 bool - var yyhl2787 bool = l >= 0 - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2790 := &x.ObjectMeta - yyv2790.CodecDecodeSelf(d) - } - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ServiceSpec{} - } else { - yyv2791 := &x.Spec - yyv2791.CodecDecodeSelf(d) - } - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ServiceStatus{} - } else { - yyv2792 := &x.Status - yyv2792.CodecDecodeSelf(d) - } - for { - yyj2787++ - if yyhl2787 { - yyb2787 = yyj2787 > l - } else { - yyb2787 = r.CheckBreak() - } - if yyb2787 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2787-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2793 := z.EncBinary() - _ = yym2793 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2794 = 1 - for _, b := range yyq2794 { - if b { - yynn2794++ - } - } - r.EncodeMapStart(yynn2794) - yynn2794 = 0 - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2794[0] { - yym2796 := z.EncBinary() - _ = yym2796 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2794[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2797 := z.EncBinary() - _ = yym2797 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2794[1] { - yym2799 := z.EncBinary() - _ = yym2799 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2794[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2800 := z.EncBinary() - _ = yym2800 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2794[2] { - yy2802 := &x.ObjectMeta - yy2802.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2794[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2803 := &x.ObjectMeta - yy2803.CodecEncodeSelf(e) - } - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Secrets == nil { - r.EncodeNil() - } else { - yym2805 := z.EncBinary() - _ = yym2805 - if false { - } else { - h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secrets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Secrets == nil { - r.EncodeNil() - } else { - yym2806 := z.EncBinary() - _ = yym2806 - if false { - } else { - h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) - } - } - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2794[4] { - if x.ImagePullSecrets == nil { - r.EncodeNil() - } else { - yym2808 := z.EncBinary() - _ = yym2808 - if false { - } else { - h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2794[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ImagePullSecrets == nil { - r.EncodeNil() - } else { - yym2809 := z.EncBinary() - _ = yym2809 - if false { - } else { - h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) - } - } - } - } - if yyr2794 || yy2arr2794 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2810 := z.DecBinary() - _ = yym2810 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2811 := r.ContainerType() - if yyct2811 == codecSelferValueTypeMap1234 { - yyl2811 := r.ReadMapStart() - if yyl2811 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2811, d) - } - } else if yyct2811 == codecSelferValueTypeArray1234 { - yyl2811 := r.ReadArrayStart() - if yyl2811 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2811, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2812Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2812Slc - var yyhl2812 bool = l >= 0 - for yyj2812 := 0; ; yyj2812++ { - if yyhl2812 { - if yyj2812 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2812Slc = r.DecodeBytes(yys2812Slc, true, true) - yys2812 := string(yys2812Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2812 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2815 := &x.ObjectMeta - yyv2815.CodecDecodeSelf(d) - } - case "secrets": - if r.TryDecodeAsNil() { - x.Secrets = nil - } else { - yyv2816 := &x.Secrets - yym2817 := z.DecBinary() - _ = yym2817 - if false { - } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2816), d) - } - } - case "imagePullSecrets": - if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil - } else { - yyv2818 := &x.ImagePullSecrets - yym2819 := z.DecBinary() - _ = yym2819 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2818), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2812) - } // end switch yys2812 - } // end for yyj2812 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2820 int - var yyb2820 bool - var yyhl2820 bool = l >= 0 - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2823 := &x.ObjectMeta - yyv2823.CodecDecodeSelf(d) - } - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Secrets = nil - } else { - yyv2824 := &x.Secrets - yym2825 := z.DecBinary() - _ = yym2825 - if false { - } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2824), d) - } - } - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil - } else { - yyv2826 := &x.ImagePullSecrets - yym2827 := z.DecBinary() - _ = yym2827 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2826), d) - } - } - for { - yyj2820++ - if yyhl2820 { - yyb2820 = yyj2820 > l - } else { - yyb2820 = r.CheckBreak() - } - if yyb2820 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2820-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2828 := z.EncBinary() - _ = yym2828 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2829 = 1 - for _, b := range yyq2829 { - if b { - yynn2829++ - } - } - r.EncodeMapStart(yynn2829) - yynn2829 = 0 - } - if yyr2829 || yy2arr2829 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2829[0] { - yym2831 := z.EncBinary() - _ = yym2831 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2829[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2832 := z.EncBinary() - _ = yym2832 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2829 || yy2arr2829 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2829[1] { - yym2834 := z.EncBinary() - _ = yym2834 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2829[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2835 := z.EncBinary() - _ = yym2835 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2829 || yy2arr2829 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2829[2] { - yy2837 := &x.ListMeta - yym2838 := z.EncBinary() - _ = yym2838 - if false { - } else if z.HasExtensions() && z.EncExt(yy2837) { - } else { - z.EncFallback(yy2837) - } - } else { - r.EncodeNil() - } - } else { - if yyq2829[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2839 := &x.ListMeta - yym2840 := z.EncBinary() - _ = yym2840 - if false { - } else if z.HasExtensions() && z.EncExt(yy2839) { - } else { - z.EncFallback(yy2839) - } - } - } - if yyr2829 || yy2arr2829 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2842 := z.EncBinary() - _ = yym2842 - if false { - } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2843 := z.EncBinary() - _ = yym2843 - if false { - } else { - h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) - } - } - } - if yyr2829 || yy2arr2829 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2844 := z.DecBinary() - _ = yym2844 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2845 := r.ContainerType() - if yyct2845 == codecSelferValueTypeMap1234 { - yyl2845 := r.ReadMapStart() - if yyl2845 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2845, d) - } - } else if yyct2845 == codecSelferValueTypeArray1234 { - yyl2845 := r.ReadArrayStart() - if yyl2845 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2845, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2846Slc = r.DecodeBytes(yys2846Slc, true, true) - yys2846 := string(yys2846Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2846 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv2849 := &x.ListMeta - yym2850 := z.DecBinary() - _ = yym2850 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2849) { - } else { - z.DecFallback(yyv2849, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2851 := &x.Items - yym2852 := z.DecBinary() - _ = yym2852 - if false { - } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2851), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2846) - } // end switch yys2846 - } // end for yyj2846 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2853 int - var yyb2853 bool - var yyhl2853 bool = l >= 0 - yyj2853++ - if yyhl2853 { - yyb2853 = yyj2853 > l - } else { - yyb2853 = r.CheckBreak() - } - if yyb2853 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2853++ - if yyhl2853 { - yyb2853 = yyj2853 > l - } else { - yyb2853 = r.CheckBreak() - } - if yyb2853 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2853++ - if yyhl2853 { - yyb2853 = yyj2853 > l - } else { - yyb2853 = r.CheckBreak() - } - if yyb2853 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv2856 := &x.ListMeta - yym2857 := z.DecBinary() - _ = yym2857 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2856) { - } else { - z.DecFallback(yyv2856, false) - } - } - yyj2853++ - if yyhl2853 { - yyb2853 = yyj2853 > l - } else { - yyb2853 = r.CheckBreak() - } - if yyb2853 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2858 := &x.Items - yym2859 := z.DecBinary() - _ = yym2859 - if false { - } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2858), d) - } - } - for { - yyj2853++ - if yyhl2853 { - yyb2853 = yyj2853 > l - } else { - yyb2853 = r.CheckBreak() - } - if yyb2853 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2853-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2860 := z.EncBinary() - _ = yym2860 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2861 = 1 - for _, b := range yyq2861 { - if b { - yynn2861++ - } - } - r.EncodeMapStart(yynn2861) - yynn2861 = 0 - } - if yyr2861 || yy2arr2861 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2861[0] { - yym2863 := z.EncBinary() - _ = yym2863 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2861[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2864 := z.EncBinary() - _ = yym2864 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2861 || yy2arr2861 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2861[1] { - yym2866 := z.EncBinary() - _ = yym2866 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2861[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2867 := z.EncBinary() - _ = yym2867 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2861 || yy2arr2861 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2861[2] { - yy2869 := &x.ObjectMeta - yy2869.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2861[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2870 := &x.ObjectMeta - yy2870.CodecEncodeSelf(e) - } - } - if yyr2861 || yy2arr2861 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym2872 := z.EncBinary() - _ = yym2872 - if false { - } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Subsets")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Subsets == nil { - r.EncodeNil() - } else { - yym2873 := z.EncBinary() - _ = yym2873 - if false { - } else { - h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) - } - } - } - if yyr2861 || yy2arr2861 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2874 := z.DecBinary() - _ = yym2874 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2875 := r.ContainerType() - if yyct2875 == codecSelferValueTypeMap1234 { - yyl2875 := r.ReadMapStart() - if yyl2875 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2875, d) - } - } else if yyct2875 == codecSelferValueTypeArray1234 { - yyl2875 := r.ReadArrayStart() - if yyl2875 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2875, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2876Slc = r.DecodeBytes(yys2876Slc, true, true) - yys2876 := string(yys2876Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2876 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv2879 := &x.ObjectMeta - yyv2879.CodecDecodeSelf(d) - } - case "Subsets": - if r.TryDecodeAsNil() { - x.Subsets = nil - } else { - yyv2880 := &x.Subsets - yym2881 := z.DecBinary() - _ = yym2881 - if false { - } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2880), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2876) - } // end switch yys2876 - } // end for yyj2876 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2882 int - var yyb2882 bool - var yyhl2882 bool = l >= 0 - yyj2882++ - if yyhl2882 { - yyb2882 = yyj2882 > l - } else { - yyb2882 = r.CheckBreak() - } - if yyb2882 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2882++ - if yyhl2882 { - yyb2882 = yyj2882 > l - } else { - yyb2882 = r.CheckBreak() - } - if yyb2882 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2882++ - if yyhl2882 { - yyb2882 = yyj2882 > l - } else { - yyb2882 = r.CheckBreak() - } - if yyb2882 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2885 := &x.ObjectMeta - yyv2885.CodecDecodeSelf(d) - } - yyj2882++ - if yyhl2882 { - yyb2882 = yyj2882 > l - } else { - yyb2882 = r.CheckBreak() - } - if yyb2882 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Subsets = nil - } else { - yyv2886 := &x.Subsets - yym2887 := z.DecBinary() - _ = yym2887 - if false { - } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2886), d) - } - } - for { - yyj2882++ - if yyhl2882 { - yyb2882 = yyj2882 > l - } else { - yyb2882 = r.CheckBreak() - } - if yyb2882 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2882-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2888 := z.EncBinary() - _ = yym2888 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2889 = 3 - for _, b := range yyq2889 { - if b { - yynn2889++ - } - } - r.EncodeMapStart(yynn2889) - yynn2889 = 0 - } - if yyr2889 || yy2arr2889 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Addresses == nil { - r.EncodeNil() - } else { - yym2891 := z.EncBinary() - _ = yym2891 - if false { - } else { - h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Addresses")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Addresses == nil { - r.EncodeNil() - } else { - yym2892 := z.EncBinary() - _ = yym2892 - if false { - } else { - h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) - } - } - } - if yyr2889 || yy2arr2889 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NotReadyAddresses == nil { - r.EncodeNil() - } else { - yym2894 := z.EncBinary() - _ = yym2894 - if false { - } else { - h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("NotReadyAddresses")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NotReadyAddresses == nil { - r.EncodeNil() - } else { - yym2895 := z.EncBinary() - _ = yym2895 - if false { - } else { - h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) - } - } - } - if yyr2889 || yy2arr2889 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym2897 := z.EncBinary() - _ = yym2897 - if false { - } else { - h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Ports")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym2898 := z.EncBinary() - _ = yym2898 - if false { - } else { - h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) - } - } - } - if yyr2889 || yy2arr2889 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2899 := z.DecBinary() - _ = yym2899 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2900 := r.ContainerType() - if yyct2900 == codecSelferValueTypeMap1234 { - yyl2900 := r.ReadMapStart() - if yyl2900 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2900, d) - } - } else if yyct2900 == codecSelferValueTypeArray1234 { - yyl2900 := r.ReadArrayStart() - if yyl2900 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2900, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2901Slc = r.DecodeBytes(yys2901Slc, true, true) - yys2901 := string(yys2901Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2901 { - case "Addresses": - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv2902 := &x.Addresses - yym2903 := z.DecBinary() - _ = yym2903 - if false { - } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2902), d) - } - } - case "NotReadyAddresses": - if r.TryDecodeAsNil() { - x.NotReadyAddresses = nil - } else { - yyv2904 := &x.NotReadyAddresses - yym2905 := z.DecBinary() - _ = yym2905 - if false { - } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2904), d) - } - } - case "Ports": - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv2906 := &x.Ports - yym2907 := z.DecBinary() - _ = yym2907 - if false { - } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2906), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2901) - } // end switch yys2901 - } // end for yyj2901 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2908 int - var yyb2908 bool - var yyhl2908 bool = l >= 0 - yyj2908++ - if yyhl2908 { - yyb2908 = yyj2908 > l - } else { - yyb2908 = r.CheckBreak() - } - if yyb2908 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv2909 := &x.Addresses - yym2910 := z.DecBinary() - _ = yym2910 - if false { - } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2909), d) - } - } - yyj2908++ - if yyhl2908 { - yyb2908 = yyj2908 > l - } else { - yyb2908 = r.CheckBreak() - } - if yyb2908 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NotReadyAddresses = nil - } else { - yyv2911 := &x.NotReadyAddresses - yym2912 := z.DecBinary() - _ = yym2912 - if false { - } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2911), d) - } - } - yyj2908++ - if yyhl2908 { - yyb2908 = yyj2908 > l - } else { - yyb2908 = r.CheckBreak() - } - if yyb2908 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv2913 := &x.Ports - yym2914 := z.DecBinary() - _ = yym2914 - if false { - } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2913), d) - } - } - for { - yyj2908++ - if yyhl2908 { - yyb2908 = yyj2908 > l - } else { - yyb2908 = r.CheckBreak() - } - if yyb2908 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2908-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2915 := z.EncBinary() - _ = yym2915 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2916 = 2 - for _, b := range yyq2916 { - if b { - yynn2916++ - } - } - r.EncodeMapStart(yynn2916) - yynn2916 = 0 - } - if yyr2916 || yy2arr2916 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2918 := z.EncBinary() - _ = yym2918 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("IP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2919 := z.EncBinary() - _ = yym2919 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } - if yyr2916 || yy2arr2916 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2916[1] { - yym2921 := z.EncBinary() - _ = yym2921 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2916[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostname")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2922 := z.EncBinary() - _ = yym2922 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } - } - if yyr2916 || yy2arr2916 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2916[2] { - if x.NodeName == nil { - r.EncodeNil() - } else { - yy2924 := *x.NodeName - yym2925 := z.EncBinary() - _ = yym2925 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2924)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2916[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NodeName == nil { - r.EncodeNil() - } else { - yy2926 := *x.NodeName - yym2927 := z.EncBinary() - _ = yym2927 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2926)) - } - } - } - } - if yyr2916 || yy2arr2916 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.TargetRef == nil { - r.EncodeNil() - } else { - x.TargetRef.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("TargetRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TargetRef == nil { - r.EncodeNil() - } else { - x.TargetRef.CodecEncodeSelf(e) - } - } - if yyr2916 || yy2arr2916 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2929 := z.DecBinary() - _ = yym2929 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2930 := r.ContainerType() - if yyct2930 == codecSelferValueTypeMap1234 { - yyl2930 := r.ReadMapStart() - if yyl2930 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2930, d) - } - } else if yyct2930 == codecSelferValueTypeArray1234 { - yyl2930 := r.ReadArrayStart() - if yyl2930 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2930, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2931Slc = r.DecodeBytes(yys2931Slc, true, true) - yys2931 := string(yys2931Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2931 { - case "IP": - if r.TryDecodeAsNil() { - x.IP = "" - } else { - x.IP = string(r.DecodeString()) - } - case "hostname": - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - case "nodeName": - if r.TryDecodeAsNil() { - if x.NodeName != nil { - x.NodeName = nil - } - } else { - if x.NodeName == nil { - x.NodeName = new(string) - } - yym2935 := z.DecBinary() - _ = yym2935 - if false { - } else { - *((*string)(x.NodeName)) = r.DecodeString() - } - } - case "TargetRef": - if r.TryDecodeAsNil() { - if x.TargetRef != nil { - x.TargetRef = nil - } - } else { - if x.TargetRef == nil { - x.TargetRef = new(ObjectReference) - } - x.TargetRef.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2931) - } // end switch yys2931 - } // end for yyj2931 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2937 int - var yyb2937 bool - var yyhl2937 bool = l >= 0 - yyj2937++ - if yyhl2937 { - yyb2937 = yyj2937 > l - } else { - yyb2937 = r.CheckBreak() - } - if yyb2937 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IP = "" - } else { - x.IP = string(r.DecodeString()) - } - yyj2937++ - if yyhl2937 { - yyb2937 = yyj2937 > l - } else { - yyb2937 = r.CheckBreak() - } - if yyb2937 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - yyj2937++ - if yyhl2937 { - yyb2937 = yyj2937 > l - } else { - yyb2937 = r.CheckBreak() - } - if yyb2937 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.NodeName != nil { - x.NodeName = nil - } - } else { - if x.NodeName == nil { - x.NodeName = new(string) - } - yym2941 := z.DecBinary() - _ = yym2941 - if false { - } else { - *((*string)(x.NodeName)) = r.DecodeString() - } - } - yyj2937++ - if yyhl2937 { - yyb2937 = yyj2937 > l - } else { - yyb2937 = r.CheckBreak() - } - if yyb2937 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.TargetRef != nil { - x.TargetRef = nil - } - } else { - if x.TargetRef == nil { - x.TargetRef = new(ObjectReference) - } - x.TargetRef.CodecDecodeSelf(d) - } - for { - yyj2937++ - if yyhl2937 { - yyb2937 = yyj2937 > l - } else { - yyb2937 = r.CheckBreak() - } - if yyb2937 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2937-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2943 := z.EncBinary() - _ = yym2943 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2944 = 3 - for _, b := range yyq2944 { - if b { - yynn2944++ - } - } - r.EncodeMapStart(yynn2944) - yynn2944 = 0 - } - if yyr2944 || yy2arr2944 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2946 := z.EncBinary() - _ = yym2946 - 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) - yym2947 := z.EncBinary() - _ = yym2947 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr2944 || yy2arr2944 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2949 := z.EncBinary() - _ = yym2949 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2950 := z.EncBinary() - _ = yym2950 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr2944 || yy2arr2944 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Protocol.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Protocol")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Protocol.CodecEncodeSelf(e) - } - if yyr2944 || yy2arr2944 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2952 := z.DecBinary() - _ = yym2952 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2953 := r.ContainerType() - if yyct2953 == codecSelferValueTypeMap1234 { - yyl2953 := r.ReadMapStart() - if yyl2953 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2953, d) - } - } else if yyct2953 == codecSelferValueTypeArray1234 { - yyl2953 := r.ReadArrayStart() - if yyl2953 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2953, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2954Slc = r.DecodeBytes(yys2954Slc, true, true) - yys2954 := string(yys2954Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2954 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "Port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - case "Protocol": - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2954) - } // end switch yys2954 - } // end for yyj2954 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2958 int - var yyb2958 bool - var yyhl2958 bool = l >= 0 - yyj2958++ - if yyhl2958 { - yyb2958 = yyj2958 > l - } else { - yyb2958 = r.CheckBreak() - } - if yyb2958 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj2958++ - if yyhl2958 { - yyb2958 = yyj2958 > l - } else { - yyb2958 = r.CheckBreak() - } - if yyb2958 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj2958++ - if yyhl2958 { - yyb2958 = yyj2958 > l - } else { - yyb2958 = r.CheckBreak() - } - if yyb2958 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - x.Protocol = Protocol(r.DecodeString()) - } - for { - yyj2958++ - if yyhl2958 { - yyb2958 = yyj2958 > l - } else { - yyb2958 = r.CheckBreak() - } - if yyb2958 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2958-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2962 := z.EncBinary() - _ = yym2962 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2963 = 1 - for _, b := range yyq2963 { - if b { - yynn2963++ - } - } - r.EncodeMapStart(yynn2963) - yynn2963 = 0 - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2963[0] { - yym2965 := z.EncBinary() - _ = yym2965 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2963[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2966 := z.EncBinary() - _ = yym2966 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2963[1] { - yym2968 := z.EncBinary() - _ = yym2968 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2963[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2969 := z.EncBinary() - _ = yym2969 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2963[2] { - yy2971 := &x.ListMeta - yym2972 := z.EncBinary() - _ = yym2972 - if false { - } else if z.HasExtensions() && z.EncExt(yy2971) { - } else { - z.EncFallback(yy2971) - } - } else { - r.EncodeNil() - } - } else { - if yyq2963[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2973 := &x.ListMeta - yym2974 := z.EncBinary() - _ = yym2974 - if false { - } else if z.HasExtensions() && z.EncExt(yy2973) { - } else { - z.EncFallback(yy2973) - } - } - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2976 := z.EncBinary() - _ = yym2976 - if false { - } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2977 := z.EncBinary() - _ = yym2977 - if false { - } else { - h.encSliceEndpoints(([]Endpoints)(x.Items), e) - } - } - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2978 := z.DecBinary() - _ = yym2978 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2979 := r.ContainerType() - if yyct2979 == codecSelferValueTypeMap1234 { - yyl2979 := r.ReadMapStart() - if yyl2979 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2979, d) - } - } else if yyct2979 == codecSelferValueTypeArray1234 { - yyl2979 := r.ReadArrayStart() - if yyl2979 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2979, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2980Slc = r.DecodeBytes(yys2980Slc, true, true) - yys2980 := string(yys2980Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2980 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv2983 := &x.ListMeta - yym2984 := z.DecBinary() - _ = yym2984 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2983) { - } else { - z.DecFallback(yyv2983, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2985 := &x.Items - yym2986 := z.DecBinary() - _ = yym2986 - if false { - } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2985), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2980) - } // end switch yys2980 - } // end for yyj2980 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2987 int - var yyb2987 bool - var yyhl2987 bool = l >= 0 - yyj2987++ - if yyhl2987 { - yyb2987 = yyj2987 > l - } else { - yyb2987 = r.CheckBreak() - } - if yyb2987 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2987++ - if yyhl2987 { - yyb2987 = yyj2987 > l - } else { - yyb2987 = r.CheckBreak() - } - if yyb2987 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2987++ - if yyhl2987 { - yyb2987 = yyj2987 > l - } else { - yyb2987 = r.CheckBreak() - } - if yyb2987 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv2990 := &x.ListMeta - yym2991 := z.DecBinary() - _ = yym2991 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2990) { - } else { - z.DecFallback(yyv2990, false) - } - } - yyj2987++ - if yyhl2987 { - yyb2987 = yyj2987 > l - } else { - yyb2987 = r.CheckBreak() - } - if yyb2987 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2992 := &x.Items - yym2993 := z.DecBinary() - _ = yym2993 - if false { - } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2992), d) - } - } - for { - yyj2987++ - if yyhl2987 { - yyb2987 = yyj2987 > l - } else { - yyb2987 = r.CheckBreak() - } - if yyb2987 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2987-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2994 := z.EncBinary() - _ = yym2994 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2995 = 0 - for _, b := range yyq2995 { - if b { - yynn2995++ - } - } - r.EncodeMapStart(yynn2995) - yynn2995 = 0 - } - if yyr2995 || yy2arr2995 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2995[0] { - yym2997 := z.EncBinary() - _ = yym2997 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2995[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2998 := z.EncBinary() - _ = yym2998 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) - } - } - } - if yyr2995 || yy2arr2995 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2995[1] { - yym3000 := z.EncBinary() - _ = yym3000 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2995[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("externalID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3001 := z.EncBinary() - _ = yym3001 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) - } - } - } - if yyr2995 || yy2arr2995 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2995[2] { - yym3003 := z.EncBinary() - _ = yym3003 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2995[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("providerID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3004 := z.EncBinary() - _ = yym3004 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) - } - } - } - if yyr2995 || yy2arr2995 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2995[3] { - yym3006 := z.EncBinary() - _ = yym3006 - if false { - } else { - r.EncodeBool(bool(x.Unschedulable)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq2995[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3007 := z.EncBinary() - _ = yym3007 - if false { - } else { - r.EncodeBool(bool(x.Unschedulable)) - } - } - } - if yyr2995 || yy2arr2995 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3008 := z.DecBinary() - _ = yym3008 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3009 := r.ContainerType() - if yyct3009 == codecSelferValueTypeMap1234 { - yyl3009 := r.ReadMapStart() - if yyl3009 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3009, d) - } - } else if yyct3009 == codecSelferValueTypeArray1234 { - yyl3009 := r.ReadArrayStart() - if yyl3009 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3009, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3010Slc = r.DecodeBytes(yys3010Slc, true, true) - yys3010 := string(yys3010Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3010 { - case "podCIDR": - if r.TryDecodeAsNil() { - x.PodCIDR = "" - } else { - x.PodCIDR = string(r.DecodeString()) - } - case "externalID": - if r.TryDecodeAsNil() { - x.ExternalID = "" - } else { - x.ExternalID = string(r.DecodeString()) - } - case "providerID": - if r.TryDecodeAsNil() { - x.ProviderID = "" - } else { - x.ProviderID = string(r.DecodeString()) - } - case "unschedulable": - if r.TryDecodeAsNil() { - x.Unschedulable = false - } else { - x.Unschedulable = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys3010) - } // end switch yys3010 - } // end for yyj3010 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3015 int - var yyb3015 bool - var yyhl3015 bool = l >= 0 - yyj3015++ - if yyhl3015 { - yyb3015 = yyj3015 > l - } else { - yyb3015 = r.CheckBreak() - } - if yyb3015 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodCIDR = "" - } else { - x.PodCIDR = string(r.DecodeString()) - } - yyj3015++ - if yyhl3015 { - yyb3015 = yyj3015 > l - } else { - yyb3015 = r.CheckBreak() - } - if yyb3015 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExternalID = "" - } else { - x.ExternalID = string(r.DecodeString()) - } - yyj3015++ - if yyhl3015 { - yyb3015 = yyj3015 > l - } else { - yyb3015 = r.CheckBreak() - } - if yyb3015 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ProviderID = "" - } else { - x.ProviderID = string(r.DecodeString()) - } - yyj3015++ - if yyhl3015 { - yyb3015 = yyj3015 > l - } else { - yyb3015 = r.CheckBreak() - } - if yyb3015 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Unschedulable = false - } else { - x.Unschedulable = bool(r.DecodeBool()) - } - for { - yyj3015++ - if yyhl3015 { - yyb3015 = yyj3015 > l - } else { - yyb3015 = r.CheckBreak() - } - if yyb3015 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3015-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3020 := z.EncBinary() - _ = yym3020 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3021 = 1 - for _, b := range yyq3021 { - if b { - yynn3021++ - } - } - r.EncodeMapStart(yynn3021) - yynn3021 = 0 - } - if yyr3021 || yy2arr3021 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3023 := z.EncBinary() - _ = yym3023 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3024 := z.EncBinary() - _ = yym3024 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr3021 || yy2arr3021 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3025 := z.DecBinary() - _ = yym3025 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3026 := r.ContainerType() - if yyct3026 == codecSelferValueTypeMap1234 { - yyl3026 := r.ReadMapStart() - if yyl3026 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3026, d) - } - } else if yyct3026 == codecSelferValueTypeArray1234 { - yyl3026 := r.ReadArrayStart() - if yyl3026 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3026, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3027Slc = r.DecodeBytes(yys3027Slc, true, true) - yys3027 := string(yys3027Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3027 { - case "Port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys3027) - } // end switch yys3027 - } // end for yyj3027 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3029 int - var yyb3029 bool - var yyhl3029 bool = l >= 0 - yyj3029++ - if yyhl3029 { - yyb3029 = yyj3029 > l - } else { - yyb3029 = r.CheckBreak() - } - if yyb3029 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - for { - yyj3029++ - if yyhl3029 { - yyb3029 = yyj3029 > l - } else { - yyb3029 = r.CheckBreak() - } - if yyb3029 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3029-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3031 := z.EncBinary() - _ = yym3031 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3032 = 0 - for _, b := range yyq3032 { - if b { - yynn3032++ - } - } - r.EncodeMapStart(yynn3032) - yynn3032 = 0 - } - if yyr3032 || yy2arr3032 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3032[0] { - yy3034 := &x.KubeletEndpoint - yy3034.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3032[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3035 := &x.KubeletEndpoint - yy3035.CodecEncodeSelf(e) - } - } - if yyr3032 || yy2arr3032 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3036 := z.DecBinary() - _ = yym3036 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3037 := r.ContainerType() - if yyct3037 == codecSelferValueTypeMap1234 { - yyl3037 := r.ReadMapStart() - if yyl3037 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3037, d) - } - } else if yyct3037 == codecSelferValueTypeArray1234 { - yyl3037 := r.ReadArrayStart() - if yyl3037 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3037, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3038Slc = r.DecodeBytes(yys3038Slc, true, true) - yys3038 := string(yys3038Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3038 { - case "kubeletEndpoint": - if r.TryDecodeAsNil() { - x.KubeletEndpoint = DaemonEndpoint{} - } else { - yyv3039 := &x.KubeletEndpoint - yyv3039.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3038) - } // end switch yys3038 - } // end for yyj3038 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3040 int - var yyb3040 bool - var yyhl3040 bool = l >= 0 - yyj3040++ - if yyhl3040 { - yyb3040 = yyj3040 > l - } else { - yyb3040 = r.CheckBreak() - } - if yyb3040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeletEndpoint = DaemonEndpoint{} - } else { - yyv3041 := &x.KubeletEndpoint - yyv3041.CodecDecodeSelf(d) - } - for { - yyj3040++ - if yyhl3040 { - yyb3040 = yyj3040 > l - } else { - yyb3040 = r.CheckBreak() - } - if yyb3040 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3040-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3042 := z.EncBinary() - _ = yym3042 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3043 = 10 - for _, b := range yyq3043 { - if b { - yynn3043++ - } - } - r.EncodeMapStart(yynn3043) - yynn3043 = 0 - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3045 := z.EncBinary() - _ = yym3045 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("machineID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3046 := z.EncBinary() - _ = yym3046 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3048 := z.EncBinary() - _ = yym3048 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3049 := z.EncBinary() - _ = yym3049 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3051 := z.EncBinary() - _ = yym3051 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("bootID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3052 := z.EncBinary() - _ = yym3052 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3054 := z.EncBinary() - _ = yym3054 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3055 := z.EncBinary() - _ = yym3055 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3057 := z.EncBinary() - _ = yym3057 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("osImage")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3058 := z.EncBinary() - _ = yym3058 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3060 := z.EncBinary() - _ = yym3060 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3061 := z.EncBinary() - _ = yym3061 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3063 := z.EncBinary() - _ = yym3063 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3064 := z.EncBinary() - _ = yym3064 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3066 := z.EncBinary() - _ = yym3066 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3067 := z.EncBinary() - _ = yym3067 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3069 := z.EncBinary() - _ = yym3069 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3070 := z.EncBinary() - _ = yym3070 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3072 := z.EncBinary() - _ = yym3072 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("architecture")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3073 := z.EncBinary() - _ = yym3073 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) - } - } - if yyr3043 || yy2arr3043 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3074 := z.DecBinary() - _ = yym3074 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3075 := r.ContainerType() - if yyct3075 == codecSelferValueTypeMap1234 { - yyl3075 := r.ReadMapStart() - if yyl3075 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3075, d) - } - } else if yyct3075 == codecSelferValueTypeArray1234 { - yyl3075 := r.ReadArrayStart() - if yyl3075 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3075, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3076Slc = r.DecodeBytes(yys3076Slc, true, true) - yys3076 := string(yys3076Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3076 { - case "machineID": - if r.TryDecodeAsNil() { - x.MachineID = "" - } else { - x.MachineID = string(r.DecodeString()) - } - case "systemUUID": - if r.TryDecodeAsNil() { - x.SystemUUID = "" - } else { - x.SystemUUID = string(r.DecodeString()) - } - case "bootID": - if r.TryDecodeAsNil() { - x.BootID = "" - } else { - x.BootID = string(r.DecodeString()) - } - case "kernelVersion": - if r.TryDecodeAsNil() { - x.KernelVersion = "" - } else { - x.KernelVersion = string(r.DecodeString()) - } - case "osImage": - if r.TryDecodeAsNil() { - x.OSImage = "" - } else { - x.OSImage = string(r.DecodeString()) - } - case "containerRuntimeVersion": - if r.TryDecodeAsNil() { - x.ContainerRuntimeVersion = "" - } else { - x.ContainerRuntimeVersion = string(r.DecodeString()) - } - case "kubeletVersion": - if r.TryDecodeAsNil() { - x.KubeletVersion = "" - } else { - x.KubeletVersion = string(r.DecodeString()) - } - case "kubeProxyVersion": - if r.TryDecodeAsNil() { - x.KubeProxyVersion = "" - } else { - x.KubeProxyVersion = string(r.DecodeString()) - } - case "operatingSystem": - if r.TryDecodeAsNil() { - x.OperatingSystem = "" - } else { - x.OperatingSystem = string(r.DecodeString()) - } - case "architecture": - if r.TryDecodeAsNil() { - x.Architecture = "" - } else { - x.Architecture = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3076) - } // end switch yys3076 - } // end for yyj3076 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3087 int - var yyb3087 bool - var yyhl3087 bool = l >= 0 - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MachineID = "" - } else { - x.MachineID = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SystemUUID = "" - } else { - x.SystemUUID = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.BootID = "" - } else { - x.BootID = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KernelVersion = "" - } else { - x.KernelVersion = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OSImage = "" - } else { - x.OSImage = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerRuntimeVersion = "" - } else { - x.ContainerRuntimeVersion = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeletVersion = "" - } else { - x.KubeletVersion = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeProxyVersion = "" - } else { - x.KubeProxyVersion = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OperatingSystem = "" - } else { - x.OperatingSystem = string(r.DecodeString()) - } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Architecture = "" - } else { - x.Architecture = string(r.DecodeString()) - } - for { - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l - } else { - yyb3087 = r.CheckBreak() - } - if yyb3087 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3087-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3098 := z.EncBinary() - _ = yym3098 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3099 = 0 - for _, b := range yyq3099 { - if b { - yynn3099++ - } - } - r.EncodeMapStart(yynn3099) - yynn3099 = 0 - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[0] { - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capacity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[1] { - if x.Allocatable == nil { - r.EncodeNil() - } else { - x.Allocatable.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allocatable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Allocatable == nil { - r.EncodeNil() - } else { - x.Allocatable.CodecEncodeSelf(e) - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[2] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3099[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[3] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym3104 := z.EncBinary() - _ = yym3104 - if false { - } else { - h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym3105 := z.EncBinary() - _ = yym3105 - if false { - } else { - h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) - } - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[4] { - if x.Addresses == nil { - r.EncodeNil() - } else { - yym3107 := z.EncBinary() - _ = yym3107 - if false { - } else { - h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("addresses")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Addresses == nil { - r.EncodeNil() - } else { - yym3108 := z.EncBinary() - _ = yym3108 - if false { - } else { - h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) - } - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[5] { - yy3110 := &x.DaemonEndpoints - yy3110.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3099[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3111 := &x.DaemonEndpoints - yy3111.CodecEncodeSelf(e) - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[6] { - yy3113 := &x.NodeInfo - yy3113.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3099[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3114 := &x.NodeInfo - yy3114.CodecEncodeSelf(e) - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[7] { - if x.Images == nil { - r.EncodeNil() - } else { - yym3116 := z.EncBinary() - _ = yym3116 - if false { - } else { - h.encSliceContainerImage(([]ContainerImage)(x.Images), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("images")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Images == nil { - r.EncodeNil() - } else { - yym3117 := z.EncBinary() - _ = yym3117 - if false { - } else { - h.encSliceContainerImage(([]ContainerImage)(x.Images), e) - } - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[8] { - if x.VolumesInUse == nil { - r.EncodeNil() - } else { - yym3119 := z.EncBinary() - _ = yym3119 - if false { - } else { - h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VolumesInUse == nil { - r.EncodeNil() - } else { - yym3120 := z.EncBinary() - _ = yym3120 - if false { - } else { - h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) - } - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3099[9] { - if x.VolumesAttached == nil { - r.EncodeNil() - } else { - yym3122 := z.EncBinary() - _ = yym3122 - if false { - } else { - h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3099[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VolumesAttached == nil { - r.EncodeNil() - } else { - yym3123 := z.EncBinary() - _ = yym3123 - if false { - } else { - h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) - } - } - } - } - if yyr3099 || yy2arr3099 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3124 := z.DecBinary() - _ = yym3124 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3125 := r.ContainerType() - if yyct3125 == codecSelferValueTypeMap1234 { - yyl3125 := r.ReadMapStart() - if yyl3125 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3125, d) - } - } else if yyct3125 == codecSelferValueTypeArray1234 { - yyl3125 := r.ReadArrayStart() - if yyl3125 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3125, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3126Slc = r.DecodeBytes(yys3126Slc, true, true) - yys3126 := string(yys3126Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3126 { - case "capacity": - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv3127 := &x.Capacity - yyv3127.CodecDecodeSelf(d) - } - case "allocatable": - if r.TryDecodeAsNil() { - x.Allocatable = nil - } else { - yyv3128 := &x.Allocatable - yyv3128.CodecDecodeSelf(d) - } - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NodePhase(r.DecodeString()) - } - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv3130 := &x.Conditions - yym3131 := z.DecBinary() - _ = yym3131 - if false { - } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3130), d) - } - } - case "addresses": - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv3132 := &x.Addresses - yym3133 := z.DecBinary() - _ = yym3133 - if false { - } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3132), d) - } - } - case "daemonEndpoints": - if r.TryDecodeAsNil() { - x.DaemonEndpoints = NodeDaemonEndpoints{} - } else { - yyv3134 := &x.DaemonEndpoints - yyv3134.CodecDecodeSelf(d) - } - case "nodeInfo": - if r.TryDecodeAsNil() { - x.NodeInfo = NodeSystemInfo{} - } else { - yyv3135 := &x.NodeInfo - yyv3135.CodecDecodeSelf(d) - } - case "images": - if r.TryDecodeAsNil() { - x.Images = nil - } else { - yyv3136 := &x.Images - yym3137 := z.DecBinary() - _ = yym3137 - if false { - } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3136), d) - } - } - case "volumesInUse": - if r.TryDecodeAsNil() { - x.VolumesInUse = nil - } else { - yyv3138 := &x.VolumesInUse - yym3139 := z.DecBinary() - _ = yym3139 - if false { - } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3138), d) - } - } - case "volumesAttached": - if r.TryDecodeAsNil() { - x.VolumesAttached = nil - } else { - yyv3140 := &x.VolumesAttached - yym3141 := z.DecBinary() - _ = yym3141 - if false { - } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3140), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3126) - } // end switch yys3126 - } // end for yyj3126 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3142 int - var yyb3142 bool - var yyhl3142 bool = l >= 0 - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv3143 := &x.Capacity - yyv3143.CodecDecodeSelf(d) - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Allocatable = nil - } else { - yyv3144 := &x.Allocatable - yyv3144.CodecDecodeSelf(d) - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NodePhase(r.DecodeString()) - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv3146 := &x.Conditions - yym3147 := z.DecBinary() - _ = yym3147 - if false { - } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3146), d) - } - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv3148 := &x.Addresses - yym3149 := z.DecBinary() - _ = yym3149 - if false { - } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3148), d) - } - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DaemonEndpoints = NodeDaemonEndpoints{} - } else { - yyv3150 := &x.DaemonEndpoints - yyv3150.CodecDecodeSelf(d) - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeInfo = NodeSystemInfo{} - } else { - yyv3151 := &x.NodeInfo - yyv3151.CodecDecodeSelf(d) - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Images = nil - } else { - yyv3152 := &x.Images - yym3153 := z.DecBinary() - _ = yym3153 - if false { - } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3152), d) - } - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumesInUse = nil - } else { - yyv3154 := &x.VolumesInUse - yym3155 := z.DecBinary() - _ = yym3155 - if false { - } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3154), d) - } - } - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumesAttached = nil - } else { - yyv3156 := &x.VolumesAttached - yym3157 := z.DecBinary() - _ = yym3157 - if false { - } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3156), d) - } - } - for { - yyj3142++ - if yyhl3142 { - yyb3142 = yyj3142 > l - } else { - yyb3142 = r.CheckBreak() - } - if yyb3142 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3142-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3158 := z.EncBinary() - _ = yym3158 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3159 := z.DecBinary() - _ = yym3159 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3160 := z.EncBinary() - _ = yym3160 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3161 = 2 - for _, b := range yyq3161 { - if b { - yynn3161++ - } - } - r.EncodeMapStart(yynn3161) - yynn3161 = 0 - } - if yyr3161 || yy2arr3161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Name.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Name.CodecEncodeSelf(e) - } - if yyr3161 || yy2arr3161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3164 := z.EncBinary() - _ = yym3164 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("devicePath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3165 := z.EncBinary() - _ = yym3165 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) - } - } - if yyr3161 || yy2arr3161 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3166 := z.DecBinary() - _ = yym3166 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3167 := r.ContainerType() - if yyct3167 == codecSelferValueTypeMap1234 { - yyl3167 := r.ReadMapStart() - if yyl3167 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3167, d) - } - } else if yyct3167 == codecSelferValueTypeArray1234 { - yyl3167 := r.ReadArrayStart() - if yyl3167 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3167, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3168Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3168Slc - var yyhl3168 bool = l >= 0 - for yyj3168 := 0; ; yyj3168++ { - if yyhl3168 { - if yyj3168 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3168Slc = r.DecodeBytes(yys3168Slc, true, true) - yys3168 := string(yys3168Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3168 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = UniqueVolumeName(r.DecodeString()) - } - case "devicePath": - if r.TryDecodeAsNil() { - x.DevicePath = "" - } else { - x.DevicePath = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3168) - } // end switch yys3168 - } // end for yyj3168 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3171 int - var yyb3171 bool - var yyhl3171 bool = l >= 0 - yyj3171++ - if yyhl3171 { - yyb3171 = yyj3171 > l - } else { - yyb3171 = r.CheckBreak() - } - if yyb3171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = UniqueVolumeName(r.DecodeString()) - } - yyj3171++ - if yyhl3171 { - yyb3171 = yyj3171 > l - } else { - yyb3171 = r.CheckBreak() - } - if yyb3171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DevicePath = "" - } else { - x.DevicePath = string(r.DecodeString()) - } - for { - yyj3171++ - if yyhl3171 { - yyb3171 = yyj3171 > l - } else { - yyb3171 = r.CheckBreak() - } - if yyb3171 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3171-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3174 := z.EncBinary() - _ = yym3174 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3175 = 0 - for _, b := range yyq3175 { - if b { - yynn3175++ - } - } - r.EncodeMapStart(yynn3175) - yynn3175 = 0 - } - if yyr3175 || yy2arr3175 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3175[0] { - if x.PreferAvoidPods == nil { - r.EncodeNil() - } else { - yym3177 := z.EncBinary() - _ = yym3177 - if false { - } else { - h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3175[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreferAvoidPods == nil { - r.EncodeNil() - } else { - yym3178 := z.EncBinary() - _ = yym3178 - if false { - } else { - h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) - } - } - } - } - if yyr3175 || yy2arr3175 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3179 := z.DecBinary() - _ = yym3179 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3180 := r.ContainerType() - if yyct3180 == codecSelferValueTypeMap1234 { - yyl3180 := r.ReadMapStart() - if yyl3180 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3180, d) - } - } else if yyct3180 == codecSelferValueTypeArray1234 { - yyl3180 := r.ReadArrayStart() - if yyl3180 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3180, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3181Slc = r.DecodeBytes(yys3181Slc, true, true) - yys3181 := string(yys3181Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3181 { - case "preferAvoidPods": - if r.TryDecodeAsNil() { - x.PreferAvoidPods = nil - } else { - yyv3182 := &x.PreferAvoidPods - yym3183 := z.DecBinary() - _ = yym3183 - if false { - } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3182), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3181) - } // end switch yys3181 - } // end for yyj3181 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3184 int - var yyb3184 bool - var yyhl3184 bool = l >= 0 - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PreferAvoidPods = nil - } else { - yyv3185 := &x.PreferAvoidPods - yym3186 := z.DecBinary() - _ = yym3186 - if false { - } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3185), d) - } - } - for { - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3184-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3187 := z.EncBinary() - _ = yym3187 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn3188 = 1 - for _, b := range yyq3188 { - if b { - yynn3188++ - } - } - r.EncodeMapStart(yynn3188) - yynn3188 = 0 - } - if yyr3188 || yy2arr3188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3190 := &x.PodSignature - yy3190.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podSignature")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3191 := &x.PodSignature - yy3191.CodecEncodeSelf(e) - } - if yyr3188 || yy2arr3188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3188[1] { - yy3193 := &x.EvictionTime - yym3194 := z.EncBinary() - _ = yym3194 - if false { - } else if z.HasExtensions() && z.EncExt(yy3193) { - } else if yym3194 { - z.EncBinaryMarshal(yy3193) - } else if !yym3194 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3193) - } else { - z.EncFallback(yy3193) - } - } else { - r.EncodeNil() - } - } else { - if yyq3188[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3195 := &x.EvictionTime - yym3196 := z.EncBinary() - _ = yym3196 - if false { - } else if z.HasExtensions() && z.EncExt(yy3195) { - } else if yym3196 { - z.EncBinaryMarshal(yy3195) - } else if !yym3196 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3195) - } else { - z.EncFallback(yy3195) - } - } - } - if yyr3188 || yy2arr3188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3188[2] { - yym3198 := z.EncBinary() - _ = yym3198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3188[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3199 := z.EncBinary() - _ = yym3199 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr3188 || yy2arr3188 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3188[3] { - yym3201 := z.EncBinary() - _ = yym3201 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3188[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3202 := z.EncBinary() - _ = yym3202 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr3188 || yy2arr3188 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3203 := z.DecBinary() - _ = yym3203 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3204 := r.ContainerType() - if yyct3204 == codecSelferValueTypeMap1234 { - yyl3204 := r.ReadMapStart() - if yyl3204 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3204, d) - } - } else if yyct3204 == codecSelferValueTypeArray1234 { - yyl3204 := r.ReadArrayStart() - if yyl3204 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3204, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3205Slc = r.DecodeBytes(yys3205Slc, true, true) - yys3205 := string(yys3205Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3205 { - case "podSignature": - if r.TryDecodeAsNil() { - x.PodSignature = PodSignature{} - } else { - yyv3206 := &x.PodSignature - yyv3206.CodecDecodeSelf(d) - } - case "evictionTime": - if r.TryDecodeAsNil() { - x.EvictionTime = pkg2_v1.Time{} - } else { - yyv3207 := &x.EvictionTime - yym3208 := z.DecBinary() - _ = yym3208 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3207) { - } else if yym3208 { - z.DecBinaryUnmarshal(yyv3207) - } else if !yym3208 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3207) - } else { - z.DecFallback(yyv3207, 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, yys3205) - } // end switch yys3205 - } // end for yyj3205 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3211 int - var yyb3211 bool - var yyhl3211 bool = l >= 0 - yyj3211++ - if yyhl3211 { - yyb3211 = yyj3211 > l - } else { - yyb3211 = r.CheckBreak() - } - if yyb3211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodSignature = PodSignature{} - } else { - yyv3212 := &x.PodSignature - yyv3212.CodecDecodeSelf(d) - } - yyj3211++ - if yyhl3211 { - yyb3211 = yyj3211 > l - } else { - yyb3211 = r.CheckBreak() - } - if yyb3211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionTime = pkg2_v1.Time{} - } else { - yyv3213 := &x.EvictionTime - yym3214 := z.DecBinary() - _ = yym3214 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3213) { - } else if yym3214 { - z.DecBinaryUnmarshal(yyv3213) - } else if !yym3214 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3213) - } else { - z.DecFallback(yyv3213, false) - } - } - yyj3211++ - if yyhl3211 { - yyb3211 = yyj3211 > l - } else { - yyb3211 = r.CheckBreak() - } - if yyb3211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3211++ - if yyhl3211 { - yyb3211 = yyj3211 > l - } else { - yyb3211 = r.CheckBreak() - } - if yyb3211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj3211++ - if yyhl3211 { - yyb3211 = yyj3211 > l - } else { - yyb3211 = r.CheckBreak() - } - if yyb3211 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3211-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3217 := z.EncBinary() - _ = yym3217 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3218 := !z.EncBinary() - yy2arr3218 := z.EncBasicHandle().StructToArray - var yyq3218 [1]bool - _, _, _ = yysep3218, yyq3218, yy2arr3218 - const yyr3218 bool = false - yyq3218[0] = x.PodController != nil - var yynn3218 int - if yyr3218 || yy2arr3218 { - r.EncodeArrayStart(1) - } else { - yynn3218 = 0 - for _, b := range yyq3218 { - if b { - yynn3218++ - } - } - r.EncodeMapStart(yynn3218) - yynn3218 = 0 - } - if yyr3218 || yy2arr3218 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3218[0] { - if x.PodController == nil { - r.EncodeNil() - } else { - yym3220 := z.EncBinary() - _ = yym3220 - if false { - } else if z.HasExtensions() && z.EncExt(x.PodController) { - } else { - z.EncFallback(x.PodController) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3218[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podController")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PodController == nil { - r.EncodeNil() - } else { - yym3221 := z.EncBinary() - _ = yym3221 - if false { - } else if z.HasExtensions() && z.EncExt(x.PodController) { - } else { - z.EncFallback(x.PodController) - } - } - } - } - if yyr3218 || yy2arr3218 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3222 := z.DecBinary() - _ = yym3222 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3223 := r.ContainerType() - if yyct3223 == codecSelferValueTypeMap1234 { - yyl3223 := r.ReadMapStart() - if yyl3223 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3223, d) - } - } else if yyct3223 == codecSelferValueTypeArray1234 { - yyl3223 := r.ReadArrayStart() - if yyl3223 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3223, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3224Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3224Slc - var yyhl3224 bool = l >= 0 - for yyj3224 := 0; ; yyj3224++ { - if yyhl3224 { - if yyj3224 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3224Slc = r.DecodeBytes(yys3224Slc, true, true) - yys3224 := string(yys3224Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3224 { - case "podController": - if r.TryDecodeAsNil() { - if x.PodController != nil { - x.PodController = nil - } - } else { - if x.PodController == nil { - x.PodController = new(pkg2_v1.OwnerReference) - } - yym3226 := z.DecBinary() - _ = yym3226 - if false { - } else if z.HasExtensions() && z.DecExt(x.PodController) { - } else { - z.DecFallback(x.PodController, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys3224) - } // end switch yys3224 - } // end for yyj3224 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3227 int - var yyb3227 bool - var yyhl3227 bool = l >= 0 - yyj3227++ - if yyhl3227 { - yyb3227 = yyj3227 > l - } else { - yyb3227 = r.CheckBreak() - } - if yyb3227 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.PodController != nil { - x.PodController = nil - } - } else { - if x.PodController == nil { - x.PodController = new(pkg2_v1.OwnerReference) - } - yym3229 := z.DecBinary() - _ = yym3229 - if false { - } else if z.HasExtensions() && z.DecExt(x.PodController) { - } else { - z.DecFallback(x.PodController, false) - } - } - for { - yyj3227++ - if yyhl3227 { - yyb3227 = yyj3227 > l - } else { - yyb3227 = r.CheckBreak() - } - if yyb3227 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3227-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3230 := z.EncBinary() - _ = yym3230 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3231 := !z.EncBinary() - yy2arr3231 := z.EncBasicHandle().StructToArray - var yyq3231 [2]bool - _, _, _ = yysep3231, yyq3231, yy2arr3231 - const yyr3231 bool = false - yyq3231[1] = x.SizeBytes != 0 - var yynn3231 int - if yyr3231 || yy2arr3231 { - r.EncodeArrayStart(2) - } else { - yynn3231 = 1 - for _, b := range yyq3231 { - if b { - yynn3231++ - } - } - r.EncodeMapStart(yynn3231) - yynn3231 = 0 - } - if yyr3231 || yy2arr3231 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym3233 := z.EncBinary() - _ = yym3233 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("names")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym3234 := z.EncBinary() - _ = yym3234 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr3231 || yy2arr3231 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3231[1] { - yym3236 := z.EncBinary() - _ = yym3236 - if false { - } else { - r.EncodeInt(int64(x.SizeBytes)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq3231[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3237 := z.EncBinary() - _ = yym3237 - if false { - } else { - r.EncodeInt(int64(x.SizeBytes)) - } - } - } - if yyr3231 || yy2arr3231 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3238 := z.DecBinary() - _ = yym3238 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3239 := r.ContainerType() - if yyct3239 == codecSelferValueTypeMap1234 { - yyl3239 := r.ReadMapStart() - if yyl3239 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3239, d) - } - } else if yyct3239 == codecSelferValueTypeArray1234 { - yyl3239 := r.ReadArrayStart() - if yyl3239 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3239, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3240Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3240Slc - var yyhl3240 bool = l >= 0 - for yyj3240 := 0; ; yyj3240++ { - if yyhl3240 { - if yyj3240 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3240Slc = r.DecodeBytes(yys3240Slc, true, true) - yys3240 := string(yys3240Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3240 { - case "names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv3241 := &x.Names - yym3242 := z.DecBinary() - _ = yym3242 - if false { - } else { - z.F.DecSliceStringX(yyv3241, false, d) - } - } - case "sizeBytes": - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys3240) - } // end switch yys3240 - } // end for yyj3240 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3244 int - var yyb3244 bool - var yyhl3244 bool = l >= 0 - yyj3244++ - if yyhl3244 { - yyb3244 = yyj3244 > l - } else { - yyb3244 = r.CheckBreak() - } - if yyb3244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv3245 := &x.Names - yym3246 := z.DecBinary() - _ = yym3246 - if false { - } else { - z.F.DecSliceStringX(yyv3245, false, d) - } - } - yyj3244++ - if yyhl3244 { - yyb3244 = yyj3244 > l - } else { - yyb3244 = r.CheckBreak() - } - if yyb3244 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } - for { - yyj3244++ - if yyhl3244 { - yyb3244 = yyj3244 > l - } else { - yyb3244 = r.CheckBreak() - } - if yyb3244 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3244-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3248 := z.EncBinary() - _ = yym3248 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3249 := z.DecBinary() - _ = yym3249 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3250 := z.EncBinary() - _ = yym3250 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3251 := z.DecBinary() - _ = yym3251 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3252 := z.EncBinary() - _ = yym3252 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3253 := !z.EncBinary() - yy2arr3253 := z.EncBasicHandle().StructToArray - var yyq3253 [6]bool - _, _, _ = yysep3253, yyq3253, yy2arr3253 - const yyr3253 bool = false - yyq3253[2] = true - yyq3253[3] = true - yyq3253[4] = x.Reason != "" - yyq3253[5] = x.Message != "" - var yynn3253 int - if yyr3253 || yy2arr3253 { - r.EncodeArrayStart(6) - } else { - yynn3253 = 2 - for _, b := range yyq3253 { - if b { - yynn3253++ - } - } - r.EncodeMapStart(yynn3253) - yynn3253 = 0 - } - if yyr3253 || yy2arr3253 { - 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 yyr3253 || yy2arr3253 { - 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 yyr3253 || yy2arr3253 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3253[2] { - yy3257 := &x.LastHeartbeatTime - yym3258 := z.EncBinary() - _ = yym3258 - if false { - } else if z.HasExtensions() && z.EncExt(yy3257) { - } else if yym3258 { - z.EncBinaryMarshal(yy3257) - } else if !yym3258 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3257) - } else { - z.EncFallback(yy3257) - } - } else { - r.EncodeNil() - } - } else { - if yyq3253[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3259 := &x.LastHeartbeatTime - yym3260 := z.EncBinary() - _ = yym3260 - if false { - } else if z.HasExtensions() && z.EncExt(yy3259) { - } else if yym3260 { - z.EncBinaryMarshal(yy3259) - } else if !yym3260 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3259) - } else { - z.EncFallback(yy3259) - } - } - } - if yyr3253 || yy2arr3253 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3253[3] { - yy3262 := &x.LastTransitionTime - yym3263 := z.EncBinary() - _ = yym3263 - if false { - } else if z.HasExtensions() && z.EncExt(yy3262) { - } else if yym3263 { - z.EncBinaryMarshal(yy3262) - } else if !yym3263 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3262) - } else { - z.EncFallback(yy3262) - } - } else { - r.EncodeNil() - } - } else { - if yyq3253[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3264 := &x.LastTransitionTime - yym3265 := z.EncBinary() - _ = yym3265 - if false { - } else if z.HasExtensions() && z.EncExt(yy3264) { - } else if yym3265 { - z.EncBinaryMarshal(yy3264) - } else if !yym3265 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3264) - } else { - z.EncFallback(yy3264) - } - } - } - if yyr3253 || yy2arr3253 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3253[4] { - yym3267 := z.EncBinary() - _ = yym3267 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3253[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3268 := z.EncBinary() - _ = yym3268 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr3253 || yy2arr3253 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3253[5] { - yym3270 := z.EncBinary() - _ = yym3270 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3253[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3271 := z.EncBinary() - _ = yym3271 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr3253 || yy2arr3253 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3272 := z.DecBinary() - _ = yym3272 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3273 := r.ContainerType() - if yyct3273 == codecSelferValueTypeMap1234 { - yyl3273 := r.ReadMapStart() - if yyl3273 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3273, d) - } - } else if yyct3273 == codecSelferValueTypeArray1234 { - yyl3273 := r.ReadArrayStart() - if yyl3273 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3273, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3274Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3274Slc - var yyhl3274 bool = l >= 0 - for yyj3274 := 0; ; yyj3274++ { - if yyhl3274 { - if yyj3274 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3274Slc = r.DecodeBytes(yys3274Slc, true, true) - yys3274 := string(yys3274Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3274 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "lastHeartbeatTime": - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_v1.Time{} - } else { - yyv3277 := &x.LastHeartbeatTime - yym3278 := z.DecBinary() - _ = yym3278 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3277) { - } else if yym3278 { - z.DecBinaryUnmarshal(yyv3277) - } else if !yym3278 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3277) - } else { - z.DecFallback(yyv3277, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv3279 := &x.LastTransitionTime - yym3280 := z.DecBinary() - _ = yym3280 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3279) { - } else if yym3280 { - z.DecBinaryUnmarshal(yyv3279) - } else if !yym3280 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3279) - } else { - z.DecFallback(yyv3279, 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, yys3274) - } // end switch yys3274 - } // end for yyj3274 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3283 int - var yyb3283 bool - var yyhl3283 bool = l >= 0 - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_v1.Time{} - } else { - yyv3286 := &x.LastHeartbeatTime - yym3287 := z.DecBinary() - _ = yym3287 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3286) { - } else if yym3287 { - z.DecBinaryUnmarshal(yyv3286) - } else if !yym3287 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3286) - } else { - z.DecFallback(yyv3286, false) - } - } - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv3288 := &x.LastTransitionTime - yym3289 := z.DecBinary() - _ = yym3289 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3288) { - } else if yym3289 { - z.DecBinaryUnmarshal(yyv3288) - } else if !yym3289 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3288) - } else { - z.DecFallback(yyv3288, false) - } - } - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj3283++ - if yyhl3283 { - yyb3283 = yyj3283 > l - } else { - yyb3283 = r.CheckBreak() - } - if yyb3283 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3283-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3292 := z.EncBinary() - _ = yym3292 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3293 := z.DecBinary() - _ = yym3293 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3294 := z.EncBinary() - _ = yym3294 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3295 := !z.EncBinary() - yy2arr3295 := z.EncBasicHandle().StructToArray - var yyq3295 [2]bool - _, _, _ = yysep3295, yyq3295, yy2arr3295 - const yyr3295 bool = false - var yynn3295 int - if yyr3295 || yy2arr3295 { - r.EncodeArrayStart(2) - } else { - yynn3295 = 2 - for _, b := range yyq3295 { - if b { - yynn3295++ - } - } - r.EncodeMapStart(yynn3295) - yynn3295 = 0 - } - if yyr3295 || yy2arr3295 { - 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 yyr3295 || yy2arr3295 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3298 := z.EncBinary() - _ = yym3298 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("address")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3299 := z.EncBinary() - _ = yym3299 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr3295 || yy2arr3295 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3300 := z.DecBinary() - _ = yym3300 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3301 := r.ContainerType() - if yyct3301 == codecSelferValueTypeMap1234 { - yyl3301 := r.ReadMapStart() - if yyl3301 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3301, d) - } - } else if yyct3301 == codecSelferValueTypeArray1234 { - yyl3301 := r.ReadArrayStart() - if yyl3301 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3301, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3302Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3302Slc - var yyhl3302 bool = l >= 0 - for yyj3302 := 0; ; yyj3302++ { - if yyhl3302 { - if yyj3302 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3302Slc = r.DecodeBytes(yys3302Slc, true, true) - yys3302 := string(yys3302Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3302 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeAddressType(r.DecodeString()) - } - case "address": - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3302) - } // end switch yys3302 - } // end for yyj3302 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3305 int - var yyb3305 bool - var yyhl3305 bool = l >= 0 - yyj3305++ - if yyhl3305 { - yyb3305 = yyj3305 > l - } else { - yyb3305 = r.CheckBreak() - } - if yyb3305 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeAddressType(r.DecodeString()) - } - yyj3305++ - if yyhl3305 { - yyb3305 = yyj3305 > l - } else { - yyb3305 = r.CheckBreak() - } - if yyb3305 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - for { - yyj3305++ - if yyhl3305 { - yyb3305 = yyj3305 > l - } else { - yyb3305 = r.CheckBreak() - } - if yyb3305 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3305-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3308 := z.EncBinary() - _ = yym3308 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3309 := !z.EncBinary() - yy2arr3309 := z.EncBasicHandle().StructToArray - var yyq3309 [1]bool - _, _, _ = yysep3309, yyq3309, yy2arr3309 - const yyr3309 bool = false - yyq3309[0] = len(x.Capacity) != 0 - var yynn3309 int - if yyr3309 || yy2arr3309 { - r.EncodeArrayStart(1) - } else { - yynn3309 = 0 - for _, b := range yyq3309 { - if b { - yynn3309++ - } - } - r.EncodeMapStart(yynn3309) - yynn3309 = 0 - } - if yyr3309 || yy2arr3309 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3309[0] { - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3309[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capacity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capacity == nil { - r.EncodeNil() - } else { - x.Capacity.CodecEncodeSelf(e) - } - } - } - if yyr3309 || yy2arr3309 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3311 := z.DecBinary() - _ = yym3311 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3312 := r.ContainerType() - if yyct3312 == codecSelferValueTypeMap1234 { - yyl3312 := r.ReadMapStart() - if yyl3312 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3312, d) - } - } else if yyct3312 == codecSelferValueTypeArray1234 { - yyl3312 := r.ReadArrayStart() - if yyl3312 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3312, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3313Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3313Slc - var yyhl3313 bool = l >= 0 - for yyj3313 := 0; ; yyj3313++ { - if yyhl3313 { - if yyj3313 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3313Slc = r.DecodeBytes(yys3313Slc, true, true) - yys3313 := string(yys3313Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3313 { - case "capacity": - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv3314 := &x.Capacity - yyv3314.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3313) - } // end switch yys3313 - } // end for yyj3313 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3315 int - var yyb3315 bool - var yyhl3315 bool = l >= 0 - yyj3315++ - if yyhl3315 { - yyb3315 = yyj3315 > l - } else { - yyb3315 = r.CheckBreak() - } - if yyb3315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv3316 := &x.Capacity - yyv3316.CodecDecodeSelf(d) - } - for { - yyj3315++ - if yyhl3315 { - yyb3315 = yyj3315 > l - } else { - yyb3315 = r.CheckBreak() - } - if yyb3315 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3315-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3317 := z.EncBinary() - _ = yym3317 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3318 := z.DecBinary() - _ = yym3318 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3319 := z.EncBinary() - _ = yym3319 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - h.encResourceList((ResourceList)(x), e) - } - } -} - -func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3320 := z.DecBinary() - _ = yym3320 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - h.decResourceList((*ResourceList)(x), d) - } -} - -func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3321 := z.EncBinary() - _ = yym3321 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3322 := !z.EncBinary() - yy2arr3322 := z.EncBasicHandle().StructToArray - var yyq3322 [5]bool - _, _, _ = yysep3322, yyq3322, yy2arr3322 - const yyr3322 bool = false - yyq3322[0] = x.Kind != "" - yyq3322[1] = x.APIVersion != "" - yyq3322[2] = true - yyq3322[3] = true - yyq3322[4] = true - var yynn3322 int - if yyr3322 || yy2arr3322 { - r.EncodeArrayStart(5) - } else { - yynn3322 = 0 - for _, b := range yyq3322 { - if b { - yynn3322++ - } - } - r.EncodeMapStart(yynn3322) - yynn3322 = 0 - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3322[0] { - yym3324 := z.EncBinary() - _ = yym3324 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3322[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3325 := z.EncBinary() - _ = yym3325 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3322[1] { - yym3327 := z.EncBinary() - _ = yym3327 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3322[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3328 := z.EncBinary() - _ = yym3328 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3322[2] { - yy3330 := &x.ObjectMeta - yy3330.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3322[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3331 := &x.ObjectMeta - yy3331.CodecEncodeSelf(e) - } - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3322[3] { - yy3333 := &x.Spec - yy3333.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3322[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3334 := &x.Spec - yy3334.CodecEncodeSelf(e) - } - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3322[4] { - yy3336 := &x.Status - yy3336.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3322[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3337 := &x.Status - yy3337.CodecEncodeSelf(e) - } - } - if yyr3322 || yy2arr3322 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3338 := z.DecBinary() - _ = yym3338 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3339 := r.ContainerType() - if yyct3339 == codecSelferValueTypeMap1234 { - yyl3339 := r.ReadMapStart() - if yyl3339 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3339, d) - } - } else if yyct3339 == codecSelferValueTypeArray1234 { - yyl3339 := r.ReadArrayStart() - if yyl3339 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3339, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3340Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3340Slc - var yyhl3340 bool = l >= 0 - for yyj3340 := 0; ; yyj3340++ { - if yyhl3340 { - if yyj3340 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3340Slc = r.DecodeBytes(yys3340Slc, true, true) - yys3340 := string(yys3340Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3340 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv3343 := &x.ObjectMeta - yyv3343.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} - } else { - yyv3344 := &x.Spec - yyv3344.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = NodeStatus{} - } else { - yyv3345 := &x.Status - yyv3345.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3340) - } // end switch yys3340 - } // end for yyj3340 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3346 int - var yyb3346 bool - var yyhl3346 bool = l >= 0 - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3349 := &x.ObjectMeta - yyv3349.CodecDecodeSelf(d) - } - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = NodeSpec{} - } else { - yyv3350 := &x.Spec - yyv3350.CodecDecodeSelf(d) - } - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = NodeStatus{} - } else { - yyv3351 := &x.Status - yyv3351.CodecDecodeSelf(d) - } - for { - yyj3346++ - if yyhl3346 { - yyb3346 = yyj3346 > l - } else { - yyb3346 = r.CheckBreak() - } - if yyb3346 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3346-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3352 := z.EncBinary() - _ = yym3352 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3353 := !z.EncBinary() - yy2arr3353 := z.EncBasicHandle().StructToArray - var yyq3353 [4]bool - _, _, _ = yysep3353, yyq3353, yy2arr3353 - const yyr3353 bool = false - yyq3353[0] = x.Kind != "" - yyq3353[1] = x.APIVersion != "" - yyq3353[2] = true - var yynn3353 int - if yyr3353 || yy2arr3353 { - r.EncodeArrayStart(4) - } else { - yynn3353 = 1 - for _, b := range yyq3353 { - if b { - yynn3353++ - } - } - r.EncodeMapStart(yynn3353) - yynn3353 = 0 - } - if yyr3353 || yy2arr3353 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3353[0] { - yym3355 := z.EncBinary() - _ = yym3355 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3353[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3356 := z.EncBinary() - _ = yym3356 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3353 || yy2arr3353 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3353[1] { - yym3358 := z.EncBinary() - _ = yym3358 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3353[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3359 := z.EncBinary() - _ = yym3359 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3353 || yy2arr3353 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3353[2] { - yy3361 := &x.ListMeta - yym3362 := z.EncBinary() - _ = yym3362 - if false { - } else if z.HasExtensions() && z.EncExt(yy3361) { - } else { - z.EncFallback(yy3361) - } - } else { - r.EncodeNil() - } - } else { - if yyq3353[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3363 := &x.ListMeta - yym3364 := z.EncBinary() - _ = yym3364 - if false { - } else if z.HasExtensions() && z.EncExt(yy3363) { - } else { - z.EncFallback(yy3363) - } - } - } - if yyr3353 || yy2arr3353 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3366 := z.EncBinary() - _ = yym3366 - if false { - } else { - h.encSliceNode(([]Node)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3367 := z.EncBinary() - _ = yym3367 - if false { - } else { - h.encSliceNode(([]Node)(x.Items), e) - } - } - } - if yyr3353 || yy2arr3353 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3368 := z.DecBinary() - _ = yym3368 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3369 := r.ContainerType() - if yyct3369 == codecSelferValueTypeMap1234 { - yyl3369 := r.ReadMapStart() - if yyl3369 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3369, d) - } - } else if yyct3369 == codecSelferValueTypeArray1234 { - yyl3369 := r.ReadArrayStart() - if yyl3369 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3369, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3370Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3370Slc - var yyhl3370 bool = l >= 0 - for yyj3370 := 0; ; yyj3370++ { - if yyhl3370 { - if yyj3370 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3370Slc = r.DecodeBytes(yys3370Slc, true, true) - yys3370 := string(yys3370Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3370 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv3373 := &x.ListMeta - yym3374 := z.DecBinary() - _ = yym3374 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3373) { - } else { - z.DecFallback(yyv3373, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3375 := &x.Items - yym3376 := z.DecBinary() - _ = yym3376 - if false { - } else { - h.decSliceNode((*[]Node)(yyv3375), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3370) - } // end switch yys3370 - } // end for yyj3370 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3377 int - var yyb3377 bool - var yyhl3377 bool = l >= 0 - yyj3377++ - if yyhl3377 { - yyb3377 = yyj3377 > l - } else { - yyb3377 = r.CheckBreak() - } - if yyb3377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3377++ - if yyhl3377 { - yyb3377 = yyj3377 > l - } else { - yyb3377 = r.CheckBreak() - } - if yyb3377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3377++ - if yyhl3377 { - yyb3377 = yyj3377 > l - } else { - yyb3377 = r.CheckBreak() - } - if yyb3377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv3380 := &x.ListMeta - yym3381 := z.DecBinary() - _ = yym3381 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3380) { - } else { - z.DecFallback(yyv3380, false) - } - } - yyj3377++ - if yyhl3377 { - yyb3377 = yyj3377 > l - } else { - yyb3377 = r.CheckBreak() - } - if yyb3377 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3382 := &x.Items - yym3383 := z.DecBinary() - _ = yym3383 - if false { - } else { - h.decSliceNode((*[]Node)(yyv3382), d) - } - } - for { - yyj3377++ - if yyhl3377 { - yyb3377 = yyj3377 > l - } else { - yyb3377 = r.CheckBreak() - } - if yyb3377 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3377-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3384 := z.EncBinary() - _ = yym3384 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3385 := !z.EncBinary() - yy2arr3385 := z.EncBasicHandle().StructToArray - var yyq3385 [1]bool - _, _, _ = yysep3385, yyq3385, yy2arr3385 - const yyr3385 bool = false - var yynn3385 int - if yyr3385 || yy2arr3385 { - r.EncodeArrayStart(1) - } else { - yynn3385 = 1 - for _, b := range yyq3385 { - if b { - yynn3385++ - } - } - r.EncodeMapStart(yynn3385) - yynn3385 = 0 - } - if yyr3385 || yy2arr3385 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym3387 := z.EncBinary() - _ = yym3387 - if false { - } else { - h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym3388 := z.EncBinary() - _ = yym3388 - if false { - } else { - h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) - } - } - } - if yyr3385 || yy2arr3385 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3389 := z.DecBinary() - _ = yym3389 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3390 := r.ContainerType() - if yyct3390 == codecSelferValueTypeMap1234 { - yyl3390 := r.ReadMapStart() - if yyl3390 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3390, d) - } - } else if yyct3390 == codecSelferValueTypeArray1234 { - yyl3390 := r.ReadArrayStart() - if yyl3390 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3390, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3391Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3391Slc - var yyhl3391 bool = l >= 0 - for yyj3391 := 0; ; yyj3391++ { - if yyhl3391 { - if yyj3391 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3391Slc = r.DecodeBytes(yys3391Slc, true, true) - yys3391 := string(yys3391Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3391 { - case "Finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv3392 := &x.Finalizers - yym3393 := z.DecBinary() - _ = yym3393 - if false { - } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3392), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3391) - } // end switch yys3391 - } // end for yyj3391 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3394 int - var yyb3394 bool - var yyhl3394 bool = l >= 0 - yyj3394++ - if yyhl3394 { - yyb3394 = yyj3394 > l - } else { - yyb3394 = r.CheckBreak() - } - if yyb3394 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv3395 := &x.Finalizers - yym3396 := z.DecBinary() - _ = yym3396 - if false { - } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3395), d) - } - } - for { - yyj3394++ - if yyhl3394 { - yyb3394 = yyj3394 > l - } else { - yyb3394 = r.CheckBreak() - } - if yyb3394 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3394-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3397 := z.EncBinary() - _ = yym3397 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3398 := z.DecBinary() - _ = yym3398 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3399 := z.EncBinary() - _ = yym3399 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3400 := !z.EncBinary() - yy2arr3400 := z.EncBasicHandle().StructToArray - var yyq3400 [1]bool - _, _, _ = yysep3400, yyq3400, yy2arr3400 - const yyr3400 bool = false - yyq3400[0] = x.Phase != "" - var yynn3400 int - if yyr3400 || yy2arr3400 { - r.EncodeArrayStart(1) - } else { - yynn3400 = 0 - for _, b := range yyq3400 { - if b { - yynn3400++ - } - } - r.EncodeMapStart(yynn3400) - yynn3400 = 0 - } - if yyr3400 || yy2arr3400 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3400[0] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3400[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr3400 || yy2arr3400 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3402 := z.DecBinary() - _ = yym3402 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3403 := r.ContainerType() - if yyct3403 == codecSelferValueTypeMap1234 { - yyl3403 := r.ReadMapStart() - if yyl3403 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3403, d) - } - } else if yyct3403 == codecSelferValueTypeArray1234 { - yyl3403 := r.ReadArrayStart() - if yyl3403 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3403, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3404Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3404Slc - var yyhl3404 bool = l >= 0 - for yyj3404 := 0; ; yyj3404++ { - if yyhl3404 { - if yyj3404 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3404Slc = r.DecodeBytes(yys3404Slc, true, true) - yys3404 := string(yys3404Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3404 { - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NamespacePhase(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3404) - } // end switch yys3404 - } // end for yyj3404 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3406 int - var yyb3406 bool - var yyhl3406 bool = l >= 0 - yyj3406++ - if yyhl3406 { - yyb3406 = yyj3406 > l - } else { - yyb3406 = r.CheckBreak() - } - if yyb3406 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NamespacePhase(r.DecodeString()) - } - for { - yyj3406++ - if yyhl3406 { - yyb3406 = yyj3406 > l - } else { - yyb3406 = r.CheckBreak() - } - if yyb3406 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3406-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3408 := z.EncBinary() - _ = yym3408 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3409 := z.DecBinary() - _ = yym3409 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3410 := z.EncBinary() - _ = yym3410 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3411 := !z.EncBinary() - yy2arr3411 := z.EncBasicHandle().StructToArray - var yyq3411 [5]bool - _, _, _ = yysep3411, yyq3411, yy2arr3411 - const yyr3411 bool = false - yyq3411[0] = x.Kind != "" - yyq3411[1] = x.APIVersion != "" - yyq3411[2] = true - yyq3411[3] = true - yyq3411[4] = true - var yynn3411 int - if yyr3411 || yy2arr3411 { - r.EncodeArrayStart(5) - } else { - yynn3411 = 0 - for _, b := range yyq3411 { - if b { - yynn3411++ - } - } - r.EncodeMapStart(yynn3411) - yynn3411 = 0 - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[0] { - yym3413 := z.EncBinary() - _ = yym3413 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3411[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3414 := z.EncBinary() - _ = yym3414 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[1] { - yym3416 := z.EncBinary() - _ = yym3416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3411[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3417 := z.EncBinary() - _ = yym3417 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[2] { - yy3419 := &x.ObjectMeta - yy3419.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3411[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3420 := &x.ObjectMeta - yy3420.CodecEncodeSelf(e) - } - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[3] { - yy3422 := &x.Spec - yy3422.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3411[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3423 := &x.Spec - yy3423.CodecEncodeSelf(e) - } - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[4] { - yy3425 := &x.Status - yy3425.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3411[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3426 := &x.Status - yy3426.CodecEncodeSelf(e) - } - } - if yyr3411 || yy2arr3411 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3427 := z.DecBinary() - _ = yym3427 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3428 := r.ContainerType() - if yyct3428 == codecSelferValueTypeMap1234 { - yyl3428 := r.ReadMapStart() - if yyl3428 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3428, d) - } - } else if yyct3428 == codecSelferValueTypeArray1234 { - yyl3428 := r.ReadArrayStart() - if yyl3428 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3428, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3429Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3429Slc - var yyhl3429 bool = l >= 0 - for yyj3429 := 0; ; yyj3429++ { - if yyhl3429 { - if yyj3429 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3429Slc = r.DecodeBytes(yys3429Slc, true, true) - yys3429 := string(yys3429Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3429 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv3432 := &x.ObjectMeta - yyv3432.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} - } else { - yyv3433 := &x.Spec - yyv3433.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} - } else { - yyv3434 := &x.Status - yyv3434.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3429) - } // end switch yys3429 - } // end for yyj3429 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3435 int - var yyb3435 bool - var yyhl3435 bool = l >= 0 - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3438 := &x.ObjectMeta - yyv3438.CodecDecodeSelf(d) - } - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} - } else { - yyv3439 := &x.Spec - yyv3439.CodecDecodeSelf(d) - } - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} - } else { - yyv3440 := &x.Status - yyv3440.CodecDecodeSelf(d) - } - for { - yyj3435++ - if yyhl3435 { - yyb3435 = yyj3435 > l - } else { - yyb3435 = r.CheckBreak() - } - if yyb3435 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3435-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3441 := z.EncBinary() - _ = yym3441 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3442 := !z.EncBinary() - yy2arr3442 := z.EncBasicHandle().StructToArray - var yyq3442 [4]bool - _, _, _ = yysep3442, yyq3442, yy2arr3442 - const yyr3442 bool = false - yyq3442[0] = x.Kind != "" - yyq3442[1] = x.APIVersion != "" - yyq3442[2] = true - var yynn3442 int - if yyr3442 || yy2arr3442 { - r.EncodeArrayStart(4) - } else { - yynn3442 = 1 - for _, b := range yyq3442 { - if b { - yynn3442++ - } - } - r.EncodeMapStart(yynn3442) - yynn3442 = 0 - } - if yyr3442 || yy2arr3442 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3442[0] { - yym3444 := z.EncBinary() - _ = yym3444 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3442[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3445 := z.EncBinary() - _ = yym3445 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3442 || yy2arr3442 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3442[1] { - yym3447 := z.EncBinary() - _ = yym3447 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3442[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3448 := z.EncBinary() - _ = yym3448 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3442 || yy2arr3442 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3442[2] { - yy3450 := &x.ListMeta - yym3451 := z.EncBinary() - _ = yym3451 - if false { - } else if z.HasExtensions() && z.EncExt(yy3450) { - } else { - z.EncFallback(yy3450) - } - } else { - r.EncodeNil() - } - } else { - if yyq3442[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3452 := &x.ListMeta - yym3453 := z.EncBinary() - _ = yym3453 - if false { - } else if z.HasExtensions() && z.EncExt(yy3452) { - } else { - z.EncFallback(yy3452) - } - } - } - if yyr3442 || yy2arr3442 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3455 := z.EncBinary() - _ = yym3455 - if false { - } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3456 := z.EncBinary() - _ = yym3456 - if false { - } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) - } - } - } - if yyr3442 || yy2arr3442 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3457 := z.DecBinary() - _ = yym3457 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3458 := r.ContainerType() - if yyct3458 == codecSelferValueTypeMap1234 { - yyl3458 := r.ReadMapStart() - if yyl3458 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3458, d) - } - } else if yyct3458 == codecSelferValueTypeArray1234 { - yyl3458 := r.ReadArrayStart() - if yyl3458 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3458, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3459Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3459Slc - var yyhl3459 bool = l >= 0 - for yyj3459 := 0; ; yyj3459++ { - if yyhl3459 { - if yyj3459 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3459Slc = r.DecodeBytes(yys3459Slc, true, true) - yys3459 := string(yys3459Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3459 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv3462 := &x.ListMeta - yym3463 := z.DecBinary() - _ = yym3463 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3462) { - } else { - z.DecFallback(yyv3462, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3464 := &x.Items - yym3465 := z.DecBinary() - _ = yym3465 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv3464), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3459) - } // end switch yys3459 - } // end for yyj3459 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3466 int - var yyb3466 bool - var yyhl3466 bool = l >= 0 - yyj3466++ - if yyhl3466 { - yyb3466 = yyj3466 > l - } else { - yyb3466 = r.CheckBreak() - } - if yyb3466 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3466++ - if yyhl3466 { - yyb3466 = yyj3466 > l - } else { - yyb3466 = r.CheckBreak() - } - if yyb3466 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3466++ - if yyhl3466 { - yyb3466 = yyj3466 > l - } else { - yyb3466 = r.CheckBreak() - } - if yyb3466 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv3469 := &x.ListMeta - yym3470 := z.DecBinary() - _ = yym3470 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3469) { - } else { - z.DecFallback(yyv3469, false) - } - } - yyj3466++ - if yyhl3466 { - yyb3466 = yyj3466 > l - } else { - yyb3466 = r.CheckBreak() - } - if yyb3466 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3471 := &x.Items - yym3472 := z.DecBinary() - _ = yym3472 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv3471), d) - } - } - for { - yyj3466++ - if yyhl3466 { - yyb3466 = yyj3466 > l - } else { - yyb3466 = r.CheckBreak() - } - if yyb3466 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3466-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3473 := z.EncBinary() - _ = yym3473 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3474 := !z.EncBinary() - yy2arr3474 := z.EncBasicHandle().StructToArray - var yyq3474 [4]bool - _, _, _ = yysep3474, yyq3474, yy2arr3474 - const yyr3474 bool = false - yyq3474[0] = x.Kind != "" - yyq3474[1] = x.APIVersion != "" - yyq3474[2] = true - var yynn3474 int - if yyr3474 || yy2arr3474 { - r.EncodeArrayStart(4) - } else { - yynn3474 = 1 - for _, b := range yyq3474 { - if b { - yynn3474++ - } - } - r.EncodeMapStart(yynn3474) - yynn3474 = 0 - } - if yyr3474 || yy2arr3474 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3474[0] { - yym3476 := z.EncBinary() - _ = yym3476 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3474[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3477 := z.EncBinary() - _ = yym3477 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3474 || yy2arr3474 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3474[1] { - yym3479 := z.EncBinary() - _ = yym3479 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3474[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3480 := z.EncBinary() - _ = yym3480 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3474 || yy2arr3474 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3474[2] { - yy3482 := &x.ObjectMeta - yy3482.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3474[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3483 := &x.ObjectMeta - yy3483.CodecEncodeSelf(e) - } - } - if yyr3474 || yy2arr3474 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3485 := &x.Target - yy3485.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("target")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3486 := &x.Target - yy3486.CodecEncodeSelf(e) - } - if yyr3474 || yy2arr3474 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3487 := z.DecBinary() - _ = yym3487 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3488 := r.ContainerType() - if yyct3488 == codecSelferValueTypeMap1234 { - yyl3488 := r.ReadMapStart() - if yyl3488 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3488, d) - } - } else if yyct3488 == codecSelferValueTypeArray1234 { - yyl3488 := r.ReadArrayStart() - if yyl3488 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3488, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3489Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3489Slc - var yyhl3489 bool = l >= 0 - for yyj3489 := 0; ; yyj3489++ { - if yyhl3489 { - if yyj3489 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3489Slc = r.DecodeBytes(yys3489Slc, true, true) - yys3489 := string(yys3489Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3489 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv3492 := &x.ObjectMeta - yyv3492.CodecDecodeSelf(d) - } - case "target": - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv3493 := &x.Target - yyv3493.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3489) - } // end switch yys3489 - } // end for yyj3489 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3494 int - var yyb3494 bool - var yyhl3494 bool = l >= 0 - yyj3494++ - if yyhl3494 { - yyb3494 = yyj3494 > l - } else { - yyb3494 = r.CheckBreak() - } - if yyb3494 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3494++ - if yyhl3494 { - yyb3494 = yyj3494 > l - } else { - yyb3494 = r.CheckBreak() - } - if yyb3494 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3494++ - if yyhl3494 { - yyb3494 = yyj3494 > l - } else { - yyb3494 = r.CheckBreak() - } - if yyb3494 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3497 := &x.ObjectMeta - yyv3497.CodecDecodeSelf(d) - } - yyj3494++ - if yyhl3494 { - yyb3494 = yyj3494 > l - } else { - yyb3494 = r.CheckBreak() - } - if yyb3494 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv3498 := &x.Target - yyv3498.CodecDecodeSelf(d) - } - for { - yyj3494++ - if yyhl3494 { - yyb3494 = yyj3494 > l - } else { - yyb3494 = r.CheckBreak() - } - if yyb3494 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3494-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3499 := z.EncBinary() - _ = yym3499 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3500 := !z.EncBinary() - yy2arr3500 := z.EncBasicHandle().StructToArray - var yyq3500 [1]bool - _, _, _ = yysep3500, yyq3500, yy2arr3500 - const yyr3500 bool = false - yyq3500[0] = x.UID != nil - var yynn3500 int - if yyr3500 || yy2arr3500 { - r.EncodeArrayStart(1) - } else { - yynn3500 = 0 - for _, b := range yyq3500 { - if b { - yynn3500++ - } - } - r.EncodeMapStart(yynn3500) - yynn3500 = 0 - } - if yyr3500 || yy2arr3500 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3500[0] { - if x.UID == nil { - r.EncodeNil() - } else { - yy3502 := *x.UID - yym3503 := z.EncBinary() - _ = yym3503 - if false { - } else if z.HasExtensions() && z.EncExt(yy3502) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3502)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3500[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.UID == nil { - r.EncodeNil() - } else { - yy3504 := *x.UID - yym3505 := z.EncBinary() - _ = yym3505 - if false { - } else if z.HasExtensions() && z.EncExt(yy3504) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3504)) - } - } - } - } - if yyr3500 || yy2arr3500 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3506 := z.DecBinary() - _ = yym3506 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3507 := r.ContainerType() - if yyct3507 == codecSelferValueTypeMap1234 { - yyl3507 := r.ReadMapStart() - if yyl3507 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3507, d) - } - } else if yyct3507 == codecSelferValueTypeArray1234 { - yyl3507 := r.ReadArrayStart() - if yyl3507 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3507, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3508Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3508Slc - var yyhl3508 bool = l >= 0 - for yyj3508 := 0; ; yyj3508++ { - if yyhl3508 { - if yyj3508 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3508Slc = r.DecodeBytes(yys3508Slc, true, true) - yys3508 := string(yys3508Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3508 { - case "uid": - if r.TryDecodeAsNil() { - if x.UID != nil { - x.UID = nil - } - } else { - if x.UID == nil { - x.UID = new(pkg1_types.UID) - } - yym3510 := z.DecBinary() - _ = yym3510 - if false { - } else if z.HasExtensions() && z.DecExt(x.UID) { - } else { - *((*string)(x.UID)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3508) - } // end switch yys3508 - } // end for yyj3508 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3511 int - var yyb3511 bool - var yyhl3511 bool = l >= 0 - yyj3511++ - if yyhl3511 { - yyb3511 = yyj3511 > l - } else { - yyb3511 = r.CheckBreak() - } - if yyb3511 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.UID != nil { - x.UID = nil - } - } else { - if x.UID == nil { - x.UID = new(pkg1_types.UID) - } - yym3513 := z.DecBinary() - _ = yym3513 - if false { - } else if z.HasExtensions() && z.DecExt(x.UID) { - } else { - *((*string)(x.UID)) = r.DecodeString() - } - } - for { - yyj3511++ - if yyhl3511 { - yyb3511 = yyj3511 > l - } else { - yyb3511 = r.CheckBreak() - } - if yyb3511 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3511-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3514 := z.EncBinary() - _ = yym3514 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3515 := !z.EncBinary() - yy2arr3515 := z.EncBasicHandle().StructToArray - var yyq3515 [5]bool - _, _, _ = yysep3515, yyq3515, yy2arr3515 - const yyr3515 bool = false - yyq3515[0] = x.Kind != "" - yyq3515[1] = x.APIVersion != "" - yyq3515[2] = x.GracePeriodSeconds != nil - yyq3515[3] = x.Preconditions != nil - yyq3515[4] = x.OrphanDependents != nil - var yynn3515 int - if yyr3515 || yy2arr3515 { - r.EncodeArrayStart(5) - } else { - yynn3515 = 0 - for _, b := range yyq3515 { - if b { - yynn3515++ - } - } - r.EncodeMapStart(yynn3515) - yynn3515 = 0 - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3515[0] { - yym3517 := z.EncBinary() - _ = yym3517 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3515[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3518 := z.EncBinary() - _ = yym3518 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3515[1] { - yym3520 := z.EncBinary() - _ = yym3520 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3515[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3521 := z.EncBinary() - _ = yym3521 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3515[2] { - if x.GracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy3523 := *x.GracePeriodSeconds - yym3524 := z.EncBinary() - _ = yym3524 - if false { - } else { - r.EncodeInt(int64(yy3523)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3515[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy3525 := *x.GracePeriodSeconds - yym3526 := z.EncBinary() - _ = yym3526 - if false { - } else { - r.EncodeInt(int64(yy3525)) - } - } - } - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3515[3] { - if x.Preconditions == nil { - r.EncodeNil() - } else { - x.Preconditions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3515[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preconditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Preconditions == nil { - r.EncodeNil() - } else { - x.Preconditions.CodecEncodeSelf(e) - } - } - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3515[4] { - if x.OrphanDependents == nil { - r.EncodeNil() - } else { - yy3529 := *x.OrphanDependents - yym3530 := z.EncBinary() - _ = yym3530 - if false { - } else { - r.EncodeBool(bool(yy3529)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3515[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OrphanDependents == nil { - r.EncodeNil() - } else { - yy3531 := *x.OrphanDependents - yym3532 := z.EncBinary() - _ = yym3532 - if false { - } else { - r.EncodeBool(bool(yy3531)) - } - } - } - } - if yyr3515 || yy2arr3515 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3533 := z.DecBinary() - _ = yym3533 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3534 := r.ContainerType() - if yyct3534 == codecSelferValueTypeMap1234 { - yyl3534 := r.ReadMapStart() - if yyl3534 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3534, d) - } - } else if yyct3534 == codecSelferValueTypeArray1234 { - yyl3534 := r.ReadArrayStart() - if yyl3534 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3534, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3535Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3535Slc - var yyhl3535 bool = l >= 0 - for yyj3535 := 0; ; yyj3535++ { - if yyhl3535 { - if yyj3535 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3535Slc = r.DecodeBytes(yys3535Slc, true, true) - yys3535 := string(yys3535Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3535 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "gracePeriodSeconds": - if r.TryDecodeAsNil() { - if x.GracePeriodSeconds != nil { - x.GracePeriodSeconds = nil - } - } else { - if x.GracePeriodSeconds == nil { - x.GracePeriodSeconds = new(int64) - } - yym3539 := z.DecBinary() - _ = yym3539 - if false { - } else { - *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "preconditions": - if r.TryDecodeAsNil() { - if x.Preconditions != nil { - x.Preconditions = nil - } - } else { - if x.Preconditions == nil { - x.Preconditions = new(Preconditions) - } - x.Preconditions.CodecDecodeSelf(d) - } - case "orphanDependents": - if r.TryDecodeAsNil() { - if x.OrphanDependents != nil { - x.OrphanDependents = nil - } - } else { - if x.OrphanDependents == nil { - x.OrphanDependents = new(bool) - } - yym3542 := z.DecBinary() - _ = yym3542 - if false { - } else { - *((*bool)(x.OrphanDependents)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3535) - } // end switch yys3535 - } // end for yyj3535 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3543 int - var yyb3543 bool - var yyhl3543 bool = l >= 0 - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.GracePeriodSeconds != nil { - x.GracePeriodSeconds = nil - } - } else { - if x.GracePeriodSeconds == nil { - x.GracePeriodSeconds = new(int64) - } - yym3547 := z.DecBinary() - _ = yym3547 - if false { - } else { - *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Preconditions != nil { - x.Preconditions = nil - } - } else { - if x.Preconditions == nil { - x.Preconditions = new(Preconditions) - } - x.Preconditions.CodecDecodeSelf(d) - } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.OrphanDependents != nil { - x.OrphanDependents = nil - } - } else { - if x.OrphanDependents == nil { - x.OrphanDependents = new(bool) - } - yym3550 := z.DecBinary() - _ = yym3550 - if false { - } else { - *((*bool)(x.OrphanDependents)) = r.DecodeBool() - } - } - for { - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l - } else { - yyb3543 = r.CheckBreak() - } - if yyb3543 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3543-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 { - yym3551 := z.EncBinary() - _ = yym3551 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3552 := !z.EncBinary() - yy2arr3552 := z.EncBasicHandle().StructToArray - var yyq3552 [7]bool - _, _, _ = yysep3552, yyq3552, yy2arr3552 - const yyr3552 bool = false - yyq3552[0] = x.Kind != "" - yyq3552[1] = x.APIVersion != "" - var yynn3552 int - if yyr3552 || yy2arr3552 { - r.EncodeArrayStart(7) - } else { - yynn3552 = 5 - for _, b := range yyq3552 { - if b { - yynn3552++ - } - } - r.EncodeMapStart(yynn3552) - yynn3552 = 0 - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3552[0] { - yym3554 := z.EncBinary() - _ = yym3554 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3552[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3555 := z.EncBinary() - _ = yym3555 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3552[1] { - yym3557 := z.EncBinary() - _ = yym3557 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3552[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3558 := z.EncBinary() - _ = yym3558 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.LabelSelector == nil { - r.EncodeNil() - } else { - yym3560 := z.EncBinary() - _ = yym3560 - if false { - } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { - } else { - z.EncFallback(x.LabelSelector) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("LabelSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LabelSelector == nil { - r.EncodeNil() - } else { - yym3561 := z.EncBinary() - _ = yym3561 - if false { - } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { - } else { - z.EncFallback(x.LabelSelector) - } - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.FieldSelector == nil { - r.EncodeNil() - } else { - yym3563 := z.EncBinary() - _ = yym3563 - if false { - } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { - } else { - z.EncFallback(x.FieldSelector) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("FieldSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FieldSelector == nil { - r.EncodeNil() - } else { - yym3564 := z.EncBinary() - _ = yym3564 - if false { - } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { - } else { - z.EncFallback(x.FieldSelector) - } - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3566 := z.EncBinary() - _ = yym3566 - if false { - } else { - r.EncodeBool(bool(x.Watch)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Watch")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3567 := z.EncBinary() - _ = yym3567 - if false { - } else { - r.EncodeBool(bool(x.Watch)) - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3569 := z.EncBinary() - _ = yym3569 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3570 := z.EncBinary() - _ = yym3570 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - if yyr3552 || yy2arr3552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.TimeoutSeconds == nil { - r.EncodeNil() - } else { - yy3572 := *x.TimeoutSeconds - yym3573 := z.EncBinary() - _ = yym3573 - if false { - } else { - r.EncodeInt(int64(yy3572)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TimeoutSeconds == nil { - r.EncodeNil() - } else { - yy3574 := *x.TimeoutSeconds - yym3575 := z.EncBinary() - _ = yym3575 - if false { - } else { - r.EncodeInt(int64(yy3574)) - } - } - } - if yyr3552 || yy2arr3552 { - 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 - yym3576 := z.DecBinary() - _ = yym3576 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3577 := r.ContainerType() - if yyct3577 == codecSelferValueTypeMap1234 { - yyl3577 := r.ReadMapStart() - if yyl3577 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3577, d) - } - } else if yyct3577 == codecSelferValueTypeArray1234 { - yyl3577 := r.ReadArrayStart() - if yyl3577 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3577, 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 yys3578Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3578Slc - var yyhl3578 bool = l >= 0 - for yyj3578 := 0; ; yyj3578++ { - if yyhl3578 { - if yyj3578 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3578Slc = r.DecodeBytes(yys3578Slc, true, true) - yys3578 := string(yys3578Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3578 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "LabelSelector": - if r.TryDecodeAsNil() { - x.LabelSelector = nil - } else { - yyv3581 := &x.LabelSelector - yym3582 := z.DecBinary() - _ = yym3582 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3581) { - } else { - z.DecFallback(yyv3581, true) - } - } - case "FieldSelector": - if r.TryDecodeAsNil() { - x.FieldSelector = nil - } else { - yyv3583 := &x.FieldSelector - yym3584 := z.DecBinary() - _ = yym3584 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3583) { - } else { - z.DecFallback(yyv3583, true) - } - } - case "Watch": - if r.TryDecodeAsNil() { - x.Watch = false - } else { - x.Watch = bool(r.DecodeBool()) - } - case "ResourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "TimeoutSeconds": - if r.TryDecodeAsNil() { - if x.TimeoutSeconds != nil { - x.TimeoutSeconds = nil - } - } else { - if x.TimeoutSeconds == nil { - x.TimeoutSeconds = new(int64) - } - yym3588 := z.DecBinary() - _ = yym3588 - if false { - } else { - *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3578) - } // end switch yys3578 - } // end for yyj3578 - 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 yyj3589 int - var yyb3589 bool - var yyhl3589 bool = l >= 0 - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LabelSelector = nil - } else { - yyv3592 := &x.LabelSelector - yym3593 := z.DecBinary() - _ = yym3593 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3592) { - } else { - z.DecFallback(yyv3592, true) - } - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FieldSelector = nil - } else { - yyv3594 := &x.FieldSelector - yym3595 := z.DecBinary() - _ = yym3595 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3594) { - } else { - z.DecFallback(yyv3594, true) - } - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Watch = false - } else { - x.Watch = bool(r.DecodeBool()) - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - 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) - } - yym3599 := z.DecBinary() - _ = yym3599 - if false { - } else { - *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) - } - } - for { - yyj3589++ - if yyhl3589 { - yyb3589 = yyj3589 > l - } else { - yyb3589 = r.CheckBreak() - } - if yyb3589 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3589-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3600 := z.EncBinary() - _ = yym3600 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3601 := !z.EncBinary() - yy2arr3601 := z.EncBasicHandle().StructToArray - var yyq3601 [10]bool - _, _, _ = yysep3601, yyq3601, yy2arr3601 - const yyr3601 bool = false - yyq3601[0] = x.Kind != "" - yyq3601[1] = x.APIVersion != "" - var yynn3601 int - if yyr3601 || yy2arr3601 { - r.EncodeArrayStart(10) - } else { - yynn3601 = 8 - for _, b := range yyq3601 { - if b { - yynn3601++ - } - } - r.EncodeMapStart(yynn3601) - yynn3601 = 0 - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3601[0] { - yym3603 := z.EncBinary() - _ = yym3603 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3601[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3604 := z.EncBinary() - _ = yym3604 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3601[1] { - yym3606 := z.EncBinary() - _ = yym3606 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3601[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3607 := z.EncBinary() - _ = yym3607 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3609 := z.EncBinary() - _ = yym3609 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Container")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3610 := z.EncBinary() - _ = yym3610 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3612 := z.EncBinary() - _ = yym3612 - if false { - } else { - r.EncodeBool(bool(x.Follow)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Follow")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3613 := z.EncBinary() - _ = yym3613 - if false { - } else { - r.EncodeBool(bool(x.Follow)) - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3615 := z.EncBinary() - _ = yym3615 - if false { - } else { - r.EncodeBool(bool(x.Previous)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Previous")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3616 := z.EncBinary() - _ = yym3616 - if false { - } else { - r.EncodeBool(bool(x.Previous)) - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.SinceSeconds == nil { - r.EncodeNil() - } else { - yy3618 := *x.SinceSeconds - yym3619 := z.EncBinary() - _ = yym3619 - if false { - } else { - r.EncodeInt(int64(yy3618)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SinceSeconds == nil { - r.EncodeNil() - } else { - yy3620 := *x.SinceSeconds - yym3621 := z.EncBinary() - _ = yym3621 - if false { - } else { - r.EncodeInt(int64(yy3620)) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.SinceTime == nil { - r.EncodeNil() - } else { - yym3623 := z.EncBinary() - _ = yym3623 - if false { - } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3623 { - z.EncBinaryMarshal(x.SinceTime) - } else if !yym3623 && z.IsJSONHandle() { - z.EncJSONMarshal(x.SinceTime) - } else { - z.EncFallback(x.SinceTime) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("SinceTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SinceTime == nil { - r.EncodeNil() - } else { - yym3624 := z.EncBinary() - _ = yym3624 - if false { - } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3624 { - z.EncBinaryMarshal(x.SinceTime) - } else if !yym3624 && z.IsJSONHandle() { - z.EncJSONMarshal(x.SinceTime) - } else { - z.EncFallback(x.SinceTime) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3626 := z.EncBinary() - _ = yym3626 - if false { - } else { - r.EncodeBool(bool(x.Timestamps)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3627 := z.EncBinary() - _ = yym3627 - if false { - } else { - r.EncodeBool(bool(x.Timestamps)) - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.TailLines == nil { - r.EncodeNil() - } else { - yy3629 := *x.TailLines - yym3630 := z.EncBinary() - _ = yym3630 - if false { - } else { - r.EncodeInt(int64(yy3629)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("TailLines")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TailLines == nil { - r.EncodeNil() - } else { - yy3631 := *x.TailLines - yym3632 := z.EncBinary() - _ = yym3632 - if false { - } else { - r.EncodeInt(int64(yy3631)) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.LimitBytes == nil { - r.EncodeNil() - } else { - yy3634 := *x.LimitBytes - yym3635 := z.EncBinary() - _ = yym3635 - if false { - } else { - r.EncodeInt(int64(yy3634)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LimitBytes == nil { - r.EncodeNil() - } else { - yy3636 := *x.LimitBytes - yym3637 := z.EncBinary() - _ = yym3637 - if false { - } else { - r.EncodeInt(int64(yy3636)) - } - } - } - if yyr3601 || yy2arr3601 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3638 := z.DecBinary() - _ = yym3638 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3639 := r.ContainerType() - if yyct3639 == codecSelferValueTypeMap1234 { - yyl3639 := r.ReadMapStart() - if yyl3639 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3639, d) - } - } else if yyct3639 == codecSelferValueTypeArray1234 { - yyl3639 := r.ReadArrayStart() - if yyl3639 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3639, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3640Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3640Slc - var yyhl3640 bool = l >= 0 - for yyj3640 := 0; ; yyj3640++ { - if yyhl3640 { - if yyj3640 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3640Slc = r.DecodeBytes(yys3640Slc, true, true) - yys3640 := string(yys3640Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3640 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "Container": - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - case "Follow": - if r.TryDecodeAsNil() { - x.Follow = false - } else { - x.Follow = bool(r.DecodeBool()) - } - case "Previous": - if r.TryDecodeAsNil() { - x.Previous = false - } else { - x.Previous = bool(r.DecodeBool()) - } - case "SinceSeconds": - if r.TryDecodeAsNil() { - if x.SinceSeconds != nil { - x.SinceSeconds = nil - } - } else { - if x.SinceSeconds == nil { - x.SinceSeconds = new(int64) - } - yym3647 := z.DecBinary() - _ = yym3647 - if false { - } else { - *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) - } - } - case "SinceTime": - if r.TryDecodeAsNil() { - if x.SinceTime != nil { - x.SinceTime = nil - } - } else { - if x.SinceTime == nil { - x.SinceTime = new(pkg2_v1.Time) - } - yym3649 := z.DecBinary() - _ = yym3649 - if false { - } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3649 { - z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3649 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.SinceTime) - } else { - z.DecFallback(x.SinceTime, false) - } - } - case "Timestamps": - if r.TryDecodeAsNil() { - x.Timestamps = false - } else { - x.Timestamps = bool(r.DecodeBool()) - } - case "TailLines": - if r.TryDecodeAsNil() { - if x.TailLines != nil { - x.TailLines = nil - } - } else { - if x.TailLines == nil { - x.TailLines = new(int64) - } - yym3652 := z.DecBinary() - _ = yym3652 - if false { - } else { - *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) - } - } - case "LimitBytes": - if r.TryDecodeAsNil() { - if x.LimitBytes != nil { - x.LimitBytes = nil - } - } else { - if x.LimitBytes == nil { - x.LimitBytes = new(int64) - } - yym3654 := z.DecBinary() - _ = yym3654 - if false { - } else { - *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3640) - } // end switch yys3640 - } // end for yyj3640 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3655 int - var yyb3655 bool - var yyhl3655 bool = l >= 0 - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Follow = false - } else { - x.Follow = bool(r.DecodeBool()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Previous = false - } else { - x.Previous = bool(r.DecodeBool()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SinceSeconds != nil { - x.SinceSeconds = nil - } - } else { - if x.SinceSeconds == nil { - x.SinceSeconds = new(int64) - } - yym3662 := z.DecBinary() - _ = yym3662 - if false { - } else { - *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SinceTime != nil { - x.SinceTime = nil - } - } else { - if x.SinceTime == nil { - x.SinceTime = new(pkg2_v1.Time) - } - yym3664 := z.DecBinary() - _ = yym3664 - if false { - } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3664 { - z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3664 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.SinceTime) - } else { - z.DecFallback(x.SinceTime, false) - } - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Timestamps = false - } else { - x.Timestamps = bool(r.DecodeBool()) - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.TailLines != nil { - x.TailLines = nil - } - } else { - if x.TailLines == nil { - x.TailLines = new(int64) - } - yym3667 := z.DecBinary() - _ = yym3667 - if false { - } else { - *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) - } - } - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.LimitBytes != nil { - x.LimitBytes = nil - } - } else { - if x.LimitBytes == nil { - x.LimitBytes = new(int64) - } - yym3669 := z.DecBinary() - _ = yym3669 - if false { - } else { - *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) - } - } - for { - yyj3655++ - if yyhl3655 { - yyb3655 = yyj3655 > l - } else { - yyb3655 = r.CheckBreak() - } - if yyb3655 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3655-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3670 := z.EncBinary() - _ = yym3670 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3671 := !z.EncBinary() - yy2arr3671 := z.EncBasicHandle().StructToArray - var yyq3671 [7]bool - _, _, _ = yysep3671, yyq3671, yy2arr3671 - const yyr3671 bool = false - yyq3671[0] = x.Kind != "" - yyq3671[1] = x.APIVersion != "" - yyq3671[2] = x.Stdin != false - yyq3671[3] = x.Stdout != false - yyq3671[4] = x.Stderr != false - yyq3671[5] = x.TTY != false - yyq3671[6] = x.Container != "" - var yynn3671 int - if yyr3671 || yy2arr3671 { - r.EncodeArrayStart(7) - } else { - yynn3671 = 0 - for _, b := range yyq3671 { - if b { - yynn3671++ - } - } - r.EncodeMapStart(yynn3671) - yynn3671 = 0 - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[0] { - yym3673 := z.EncBinary() - _ = yym3673 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3671[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3674 := z.EncBinary() - _ = yym3674 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[1] { - yym3676 := z.EncBinary() - _ = yym3676 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3671[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3677 := z.EncBinary() - _ = yym3677 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[2] { - yym3679 := z.EncBinary() - _ = yym3679 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3671[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3680 := z.EncBinary() - _ = yym3680 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[3] { - yym3682 := z.EncBinary() - _ = yym3682 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3671[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3683 := z.EncBinary() - _ = yym3683 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[4] { - yym3685 := z.EncBinary() - _ = yym3685 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3671[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stderr")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3686 := z.EncBinary() - _ = yym3686 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[5] { - yym3688 := z.EncBinary() - _ = yym3688 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3671[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tty")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3689 := z.EncBinary() - _ = yym3689 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[6] { - yym3691 := z.EncBinary() - _ = yym3691 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3671[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("container")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3692 := z.EncBinary() - _ = yym3692 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3693 := z.DecBinary() - _ = yym3693 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3694 := r.ContainerType() - if yyct3694 == codecSelferValueTypeMap1234 { - yyl3694 := r.ReadMapStart() - if yyl3694 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3694, d) - } - } else if yyct3694 == codecSelferValueTypeArray1234 { - yyl3694 := r.ReadArrayStart() - if yyl3694 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3694, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3695Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3695Slc - var yyhl3695 bool = l >= 0 - for yyj3695 := 0; ; yyj3695++ { - if yyhl3695 { - if yyj3695 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3695Slc = r.DecodeBytes(yys3695Slc, true, true) - yys3695 := string(yys3695Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3695 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "stdin": - if r.TryDecodeAsNil() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - case "stdout": - if r.TryDecodeAsNil() { - x.Stdout = false - } else { - x.Stdout = bool(r.DecodeBool()) - } - case "stderr": - if r.TryDecodeAsNil() { - x.Stderr = false - } else { - x.Stderr = bool(r.DecodeBool()) - } - case "tty": - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - case "container": - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3695) - } // end switch yys3695 - } // end for yyj3695 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3703 int - var yyb3703 bool - var yyhl3703 bool = l >= 0 - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stdout = false - } else { - x.Stdout = bool(r.DecodeBool()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stderr = false - } else { - x.Stderr = bool(r.DecodeBool()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - for { - yyj3703++ - if yyhl3703 { - yyb3703 = yyj3703 > l - } else { - yyb3703 = r.CheckBreak() - } - if yyb3703 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3703-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3711 := z.EncBinary() - _ = yym3711 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3712 := !z.EncBinary() - yy2arr3712 := z.EncBasicHandle().StructToArray - var yyq3712 [8]bool - _, _, _ = yysep3712, yyq3712, yy2arr3712 - const yyr3712 bool = false - yyq3712[0] = x.Kind != "" - yyq3712[1] = x.APIVersion != "" - var yynn3712 int - if yyr3712 || yy2arr3712 { - r.EncodeArrayStart(8) - } else { - yynn3712 = 6 - for _, b := range yyq3712 { - if b { - yynn3712++ - } - } - r.EncodeMapStart(yynn3712) - yynn3712 = 0 - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3712[0] { - yym3714 := z.EncBinary() - _ = yym3714 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3712[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3715 := z.EncBinary() - _ = yym3715 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3712[1] { - yym3717 := z.EncBinary() - _ = yym3717 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3712[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3718 := z.EncBinary() - _ = yym3718 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3720 := z.EncBinary() - _ = yym3720 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Stdin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3721 := z.EncBinary() - _ = yym3721 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3723 := z.EncBinary() - _ = yym3723 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Stdout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3724 := z.EncBinary() - _ = yym3724 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3726 := z.EncBinary() - _ = yym3726 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Stderr")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3727 := z.EncBinary() - _ = yym3727 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3729 := z.EncBinary() - _ = yym3729 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("TTY")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3730 := z.EncBinary() - _ = yym3730 - if false { - } else { - r.EncodeBool(bool(x.TTY)) - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3732 := z.EncBinary() - _ = yym3732 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Container")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3733 := z.EncBinary() - _ = yym3733 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Command == nil { - r.EncodeNil() - } else { - yym3735 := z.EncBinary() - _ = yym3735 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Command")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Command == nil { - r.EncodeNil() - } else { - yym3736 := z.EncBinary() - _ = yym3736 - if false { - } else { - z.F.EncSliceStringV(x.Command, false, e) - } - } - } - if yyr3712 || yy2arr3712 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3737 := z.DecBinary() - _ = yym3737 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3738 := r.ContainerType() - if yyct3738 == codecSelferValueTypeMap1234 { - yyl3738 := r.ReadMapStart() - if yyl3738 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3738, d) - } - } else if yyct3738 == codecSelferValueTypeArray1234 { - yyl3738 := r.ReadArrayStart() - if yyl3738 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3738, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3739Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3739Slc - var yyhl3739 bool = l >= 0 - for yyj3739 := 0; ; yyj3739++ { - if yyhl3739 { - if yyj3739 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3739Slc = r.DecodeBytes(yys3739Slc, true, true) - yys3739 := string(yys3739Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3739 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "Stdin": - if r.TryDecodeAsNil() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - case "Stdout": - if r.TryDecodeAsNil() { - x.Stdout = false - } else { - x.Stdout = bool(r.DecodeBool()) - } - case "Stderr": - if r.TryDecodeAsNil() { - x.Stderr = false - } else { - x.Stderr = bool(r.DecodeBool()) - } - case "TTY": - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - case "Container": - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - case "Command": - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv3747 := &x.Command - yym3748 := z.DecBinary() - _ = yym3748 - if false { - } else { - z.F.DecSliceStringX(yyv3747, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3739) - } // end switch yys3739 - } // end for yyj3739 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3749 int - var yyb3749 bool - var yyhl3749 bool = l >= 0 - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stdin = false - } else { - x.Stdin = bool(r.DecodeBool()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stdout = false - } else { - x.Stdout = bool(r.DecodeBool()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Stderr = false - } else { - x.Stderr = bool(r.DecodeBool()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TTY = false - } else { - x.TTY = bool(r.DecodeBool()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Container = "" - } else { - x.Container = string(r.DecodeString()) - } - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Command = nil - } else { - yyv3757 := &x.Command - yym3758 := z.DecBinary() - _ = yym3758 - if false { - } else { - z.F.DecSliceStringX(yyv3757, false, d) - } - } - for { - yyj3749++ - if yyhl3749 { - yyb3749 = yyj3749 > l - } else { - yyb3749 = r.CheckBreak() - } - if yyb3749 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3749-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3759 := z.EncBinary() - _ = yym3759 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3760 := !z.EncBinary() - yy2arr3760 := z.EncBasicHandle().StructToArray - var yyq3760 [3]bool - _, _, _ = yysep3760, yyq3760, yy2arr3760 - const yyr3760 bool = false - yyq3760[0] = x.Kind != "" - yyq3760[1] = x.APIVersion != "" - var yynn3760 int - if yyr3760 || yy2arr3760 { - r.EncodeArrayStart(3) - } else { - yynn3760 = 1 - for _, b := range yyq3760 { - if b { - yynn3760++ - } - } - r.EncodeMapStart(yynn3760) - yynn3760 = 0 - } - if yyr3760 || yy2arr3760 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3760[0] { - yym3762 := z.EncBinary() - _ = yym3762 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3760[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3763 := z.EncBinary() - _ = yym3763 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3760 || yy2arr3760 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3760[1] { - yym3765 := z.EncBinary() - _ = yym3765 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3760[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3766 := z.EncBinary() - _ = yym3766 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3760 || yy2arr3760 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3768 := z.EncBinary() - _ = yym3768 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3769 := z.EncBinary() - _ = yym3769 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr3760 || yy2arr3760 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3770 := z.DecBinary() - _ = yym3770 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3771 := r.ContainerType() - if yyct3771 == codecSelferValueTypeMap1234 { - yyl3771 := r.ReadMapStart() - if yyl3771 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3771, d) - } - } else if yyct3771 == codecSelferValueTypeArray1234 { - yyl3771 := r.ReadArrayStart() - if yyl3771 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3771, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3772Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3772Slc - var yyhl3772 bool = l >= 0 - for yyj3772 := 0; ; yyj3772++ { - if yyhl3772 { - if yyj3772 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3772Slc = r.DecodeBytes(yys3772Slc, true, true) - yys3772 := string(yys3772Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3772 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3772) - } // end switch yys3772 - } // end for yyj3772 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3776 int - var yyb3776 bool - var yyhl3776 bool = l >= 0 - yyj3776++ - if yyhl3776 { - yyb3776 = yyj3776 > l - } else { - yyb3776 = r.CheckBreak() - } - if yyb3776 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3776++ - if yyhl3776 { - yyb3776 = yyj3776 > l - } else { - yyb3776 = r.CheckBreak() - } - if yyb3776 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3776++ - if yyhl3776 { - yyb3776 = yyj3776 > l - } else { - yyb3776 = r.CheckBreak() - } - if yyb3776 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj3776++ - if yyhl3776 { - yyb3776 = yyj3776 > l - } else { - yyb3776 = r.CheckBreak() - } - if yyb3776 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3776-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3780 := z.EncBinary() - _ = yym3780 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3781 := !z.EncBinary() - yy2arr3781 := z.EncBasicHandle().StructToArray - var yyq3781 [3]bool - _, _, _ = yysep3781, yyq3781, yy2arr3781 - const yyr3781 bool = false - yyq3781[0] = x.Kind != "" - yyq3781[1] = x.APIVersion != "" - var yynn3781 int - if yyr3781 || yy2arr3781 { - r.EncodeArrayStart(3) - } else { - yynn3781 = 1 - for _, b := range yyq3781 { - if b { - yynn3781++ - } - } - r.EncodeMapStart(yynn3781) - yynn3781 = 0 - } - if yyr3781 || yy2arr3781 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3781[0] { - yym3783 := z.EncBinary() - _ = yym3783 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3781[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3784 := z.EncBinary() - _ = yym3784 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3781 || yy2arr3781 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3781[1] { - yym3786 := z.EncBinary() - _ = yym3786 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3781[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3787 := z.EncBinary() - _ = yym3787 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3781 || yy2arr3781 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3789 := z.EncBinary() - _ = yym3789 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3790 := z.EncBinary() - _ = yym3790 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr3781 || yy2arr3781 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3791 := z.DecBinary() - _ = yym3791 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3792 := r.ContainerType() - if yyct3792 == codecSelferValueTypeMap1234 { - yyl3792 := r.ReadMapStart() - if yyl3792 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3792, d) - } - } else if yyct3792 == codecSelferValueTypeArray1234 { - yyl3792 := r.ReadArrayStart() - if yyl3792 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3792, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3793Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3793Slc - var yyhl3793 bool = l >= 0 - for yyj3793 := 0; ; yyj3793++ { - if yyhl3793 { - if yyj3793 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3793Slc = r.DecodeBytes(yys3793Slc, true, true) - yys3793 := string(yys3793Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3793 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3793) - } // end switch yys3793 - } // end for yyj3793 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3797 int - var yyb3797 bool - var yyhl3797 bool = l >= 0 - yyj3797++ - if yyhl3797 { - yyb3797 = yyj3797 > l - } else { - yyb3797 = r.CheckBreak() - } - if yyb3797 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3797++ - if yyhl3797 { - yyb3797 = yyj3797 > l - } else { - yyb3797 = r.CheckBreak() - } - if yyb3797 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3797++ - if yyhl3797 { - yyb3797 = yyj3797 > l - } else { - yyb3797 = r.CheckBreak() - } - if yyb3797 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj3797++ - if yyhl3797 { - yyb3797 = yyj3797 > l - } else { - yyb3797 = r.CheckBreak() - } - if yyb3797 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3797-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3801 := z.EncBinary() - _ = yym3801 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3802 := !z.EncBinary() - yy2arr3802 := z.EncBasicHandle().StructToArray - var yyq3802 [3]bool - _, _, _ = yysep3802, yyq3802, yy2arr3802 - const yyr3802 bool = false - yyq3802[0] = x.Kind != "" - yyq3802[1] = x.APIVersion != "" - var yynn3802 int - if yyr3802 || yy2arr3802 { - r.EncodeArrayStart(3) - } else { - yynn3802 = 1 - for _, b := range yyq3802 { - if b { - yynn3802++ - } - } - r.EncodeMapStart(yynn3802) - yynn3802 = 0 - } - if yyr3802 || yy2arr3802 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3802[0] { - yym3804 := z.EncBinary() - _ = yym3804 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3802[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3805 := z.EncBinary() - _ = yym3805 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3802 || yy2arr3802 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3802[1] { - yym3807 := z.EncBinary() - _ = yym3807 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3802[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3808 := z.EncBinary() - _ = yym3808 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3802 || yy2arr3802 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3810 := z.EncBinary() - _ = yym3810 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3811 := z.EncBinary() - _ = yym3811 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr3802 || yy2arr3802 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3812 := z.DecBinary() - _ = yym3812 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3813 := r.ContainerType() - if yyct3813 == codecSelferValueTypeMap1234 { - yyl3813 := r.ReadMapStart() - if yyl3813 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3813, d) - } - } else if yyct3813 == codecSelferValueTypeArray1234 { - yyl3813 := r.ReadArrayStart() - if yyl3813 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3813, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3814Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3814Slc - var yyhl3814 bool = l >= 0 - for yyj3814 := 0; ; yyj3814++ { - if yyhl3814 { - if yyj3814 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3814Slc = r.DecodeBytes(yys3814Slc, true, true) - yys3814 := string(yys3814Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3814 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3814) - } // end switch yys3814 - } // end for yyj3814 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3818 int - var yyb3818 bool - var yyhl3818 bool = l >= 0 - yyj3818++ - if yyhl3818 { - yyb3818 = yyj3818 > l - } else { - yyb3818 = r.CheckBreak() - } - if yyb3818 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3818++ - if yyhl3818 { - yyb3818 = yyj3818 > l - } else { - yyb3818 = r.CheckBreak() - } - if yyb3818 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3818++ - if yyhl3818 { - yyb3818 = yyj3818 > l - } else { - yyb3818 = r.CheckBreak() - } - if yyb3818 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj3818++ - if yyhl3818 { - yyb3818 = yyj3818 > l - } else { - yyb3818 = r.CheckBreak() - } - if yyb3818 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3818-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3822 := z.EncBinary() - _ = yym3822 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3823 := !z.EncBinary() - yy2arr3823 := z.EncBasicHandle().StructToArray - var yyq3823 [7]bool - _, _, _ = yysep3823, yyq3823, yy2arr3823 - const yyr3823 bool = false - yyq3823[0] = x.Kind != "" - yyq3823[1] = x.Namespace != "" - yyq3823[2] = x.Name != "" - yyq3823[3] = x.UID != "" - yyq3823[4] = x.APIVersion != "" - yyq3823[5] = x.ResourceVersion != "" - yyq3823[6] = x.FieldPath != "" - var yynn3823 int - if yyr3823 || yy2arr3823 { - r.EncodeArrayStart(7) - } else { - yynn3823 = 0 - for _, b := range yyq3823 { - if b { - yynn3823++ - } - } - r.EncodeMapStart(yynn3823) - yynn3823 = 0 - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[0] { - yym3825 := z.EncBinary() - _ = yym3825 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3826 := z.EncBinary() - _ = yym3826 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[1] { - yym3828 := z.EncBinary() - _ = yym3828 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3829 := z.EncBinary() - _ = yym3829 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[2] { - yym3831 := z.EncBinary() - _ = yym3831 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3832 := z.EncBinary() - _ = yym3832 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[3] { - yym3834 := z.EncBinary() - _ = yym3834 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3835 := z.EncBinary() - _ = yym3835 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[4] { - yym3837 := z.EncBinary() - _ = yym3837 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3838 := z.EncBinary() - _ = yym3838 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[5] { - yym3840 := z.EncBinary() - _ = yym3840 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3841 := z.EncBinary() - _ = yym3841 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3823[6] { - yym3843 := z.EncBinary() - _ = yym3843 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3823[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3844 := z.EncBinary() - _ = yym3844 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) - } - } - } - if yyr3823 || yy2arr3823 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3845 := z.DecBinary() - _ = yym3845 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3846 := r.ContainerType() - if yyct3846 == codecSelferValueTypeMap1234 { - yyl3846 := r.ReadMapStart() - if yyl3846 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3846, d) - } - } else if yyct3846 == codecSelferValueTypeArray1234 { - yyl3846 := r.ReadArrayStart() - if yyl3846 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3846, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3847Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3847Slc - var yyhl3847 bool = l >= 0 - for yyj3847 := 0; ; yyj3847++ { - if yyhl3847 { - if yyj3847 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3847Slc = r.DecodeBytes(yys3847Slc, true, true) - yys3847 := string(yys3847Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3847 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg1_types.UID(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "fieldPath": - if r.TryDecodeAsNil() { - x.FieldPath = "" - } else { - x.FieldPath = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3847) - } // end switch yys3847 - } // end for yyj3847 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3855 int - var yyb3855 bool - var yyhl3855 bool = l >= 0 - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg1_types.UID(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FieldPath = "" - } else { - x.FieldPath = string(r.DecodeString()) - } - for { - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3855-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3863 := z.EncBinary() - _ = yym3863 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3864 := !z.EncBinary() - yy2arr3864 := z.EncBasicHandle().StructToArray - var yyq3864 [1]bool - _, _, _ = yysep3864, yyq3864, yy2arr3864 - const yyr3864 bool = false - var yynn3864 int - if yyr3864 || yy2arr3864 { - r.EncodeArrayStart(1) - } else { - yynn3864 = 1 - for _, b := range yyq3864 { - if b { - yynn3864++ - } - } - r.EncodeMapStart(yynn3864) - yynn3864 = 0 - } - if yyr3864 || yy2arr3864 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3866 := z.EncBinary() - _ = yym3866 - 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) - yym3867 := z.EncBinary() - _ = yym3867 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr3864 || yy2arr3864 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3868 := z.DecBinary() - _ = yym3868 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3869 := r.ContainerType() - if yyct3869 == codecSelferValueTypeMap1234 { - yyl3869 := r.ReadMapStart() - if yyl3869 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3869, d) - } - } else if yyct3869 == codecSelferValueTypeArray1234 { - yyl3869 := r.ReadArrayStart() - if yyl3869 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3869, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3870Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3870Slc - var yyhl3870 bool = l >= 0 - for yyj3870 := 0; ; yyj3870++ { - if yyhl3870 { - if yyj3870 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3870Slc = r.DecodeBytes(yys3870Slc, true, true) - yys3870 := string(yys3870Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3870 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3870) - } // end switch yys3870 - } // end for yyj3870 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3872 int - var yyb3872 bool - var yyhl3872 bool = l >= 0 - yyj3872++ - if yyhl3872 { - yyb3872 = yyj3872 > l - } else { - yyb3872 = r.CheckBreak() - } - if yyb3872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - for { - yyj3872++ - if yyhl3872 { - yyb3872 = yyj3872 > l - } else { - yyb3872 = r.CheckBreak() - } - if yyb3872 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3872-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3874 := z.EncBinary() - _ = yym3874 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3875 := !z.EncBinary() - yy2arr3875 := z.EncBasicHandle().StructToArray - var yyq3875 [3]bool - _, _, _ = yysep3875, yyq3875, yy2arr3875 - const yyr3875 bool = false - yyq3875[0] = x.Kind != "" - yyq3875[1] = x.APIVersion != "" - yyq3875[2] = true - var yynn3875 int - if yyr3875 || yy2arr3875 { - r.EncodeArrayStart(3) - } else { - yynn3875 = 0 - for _, b := range yyq3875 { - if b { - yynn3875++ - } - } - r.EncodeMapStart(yynn3875) - yynn3875 = 0 - } - if yyr3875 || yy2arr3875 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3875[0] { - yym3877 := z.EncBinary() - _ = yym3877 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3875[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3878 := z.EncBinary() - _ = yym3878 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3875 || yy2arr3875 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3875[1] { - yym3880 := z.EncBinary() - _ = yym3880 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3875[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3881 := z.EncBinary() - _ = yym3881 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3875 || yy2arr3875 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3875[2] { - yy3883 := &x.Reference - yy3883.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3875[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reference")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3884 := &x.Reference - yy3884.CodecEncodeSelf(e) - } - } - if yyr3875 || yy2arr3875 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3885 := z.DecBinary() - _ = yym3885 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3886 := r.ContainerType() - if yyct3886 == codecSelferValueTypeMap1234 { - yyl3886 := r.ReadMapStart() - if yyl3886 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3886, d) - } - } else if yyct3886 == codecSelferValueTypeArray1234 { - yyl3886 := r.ReadArrayStart() - if yyl3886 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3886, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3887Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3887Slc - var yyhl3887 bool = l >= 0 - for yyj3887 := 0; ; yyj3887++ { - if yyhl3887 { - if yyj3887 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3887Slc = r.DecodeBytes(yys3887Slc, true, true) - yys3887 := string(yys3887Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3887 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "reference": - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv3890 := &x.Reference - yyv3890.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3887) - } // end switch yys3887 - } // end for yyj3887 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3891 int - var yyb3891 bool - var yyhl3891 bool = l >= 0 - yyj3891++ - if yyhl3891 { - yyb3891 = yyj3891 > l - } else { - yyb3891 = r.CheckBreak() - } - if yyb3891 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3891++ - if yyhl3891 { - yyb3891 = yyj3891 > l - } else { - yyb3891 = r.CheckBreak() - } - if yyb3891 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3891++ - if yyhl3891 { - yyb3891 = yyj3891 > l - } else { - yyb3891 = r.CheckBreak() - } - if yyb3891 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv3894 := &x.Reference - yyv3894.CodecDecodeSelf(d) - } - for { - yyj3891++ - if yyhl3891 { - yyb3891 = yyj3891 > l - } else { - yyb3891 = r.CheckBreak() - } - if yyb3891 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3891-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3895 := z.EncBinary() - _ = yym3895 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3896 := !z.EncBinary() - yy2arr3896 := z.EncBasicHandle().StructToArray - var yyq3896 [2]bool - _, _, _ = yysep3896, yyq3896, yy2arr3896 - const yyr3896 bool = false - yyq3896[0] = x.Component != "" - yyq3896[1] = x.Host != "" - var yynn3896 int - if yyr3896 || yy2arr3896 { - r.EncodeArrayStart(2) - } else { - yynn3896 = 0 - for _, b := range yyq3896 { - if b { - yynn3896++ - } - } - r.EncodeMapStart(yynn3896) - yynn3896 = 0 - } - if yyr3896 || yy2arr3896 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3896[0] { - yym3898 := z.EncBinary() - _ = yym3898 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3896[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("component")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3899 := z.EncBinary() - _ = yym3899 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } - } - if yyr3896 || yy2arr3896 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3896[1] { - yym3901 := z.EncBinary() - _ = yym3901 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3896[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("host")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3902 := z.EncBinary() - _ = yym3902 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } - } - if yyr3896 || yy2arr3896 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3903 := z.DecBinary() - _ = yym3903 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3904 := r.ContainerType() - if yyct3904 == codecSelferValueTypeMap1234 { - yyl3904 := r.ReadMapStart() - if yyl3904 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3904, d) - } - } else if yyct3904 == codecSelferValueTypeArray1234 { - yyl3904 := r.ReadArrayStart() - if yyl3904 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3904, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3905Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3905Slc - var yyhl3905 bool = l >= 0 - for yyj3905 := 0; ; yyj3905++ { - if yyhl3905 { - if yyj3905 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3905Slc = r.DecodeBytes(yys3905Slc, true, true) - yys3905 := string(yys3905Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3905 { - case "component": - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - case "host": - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3905) - } // end switch yys3905 - } // end for yyj3905 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3908 int - var yyb3908 bool - var yyhl3908 bool = l >= 0 - yyj3908++ - if yyhl3908 { - yyb3908 = yyj3908 > l - } else { - yyb3908 = r.CheckBreak() - } - if yyb3908 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - yyj3908++ - if yyhl3908 { - yyb3908 = yyj3908 > l - } else { - yyb3908 = r.CheckBreak() - } - if yyb3908 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - for { - yyj3908++ - if yyhl3908 { - yyb3908 = yyj3908 > l - } else { - yyb3908 = r.CheckBreak() - } - if yyb3908 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3908-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3911 := z.EncBinary() - _ = yym3911 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3912 := !z.EncBinary() - yy2arr3912 := z.EncBasicHandle().StructToArray - var yyq3912 [11]bool - _, _, _ = yysep3912, yyq3912, yy2arr3912 - const yyr3912 bool = false - yyq3912[0] = x.Kind != "" - yyq3912[1] = x.APIVersion != "" - yyq3912[2] = true - yyq3912[3] = true - yyq3912[4] = x.Reason != "" - yyq3912[5] = x.Message != "" - yyq3912[6] = true - yyq3912[7] = true - yyq3912[8] = true - yyq3912[9] = x.Count != 0 - yyq3912[10] = x.Type != "" - var yynn3912 int - if yyr3912 || yy2arr3912 { - r.EncodeArrayStart(11) - } else { - yynn3912 = 0 - for _, b := range yyq3912 { - if b { - yynn3912++ - } - } - r.EncodeMapStart(yynn3912) - yynn3912 = 0 - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[0] { - yym3914 := z.EncBinary() - _ = yym3914 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3912[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3915 := z.EncBinary() - _ = yym3915 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[1] { - yym3917 := z.EncBinary() - _ = yym3917 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3912[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3918 := z.EncBinary() - _ = yym3918 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[2] { - yy3920 := &x.ObjectMeta - yy3920.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3912[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3921 := &x.ObjectMeta - yy3921.CodecEncodeSelf(e) - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[3] { - yy3923 := &x.InvolvedObject - yy3923.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3912[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3924 := &x.InvolvedObject - yy3924.CodecEncodeSelf(e) - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[4] { - yym3926 := z.EncBinary() - _ = yym3926 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3912[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3927 := z.EncBinary() - _ = yym3927 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[5] { - yym3929 := z.EncBinary() - _ = yym3929 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3912[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3930 := z.EncBinary() - _ = yym3930 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[6] { - yy3932 := &x.Source - yy3932.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3912[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("source")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3933 := &x.Source - yy3933.CodecEncodeSelf(e) - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[7] { - yy3935 := &x.FirstTimestamp - yym3936 := z.EncBinary() - _ = yym3936 - if false { - } else if z.HasExtensions() && z.EncExt(yy3935) { - } else if yym3936 { - z.EncBinaryMarshal(yy3935) - } else if !yym3936 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3935) - } else { - z.EncFallback(yy3935) - } - } else { - r.EncodeNil() - } - } else { - if yyq3912[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3937 := &x.FirstTimestamp - yym3938 := z.EncBinary() - _ = yym3938 - if false { - } else if z.HasExtensions() && z.EncExt(yy3937) { - } else if yym3938 { - z.EncBinaryMarshal(yy3937) - } else if !yym3938 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3937) - } else { - z.EncFallback(yy3937) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[8] { - yy3940 := &x.LastTimestamp - yym3941 := z.EncBinary() - _ = yym3941 - if false { - } else if z.HasExtensions() && z.EncExt(yy3940) { - } else if yym3941 { - z.EncBinaryMarshal(yy3940) - } else if !yym3941 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3940) - } else { - z.EncFallback(yy3940) - } - } else { - r.EncodeNil() - } - } else { - if yyq3912[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3942 := &x.LastTimestamp - yym3943 := z.EncBinary() - _ = yym3943 - if false { - } else if z.HasExtensions() && z.EncExt(yy3942) { - } else if yym3943 { - z.EncBinaryMarshal(yy3942) - } else if !yym3943 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3942) - } else { - z.EncFallback(yy3942) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[9] { - yym3945 := z.EncBinary() - _ = yym3945 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq3912[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("count")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3946 := z.EncBinary() - _ = yym3946 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[10] { - yym3948 := z.EncBinary() - _ = yym3948 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3912[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3949 := z.EncBinary() - _ = yym3949 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } - } - if yyr3912 || yy2arr3912 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3950 := z.DecBinary() - _ = yym3950 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3951 := r.ContainerType() - if yyct3951 == codecSelferValueTypeMap1234 { - yyl3951 := r.ReadMapStart() - if yyl3951 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3951, d) - } - } else if yyct3951 == codecSelferValueTypeArray1234 { - yyl3951 := r.ReadArrayStart() - if yyl3951 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3951, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3952Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3952Slc - var yyhl3952 bool = l >= 0 - for yyj3952 := 0; ; yyj3952++ { - if yyhl3952 { - if yyj3952 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3952Slc = r.DecodeBytes(yys3952Slc, true, true) - yys3952 := string(yys3952Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3952 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv3955 := &x.ObjectMeta - yyv3955.CodecDecodeSelf(d) - } - case "involvedObject": - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3956 := &x.InvolvedObject - yyv3956.CodecDecodeSelf(d) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "source": - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3959 := &x.Source - yyv3959.CodecDecodeSelf(d) - } - case "firstTimestamp": - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_v1.Time{} - } else { - yyv3960 := &x.FirstTimestamp - yym3961 := z.DecBinary() - _ = yym3961 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3960) { - } else if yym3961 { - z.DecBinaryUnmarshal(yyv3960) - } else if !yym3961 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3960) - } else { - z.DecFallback(yyv3960, false) - } - } - case "lastTimestamp": - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_v1.Time{} - } else { - yyv3962 := &x.LastTimestamp - yym3963 := z.DecBinary() - _ = yym3963 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3962) { - } else if yym3963 { - z.DecBinaryUnmarshal(yyv3962) - } else if !yym3963 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3962) - } else { - z.DecFallback(yyv3962, false) - } - } - case "count": - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3952) - } // end switch yys3952 - } // end for yyj3952 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3966 int - var yyb3966 bool - var yyhl3966 bool = l >= 0 - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3969 := &x.ObjectMeta - yyv3969.CodecDecodeSelf(d) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3970 := &x.InvolvedObject - yyv3970.CodecDecodeSelf(d) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3973 := &x.Source - yyv3973.CodecDecodeSelf(d) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_v1.Time{} - } else { - yyv3974 := &x.FirstTimestamp - yym3975 := z.DecBinary() - _ = yym3975 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3974) { - } else if yym3975 { - z.DecBinaryUnmarshal(yyv3974) - } else if !yym3975 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3974) - } else { - z.DecFallback(yyv3974, false) - } - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_v1.Time{} - } else { - yyv3976 := &x.LastTimestamp - yym3977 := z.DecBinary() - _ = yym3977 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3976) { - } else if yym3977 { - z.DecBinaryUnmarshal(yyv3976) - } else if !yym3977 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3976) - } else { - z.DecFallback(yyv3976, false) - } - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - for { - yyj3966++ - if yyhl3966 { - yyb3966 = yyj3966 > l - } else { - yyb3966 = r.CheckBreak() - } - if yyb3966 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3966-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3980 := z.EncBinary() - _ = yym3980 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3981 := !z.EncBinary() - yy2arr3981 := z.EncBasicHandle().StructToArray - var yyq3981 [4]bool - _, _, _ = yysep3981, yyq3981, yy2arr3981 - const yyr3981 bool = false - yyq3981[0] = x.Kind != "" - yyq3981[1] = x.APIVersion != "" - yyq3981[2] = true - var yynn3981 int - if yyr3981 || yy2arr3981 { - r.EncodeArrayStart(4) - } else { - yynn3981 = 1 - for _, b := range yyq3981 { - if b { - yynn3981++ - } - } - r.EncodeMapStart(yynn3981) - yynn3981 = 0 - } - if yyr3981 || yy2arr3981 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3981[0] { - yym3983 := z.EncBinary() - _ = yym3983 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3981[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3984 := z.EncBinary() - _ = yym3984 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3981 || yy2arr3981 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3981[1] { - yym3986 := z.EncBinary() - _ = yym3986 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3981[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3987 := z.EncBinary() - _ = yym3987 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3981 || yy2arr3981 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3981[2] { - yy3989 := &x.ListMeta - yym3990 := z.EncBinary() - _ = yym3990 - if false { - } else if z.HasExtensions() && z.EncExt(yy3989) { - } else { - z.EncFallback(yy3989) - } - } else { - r.EncodeNil() - } - } else { - if yyq3981[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3991 := &x.ListMeta - yym3992 := z.EncBinary() - _ = yym3992 - if false { - } else if z.HasExtensions() && z.EncExt(yy3991) { - } else { - z.EncFallback(yy3991) - } - } - } - if yyr3981 || yy2arr3981 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3994 := z.EncBinary() - _ = yym3994 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3995 := z.EncBinary() - _ = yym3995 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } - if yyr3981 || yy2arr3981 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3996 := z.DecBinary() - _ = yym3996 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3997 := r.ContainerType() - if yyct3997 == codecSelferValueTypeMap1234 { - yyl3997 := r.ReadMapStart() - if yyl3997 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3997, d) - } - } else if yyct3997 == codecSelferValueTypeArray1234 { - yyl3997 := r.ReadArrayStart() - if yyl3997 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3997, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3998Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3998Slc - var yyhl3998 bool = l >= 0 - for yyj3998 := 0; ; yyj3998++ { - if yyhl3998 { - if yyj3998 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3998Slc = r.DecodeBytes(yys3998Slc, true, true) - yys3998 := string(yys3998Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3998 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4001 := &x.ListMeta - yym4002 := z.DecBinary() - _ = yym4002 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4001) { - } else { - z.DecFallback(yyv4001, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4003 := &x.Items - yym4004 := z.DecBinary() - _ = yym4004 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv4003), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3998) - } // end switch yys3998 - } // end for yyj3998 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4005 int - var yyb4005 bool - var yyhl4005 bool = l >= 0 - yyj4005++ - if yyhl4005 { - yyb4005 = yyj4005 > l - } else { - yyb4005 = r.CheckBreak() - } - if yyb4005 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4005++ - if yyhl4005 { - yyb4005 = yyj4005 > l - } else { - yyb4005 = r.CheckBreak() - } - if yyb4005 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4005++ - if yyhl4005 { - yyb4005 = yyj4005 > l - } else { - yyb4005 = r.CheckBreak() - } - if yyb4005 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4008 := &x.ListMeta - yym4009 := z.DecBinary() - _ = yym4009 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4008) { - } else { - z.DecFallback(yyv4008, false) - } - } - yyj4005++ - if yyhl4005 { - yyb4005 = yyj4005 > l - } else { - yyb4005 = r.CheckBreak() - } - if yyb4005 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4010 := &x.Items - yym4011 := z.DecBinary() - _ = yym4011 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv4010), d) - } - } - for { - yyj4005++ - if yyhl4005 { - yyb4005 = yyj4005 > l - } else { - yyb4005 = r.CheckBreak() - } - if yyb4005 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4005-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4012 := z.EncBinary() - _ = yym4012 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4013 := !z.EncBinary() - yy2arr4013 := z.EncBasicHandle().StructToArray - var yyq4013 [4]bool - _, _, _ = yysep4013, yyq4013, yy2arr4013 - const yyr4013 bool = false - yyq4013[0] = x.Kind != "" - yyq4013[1] = x.APIVersion != "" - yyq4013[2] = true - var yynn4013 int - if yyr4013 || yy2arr4013 { - r.EncodeArrayStart(4) - } else { - yynn4013 = 1 - for _, b := range yyq4013 { - if b { - yynn4013++ - } - } - r.EncodeMapStart(yynn4013) - yynn4013 = 0 - } - if yyr4013 || yy2arr4013 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4013[0] { - yym4015 := z.EncBinary() - _ = yym4015 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4013[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4016 := z.EncBinary() - _ = yym4016 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4013 || yy2arr4013 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4013[1] { - yym4018 := z.EncBinary() - _ = yym4018 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4013[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4019 := z.EncBinary() - _ = yym4019 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4013 || yy2arr4013 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4013[2] { - yy4021 := &x.ListMeta - yym4022 := z.EncBinary() - _ = yym4022 - if false { - } else if z.HasExtensions() && z.EncExt(yy4021) { - } else { - z.EncFallback(yy4021) - } - } else { - r.EncodeNil() - } - } else { - if yyq4013[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4023 := &x.ListMeta - yym4024 := z.EncBinary() - _ = yym4024 - if false { - } else if z.HasExtensions() && z.EncExt(yy4023) { - } else { - z.EncFallback(yy4023) - } - } - } - if yyr4013 || yy2arr4013 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4026 := z.EncBinary() - _ = yym4026 - if false { - } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4027 := z.EncBinary() - _ = yym4027 - if false { - } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) - } - } - } - if yyr4013 || yy2arr4013 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4028 := z.DecBinary() - _ = yym4028 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4029 := r.ContainerType() - if yyct4029 == codecSelferValueTypeMap1234 { - yyl4029 := r.ReadMapStart() - if yyl4029 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4029, d) - } - } else if yyct4029 == codecSelferValueTypeArray1234 { - yyl4029 := r.ReadArrayStart() - if yyl4029 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4029, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4030Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4030Slc - var yyhl4030 bool = l >= 0 - for yyj4030 := 0; ; yyj4030++ { - if yyhl4030 { - if yyj4030 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4030Slc = r.DecodeBytes(yys4030Slc, true, true) - yys4030 := string(yys4030Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4030 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4033 := &x.ListMeta - yym4034 := z.DecBinary() - _ = yym4034 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4033) { - } else { - z.DecFallback(yyv4033, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4035 := &x.Items - yym4036 := z.DecBinary() - _ = yym4036 - if false { - } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4035), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4030) - } // end switch yys4030 - } // end for yyj4030 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4037 int - var yyb4037 bool - var yyhl4037 bool = l >= 0 - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l - } else { - yyb4037 = r.CheckBreak() - } - if yyb4037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l - } else { - yyb4037 = r.CheckBreak() - } - if yyb4037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l - } else { - yyb4037 = r.CheckBreak() - } - if yyb4037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4040 := &x.ListMeta - yym4041 := z.DecBinary() - _ = yym4041 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4040) { - } else { - z.DecFallback(yyv4040, false) - } - } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l - } else { - yyb4037 = r.CheckBreak() - } - if yyb4037 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4042 := &x.Items - yym4043 := z.DecBinary() - _ = yym4043 - if false { - } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4042), d) - } - } - for { - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l - } else { - yyb4037 = r.CheckBreak() - } - if yyb4037 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4037-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym4044 := z.EncBinary() - _ = yym4044 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4045 := z.DecBinary() - _ = yym4045 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4046 := z.EncBinary() - _ = yym4046 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4047 := !z.EncBinary() - yy2arr4047 := z.EncBasicHandle().StructToArray - var yyq4047 [6]bool - _, _, _ = yysep4047, yyq4047, yy2arr4047 - const yyr4047 bool = false - yyq4047[0] = x.Type != "" - yyq4047[1] = len(x.Max) != 0 - yyq4047[2] = len(x.Min) != 0 - yyq4047[3] = len(x.Default) != 0 - yyq4047[4] = len(x.DefaultRequest) != 0 - yyq4047[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn4047 int - if yyr4047 || yy2arr4047 { - r.EncodeArrayStart(6) - } else { - yynn4047 = 0 - for _, b := range yyq4047 { - if b { - yynn4047++ - } - } - r.EncodeMapStart(yynn4047) - yynn4047 = 0 - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[0] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4047[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[1] { - if x.Max == nil { - r.EncodeNil() - } else { - x.Max.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4047[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("max")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Max == nil { - r.EncodeNil() - } else { - x.Max.CodecEncodeSelf(e) - } - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[2] { - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4047[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("min")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[3] { - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4047[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("default")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[4] { - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4047[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4047[5] { - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4047[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } - } - if yyr4047 || yy2arr4047 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4054 := z.DecBinary() - _ = yym4054 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4055 := r.ContainerType() - if yyct4055 == codecSelferValueTypeMap1234 { - yyl4055 := r.ReadMapStart() - if yyl4055 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4055, d) - } - } else if yyct4055 == codecSelferValueTypeArray1234 { - yyl4055 := r.ReadArrayStart() - if yyl4055 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4055, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4056Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4056Slc - var yyhl4056 bool = l >= 0 - for yyj4056 := 0; ; yyj4056++ { - if yyhl4056 { - if yyj4056 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4056Slc = r.DecodeBytes(yys4056Slc, true, true) - yys4056 := string(yys4056Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4056 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = LimitType(r.DecodeString()) - } - case "max": - if r.TryDecodeAsNil() { - x.Max = nil - } else { - yyv4058 := &x.Max - yyv4058.CodecDecodeSelf(d) - } - case "min": - if r.TryDecodeAsNil() { - x.Min = nil - } else { - yyv4059 := &x.Min - yyv4059.CodecDecodeSelf(d) - } - case "default": - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv4060 := &x.Default - yyv4060.CodecDecodeSelf(d) - } - case "defaultRequest": - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv4061 := &x.DefaultRequest - yyv4061.CodecDecodeSelf(d) - } - case "maxLimitRequestRatio": - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv4062 := &x.MaxLimitRequestRatio - yyv4062.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys4056) - } // end switch yys4056 - } // end for yyj4056 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4063 int - var yyb4063 bool - var yyhl4063 bool = l >= 0 - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = LimitType(r.DecodeString()) - } - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Max = nil - } else { - yyv4065 := &x.Max - yyv4065.CodecDecodeSelf(d) - } - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Min = nil - } else { - yyv4066 := &x.Min - yyv4066.CodecDecodeSelf(d) - } - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv4067 := &x.Default - yyv4067.CodecDecodeSelf(d) - } - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv4068 := &x.DefaultRequest - yyv4068.CodecDecodeSelf(d) - } - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv4069 := &x.MaxLimitRequestRatio - yyv4069.CodecDecodeSelf(d) - } - for { - yyj4063++ - if yyhl4063 { - yyb4063 = yyj4063 > l - } else { - yyb4063 = r.CheckBreak() - } - if yyb4063 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4063-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4070 := z.EncBinary() - _ = yym4070 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4071 := !z.EncBinary() - yy2arr4071 := z.EncBasicHandle().StructToArray - var yyq4071 [1]bool - _, _, _ = yysep4071, yyq4071, yy2arr4071 - const yyr4071 bool = false - var yynn4071 int - if yyr4071 || yy2arr4071 { - r.EncodeArrayStart(1) - } else { - yynn4071 = 1 - for _, b := range yyq4071 { - if b { - yynn4071++ - } - } - r.EncodeMapStart(yynn4071) - yynn4071 = 0 - } - if yyr4071 || yy2arr4071 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Limits == nil { - r.EncodeNil() - } else { - yym4073 := z.EncBinary() - _ = yym4073 - if false { - } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("limits")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Limits == nil { - r.EncodeNil() - } else { - yym4074 := z.EncBinary() - _ = yym4074 - if false { - } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) - } - } - } - if yyr4071 || yy2arr4071 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4075 := z.DecBinary() - _ = yym4075 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4076 := r.ContainerType() - if yyct4076 == codecSelferValueTypeMap1234 { - yyl4076 := r.ReadMapStart() - if yyl4076 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4076, d) - } - } else if yyct4076 == codecSelferValueTypeArray1234 { - yyl4076 := r.ReadArrayStart() - if yyl4076 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4076, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4077Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4077Slc - var yyhl4077 bool = l >= 0 - for yyj4077 := 0; ; yyj4077++ { - if yyhl4077 { - if yyj4077 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4077Slc = r.DecodeBytes(yys4077Slc, true, true) - yys4077 := string(yys4077Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4077 { - case "limits": - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv4078 := &x.Limits - yym4079 := z.DecBinary() - _ = yym4079 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4078), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4077) - } // end switch yys4077 - } // end for yyj4077 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4080 int - var yyb4080 bool - var yyhl4080 bool = l >= 0 - yyj4080++ - if yyhl4080 { - yyb4080 = yyj4080 > l - } else { - yyb4080 = r.CheckBreak() - } - if yyb4080 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv4081 := &x.Limits - yym4082 := z.DecBinary() - _ = yym4082 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4081), d) - } - } - for { - yyj4080++ - if yyhl4080 { - yyb4080 = yyj4080 > l - } else { - yyb4080 = r.CheckBreak() - } - if yyb4080 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4080-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4083 := z.EncBinary() - _ = yym4083 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4084 := !z.EncBinary() - yy2arr4084 := z.EncBasicHandle().StructToArray - var yyq4084 [4]bool - _, _, _ = yysep4084, yyq4084, yy2arr4084 - const yyr4084 bool = false - yyq4084[0] = x.Kind != "" - yyq4084[1] = x.APIVersion != "" - yyq4084[2] = true - yyq4084[3] = true - var yynn4084 int - if yyr4084 || yy2arr4084 { - r.EncodeArrayStart(4) - } else { - yynn4084 = 0 - for _, b := range yyq4084 { - if b { - yynn4084++ - } - } - r.EncodeMapStart(yynn4084) - yynn4084 = 0 - } - if yyr4084 || yy2arr4084 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[0] { - yym4086 := z.EncBinary() - _ = yym4086 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4084[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4087 := z.EncBinary() - _ = yym4087 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4084 || yy2arr4084 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[1] { - yym4089 := z.EncBinary() - _ = yym4089 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4084[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4090 := z.EncBinary() - _ = yym4090 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4084 || yy2arr4084 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[2] { - yy4092 := &x.ObjectMeta - yy4092.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4084[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4093 := &x.ObjectMeta - yy4093.CodecEncodeSelf(e) - } - } - if yyr4084 || yy2arr4084 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[3] { - yy4095 := &x.Spec - yy4095.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4084[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4096 := &x.Spec - yy4096.CodecEncodeSelf(e) - } - } - if yyr4084 || yy2arr4084 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4097 := z.DecBinary() - _ = yym4097 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4098 := r.ContainerType() - if yyct4098 == codecSelferValueTypeMap1234 { - yyl4098 := r.ReadMapStart() - if yyl4098 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4098, d) - } - } else if yyct4098 == codecSelferValueTypeArray1234 { - yyl4098 := r.ReadArrayStart() - if yyl4098 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4098, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4099Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4099Slc - var yyhl4099 bool = l >= 0 - for yyj4099 := 0; ; yyj4099++ { - if yyhl4099 { - if yyj4099 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4099Slc = r.DecodeBytes(yys4099Slc, true, true) - yys4099 := string(yys4099Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4099 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4102 := &x.ObjectMeta - yyv4102.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} - } else { - yyv4103 := &x.Spec - yyv4103.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys4099) - } // end switch yys4099 - } // end for yyj4099 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4104 int - var yyb4104 bool - var yyhl4104 bool = l >= 0 - yyj4104++ - if yyhl4104 { - yyb4104 = yyj4104 > l - } else { - yyb4104 = r.CheckBreak() - } - if yyb4104 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4104++ - if yyhl4104 { - yyb4104 = yyj4104 > l - } else { - yyb4104 = r.CheckBreak() - } - if yyb4104 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4104++ - if yyhl4104 { - yyb4104 = yyj4104 > l - } else { - yyb4104 = r.CheckBreak() - } - if yyb4104 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4107 := &x.ObjectMeta - yyv4107.CodecDecodeSelf(d) - } - yyj4104++ - if yyhl4104 { - yyb4104 = yyj4104 > l - } else { - yyb4104 = r.CheckBreak() - } - if yyb4104 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} - } else { - yyv4108 := &x.Spec - yyv4108.CodecDecodeSelf(d) - } - for { - yyj4104++ - if yyhl4104 { - yyb4104 = yyj4104 > l - } else { - yyb4104 = r.CheckBreak() - } - if yyb4104 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4104-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4109 := z.EncBinary() - _ = yym4109 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4110 := !z.EncBinary() - yy2arr4110 := z.EncBasicHandle().StructToArray - var yyq4110 [4]bool - _, _, _ = yysep4110, yyq4110, yy2arr4110 - const yyr4110 bool = false - yyq4110[0] = x.Kind != "" - yyq4110[1] = x.APIVersion != "" - yyq4110[2] = true - var yynn4110 int - if yyr4110 || yy2arr4110 { - r.EncodeArrayStart(4) - } else { - yynn4110 = 1 - for _, b := range yyq4110 { - if b { - yynn4110++ - } - } - r.EncodeMapStart(yynn4110) - yynn4110 = 0 - } - if yyr4110 || yy2arr4110 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[0] { - yym4112 := z.EncBinary() - _ = yym4112 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4110[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4113 := z.EncBinary() - _ = yym4113 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4110 || yy2arr4110 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[1] { - yym4115 := z.EncBinary() - _ = yym4115 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4110[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4116 := z.EncBinary() - _ = yym4116 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4110 || yy2arr4110 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[2] { - yy4118 := &x.ListMeta - yym4119 := z.EncBinary() - _ = yym4119 - if false { - } else if z.HasExtensions() && z.EncExt(yy4118) { - } else { - z.EncFallback(yy4118) - } - } else { - r.EncodeNil() - } - } else { - if yyq4110[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4120 := &x.ListMeta - yym4121 := z.EncBinary() - _ = yym4121 - if false { - } else if z.HasExtensions() && z.EncExt(yy4120) { - } else { - z.EncFallback(yy4120) - } - } - } - if yyr4110 || yy2arr4110 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4123 := z.EncBinary() - _ = yym4123 - if false { - } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4124 := z.EncBinary() - _ = yym4124 - if false { - } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) - } - } - } - if yyr4110 || yy2arr4110 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4125 := z.DecBinary() - _ = yym4125 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4126 := r.ContainerType() - if yyct4126 == codecSelferValueTypeMap1234 { - yyl4126 := r.ReadMapStart() - if yyl4126 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4126, d) - } - } else if yyct4126 == codecSelferValueTypeArray1234 { - yyl4126 := r.ReadArrayStart() - if yyl4126 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4126, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4127Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4127Slc - var yyhl4127 bool = l >= 0 - for yyj4127 := 0; ; yyj4127++ { - if yyhl4127 { - if yyj4127 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4127Slc = r.DecodeBytes(yys4127Slc, true, true) - yys4127 := string(yys4127Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4127 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4130 := &x.ListMeta - yym4131 := z.DecBinary() - _ = yym4131 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4130) { - } else { - z.DecFallback(yyv4130, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4132 := &x.Items - yym4133 := z.DecBinary() - _ = yym4133 - if false { - } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4132), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4127) - } // end switch yys4127 - } // end for yyj4127 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4134 int - var yyb4134 bool - var yyhl4134 bool = l >= 0 - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l - } else { - yyb4134 = r.CheckBreak() - } - if yyb4134 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l - } else { - yyb4134 = r.CheckBreak() - } - if yyb4134 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l - } else { - yyb4134 = r.CheckBreak() - } - if yyb4134 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4137 := &x.ListMeta - yym4138 := z.DecBinary() - _ = yym4138 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4137) { - } else { - z.DecFallback(yyv4137, false) - } - } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l - } else { - yyb4134 = r.CheckBreak() - } - if yyb4134 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4139 := &x.Items - yym4140 := z.DecBinary() - _ = yym4140 - if false { - } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4139), d) - } - } - for { - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l - } else { - yyb4134 = r.CheckBreak() - } - if yyb4134 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4134-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym4141 := z.EncBinary() - _ = yym4141 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4142 := z.DecBinary() - _ = yym4142 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4143 := z.EncBinary() - _ = yym4143 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4144 := !z.EncBinary() - yy2arr4144 := z.EncBasicHandle().StructToArray - var yyq4144 [2]bool - _, _, _ = yysep4144, yyq4144, yy2arr4144 - const yyr4144 bool = false - yyq4144[0] = len(x.Hard) != 0 - yyq4144[1] = len(x.Scopes) != 0 - var yynn4144 int - if yyr4144 || yy2arr4144 { - r.EncodeArrayStart(2) - } else { - yynn4144 = 0 - for _, b := range yyq4144 { - if b { - yynn4144++ - } - } - r.EncodeMapStart(yynn4144) - yynn4144 = 0 - } - if yyr4144 || yy2arr4144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4144[0] { - if x.Hard == nil { - r.EncodeNil() - } else { - x.Hard.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4144[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hard")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Hard == nil { - r.EncodeNil() - } else { - x.Hard.CodecEncodeSelf(e) - } - } - } - if yyr4144 || yy2arr4144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4144[1] { - if x.Scopes == nil { - r.EncodeNil() - } else { - yym4147 := z.EncBinary() - _ = yym4147 - if false { - } else { - h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4144[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("scopes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Scopes == nil { - r.EncodeNil() - } else { - yym4148 := z.EncBinary() - _ = yym4148 - if false { - } else { - h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) - } - } - } - } - if yyr4144 || yy2arr4144 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4149 := z.DecBinary() - _ = yym4149 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4150 := r.ContainerType() - if yyct4150 == codecSelferValueTypeMap1234 { - yyl4150 := r.ReadMapStart() - if yyl4150 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4150, d) - } - } else if yyct4150 == codecSelferValueTypeArray1234 { - yyl4150 := r.ReadArrayStart() - if yyl4150 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4150, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4151Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4151Slc - var yyhl4151 bool = l >= 0 - for yyj4151 := 0; ; yyj4151++ { - if yyhl4151 { - if yyj4151 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4151Slc = r.DecodeBytes(yys4151Slc, true, true) - yys4151 := string(yys4151Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4151 { - case "hard": - if r.TryDecodeAsNil() { - x.Hard = nil - } else { - yyv4152 := &x.Hard - yyv4152.CodecDecodeSelf(d) - } - case "scopes": - if r.TryDecodeAsNil() { - x.Scopes = nil - } else { - yyv4153 := &x.Scopes - yym4154 := z.DecBinary() - _ = yym4154 - if false { - } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4153), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4151) - } // end switch yys4151 - } // end for yyj4151 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4155 int - var yyb4155 bool - var yyhl4155 bool = l >= 0 - yyj4155++ - if yyhl4155 { - yyb4155 = yyj4155 > l - } else { - yyb4155 = r.CheckBreak() - } - if yyb4155 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Hard = nil - } else { - yyv4156 := &x.Hard - yyv4156.CodecDecodeSelf(d) - } - yyj4155++ - if yyhl4155 { - yyb4155 = yyj4155 > l - } else { - yyb4155 = r.CheckBreak() - } - if yyb4155 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Scopes = nil - } else { - yyv4157 := &x.Scopes - yym4158 := z.DecBinary() - _ = yym4158 - if false { - } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4157), d) - } - } - for { - yyj4155++ - if yyhl4155 { - yyb4155 = yyj4155 > l - } else { - yyb4155 = r.CheckBreak() - } - if yyb4155 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4155-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4159 := z.EncBinary() - _ = yym4159 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4160 := !z.EncBinary() - yy2arr4160 := z.EncBasicHandle().StructToArray - var yyq4160 [2]bool - _, _, _ = yysep4160, yyq4160, yy2arr4160 - const yyr4160 bool = false - yyq4160[0] = len(x.Hard) != 0 - yyq4160[1] = len(x.Used) != 0 - var yynn4160 int - if yyr4160 || yy2arr4160 { - r.EncodeArrayStart(2) - } else { - yynn4160 = 0 - for _, b := range yyq4160 { - if b { - yynn4160++ - } - } - r.EncodeMapStart(yynn4160) - yynn4160 = 0 - } - if yyr4160 || yy2arr4160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4160[0] { - if x.Hard == nil { - r.EncodeNil() - } else { - x.Hard.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4160[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hard")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Hard == nil { - r.EncodeNil() - } else { - x.Hard.CodecEncodeSelf(e) - } - } - } - if yyr4160 || yy2arr4160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4160[1] { - if x.Used == nil { - r.EncodeNil() - } else { - x.Used.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4160[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("used")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Used == nil { - r.EncodeNil() - } else { - x.Used.CodecEncodeSelf(e) - } - } - } - if yyr4160 || yy2arr4160 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4163 := z.DecBinary() - _ = yym4163 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4164 := r.ContainerType() - if yyct4164 == codecSelferValueTypeMap1234 { - yyl4164 := r.ReadMapStart() - if yyl4164 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4164, d) - } - } else if yyct4164 == codecSelferValueTypeArray1234 { - yyl4164 := r.ReadArrayStart() - if yyl4164 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4164, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4165Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4165Slc - var yyhl4165 bool = l >= 0 - for yyj4165 := 0; ; yyj4165++ { - if yyhl4165 { - if yyj4165 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4165Slc = r.DecodeBytes(yys4165Slc, true, true) - yys4165 := string(yys4165Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4165 { - case "hard": - if r.TryDecodeAsNil() { - x.Hard = nil - } else { - yyv4166 := &x.Hard - yyv4166.CodecDecodeSelf(d) - } - case "used": - if r.TryDecodeAsNil() { - x.Used = nil - } else { - yyv4167 := &x.Used - yyv4167.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys4165) - } // end switch yys4165 - } // end for yyj4165 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4168 int - var yyb4168 bool - var yyhl4168 bool = l >= 0 - yyj4168++ - if yyhl4168 { - yyb4168 = yyj4168 > l - } else { - yyb4168 = r.CheckBreak() - } - if yyb4168 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Hard = nil - } else { - yyv4169 := &x.Hard - yyv4169.CodecDecodeSelf(d) - } - yyj4168++ - if yyhl4168 { - yyb4168 = yyj4168 > l - } else { - yyb4168 = r.CheckBreak() - } - if yyb4168 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Used = nil - } else { - yyv4170 := &x.Used - yyv4170.CodecDecodeSelf(d) - } - for { - yyj4168++ - if yyhl4168 { - yyb4168 = yyj4168 > l - } else { - yyb4168 = r.CheckBreak() - } - if yyb4168 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4168-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4171 := z.EncBinary() - _ = yym4171 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4172 := !z.EncBinary() - yy2arr4172 := z.EncBasicHandle().StructToArray - var yyq4172 [5]bool - _, _, _ = yysep4172, yyq4172, yy2arr4172 - const yyr4172 bool = false - yyq4172[0] = x.Kind != "" - yyq4172[1] = x.APIVersion != "" - yyq4172[2] = true - yyq4172[3] = true - yyq4172[4] = true - var yynn4172 int - if yyr4172 || yy2arr4172 { - r.EncodeArrayStart(5) - } else { - yynn4172 = 0 - for _, b := range yyq4172 { - if b { - yynn4172++ - } - } - r.EncodeMapStart(yynn4172) - yynn4172 = 0 - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4172[0] { - yym4174 := z.EncBinary() - _ = yym4174 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4172[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4175 := z.EncBinary() - _ = yym4175 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4172[1] { - yym4177 := z.EncBinary() - _ = yym4177 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4172[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4178 := z.EncBinary() - _ = yym4178 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4172[2] { - yy4180 := &x.ObjectMeta - yy4180.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4172[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4181 := &x.ObjectMeta - yy4181.CodecEncodeSelf(e) - } - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4172[3] { - yy4183 := &x.Spec - yy4183.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4172[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4184 := &x.Spec - yy4184.CodecEncodeSelf(e) - } - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4172[4] { - yy4186 := &x.Status - yy4186.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4172[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4187 := &x.Status - yy4187.CodecEncodeSelf(e) - } - } - if yyr4172 || yy2arr4172 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4188 := z.DecBinary() - _ = yym4188 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4189 := r.ContainerType() - if yyct4189 == codecSelferValueTypeMap1234 { - yyl4189 := r.ReadMapStart() - if yyl4189 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4189, d) - } - } else if yyct4189 == codecSelferValueTypeArray1234 { - yyl4189 := r.ReadArrayStart() - if yyl4189 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4189, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4190Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4190Slc - var yyhl4190 bool = l >= 0 - for yyj4190 := 0; ; yyj4190++ { - if yyhl4190 { - if yyj4190 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4190Slc = r.DecodeBytes(yys4190Slc, true, true) - yys4190 := string(yys4190Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4190 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4193 := &x.ObjectMeta - yyv4193.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} - } else { - yyv4194 := &x.Spec - yyv4194.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} - } else { - yyv4195 := &x.Status - yyv4195.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys4190) - } // end switch yys4190 - } // end for yyj4190 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4196 int - var yyb4196 bool - var yyhl4196 bool = l >= 0 - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4199 := &x.ObjectMeta - yyv4199.CodecDecodeSelf(d) - } - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ResourceQuotaSpec{} - } else { - yyv4200 := &x.Spec - yyv4200.CodecDecodeSelf(d) - } - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ResourceQuotaStatus{} - } else { - yyv4201 := &x.Status - yyv4201.CodecDecodeSelf(d) - } - for { - yyj4196++ - if yyhl4196 { - yyb4196 = yyj4196 > l - } else { - yyb4196 = r.CheckBreak() - } - if yyb4196 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4196-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4202 := z.EncBinary() - _ = yym4202 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4203 := !z.EncBinary() - yy2arr4203 := z.EncBasicHandle().StructToArray - var yyq4203 [4]bool - _, _, _ = yysep4203, yyq4203, yy2arr4203 - const yyr4203 bool = false - yyq4203[0] = x.Kind != "" - yyq4203[1] = x.APIVersion != "" - yyq4203[2] = true - var yynn4203 int - if yyr4203 || yy2arr4203 { - r.EncodeArrayStart(4) - } else { - yynn4203 = 1 - for _, b := range yyq4203 { - if b { - yynn4203++ - } - } - r.EncodeMapStart(yynn4203) - yynn4203 = 0 - } - if yyr4203 || yy2arr4203 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4203[0] { - yym4205 := z.EncBinary() - _ = yym4205 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4203[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4206 := z.EncBinary() - _ = yym4206 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4203 || yy2arr4203 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4203[1] { - yym4208 := z.EncBinary() - _ = yym4208 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4203[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4209 := z.EncBinary() - _ = yym4209 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4203 || yy2arr4203 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4203[2] { - yy4211 := &x.ListMeta - yym4212 := z.EncBinary() - _ = yym4212 - if false { - } else if z.HasExtensions() && z.EncExt(yy4211) { - } else { - z.EncFallback(yy4211) - } - } else { - r.EncodeNil() - } - } else { - if yyq4203[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4213 := &x.ListMeta - yym4214 := z.EncBinary() - _ = yym4214 - if false { - } else if z.HasExtensions() && z.EncExt(yy4213) { - } else { - z.EncFallback(yy4213) - } - } - } - if yyr4203 || yy2arr4203 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4216 := z.EncBinary() - _ = yym4216 - if false { - } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4217 := z.EncBinary() - _ = yym4217 - if false { - } else { - h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) - } - } - } - if yyr4203 || yy2arr4203 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4218 := z.DecBinary() - _ = yym4218 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4219 := r.ContainerType() - if yyct4219 == codecSelferValueTypeMap1234 { - yyl4219 := r.ReadMapStart() - if yyl4219 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4219, d) - } - } else if yyct4219 == codecSelferValueTypeArray1234 { - yyl4219 := r.ReadArrayStart() - if yyl4219 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4219, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4220Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4220Slc - var yyhl4220 bool = l >= 0 - for yyj4220 := 0; ; yyj4220++ { - if yyhl4220 { - if yyj4220 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4220Slc = r.DecodeBytes(yys4220Slc, true, true) - yys4220 := string(yys4220Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4220 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4223 := &x.ListMeta - yym4224 := z.DecBinary() - _ = yym4224 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4223) { - } else { - z.DecFallback(yyv4223, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4225 := &x.Items - yym4226 := z.DecBinary() - _ = yym4226 - if false { - } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4225), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4220) - } // end switch yys4220 - } // end for yyj4220 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4227 int - var yyb4227 bool - var yyhl4227 bool = l >= 0 - yyj4227++ - if yyhl4227 { - yyb4227 = yyj4227 > l - } else { - yyb4227 = r.CheckBreak() - } - if yyb4227 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4227++ - if yyhl4227 { - yyb4227 = yyj4227 > l - } else { - yyb4227 = r.CheckBreak() - } - if yyb4227 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4227++ - if yyhl4227 { - yyb4227 = yyj4227 > l - } else { - yyb4227 = r.CheckBreak() - } - if yyb4227 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4230 := &x.ListMeta - yym4231 := z.DecBinary() - _ = yym4231 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4230) { - } else { - z.DecFallback(yyv4230, false) - } - } - yyj4227++ - if yyhl4227 { - yyb4227 = yyj4227 > l - } else { - yyb4227 = r.CheckBreak() - } - if yyb4227 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4232 := &x.Items - yym4233 := z.DecBinary() - _ = yym4233 - if false { - } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4232), d) - } - } - for { - yyj4227++ - if yyhl4227 { - yyb4227 = yyj4227 > l - } else { - yyb4227 = r.CheckBreak() - } - if yyb4227 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4227-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4234 := z.EncBinary() - _ = yym4234 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4235 := !z.EncBinary() - yy2arr4235 := z.EncBasicHandle().StructToArray - var yyq4235 [5]bool - _, _, _ = yysep4235, yyq4235, yy2arr4235 - const yyr4235 bool = false - yyq4235[0] = x.Kind != "" - yyq4235[1] = x.APIVersion != "" - yyq4235[2] = true - yyq4235[3] = len(x.Data) != 0 - yyq4235[4] = x.Type != "" - var yynn4235 int - if yyr4235 || yy2arr4235 { - r.EncodeArrayStart(5) - } else { - yynn4235 = 0 - for _, b := range yyq4235 { - if b { - yynn4235++ - } - } - r.EncodeMapStart(yynn4235) - yynn4235 = 0 - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4235[0] { - yym4237 := z.EncBinary() - _ = yym4237 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4235[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4238 := z.EncBinary() - _ = yym4238 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4235[1] { - yym4240 := z.EncBinary() - _ = yym4240 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4235[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4241 := z.EncBinary() - _ = yym4241 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4235[2] { - yy4243 := &x.ObjectMeta - yy4243.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4235[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4244 := &x.ObjectMeta - yy4244.CodecEncodeSelf(e) - } - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4235[3] { - if x.Data == nil { - r.EncodeNil() - } else { - yym4246 := z.EncBinary() - _ = yym4246 - if false { - } else { - h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4235[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() - } else { - yym4247 := z.EncBinary() - _ = yym4247 - if false { - } else { - h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) - } - } - } - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4235[4] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4235[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr4235 || yy2arr4235 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4249 := z.DecBinary() - _ = yym4249 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4250 := r.ContainerType() - if yyct4250 == codecSelferValueTypeMap1234 { - yyl4250 := r.ReadMapStart() - if yyl4250 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4250, d) - } - } else if yyct4250 == codecSelferValueTypeArray1234 { - yyl4250 := r.ReadArrayStart() - if yyl4250 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4250, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4251Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4251Slc - var yyhl4251 bool = l >= 0 - for yyj4251 := 0; ; yyj4251++ { - if yyhl4251 { - if yyj4251 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4251Slc = r.DecodeBytes(yys4251Slc, true, true) - yys4251 := string(yys4251Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4251 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4254 := &x.ObjectMeta - yyv4254.CodecDecodeSelf(d) - } - case "data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4255 := &x.Data - yym4256 := z.DecBinary() - _ = yym4256 - if false { - } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4255), d) - } - } - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = SecretType(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys4251) - } // end switch yys4251 - } // end for yyj4251 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4258 int - var yyb4258 bool - var yyhl4258 bool = l >= 0 - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4261 := &x.ObjectMeta - yyv4261.CodecDecodeSelf(d) - } - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4262 := &x.Data - yym4263 := z.DecBinary() - _ = yym4263 - if false { - } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4262), d) - } - } - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = SecretType(r.DecodeString()) - } - for { - yyj4258++ - if yyhl4258 { - yyb4258 = yyj4258 > l - } else { - yyb4258 = r.CheckBreak() - } - if yyb4258 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4258-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym4265 := z.EncBinary() - _ = yym4265 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4266 := z.DecBinary() - _ = yym4266 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4267 := z.EncBinary() - _ = yym4267 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4268 := !z.EncBinary() - yy2arr4268 := z.EncBasicHandle().StructToArray - var yyq4268 [4]bool - _, _, _ = yysep4268, yyq4268, yy2arr4268 - const yyr4268 bool = false - yyq4268[0] = x.Kind != "" - yyq4268[1] = x.APIVersion != "" - yyq4268[2] = true - var yynn4268 int - if yyr4268 || yy2arr4268 { - r.EncodeArrayStart(4) - } else { - yynn4268 = 1 - for _, b := range yyq4268 { - if b { - yynn4268++ - } - } - r.EncodeMapStart(yynn4268) - yynn4268 = 0 - } - if yyr4268 || yy2arr4268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4268[0] { - yym4270 := z.EncBinary() - _ = yym4270 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4268[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4271 := z.EncBinary() - _ = yym4271 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4268 || yy2arr4268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4268[1] { - yym4273 := z.EncBinary() - _ = yym4273 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4268[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4274 := z.EncBinary() - _ = yym4274 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4268 || yy2arr4268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4268[2] { - yy4276 := &x.ListMeta - yym4277 := z.EncBinary() - _ = yym4277 - if false { - } else if z.HasExtensions() && z.EncExt(yy4276) { - } else { - z.EncFallback(yy4276) - } - } else { - r.EncodeNil() - } - } else { - if yyq4268[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4278 := &x.ListMeta - yym4279 := z.EncBinary() - _ = yym4279 - if false { - } else if z.HasExtensions() && z.EncExt(yy4278) { - } else { - z.EncFallback(yy4278) - } - } - } - if yyr4268 || yy2arr4268 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4281 := z.EncBinary() - _ = yym4281 - if false { - } else { - h.encSliceSecret(([]Secret)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4282 := z.EncBinary() - _ = yym4282 - if false { - } else { - h.encSliceSecret(([]Secret)(x.Items), e) - } - } - } - if yyr4268 || yy2arr4268 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4283 := z.DecBinary() - _ = yym4283 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4284 := r.ContainerType() - if yyct4284 == codecSelferValueTypeMap1234 { - yyl4284 := r.ReadMapStart() - if yyl4284 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4284, d) - } - } else if yyct4284 == codecSelferValueTypeArray1234 { - yyl4284 := r.ReadArrayStart() - if yyl4284 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4284, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4285Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4285Slc - var yyhl4285 bool = l >= 0 - for yyj4285 := 0; ; yyj4285++ { - if yyhl4285 { - if yyj4285 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4285Slc = r.DecodeBytes(yys4285Slc, true, true) - yys4285 := string(yys4285Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4285 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4288 := &x.ListMeta - yym4289 := z.DecBinary() - _ = yym4289 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4288) { - } else { - z.DecFallback(yyv4288, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4290 := &x.Items - yym4291 := z.DecBinary() - _ = yym4291 - if false { - } else { - h.decSliceSecret((*[]Secret)(yyv4290), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4285) - } // end switch yys4285 - } // end for yyj4285 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4292 int - var yyb4292 bool - var yyhl4292 bool = l >= 0 - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4295 := &x.ListMeta - yym4296 := z.DecBinary() - _ = yym4296 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4295) { - } else { - z.DecFallback(yyv4295, false) - } - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4297 := &x.Items - yym4298 := z.DecBinary() - _ = yym4298 - if false { - } else { - h.decSliceSecret((*[]Secret)(yyv4297), d) - } - } - for { - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4292-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4299 := z.EncBinary() - _ = yym4299 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4300 := !z.EncBinary() - yy2arr4300 := z.EncBasicHandle().StructToArray - var yyq4300 [4]bool - _, _, _ = yysep4300, yyq4300, yy2arr4300 - const yyr4300 bool = false - yyq4300[0] = x.Kind != "" - yyq4300[1] = x.APIVersion != "" - yyq4300[2] = true - yyq4300[3] = len(x.Data) != 0 - var yynn4300 int - if yyr4300 || yy2arr4300 { - r.EncodeArrayStart(4) - } else { - yynn4300 = 0 - for _, b := range yyq4300 { - if b { - yynn4300++ - } - } - r.EncodeMapStart(yynn4300) - yynn4300 = 0 - } - if yyr4300 || yy2arr4300 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4300[0] { - yym4302 := z.EncBinary() - _ = yym4302 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4300[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4303 := z.EncBinary() - _ = yym4303 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4300 || yy2arr4300 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4300[1] { - yym4305 := z.EncBinary() - _ = yym4305 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4300[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4306 := z.EncBinary() - _ = yym4306 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4300 || yy2arr4300 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4300[2] { - yy4308 := &x.ObjectMeta - yy4308.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4300[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4309 := &x.ObjectMeta - yy4309.CodecEncodeSelf(e) - } - } - if yyr4300 || yy2arr4300 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4300[3] { - if x.Data == nil { - r.EncodeNil() - } else { - yym4311 := z.EncBinary() - _ = yym4311 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4300[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() - } else { - yym4312 := z.EncBinary() - _ = yym4312 - if false { - } else { - z.F.EncMapStringStringV(x.Data, false, e) - } - } - } - } - if yyr4300 || yy2arr4300 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4313 := z.DecBinary() - _ = yym4313 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4314 := r.ContainerType() - if yyct4314 == codecSelferValueTypeMap1234 { - yyl4314 := r.ReadMapStart() - if yyl4314 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4314, d) - } - } else if yyct4314 == codecSelferValueTypeArray1234 { - yyl4314 := r.ReadArrayStart() - if yyl4314 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4314, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4315Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4315Slc - var yyhl4315 bool = l >= 0 - for yyj4315 := 0; ; yyj4315++ { - if yyhl4315 { - if yyj4315 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4315Slc = r.DecodeBytes(yys4315Slc, true, true) - yys4315 := string(yys4315Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4315 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4318 := &x.ObjectMeta - yyv4318.CodecDecodeSelf(d) - } - case "data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4319 := &x.Data - yym4320 := z.DecBinary() - _ = yym4320 - if false { - } else { - z.F.DecMapStringStringX(yyv4319, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4315) - } // end switch yys4315 - } // end for yyj4315 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4321 int - var yyb4321 bool - var yyhl4321 bool = l >= 0 - yyj4321++ - if yyhl4321 { - yyb4321 = yyj4321 > l - } else { - yyb4321 = r.CheckBreak() - } - if yyb4321 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4321++ - if yyhl4321 { - yyb4321 = yyj4321 > l - } else { - yyb4321 = r.CheckBreak() - } - if yyb4321 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4321++ - if yyhl4321 { - yyb4321 = yyj4321 > l - } else { - yyb4321 = r.CheckBreak() - } - if yyb4321 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4324 := &x.ObjectMeta - yyv4324.CodecDecodeSelf(d) - } - yyj4321++ - if yyhl4321 { - yyb4321 = yyj4321 > l - } else { - yyb4321 = r.CheckBreak() - } - if yyb4321 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4325 := &x.Data - yym4326 := z.DecBinary() - _ = yym4326 - if false { - } else { - z.F.DecMapStringStringX(yyv4325, false, d) - } - } - for { - yyj4321++ - if yyhl4321 { - yyb4321 = yyj4321 > l - } else { - yyb4321 = r.CheckBreak() - } - if yyb4321 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4321-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4327 := z.EncBinary() - _ = yym4327 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4328 := !z.EncBinary() - yy2arr4328 := z.EncBasicHandle().StructToArray - var yyq4328 [4]bool - _, _, _ = yysep4328, yyq4328, yy2arr4328 - const yyr4328 bool = false - yyq4328[0] = x.Kind != "" - yyq4328[1] = x.APIVersion != "" - yyq4328[2] = true - var yynn4328 int - if yyr4328 || yy2arr4328 { - r.EncodeArrayStart(4) - } else { - yynn4328 = 1 - for _, b := range yyq4328 { - if b { - yynn4328++ - } - } - r.EncodeMapStart(yynn4328) - yynn4328 = 0 - } - if yyr4328 || yy2arr4328 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4328[0] { - yym4330 := z.EncBinary() - _ = yym4330 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4328[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4331 := z.EncBinary() - _ = yym4331 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4328 || yy2arr4328 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4328[1] { - yym4333 := z.EncBinary() - _ = yym4333 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4328[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4334 := z.EncBinary() - _ = yym4334 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4328 || yy2arr4328 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4328[2] { - yy4336 := &x.ListMeta - yym4337 := z.EncBinary() - _ = yym4337 - if false { - } else if z.HasExtensions() && z.EncExt(yy4336) { - } else { - z.EncFallback(yy4336) - } - } else { - r.EncodeNil() - } - } else { - if yyq4328[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4338 := &x.ListMeta - yym4339 := z.EncBinary() - _ = yym4339 - if false { - } else if z.HasExtensions() && z.EncExt(yy4338) { - } else { - z.EncFallback(yy4338) - } - } - } - if yyr4328 || yy2arr4328 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4341 := z.EncBinary() - _ = yym4341 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4342 := z.EncBinary() - _ = yym4342 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } - } - } - if yyr4328 || yy2arr4328 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4343 := z.DecBinary() - _ = yym4343 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4344 := r.ContainerType() - if yyct4344 == codecSelferValueTypeMap1234 { - yyl4344 := r.ReadMapStart() - if yyl4344 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4344, d) - } - } else if yyct4344 == codecSelferValueTypeArray1234 { - yyl4344 := r.ReadArrayStart() - if yyl4344 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4344, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4345Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4345Slc - var yyhl4345 bool = l >= 0 - for yyj4345 := 0; ; yyj4345++ { - if yyhl4345 { - if yyj4345 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4345Slc = r.DecodeBytes(yys4345Slc, true, true) - yys4345 := string(yys4345Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4345 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4348 := &x.ListMeta - yym4349 := z.DecBinary() - _ = yym4349 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4348) { - } else { - z.DecFallback(yyv4348, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4350 := &x.Items - yym4351 := z.DecBinary() - _ = yym4351 - if false { - } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4350), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4345) - } // end switch yys4345 - } // end for yyj4345 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4352 int - var yyb4352 bool - var yyhl4352 bool = l >= 0 - yyj4352++ - if yyhl4352 { - yyb4352 = yyj4352 > l - } else { - yyb4352 = r.CheckBreak() - } - if yyb4352 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4352++ - if yyhl4352 { - yyb4352 = yyj4352 > l - } else { - yyb4352 = r.CheckBreak() - } - if yyb4352 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4352++ - if yyhl4352 { - yyb4352 = yyj4352 > l - } else { - yyb4352 = r.CheckBreak() - } - if yyb4352 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4355 := &x.ListMeta - yym4356 := z.DecBinary() - _ = yym4356 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4355) { - } else { - z.DecFallback(yyv4355, false) - } - } - yyj4352++ - if yyhl4352 { - yyb4352 = yyj4352 > l - } else { - yyb4352 = r.CheckBreak() - } - if yyb4352 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4357 := &x.Items - yym4358 := z.DecBinary() - _ = yym4358 - if false { - } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4357), d) - } - } - for { - yyj4352++ - if yyhl4352 { - yyb4352 = yyj4352 > l - } else { - yyb4352 = r.CheckBreak() - } - if yyb4352 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4352-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym4359 := z.EncBinary() - _ = yym4359 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4360 := z.DecBinary() - _ = yym4360 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym4361 := z.EncBinary() - _ = yym4361 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4362 := z.DecBinary() - _ = yym4362 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4363 := z.EncBinary() - _ = yym4363 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4364 := !z.EncBinary() - yy2arr4364 := z.EncBasicHandle().StructToArray - var yyq4364 [4]bool - _, _, _ = yysep4364, yyq4364, yy2arr4364 - const yyr4364 bool = false - yyq4364[2] = x.Message != "" - yyq4364[3] = x.Error != "" - var yynn4364 int - if yyr4364 || yy2arr4364 { - r.EncodeArrayStart(4) - } else { - yynn4364 = 2 - for _, b := range yyq4364 { - if b { - yynn4364++ - } - } - r.EncodeMapStart(yynn4364) - yynn4364 = 0 - } - if yyr4364 || yy2arr4364 { - 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 yyr4364 || yy2arr4364 { - 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 yyr4364 || yy2arr4364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4364[2] { - yym4368 := z.EncBinary() - _ = yym4368 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4364[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4369 := z.EncBinary() - _ = yym4369 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr4364 || yy2arr4364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4364[3] { - yym4371 := z.EncBinary() - _ = yym4371 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Error)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4364[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("error")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4372 := z.EncBinary() - _ = yym4372 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Error)) - } - } - } - if yyr4364 || yy2arr4364 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4373 := z.DecBinary() - _ = yym4373 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4374 := r.ContainerType() - if yyct4374 == codecSelferValueTypeMap1234 { - yyl4374 := r.ReadMapStart() - if yyl4374 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4374, d) - } - } else if yyct4374 == codecSelferValueTypeArray1234 { - yyl4374 := r.ReadArrayStart() - if yyl4374 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4374, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4375Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4375Slc - var yyhl4375 bool = l >= 0 - for yyj4375 := 0; ; yyj4375++ { - if yyhl4375 { - if yyj4375 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) - yys4375 := string(yys4375Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4375 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ComponentConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "error": - if r.TryDecodeAsNil() { - x.Error = "" - } else { - x.Error = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys4375) - } // end switch yys4375 - } // end for yyj4375 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4380 int - var yyb4380 bool - var yyhl4380 bool = l >= 0 - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l - } else { - yyb4380 = r.CheckBreak() - } - if yyb4380 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ComponentConditionType(r.DecodeString()) - } - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l - } else { - yyb4380 = r.CheckBreak() - } - if yyb4380 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l - } else { - yyb4380 = r.CheckBreak() - } - if yyb4380 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l - } else { - yyb4380 = r.CheckBreak() - } - if yyb4380 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Error = "" - } else { - x.Error = string(r.DecodeString()) - } - for { - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l - } else { - yyb4380 = r.CheckBreak() - } - if yyb4380 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4380-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4385 := z.EncBinary() - _ = yym4385 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4386 := !z.EncBinary() - yy2arr4386 := z.EncBasicHandle().StructToArray - var yyq4386 [4]bool - _, _, _ = yysep4386, yyq4386, yy2arr4386 - const yyr4386 bool = false - yyq4386[0] = x.Kind != "" - yyq4386[1] = x.APIVersion != "" - yyq4386[2] = true - yyq4386[3] = len(x.Conditions) != 0 - var yynn4386 int - if yyr4386 || yy2arr4386 { - r.EncodeArrayStart(4) - } else { - yynn4386 = 0 - for _, b := range yyq4386 { - if b { - yynn4386++ - } - } - r.EncodeMapStart(yynn4386) - yynn4386 = 0 - } - if yyr4386 || yy2arr4386 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[0] { - yym4388 := z.EncBinary() - _ = yym4388 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4386[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4389 := z.EncBinary() - _ = yym4389 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4386 || yy2arr4386 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[1] { - yym4391 := z.EncBinary() - _ = yym4391 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4386[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4392 := z.EncBinary() - _ = yym4392 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4386 || yy2arr4386 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[2] { - yy4394 := &x.ObjectMeta - yy4394.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4386[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4395 := &x.ObjectMeta - yy4395.CodecEncodeSelf(e) - } - } - if yyr4386 || yy2arr4386 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[3] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym4397 := z.EncBinary() - _ = yym4397 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4386[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym4398 := z.EncBinary() - _ = yym4398 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } - } - } - } - if yyr4386 || yy2arr4386 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4399 := z.DecBinary() - _ = yym4399 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4400 := r.ContainerType() - if yyct4400 == codecSelferValueTypeMap1234 { - yyl4400 := r.ReadMapStart() - if yyl4400 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4400, d) - } - } else if yyct4400 == codecSelferValueTypeArray1234 { - yyl4400 := r.ReadArrayStart() - if yyl4400 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4400, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4401Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4401Slc - var yyhl4401 bool = l >= 0 - for yyj4401 := 0; ; yyj4401++ { - if yyhl4401 { - if yyj4401 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4401Slc = r.DecodeBytes(yys4401Slc, true, true) - yys4401 := string(yys4401Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4401 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4404 := &x.ObjectMeta - yyv4404.CodecDecodeSelf(d) - } - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv4405 := &x.Conditions - yym4406 := z.DecBinary() - _ = yym4406 - if false { - } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4405), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4401) - } // end switch yys4401 - } // end for yyj4401 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4407 int - var yyb4407 bool - var yyhl4407 bool = l >= 0 - yyj4407++ - if yyhl4407 { - yyb4407 = yyj4407 > l - } else { - yyb4407 = r.CheckBreak() - } - if yyb4407 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4407++ - if yyhl4407 { - yyb4407 = yyj4407 > l - } else { - yyb4407 = r.CheckBreak() - } - if yyb4407 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4407++ - if yyhl4407 { - yyb4407 = yyj4407 > l - } else { - yyb4407 = r.CheckBreak() - } - if yyb4407 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4410 := &x.ObjectMeta - yyv4410.CodecDecodeSelf(d) - } - yyj4407++ - if yyhl4407 { - yyb4407 = yyj4407 > l - } else { - yyb4407 = r.CheckBreak() - } - if yyb4407 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv4411 := &x.Conditions - yym4412 := z.DecBinary() - _ = yym4412 - if false { - } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4411), d) - } - } - for { - yyj4407++ - if yyhl4407 { - yyb4407 = yyj4407 > l - } else { - yyb4407 = r.CheckBreak() - } - if yyb4407 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4407-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4413 := z.EncBinary() - _ = yym4413 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4414 := !z.EncBinary() - yy2arr4414 := z.EncBasicHandle().StructToArray - var yyq4414 [4]bool - _, _, _ = yysep4414, yyq4414, yy2arr4414 - const yyr4414 bool = false - yyq4414[0] = x.Kind != "" - yyq4414[1] = x.APIVersion != "" - yyq4414[2] = true - var yynn4414 int - if yyr4414 || yy2arr4414 { - r.EncodeArrayStart(4) - } else { - yynn4414 = 1 - for _, b := range yyq4414 { - if b { - yynn4414++ - } - } - r.EncodeMapStart(yynn4414) - yynn4414 = 0 - } - if yyr4414 || yy2arr4414 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4414[0] { - yym4416 := z.EncBinary() - _ = yym4416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4414[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4417 := z.EncBinary() - _ = yym4417 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4414 || yy2arr4414 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4414[1] { - yym4419 := z.EncBinary() - _ = yym4419 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4414[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4420 := z.EncBinary() - _ = yym4420 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4414 || yy2arr4414 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4414[2] { - yy4422 := &x.ListMeta - yym4423 := z.EncBinary() - _ = yym4423 - if false { - } else if z.HasExtensions() && z.EncExt(yy4422) { - } else { - z.EncFallback(yy4422) - } - } else { - r.EncodeNil() - } - } else { - if yyq4414[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4424 := &x.ListMeta - yym4425 := z.EncBinary() - _ = yym4425 - if false { - } else if z.HasExtensions() && z.EncExt(yy4424) { - } else { - z.EncFallback(yy4424) - } - } - } - if yyr4414 || yy2arr4414 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4427 := z.EncBinary() - _ = yym4427 - if false { - } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4428 := z.EncBinary() - _ = yym4428 - if false { - } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) - } - } - } - if yyr4414 || yy2arr4414 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4429 := z.DecBinary() - _ = yym4429 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4430 := r.ContainerType() - if yyct4430 == codecSelferValueTypeMap1234 { - yyl4430 := r.ReadMapStart() - if yyl4430 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4430, d) - } - } else if yyct4430 == codecSelferValueTypeArray1234 { - yyl4430 := r.ReadArrayStart() - if yyl4430 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4430, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4431Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4431Slc - var yyhl4431 bool = l >= 0 - for yyj4431 := 0; ; yyj4431++ { - if yyhl4431 { - if yyj4431 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4431Slc = r.DecodeBytes(yys4431Slc, true, true) - yys4431 := string(yys4431Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4431 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv4434 := &x.ListMeta - yym4435 := z.DecBinary() - _ = yym4435 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4434) { - } else { - z.DecFallback(yyv4434, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4436 := &x.Items - yym4437 := z.DecBinary() - _ = yym4437 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4436), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4431) - } // end switch yys4431 - } // end for yyj4431 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4438 int - var yyb4438 bool - var yyhl4438 bool = l >= 0 - yyj4438++ - if yyhl4438 { - yyb4438 = yyj4438 > l - } else { - yyb4438 = r.CheckBreak() - } - if yyb4438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4438++ - if yyhl4438 { - yyb4438 = yyj4438 > l - } else { - yyb4438 = r.CheckBreak() - } - if yyb4438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4438++ - if yyhl4438 { - yyb4438 = yyj4438 > l - } else { - yyb4438 = r.CheckBreak() - } - if yyb4438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv4441 := &x.ListMeta - yym4442 := z.DecBinary() - _ = yym4442 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4441) { - } else { - z.DecFallback(yyv4441, false) - } - } - yyj4438++ - if yyhl4438 { - yyb4438 = yyj4438 > l - } else { - yyb4438 = r.CheckBreak() - } - if yyb4438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4443 := &x.Items - yym4444 := z.DecBinary() - _ = yym4444 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4443), d) - } - } - for { - yyj4438++ - if yyhl4438 { - yyb4438 = yyj4438 > l - } else { - yyb4438 = r.CheckBreak() - } - if yyb4438 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4438-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4445 := z.EncBinary() - _ = yym4445 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4446 := !z.EncBinary() - yy2arr4446 := z.EncBasicHandle().StructToArray - var yyq4446 [6]bool - _, _, _ = yysep4446, yyq4446, yy2arr4446 - const yyr4446 bool = false - yyq4446[0] = x.Capabilities != nil - yyq4446[1] = x.Privileged != nil - yyq4446[2] = x.SELinuxOptions != nil - yyq4446[3] = x.RunAsUser != nil - yyq4446[4] = x.RunAsNonRoot != nil - yyq4446[5] = x.ReadOnlyRootFilesystem != nil - var yynn4446 int - if yyr4446 || yy2arr4446 { - r.EncodeArrayStart(6) - } else { - yynn4446 = 0 - for _, b := range yyq4446 { - if b { - yynn4446++ - } - } - r.EncodeMapStart(yynn4446) - yynn4446 = 0 - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[0] { - if x.Capabilities == nil { - r.EncodeNil() - } else { - x.Capabilities.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capabilities")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capabilities == nil { - r.EncodeNil() - } else { - x.Capabilities.CodecEncodeSelf(e) - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[1] { - if x.Privileged == nil { - r.EncodeNil() - } else { - yy4449 := *x.Privileged - yym4450 := z.EncBinary() - _ = yym4450 - if false { - } else { - r.EncodeBool(bool(yy4449)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("privileged")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Privileged == nil { - r.EncodeNil() - } else { - yy4451 := *x.Privileged - yym4452 := z.EncBinary() - _ = yym4452 - if false { - } else { - r.EncodeBool(bool(yy4451)) - } - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[2] { - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[3] { - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy4455 := *x.RunAsUser - yym4456 := z.EncBinary() - _ = yym4456 - if false { - } else { - r.EncodeInt(int64(yy4455)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy4457 := *x.RunAsUser - yym4458 := z.EncBinary() - _ = yym4458 - if false { - } else { - r.EncodeInt(int64(yy4457)) - } - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[4] { - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy4460 := *x.RunAsNonRoot - yym4461 := z.EncBinary() - _ = yym4461 - if false { - } else { - r.EncodeBool(bool(yy4460)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy4462 := *x.RunAsNonRoot - yym4463 := z.EncBinary() - _ = yym4463 - if false { - } else { - r.EncodeBool(bool(yy4462)) - } - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4446[5] { - if x.ReadOnlyRootFilesystem == nil { - r.EncodeNil() - } else { - yy4465 := *x.ReadOnlyRootFilesystem - yym4466 := z.EncBinary() - _ = yym4466 - if false { - } else { - r.EncodeBool(bool(yy4465)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4446[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ReadOnlyRootFilesystem == nil { - r.EncodeNil() - } else { - yy4467 := *x.ReadOnlyRootFilesystem - yym4468 := z.EncBinary() - _ = yym4468 - if false { - } else { - r.EncodeBool(bool(yy4467)) - } - } - } - } - if yyr4446 || yy2arr4446 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4469 := z.DecBinary() - _ = yym4469 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4470 := r.ContainerType() - if yyct4470 == codecSelferValueTypeMap1234 { - yyl4470 := r.ReadMapStart() - if yyl4470 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4470, d) - } - } else if yyct4470 == codecSelferValueTypeArray1234 { - yyl4470 := r.ReadArrayStart() - if yyl4470 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4470, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4471Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4471Slc - var yyhl4471 bool = l >= 0 - for yyj4471 := 0; ; yyj4471++ { - if yyhl4471 { - if yyj4471 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4471Slc = r.DecodeBytes(yys4471Slc, true, true) - yys4471 := string(yys4471Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4471 { - case "capabilities": - if r.TryDecodeAsNil() { - if x.Capabilities != nil { - x.Capabilities = nil - } - } else { - if x.Capabilities == nil { - x.Capabilities = new(Capabilities) - } - x.Capabilities.CodecDecodeSelf(d) - } - case "privileged": - if r.TryDecodeAsNil() { - if x.Privileged != nil { - x.Privileged = nil - } - } else { - if x.Privileged == nil { - x.Privileged = new(bool) - } - yym4474 := z.DecBinary() - _ = yym4474 - if false { - } else { - *((*bool)(x.Privileged)) = r.DecodeBool() - } - } - case "seLinuxOptions": - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - case "runAsUser": - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym4477 := z.DecBinary() - _ = yym4477 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - case "runAsNonRoot": - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym4479 := z.DecBinary() - _ = yym4479 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - case "readOnlyRootFilesystem": - if r.TryDecodeAsNil() { - if x.ReadOnlyRootFilesystem != nil { - x.ReadOnlyRootFilesystem = nil - } - } else { - if x.ReadOnlyRootFilesystem == nil { - x.ReadOnlyRootFilesystem = new(bool) - } - yym4481 := z.DecBinary() - _ = yym4481 - if false { - } else { - *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys4471) - } // end switch yys4471 - } // end for yyj4471 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4482 int - var yyb4482 bool - var yyhl4482 bool = l >= 0 - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Capabilities != nil { - x.Capabilities = nil - } - } else { - if x.Capabilities == nil { - x.Capabilities = new(Capabilities) - } - x.Capabilities.CodecDecodeSelf(d) - } - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Privileged != nil { - x.Privileged = nil - } - } else { - if x.Privileged == nil { - x.Privileged = new(bool) - } - yym4485 := z.DecBinary() - _ = yym4485 - if false { - } else { - *((*bool)(x.Privileged)) = r.DecodeBool() - } - } - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym4488 := z.DecBinary() - _ = yym4488 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym4490 := z.DecBinary() - _ = yym4490 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ReadOnlyRootFilesystem != nil { - x.ReadOnlyRootFilesystem = nil - } - } else { - if x.ReadOnlyRootFilesystem == nil { - x.ReadOnlyRootFilesystem = new(bool) - } - yym4492 := z.DecBinary() - _ = yym4492 - if false { - } else { - *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() - } - } - for { - yyj4482++ - if yyhl4482 { - yyb4482 = yyj4482 > l - } else { - yyb4482 = r.CheckBreak() - } - if yyb4482 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4482-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4493 := z.EncBinary() - _ = yym4493 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4494 := !z.EncBinary() - yy2arr4494 := z.EncBasicHandle().StructToArray - var yyq4494 [4]bool - _, _, _ = yysep4494, yyq4494, yy2arr4494 - const yyr4494 bool = false - yyq4494[0] = x.User != "" - yyq4494[1] = x.Role != "" - yyq4494[2] = x.Type != "" - yyq4494[3] = x.Level != "" - var yynn4494 int - if yyr4494 || yy2arr4494 { - r.EncodeArrayStart(4) - } else { - yynn4494 = 0 - for _, b := range yyq4494 { - if b { - yynn4494++ - } - } - r.EncodeMapStart(yynn4494) - yynn4494 = 0 - } - if yyr4494 || yy2arr4494 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[0] { - yym4496 := z.EncBinary() - _ = yym4496 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4494[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("user")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4497 := z.EncBinary() - _ = yym4497 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } - } - if yyr4494 || yy2arr4494 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[1] { - yym4499 := z.EncBinary() - _ = yym4499 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4494[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("role")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4500 := z.EncBinary() - _ = yym4500 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) - } - } - } - if yyr4494 || yy2arr4494 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[2] { - yym4502 := z.EncBinary() - _ = yym4502 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4494[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4503 := z.EncBinary() - _ = yym4503 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } - } - if yyr4494 || yy2arr4494 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[3] { - yym4505 := z.EncBinary() - _ = yym4505 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Level)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4494[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("level")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4506 := z.EncBinary() - _ = yym4506 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Level)) - } - } - } - if yyr4494 || yy2arr4494 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4507 := z.DecBinary() - _ = yym4507 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4508 := r.ContainerType() - if yyct4508 == codecSelferValueTypeMap1234 { - yyl4508 := r.ReadMapStart() - if yyl4508 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4508, d) - } - } else if yyct4508 == codecSelferValueTypeArray1234 { - yyl4508 := r.ReadArrayStart() - if yyl4508 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4508, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4509Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4509Slc - var yyhl4509 bool = l >= 0 - for yyj4509 := 0; ; yyj4509++ { - if yyhl4509 { - if yyj4509 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4509Slc = r.DecodeBytes(yys4509Slc, true, true) - yys4509 := string(yys4509Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4509 { - case "user": - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - case "role": - if r.TryDecodeAsNil() { - x.Role = "" - } else { - x.Role = string(r.DecodeString()) - } - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - case "level": - if r.TryDecodeAsNil() { - x.Level = "" - } else { - x.Level = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys4509) - } // end switch yys4509 - } // end for yyj4509 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4514 int - var yyb4514 bool - var yyhl4514 bool = l >= 0 - yyj4514++ - if yyhl4514 { - yyb4514 = yyj4514 > l - } else { - yyb4514 = r.CheckBreak() - } - if yyb4514 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - yyj4514++ - if yyhl4514 { - yyb4514 = yyj4514 > l - } else { - yyb4514 = r.CheckBreak() - } - if yyb4514 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Role = "" - } else { - x.Role = string(r.DecodeString()) - } - yyj4514++ - if yyhl4514 { - yyb4514 = yyj4514 > l - } else { - yyb4514 = r.CheckBreak() - } - if yyb4514 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - yyj4514++ - if yyhl4514 { - yyb4514 = yyj4514 > l - } else { - yyb4514 = r.CheckBreak() - } - if yyb4514 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Level = "" - } else { - x.Level = string(r.DecodeString()) - } - for { - yyj4514++ - if yyhl4514 { - yyb4514 = yyj4514 > l - } else { - yyb4514 = r.CheckBreak() - } - if yyb4514 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4514-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4519 := z.EncBinary() - _ = yym4519 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4520 := !z.EncBinary() - yy2arr4520 := z.EncBasicHandle().StructToArray - var yyq4520 [5]bool - _, _, _ = yysep4520, yyq4520, yy2arr4520 - const yyr4520 bool = false - yyq4520[0] = x.Kind != "" - yyq4520[1] = x.APIVersion != "" - yyq4520[2] = true - var yynn4520 int - if yyr4520 || yy2arr4520 { - r.EncodeArrayStart(5) - } else { - yynn4520 = 2 - for _, b := range yyq4520 { - if b { - yynn4520++ - } - } - r.EncodeMapStart(yynn4520) - yynn4520 = 0 - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4520[0] { - yym4522 := z.EncBinary() - _ = yym4522 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4520[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4523 := z.EncBinary() - _ = yym4523 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4520[1] { - yym4525 := z.EncBinary() - _ = yym4525 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4520[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4526 := z.EncBinary() - _ = yym4526 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4520[2] { - yy4528 := &x.ObjectMeta - yy4528.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4520[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4529 := &x.ObjectMeta - yy4529.CodecEncodeSelf(e) - } - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4531 := z.EncBinary() - _ = yym4531 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Range)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("range")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4532 := z.EncBinary() - _ = yym4532 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Range)) - } - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Data == nil { - r.EncodeNil() - } else { - yym4534 := z.EncBinary() - _ = yym4534 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() - } else { - yym4535 := z.EncBinary() - _ = yym4535 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } - } - } - if yyr4520 || yy2arr4520 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4536 := z.DecBinary() - _ = yym4536 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4537 := r.ContainerType() - if yyct4537 == codecSelferValueTypeMap1234 { - yyl4537 := r.ReadMapStart() - if yyl4537 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4537, d) - } - } else if yyct4537 == codecSelferValueTypeArray1234 { - yyl4537 := r.ReadArrayStart() - if yyl4537 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4537, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4538Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4538Slc - var yyhl4538 bool = l >= 0 - for yyj4538 := 0; ; yyj4538++ { - if yyhl4538 { - if yyj4538 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4538Slc = r.DecodeBytes(yys4538Slc, true, true) - yys4538 := string(yys4538Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4538 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv4541 := &x.ObjectMeta - yyv4541.CodecDecodeSelf(d) - } - case "range": - if r.TryDecodeAsNil() { - x.Range = "" - } else { - x.Range = string(r.DecodeString()) - } - case "data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4543 := &x.Data - yym4544 := z.DecBinary() - _ = yym4544 - if false { - } else { - *yyv4543 = r.DecodeBytes(*(*[]byte)(yyv4543), false, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys4538) - } // end switch yys4538 - } // end for yyj4538 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4545 int - var yyb4545 bool - var yyhl4545 bool = l >= 0 - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4548 := &x.ObjectMeta - yyv4548.CodecDecodeSelf(d) - } - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Range = "" - } else { - x.Range = string(r.DecodeString()) - } - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv4550 := &x.Data - yym4551 := z.DecBinary() - _ = yym4551 - if false { - } else { - *yyv4550 = r.DecodeBytes(*(*[]byte)(yyv4550), false, false) - } - } - for { - yyj4545++ - if yyhl4545 { - yyb4545 = yyj4545 > l - } else { - yyb4545 = r.CheckBreak() - } - if yyb4545 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4545-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg2_v1.OwnerReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4552 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4553 := &yyv4552 - yym4554 := z.EncBinary() - _ = yym4554 - if false { - } else if z.HasExtensions() && z.EncExt(yy4553) { - } else { - z.EncFallback(yy4553) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg2_v1.OwnerReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4555 := *v - yyh4555, yyl4555 := z.DecSliceHelperStart() - var yyc4555 bool - if yyl4555 == 0 { - if yyv4555 == nil { - yyv4555 = []pkg2_v1.OwnerReference{} - yyc4555 = true - } else if len(yyv4555) != 0 { - yyv4555 = yyv4555[:0] - yyc4555 = true - } - } else if yyl4555 > 0 { - var yyrr4555, yyrl4555 int - var yyrt4555 bool - if yyl4555 > cap(yyv4555) { - - yyrg4555 := len(yyv4555) > 0 - yyv24555 := yyv4555 - yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4555 { - if yyrl4555 <= cap(yyv4555) { - yyv4555 = yyv4555[:yyrl4555] - } else { - yyv4555 = make([]pkg2_v1.OwnerReference, yyrl4555) - } - } else { - yyv4555 = make([]pkg2_v1.OwnerReference, yyrl4555) - } - yyc4555 = true - yyrr4555 = len(yyv4555) - if yyrg4555 { - copy(yyv4555, yyv24555) - } - } else if yyl4555 != len(yyv4555) { - yyv4555 = yyv4555[:yyl4555] - yyc4555 = true - } - yyj4555 := 0 - for ; yyj4555 < yyrr4555; yyj4555++ { - yyh4555.ElemContainerState(yyj4555) - if r.TryDecodeAsNil() { - yyv4555[yyj4555] = pkg2_v1.OwnerReference{} - } else { - yyv4556 := &yyv4555[yyj4555] - yym4557 := z.DecBinary() - _ = yym4557 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4556) { - } else { - z.DecFallback(yyv4556, false) - } - } - - } - if yyrt4555 { - for ; yyj4555 < yyl4555; yyj4555++ { - yyv4555 = append(yyv4555, pkg2_v1.OwnerReference{}) - yyh4555.ElemContainerState(yyj4555) - if r.TryDecodeAsNil() { - yyv4555[yyj4555] = pkg2_v1.OwnerReference{} - } else { - yyv4558 := &yyv4555[yyj4555] - yym4559 := z.DecBinary() - _ = yym4559 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4558) { - } else { - z.DecFallback(yyv4558, false) - } - } - - } - } - - } else { - yyj4555 := 0 - for ; !r.CheckBreak(); yyj4555++ { - - if yyj4555 >= len(yyv4555) { - yyv4555 = append(yyv4555, pkg2_v1.OwnerReference{}) // var yyz4555 pkg2_v1.OwnerReference - yyc4555 = true - } - yyh4555.ElemContainerState(yyj4555) - if yyj4555 < len(yyv4555) { - if r.TryDecodeAsNil() { - yyv4555[yyj4555] = pkg2_v1.OwnerReference{} - } else { - yyv4560 := &yyv4555[yyj4555] - yym4561 := z.DecBinary() - _ = yym4561 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4560) { - } else { - z.DecFallback(yyv4560, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj4555 < len(yyv4555) { - yyv4555 = yyv4555[:yyj4555] - yyc4555 = true - } else if yyj4555 == 0 && yyv4555 == nil { - yyv4555 = []pkg2_v1.OwnerReference{} - yyc4555 = true - } - } - yyh4555.End() - if yyc4555 { - *v = yyv4555 - } -} - -func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4562 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4562.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4563 := *v - yyh4563, yyl4563 := z.DecSliceHelperStart() - var yyc4563 bool - if yyl4563 == 0 { - if yyv4563 == nil { - yyv4563 = []PersistentVolumeAccessMode{} - 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) { - - yyrl4563, yyrt4563 = z.DecInferLen(yyl4563, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4563 { - if yyrl4563 <= cap(yyv4563) { - yyv4563 = yyv4563[:yyrl4563] - } else { - yyv4563 = make([]PersistentVolumeAccessMode, yyrl4563) - } - } else { - yyv4563 = make([]PersistentVolumeAccessMode, yyrl4563) - } - yyc4563 = true - yyrr4563 = len(yyv4563) - } else if yyl4563 != len(yyv4563) { - yyv4563 = yyv4563[:yyl4563] - yyc4563 = true - } - yyj4563 := 0 - for ; yyj4563 < yyrr4563; yyj4563++ { - yyh4563.ElemContainerState(yyj4563) - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = "" - } else { - yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - if yyrt4563 { - for ; yyj4563 < yyl4563; yyj4563++ { - yyv4563 = append(yyv4563, "") - yyh4563.ElemContainerState(yyj4563) - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = "" - } else { - yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - } - - } else { - yyj4563 := 0 - for ; !r.CheckBreak(); yyj4563++ { - - if yyj4563 >= len(yyv4563) { - yyv4563 = append(yyv4563, "") // var yyz4563 PersistentVolumeAccessMode - yyc4563 = true - } - yyh4563.ElemContainerState(yyj4563) - if yyj4563 < len(yyv4563) { - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = "" - } else { - yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4563 < len(yyv4563) { - yyv4563 = yyv4563[:yyj4563] - yyc4563 = true - } else if yyj4563 == 0 && yyv4563 == nil { - yyv4563 = []PersistentVolumeAccessMode{} - yyc4563 = true - } - } - yyh4563.End() - if yyc4563 { - *v = yyv4563 - } -} - -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 _, yyv4567 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4568 := &yyv4567 - yy4568.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 - - yyv4569 := *v - yyh4569, yyl4569 := z.DecSliceHelperStart() - var yyc4569 bool - if yyl4569 == 0 { - if yyv4569 == nil { - yyv4569 = []PersistentVolume{} - yyc4569 = true - } else if len(yyv4569) != 0 { - yyv4569 = yyv4569[:0] - yyc4569 = true - } - } else if yyl4569 > 0 { - var yyrr4569, yyrl4569 int - var yyrt4569 bool - if yyl4569 > cap(yyv4569) { - - yyrg4569 := len(yyv4569) > 0 - yyv24569 := yyv4569 - yyrl4569, yyrt4569 = z.DecInferLen(yyl4569, z.DecBasicHandle().MaxInitLen, 496) - if yyrt4569 { - if yyrl4569 <= cap(yyv4569) { - yyv4569 = yyv4569[:yyrl4569] - } else { - yyv4569 = make([]PersistentVolume, yyrl4569) - } - } else { - yyv4569 = make([]PersistentVolume, yyrl4569) - } - yyc4569 = true - yyrr4569 = len(yyv4569) - if yyrg4569 { - copy(yyv4569, yyv24569) - } - } else if yyl4569 != len(yyv4569) { - yyv4569 = yyv4569[:yyl4569] - yyc4569 = true - } - yyj4569 := 0 - for ; yyj4569 < yyrr4569; yyj4569++ { - yyh4569.ElemContainerState(yyj4569) - if r.TryDecodeAsNil() { - yyv4569[yyj4569] = PersistentVolume{} - } else { - yyv4570 := &yyv4569[yyj4569] - yyv4570.CodecDecodeSelf(d) - } - - } - if yyrt4569 { - for ; yyj4569 < yyl4569; yyj4569++ { - yyv4569 = append(yyv4569, PersistentVolume{}) - yyh4569.ElemContainerState(yyj4569) - if r.TryDecodeAsNil() { - yyv4569[yyj4569] = PersistentVolume{} - } else { - yyv4571 := &yyv4569[yyj4569] - yyv4571.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4569 := 0 - for ; !r.CheckBreak(); yyj4569++ { - - if yyj4569 >= len(yyv4569) { - yyv4569 = append(yyv4569, PersistentVolume{}) // var yyz4569 PersistentVolume - yyc4569 = true - } - yyh4569.ElemContainerState(yyj4569) - if yyj4569 < len(yyv4569) { - if r.TryDecodeAsNil() { - yyv4569[yyj4569] = PersistentVolume{} - } else { - yyv4572 := &yyv4569[yyj4569] - yyv4572.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4569 < len(yyv4569) { - yyv4569 = yyv4569[:yyj4569] - yyc4569 = true - } else if yyj4569 == 0 && yyv4569 == nil { - yyv4569 = []PersistentVolume{} - yyc4569 = true - } - } - yyh4569.End() - if yyc4569 { - *v = yyv4569 - } -} - -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 _, yyv4573 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4574 := &yyv4573 - yy4574.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 - - yyv4575 := *v - yyh4575, yyl4575 := z.DecSliceHelperStart() - var yyc4575 bool - if yyl4575 == 0 { - if yyv4575 == nil { - yyv4575 = []PersistentVolumeClaim{} - yyc4575 = true - } else if len(yyv4575) != 0 { - yyv4575 = yyv4575[:0] - yyc4575 = true - } - } else if yyl4575 > 0 { - var yyrr4575, yyrl4575 int - var yyrt4575 bool - if yyl4575 > cap(yyv4575) { - - yyrg4575 := len(yyv4575) > 0 - yyv24575 := yyv4575 - yyrl4575, yyrt4575 = z.DecInferLen(yyl4575, z.DecBasicHandle().MaxInitLen, 368) - if yyrt4575 { - if yyrl4575 <= cap(yyv4575) { - yyv4575 = yyv4575[:yyrl4575] - } else { - yyv4575 = make([]PersistentVolumeClaim, yyrl4575) - } - } else { - yyv4575 = make([]PersistentVolumeClaim, yyrl4575) - } - yyc4575 = true - yyrr4575 = len(yyv4575) - if yyrg4575 { - copy(yyv4575, yyv24575) - } - } else if yyl4575 != len(yyv4575) { - yyv4575 = yyv4575[:yyl4575] - yyc4575 = true - } - yyj4575 := 0 - for ; yyj4575 < yyrr4575; yyj4575++ { - yyh4575.ElemContainerState(yyj4575) - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = PersistentVolumeClaim{} - } else { - yyv4576 := &yyv4575[yyj4575] - yyv4576.CodecDecodeSelf(d) - } - - } - if yyrt4575 { - for ; yyj4575 < yyl4575; yyj4575++ { - yyv4575 = append(yyv4575, PersistentVolumeClaim{}) - yyh4575.ElemContainerState(yyj4575) - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = PersistentVolumeClaim{} - } else { - yyv4577 := &yyv4575[yyj4575] - yyv4577.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4575 := 0 - for ; !r.CheckBreak(); yyj4575++ { - - if yyj4575 >= len(yyv4575) { - yyv4575 = append(yyv4575, PersistentVolumeClaim{}) // var yyz4575 PersistentVolumeClaim - yyc4575 = true - } - yyh4575.ElemContainerState(yyj4575) - if yyj4575 < len(yyv4575) { - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = PersistentVolumeClaim{} - } else { - yyv4578 := &yyv4575[yyj4575] - yyv4578.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4575 < len(yyv4575) { - yyv4575 = yyv4575[:yyj4575] - yyc4575 = true - } else if yyj4575 == 0 && yyv4575 == nil { - yyv4575 = []PersistentVolumeClaim{} - yyc4575 = true - } - } - yyh4575.End() - if yyc4575 { - *v = yyv4575 - } -} - -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 _, yyv4579 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4580 := &yyv4579 - yy4580.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 - - yyv4581 := *v - yyh4581, yyl4581 := z.DecSliceHelperStart() - var yyc4581 bool - if yyl4581 == 0 { - if yyv4581 == nil { - yyv4581 = []KeyToPath{} - yyc4581 = true - } else if len(yyv4581) != 0 { - yyv4581 = yyv4581[:0] - yyc4581 = true - } - } else if yyl4581 > 0 { - var yyrr4581, yyrl4581 int - var yyrt4581 bool - if yyl4581 > cap(yyv4581) { - - yyrg4581 := len(yyv4581) > 0 - yyv24581 := yyv4581 - yyrl4581, yyrt4581 = z.DecInferLen(yyl4581, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4581 { - if yyrl4581 <= cap(yyv4581) { - yyv4581 = yyv4581[:yyrl4581] - } else { - yyv4581 = make([]KeyToPath, yyrl4581) - } - } else { - yyv4581 = make([]KeyToPath, yyrl4581) - } - yyc4581 = true - yyrr4581 = len(yyv4581) - if yyrg4581 { - copy(yyv4581, yyv24581) - } - } else if yyl4581 != len(yyv4581) { - yyv4581 = yyv4581[:yyl4581] - yyc4581 = true - } - yyj4581 := 0 - for ; yyj4581 < yyrr4581; yyj4581++ { - yyh4581.ElemContainerState(yyj4581) - if r.TryDecodeAsNil() { - yyv4581[yyj4581] = KeyToPath{} - } else { - yyv4582 := &yyv4581[yyj4581] - yyv4582.CodecDecodeSelf(d) - } - - } - if yyrt4581 { - for ; yyj4581 < yyl4581; yyj4581++ { - yyv4581 = append(yyv4581, KeyToPath{}) - yyh4581.ElemContainerState(yyj4581) - if r.TryDecodeAsNil() { - yyv4581[yyj4581] = KeyToPath{} - } else { - yyv4583 := &yyv4581[yyj4581] - yyv4583.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4581 := 0 - for ; !r.CheckBreak(); yyj4581++ { - - if yyj4581 >= len(yyv4581) { - yyv4581 = append(yyv4581, KeyToPath{}) // var yyz4581 KeyToPath - yyc4581 = true - } - yyh4581.ElemContainerState(yyj4581) - if yyj4581 < len(yyv4581) { - if r.TryDecodeAsNil() { - yyv4581[yyj4581] = KeyToPath{} - } else { - yyv4584 := &yyv4581[yyj4581] - yyv4584.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4581 < len(yyv4581) { - yyv4581 = yyv4581[:yyj4581] - yyc4581 = true - } else if yyj4581 == 0 && yyv4581 == nil { - yyv4581 = []KeyToPath{} - yyc4581 = true - } - } - yyh4581.End() - if yyc4581 { - *v = yyv4581 - } -} - -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 _, yyv4585 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4586 := &yyv4585 - yy4586.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 - - yyv4587 := *v - yyh4587, yyl4587 := z.DecSliceHelperStart() - var yyc4587 bool - if yyl4587 == 0 { - if yyv4587 == nil { - yyv4587 = []DownwardAPIVolumeFile{} - yyc4587 = true - } else if len(yyv4587) != 0 { - yyv4587 = yyv4587[:0] - yyc4587 = true - } - } else if yyl4587 > 0 { - var yyrr4587, yyrl4587 int - var yyrt4587 bool - if yyl4587 > cap(yyv4587) { - - yyrg4587 := len(yyv4587) > 0 - yyv24587 := yyv4587 - yyrl4587, yyrt4587 = z.DecInferLen(yyl4587, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4587 { - if yyrl4587 <= cap(yyv4587) { - yyv4587 = yyv4587[:yyrl4587] - } else { - yyv4587 = make([]DownwardAPIVolumeFile, yyrl4587) - } - } else { - yyv4587 = make([]DownwardAPIVolumeFile, yyrl4587) - } - yyc4587 = true - yyrr4587 = len(yyv4587) - if yyrg4587 { - copy(yyv4587, yyv24587) - } - } else if yyl4587 != len(yyv4587) { - yyv4587 = yyv4587[:yyl4587] - yyc4587 = true - } - yyj4587 := 0 - for ; yyj4587 < yyrr4587; yyj4587++ { - yyh4587.ElemContainerState(yyj4587) - if r.TryDecodeAsNil() { - yyv4587[yyj4587] = DownwardAPIVolumeFile{} - } else { - yyv4588 := &yyv4587[yyj4587] - yyv4588.CodecDecodeSelf(d) - } - - } - if yyrt4587 { - for ; yyj4587 < yyl4587; yyj4587++ { - yyv4587 = append(yyv4587, DownwardAPIVolumeFile{}) - yyh4587.ElemContainerState(yyj4587) - if r.TryDecodeAsNil() { - yyv4587[yyj4587] = DownwardAPIVolumeFile{} - } else { - yyv4589 := &yyv4587[yyj4587] - yyv4589.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4587 := 0 - for ; !r.CheckBreak(); yyj4587++ { - - if yyj4587 >= len(yyv4587) { - yyv4587 = append(yyv4587, DownwardAPIVolumeFile{}) // var yyz4587 DownwardAPIVolumeFile - yyc4587 = true - } - yyh4587.ElemContainerState(yyj4587) - if yyj4587 < len(yyv4587) { - if r.TryDecodeAsNil() { - yyv4587[yyj4587] = DownwardAPIVolumeFile{} - } else { - yyv4590 := &yyv4587[yyj4587] - yyv4590.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4587 < len(yyv4587) { - yyv4587 = yyv4587[:yyj4587] - yyc4587 = true - } else if yyj4587 == 0 && yyv4587 == nil { - yyv4587 = []DownwardAPIVolumeFile{} - yyc4587 = true - } - } - yyh4587.End() - if yyc4587 { - *v = yyv4587 - } -} - -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 _, yyv4591 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4592 := &yyv4591 - yy4592.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 - - yyv4593 := *v - yyh4593, yyl4593 := z.DecSliceHelperStart() - var yyc4593 bool - if yyl4593 == 0 { - if yyv4593 == nil { - yyv4593 = []HTTPHeader{} - yyc4593 = true - } else if len(yyv4593) != 0 { - yyv4593 = yyv4593[:0] - yyc4593 = true - } - } else if yyl4593 > 0 { - var yyrr4593, yyrl4593 int - var yyrt4593 bool - if yyl4593 > cap(yyv4593) { - - yyrg4593 := len(yyv4593) > 0 - yyv24593 := yyv4593 - yyrl4593, yyrt4593 = z.DecInferLen(yyl4593, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4593 { - if yyrl4593 <= cap(yyv4593) { - yyv4593 = yyv4593[:yyrl4593] - } else { - yyv4593 = make([]HTTPHeader, yyrl4593) - } - } else { - yyv4593 = make([]HTTPHeader, yyrl4593) - } - yyc4593 = true - yyrr4593 = len(yyv4593) - if yyrg4593 { - copy(yyv4593, yyv24593) - } - } else if yyl4593 != len(yyv4593) { - yyv4593 = yyv4593[:yyl4593] - yyc4593 = true - } - yyj4593 := 0 - for ; yyj4593 < yyrr4593; yyj4593++ { - yyh4593.ElemContainerState(yyj4593) - if r.TryDecodeAsNil() { - yyv4593[yyj4593] = HTTPHeader{} - } else { - yyv4594 := &yyv4593[yyj4593] - yyv4594.CodecDecodeSelf(d) - } - - } - if yyrt4593 { - for ; yyj4593 < yyl4593; yyj4593++ { - yyv4593 = append(yyv4593, HTTPHeader{}) - yyh4593.ElemContainerState(yyj4593) - if r.TryDecodeAsNil() { - yyv4593[yyj4593] = HTTPHeader{} - } else { - yyv4595 := &yyv4593[yyj4593] - yyv4595.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4593 := 0 - for ; !r.CheckBreak(); yyj4593++ { - - if yyj4593 >= len(yyv4593) { - yyv4593 = append(yyv4593, HTTPHeader{}) // var yyz4593 HTTPHeader - yyc4593 = true - } - yyh4593.ElemContainerState(yyj4593) - if yyj4593 < len(yyv4593) { - if r.TryDecodeAsNil() { - yyv4593[yyj4593] = HTTPHeader{} - } else { - yyv4596 := &yyv4593[yyj4593] - yyv4596.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4593 < len(yyv4593) { - yyv4593 = yyv4593[:yyj4593] - yyc4593 = true - } else if yyj4593 == 0 && yyv4593 == nil { - yyv4593 = []HTTPHeader{} - yyc4593 = true - } - } - yyh4593.End() - if yyc4593 { - *v = yyv4593 - } -} - -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 _, yyv4597 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4597.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 - - yyv4598 := *v - yyh4598, yyl4598 := z.DecSliceHelperStart() - var yyc4598 bool - if yyl4598 == 0 { - if yyv4598 == nil { - yyv4598 = []Capability{} - 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) { - - yyrl4598, yyrt4598 = z.DecInferLen(yyl4598, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4598 { - if yyrl4598 <= cap(yyv4598) { - yyv4598 = yyv4598[:yyrl4598] - } else { - yyv4598 = make([]Capability, yyrl4598) - } - } else { - yyv4598 = make([]Capability, yyrl4598) - } - yyc4598 = true - yyrr4598 = len(yyv4598) - } else if yyl4598 != len(yyv4598) { - yyv4598 = yyv4598[:yyl4598] - yyc4598 = true - } - yyj4598 := 0 - for ; yyj4598 < yyrr4598; yyj4598++ { - yyh4598.ElemContainerState(yyj4598) - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = "" - } else { - yyv4598[yyj4598] = Capability(r.DecodeString()) - } - - } - if yyrt4598 { - for ; yyj4598 < yyl4598; yyj4598++ { - yyv4598 = append(yyv4598, "") - yyh4598.ElemContainerState(yyj4598) - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = "" - } else { - yyv4598[yyj4598] = Capability(r.DecodeString()) - } - - } - } - - } else { - yyj4598 := 0 - for ; !r.CheckBreak(); yyj4598++ { - - if yyj4598 >= len(yyv4598) { - yyv4598 = append(yyv4598, "") // var yyz4598 Capability - yyc4598 = true - } - yyh4598.ElemContainerState(yyj4598) - if yyj4598 < len(yyv4598) { - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = "" - } else { - yyv4598[yyj4598] = Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4598 < len(yyv4598) { - yyv4598 = yyv4598[:yyj4598] - yyc4598 = true - } else if yyj4598 == 0 && yyv4598 == nil { - yyv4598 = []Capability{} - yyc4598 = true - } - } - yyh4598.End() - if yyc4598 { - *v = yyv4598 - } -} - -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 _, yyv4602 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4603 := &yyv4602 - yy4603.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 - - yyv4604 := *v - yyh4604, yyl4604 := z.DecSliceHelperStart() - var yyc4604 bool - if yyl4604 == 0 { - if yyv4604 == nil { - yyv4604 = []ContainerPort{} - 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([]ContainerPort, yyrl4604) - } - } else { - yyv4604 = make([]ContainerPort, 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] = ContainerPort{} - } else { - yyv4605 := &yyv4604[yyj4604] - yyv4605.CodecDecodeSelf(d) - } - - } - if yyrt4604 { - for ; yyj4604 < yyl4604; yyj4604++ { - yyv4604 = append(yyv4604, ContainerPort{}) - yyh4604.ElemContainerState(yyj4604) - if r.TryDecodeAsNil() { - yyv4604[yyj4604] = ContainerPort{} - } else { - yyv4606 := &yyv4604[yyj4604] - yyv4606.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4604 := 0 - for ; !r.CheckBreak(); yyj4604++ { - - if yyj4604 >= len(yyv4604) { - yyv4604 = append(yyv4604, ContainerPort{}) // var yyz4604 ContainerPort - yyc4604 = true - } - yyh4604.ElemContainerState(yyj4604) - if yyj4604 < len(yyv4604) { - if r.TryDecodeAsNil() { - yyv4604[yyj4604] = ContainerPort{} - } 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 = []ContainerPort{} - yyc4604 = true - } - } - yyh4604.End() - if yyc4604 { - *v = yyv4604 - } -} - -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 _, yyv4608 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4609 := &yyv4608 - yy4609.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 - - yyv4610 := *v - yyh4610, yyl4610 := z.DecSliceHelperStart() - var yyc4610 bool - if yyl4610 == 0 { - if yyv4610 == nil { - yyv4610 = []EnvVar{} - 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, 40) - if yyrt4610 { - if yyrl4610 <= cap(yyv4610) { - yyv4610 = yyv4610[:yyrl4610] - } else { - yyv4610 = make([]EnvVar, yyrl4610) - } - } else { - yyv4610 = make([]EnvVar, 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] = EnvVar{} - } else { - yyv4611 := &yyv4610[yyj4610] - yyv4611.CodecDecodeSelf(d) - } - - } - if yyrt4610 { - for ; yyj4610 < yyl4610; yyj4610++ { - yyv4610 = append(yyv4610, EnvVar{}) - yyh4610.ElemContainerState(yyj4610) - if r.TryDecodeAsNil() { - yyv4610[yyj4610] = EnvVar{} - } else { - yyv4612 := &yyv4610[yyj4610] - yyv4612.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4610 := 0 - for ; !r.CheckBreak(); yyj4610++ { - - if yyj4610 >= len(yyv4610) { - yyv4610 = append(yyv4610, EnvVar{}) // var yyz4610 EnvVar - yyc4610 = true - } - yyh4610.ElemContainerState(yyj4610) - if yyj4610 < len(yyv4610) { - if r.TryDecodeAsNil() { - yyv4610[yyj4610] = EnvVar{} - } 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 = []EnvVar{} - yyc4610 = true - } - } - yyh4610.End() - if yyc4610 { - *v = yyv4610 - } -} - -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 _, yyv4614 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4615 := &yyv4614 - yy4615.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 - - yyv4616 := *v - yyh4616, yyl4616 := z.DecSliceHelperStart() - var yyc4616 bool - if yyl4616 == 0 { - if yyv4616 == nil { - yyv4616 = []VolumeMount{} - yyc4616 = true - } else if len(yyv4616) != 0 { - yyv4616 = yyv4616[:0] - yyc4616 = true - } - } else if yyl4616 > 0 { - var yyrr4616, yyrl4616 int - var yyrt4616 bool - if yyl4616 > cap(yyv4616) { - - yyrg4616 := len(yyv4616) > 0 - yyv24616 := yyv4616 - yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4616 { - if yyrl4616 <= cap(yyv4616) { - yyv4616 = yyv4616[:yyrl4616] - } else { - yyv4616 = make([]VolumeMount, yyrl4616) - } - } else { - yyv4616 = make([]VolumeMount, yyrl4616) - } - yyc4616 = true - yyrr4616 = len(yyv4616) - if yyrg4616 { - copy(yyv4616, yyv24616) - } - } else if yyl4616 != len(yyv4616) { - yyv4616 = yyv4616[:yyl4616] - yyc4616 = true - } - yyj4616 := 0 - for ; yyj4616 < yyrr4616; yyj4616++ { - yyh4616.ElemContainerState(yyj4616) - if r.TryDecodeAsNil() { - yyv4616[yyj4616] = VolumeMount{} - } else { - yyv4617 := &yyv4616[yyj4616] - yyv4617.CodecDecodeSelf(d) - } - - } - if yyrt4616 { - for ; yyj4616 < yyl4616; yyj4616++ { - yyv4616 = append(yyv4616, VolumeMount{}) - yyh4616.ElemContainerState(yyj4616) - if r.TryDecodeAsNil() { - yyv4616[yyj4616] = VolumeMount{} - } else { - yyv4618 := &yyv4616[yyj4616] - yyv4618.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4616 := 0 - for ; !r.CheckBreak(); yyj4616++ { - - if yyj4616 >= len(yyv4616) { - yyv4616 = append(yyv4616, VolumeMount{}) // var yyz4616 VolumeMount - yyc4616 = true - } - yyh4616.ElemContainerState(yyj4616) - if yyj4616 < len(yyv4616) { - if r.TryDecodeAsNil() { - yyv4616[yyj4616] = VolumeMount{} - } else { - yyv4619 := &yyv4616[yyj4616] - yyv4619.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4616 < len(yyv4616) { - yyv4616 = yyv4616[:yyj4616] - yyc4616 = true - } else if yyj4616 == 0 && yyv4616 == nil { - yyv4616 = []VolumeMount{} - yyc4616 = true - } - } - yyh4616.End() - if yyc4616 { - *v = yyv4616 - } -} - -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 _, yyv4620 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4621 := &yyv4620 - yy4621.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 - - yyv4622 := *v - yyh4622, yyl4622 := z.DecSliceHelperStart() - var yyc4622 bool - if yyl4622 == 0 { - if yyv4622 == nil { - yyv4622 = []Pod{} - yyc4622 = true - } else if len(yyv4622) != 0 { - yyv4622 = yyv4622[:0] - yyc4622 = true - } - } else if yyl4622 > 0 { - var yyrr4622, yyrl4622 int - var yyrt4622 bool - if yyl4622 > cap(yyv4622) { - - yyrg4622 := len(yyv4622) > 0 - yyv24622 := yyv4622 - yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 640) - if yyrt4622 { - if yyrl4622 <= cap(yyv4622) { - yyv4622 = yyv4622[:yyrl4622] - } else { - yyv4622 = make([]Pod, yyrl4622) - } - } else { - yyv4622 = make([]Pod, yyrl4622) - } - yyc4622 = true - yyrr4622 = len(yyv4622) - if yyrg4622 { - copy(yyv4622, yyv24622) - } - } else if yyl4622 != len(yyv4622) { - yyv4622 = yyv4622[:yyl4622] - yyc4622 = true - } - yyj4622 := 0 - for ; yyj4622 < yyrr4622; yyj4622++ { - yyh4622.ElemContainerState(yyj4622) - if r.TryDecodeAsNil() { - yyv4622[yyj4622] = Pod{} - } else { - yyv4623 := &yyv4622[yyj4622] - yyv4623.CodecDecodeSelf(d) - } - - } - if yyrt4622 { - for ; yyj4622 < yyl4622; yyj4622++ { - yyv4622 = append(yyv4622, Pod{}) - yyh4622.ElemContainerState(yyj4622) - if r.TryDecodeAsNil() { - yyv4622[yyj4622] = Pod{} - } else { - yyv4624 := &yyv4622[yyj4622] - yyv4624.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4622 := 0 - for ; !r.CheckBreak(); yyj4622++ { - - if yyj4622 >= len(yyv4622) { - yyv4622 = append(yyv4622, Pod{}) // var yyz4622 Pod - yyc4622 = true - } - yyh4622.ElemContainerState(yyj4622) - if yyj4622 < len(yyv4622) { - if r.TryDecodeAsNil() { - yyv4622[yyj4622] = Pod{} - } else { - yyv4625 := &yyv4622[yyj4622] - yyv4625.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4622 < len(yyv4622) { - yyv4622 = yyv4622[:yyj4622] - yyc4622 = true - } else if yyj4622 == 0 && yyv4622 == nil { - yyv4622 = []Pod{} - yyc4622 = true - } - } - yyh4622.End() - if yyc4622 { - *v = yyv4622 - } -} - -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 _, yyv4626 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4627 := &yyv4626 - yy4627.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 - - yyv4628 := *v - yyh4628, yyl4628 := z.DecSliceHelperStart() - var yyc4628 bool - if yyl4628 == 0 { - if yyv4628 == nil { - yyv4628 = []NodeSelectorTerm{} - yyc4628 = true - } else if len(yyv4628) != 0 { - yyv4628 = yyv4628[:0] - yyc4628 = true - } - } else if yyl4628 > 0 { - var yyrr4628, yyrl4628 int - var yyrt4628 bool - if yyl4628 > cap(yyv4628) { - - yyrg4628 := len(yyv4628) > 0 - yyv24628 := yyv4628 - yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 24) - if yyrt4628 { - if yyrl4628 <= cap(yyv4628) { - yyv4628 = yyv4628[:yyrl4628] - } else { - yyv4628 = make([]NodeSelectorTerm, yyrl4628) - } - } else { - yyv4628 = make([]NodeSelectorTerm, yyrl4628) - } - yyc4628 = true - yyrr4628 = len(yyv4628) - if yyrg4628 { - copy(yyv4628, yyv24628) - } - } else if yyl4628 != len(yyv4628) { - yyv4628 = yyv4628[:yyl4628] - yyc4628 = true - } - yyj4628 := 0 - for ; yyj4628 < yyrr4628; yyj4628++ { - yyh4628.ElemContainerState(yyj4628) - if r.TryDecodeAsNil() { - yyv4628[yyj4628] = NodeSelectorTerm{} - } else { - yyv4629 := &yyv4628[yyj4628] - yyv4629.CodecDecodeSelf(d) - } - - } - if yyrt4628 { - for ; yyj4628 < yyl4628; yyj4628++ { - yyv4628 = append(yyv4628, NodeSelectorTerm{}) - yyh4628.ElemContainerState(yyj4628) - if r.TryDecodeAsNil() { - yyv4628[yyj4628] = NodeSelectorTerm{} - } else { - yyv4630 := &yyv4628[yyj4628] - yyv4630.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4628 := 0 - for ; !r.CheckBreak(); yyj4628++ { - - if yyj4628 >= len(yyv4628) { - yyv4628 = append(yyv4628, NodeSelectorTerm{}) // var yyz4628 NodeSelectorTerm - yyc4628 = true - } - yyh4628.ElemContainerState(yyj4628) - if yyj4628 < len(yyv4628) { - if r.TryDecodeAsNil() { - yyv4628[yyj4628] = NodeSelectorTerm{} - } else { - yyv4631 := &yyv4628[yyj4628] - yyv4631.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4628 < len(yyv4628) { - yyv4628 = yyv4628[:yyj4628] - yyc4628 = true - } else if yyj4628 == 0 && yyv4628 == nil { - yyv4628 = []NodeSelectorTerm{} - yyc4628 = true - } - } - yyh4628.End() - if yyc4628 { - *v = yyv4628 - } -} - -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 _, yyv4632 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4633 := &yyv4632 - yy4633.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 - - yyv4634 := *v - yyh4634, yyl4634 := z.DecSliceHelperStart() - var yyc4634 bool - if yyl4634 == 0 { - if yyv4634 == nil { - yyv4634 = []NodeSelectorRequirement{} - yyc4634 = true - } else if len(yyv4634) != 0 { - yyv4634 = yyv4634[:0] - yyc4634 = true - } - } else if yyl4634 > 0 { - var yyrr4634, yyrl4634 int - var yyrt4634 bool - if yyl4634 > cap(yyv4634) { - - yyrg4634 := len(yyv4634) > 0 - yyv24634 := yyv4634 - yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4634 { - if yyrl4634 <= cap(yyv4634) { - yyv4634 = yyv4634[:yyrl4634] - } else { - yyv4634 = make([]NodeSelectorRequirement, yyrl4634) - } - } else { - yyv4634 = make([]NodeSelectorRequirement, yyrl4634) - } - yyc4634 = true - yyrr4634 = len(yyv4634) - if yyrg4634 { - copy(yyv4634, yyv24634) - } - } else if yyl4634 != len(yyv4634) { - yyv4634 = yyv4634[:yyl4634] - yyc4634 = true - } - yyj4634 := 0 - for ; yyj4634 < yyrr4634; yyj4634++ { - yyh4634.ElemContainerState(yyj4634) - if r.TryDecodeAsNil() { - yyv4634[yyj4634] = NodeSelectorRequirement{} - } else { - yyv4635 := &yyv4634[yyj4634] - yyv4635.CodecDecodeSelf(d) - } - - } - if yyrt4634 { - for ; yyj4634 < yyl4634; yyj4634++ { - yyv4634 = append(yyv4634, NodeSelectorRequirement{}) - yyh4634.ElemContainerState(yyj4634) - if r.TryDecodeAsNil() { - yyv4634[yyj4634] = NodeSelectorRequirement{} - } else { - yyv4636 := &yyv4634[yyj4634] - yyv4636.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4634 := 0 - for ; !r.CheckBreak(); yyj4634++ { - - if yyj4634 >= len(yyv4634) { - yyv4634 = append(yyv4634, NodeSelectorRequirement{}) // var yyz4634 NodeSelectorRequirement - yyc4634 = true - } - yyh4634.ElemContainerState(yyj4634) - if yyj4634 < len(yyv4634) { - if r.TryDecodeAsNil() { - yyv4634[yyj4634] = NodeSelectorRequirement{} - } else { - yyv4637 := &yyv4634[yyj4634] - yyv4637.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4634 < len(yyv4634) { - yyv4634 = yyv4634[:yyj4634] - yyc4634 = true - } else if yyj4634 == 0 && yyv4634 == nil { - yyv4634 = []NodeSelectorRequirement{} - yyc4634 = true - } - } - yyh4634.End() - if yyc4634 { - *v = yyv4634 - } -} - -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 _, yyv4638 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4639 := &yyv4638 - yy4639.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 - - yyv4640 := *v - yyh4640, yyl4640 := z.DecSliceHelperStart() - var yyc4640 bool - if yyl4640 == 0 { - if yyv4640 == nil { - yyv4640 = []PodAffinityTerm{} - yyc4640 = true - } else if len(yyv4640) != 0 { - yyv4640 = yyv4640[:0] - yyc4640 = true - } - } else if yyl4640 > 0 { - var yyrr4640, yyrl4640 int - var yyrt4640 bool - if yyl4640 > cap(yyv4640) { - - yyrg4640 := len(yyv4640) > 0 - yyv24640 := yyv4640 - yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4640 { - if yyrl4640 <= cap(yyv4640) { - yyv4640 = yyv4640[:yyrl4640] - } else { - yyv4640 = make([]PodAffinityTerm, yyrl4640) - } - } else { - yyv4640 = make([]PodAffinityTerm, yyrl4640) - } - yyc4640 = true - yyrr4640 = len(yyv4640) - if yyrg4640 { - copy(yyv4640, yyv24640) - } - } else if yyl4640 != len(yyv4640) { - yyv4640 = yyv4640[:yyl4640] - yyc4640 = true - } - yyj4640 := 0 - for ; yyj4640 < yyrr4640; yyj4640++ { - yyh4640.ElemContainerState(yyj4640) - if r.TryDecodeAsNil() { - yyv4640[yyj4640] = PodAffinityTerm{} - } else { - yyv4641 := &yyv4640[yyj4640] - yyv4641.CodecDecodeSelf(d) - } - - } - if yyrt4640 { - for ; yyj4640 < yyl4640; yyj4640++ { - yyv4640 = append(yyv4640, PodAffinityTerm{}) - yyh4640.ElemContainerState(yyj4640) - if r.TryDecodeAsNil() { - yyv4640[yyj4640] = PodAffinityTerm{} - } else { - yyv4642 := &yyv4640[yyj4640] - yyv4642.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4640 := 0 - for ; !r.CheckBreak(); yyj4640++ { - - if yyj4640 >= len(yyv4640) { - yyv4640 = append(yyv4640, PodAffinityTerm{}) // var yyz4640 PodAffinityTerm - yyc4640 = true - } - yyh4640.ElemContainerState(yyj4640) - if yyj4640 < len(yyv4640) { - if r.TryDecodeAsNil() { - yyv4640[yyj4640] = PodAffinityTerm{} - } else { - yyv4643 := &yyv4640[yyj4640] - yyv4643.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4640 < len(yyv4640) { - yyv4640 = yyv4640[:yyj4640] - yyc4640 = true - } else if yyj4640 == 0 && yyv4640 == nil { - yyv4640 = []PodAffinityTerm{} - yyc4640 = true - } - } - yyh4640.End() - if yyc4640 { - *v = yyv4640 - } -} - -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 _, yyv4644 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4645 := &yyv4644 - yy4645.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 - - yyv4646 := *v - yyh4646, yyl4646 := z.DecSliceHelperStart() - var yyc4646 bool - if yyl4646 == 0 { - if yyv4646 == nil { - yyv4646 = []WeightedPodAffinityTerm{} - yyc4646 = true - } else if len(yyv4646) != 0 { - yyv4646 = yyv4646[:0] - yyc4646 = true - } - } else if yyl4646 > 0 { - var yyrr4646, yyrl4646 int - var yyrt4646 bool - if yyl4646 > cap(yyv4646) { - - yyrg4646 := len(yyv4646) > 0 - yyv24646 := yyv4646 - yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4646 { - if yyrl4646 <= cap(yyv4646) { - yyv4646 = yyv4646[:yyrl4646] - } else { - yyv4646 = make([]WeightedPodAffinityTerm, yyrl4646) - } - } else { - yyv4646 = make([]WeightedPodAffinityTerm, yyrl4646) - } - yyc4646 = true - yyrr4646 = len(yyv4646) - if yyrg4646 { - copy(yyv4646, yyv24646) - } - } else if yyl4646 != len(yyv4646) { - yyv4646 = yyv4646[:yyl4646] - yyc4646 = true - } - yyj4646 := 0 - for ; yyj4646 < yyrr4646; yyj4646++ { - yyh4646.ElemContainerState(yyj4646) - if r.TryDecodeAsNil() { - yyv4646[yyj4646] = WeightedPodAffinityTerm{} - } else { - yyv4647 := &yyv4646[yyj4646] - yyv4647.CodecDecodeSelf(d) - } - - } - if yyrt4646 { - for ; yyj4646 < yyl4646; yyj4646++ { - yyv4646 = append(yyv4646, WeightedPodAffinityTerm{}) - yyh4646.ElemContainerState(yyj4646) - if r.TryDecodeAsNil() { - yyv4646[yyj4646] = WeightedPodAffinityTerm{} - } else { - yyv4648 := &yyv4646[yyj4646] - yyv4648.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4646 := 0 - for ; !r.CheckBreak(); yyj4646++ { - - if yyj4646 >= len(yyv4646) { - yyv4646 = append(yyv4646, WeightedPodAffinityTerm{}) // var yyz4646 WeightedPodAffinityTerm - yyc4646 = true - } - yyh4646.ElemContainerState(yyj4646) - if yyj4646 < len(yyv4646) { - if r.TryDecodeAsNil() { - yyv4646[yyj4646] = WeightedPodAffinityTerm{} - } else { - yyv4649 := &yyv4646[yyj4646] - yyv4649.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4646 < len(yyv4646) { - yyv4646 = yyv4646[:yyj4646] - yyc4646 = true - } else if yyj4646 == 0 && yyv4646 == nil { - yyv4646 = []WeightedPodAffinityTerm{} - yyc4646 = true - } - } - yyh4646.End() - if yyc4646 { - *v = yyv4646 - } -} - -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 _, yyv4650 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4651 := &yyv4650 - yy4651.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 - - yyv4652 := *v - yyh4652, yyl4652 := z.DecSliceHelperStart() - var yyc4652 bool - if yyl4652 == 0 { - if yyv4652 == nil { - yyv4652 = []PreferredSchedulingTerm{} - yyc4652 = true - } else if len(yyv4652) != 0 { - yyv4652 = yyv4652[:0] - yyc4652 = true - } - } else if yyl4652 > 0 { - var yyrr4652, yyrl4652 int - var yyrt4652 bool - if yyl4652 > cap(yyv4652) { - - yyrg4652 := len(yyv4652) > 0 - yyv24652 := yyv4652 - yyrl4652, yyrt4652 = z.DecInferLen(yyl4652, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4652 { - if yyrl4652 <= cap(yyv4652) { - yyv4652 = yyv4652[:yyrl4652] - } else { - yyv4652 = make([]PreferredSchedulingTerm, yyrl4652) - } - } else { - yyv4652 = make([]PreferredSchedulingTerm, yyrl4652) - } - yyc4652 = true - yyrr4652 = len(yyv4652) - if yyrg4652 { - copy(yyv4652, yyv24652) - } - } else if yyl4652 != len(yyv4652) { - yyv4652 = yyv4652[:yyl4652] - yyc4652 = true - } - yyj4652 := 0 - for ; yyj4652 < yyrr4652; yyj4652++ { - yyh4652.ElemContainerState(yyj4652) - if r.TryDecodeAsNil() { - yyv4652[yyj4652] = PreferredSchedulingTerm{} - } else { - yyv4653 := &yyv4652[yyj4652] - yyv4653.CodecDecodeSelf(d) - } - - } - if yyrt4652 { - for ; yyj4652 < yyl4652; yyj4652++ { - yyv4652 = append(yyv4652, PreferredSchedulingTerm{}) - yyh4652.ElemContainerState(yyj4652) - if r.TryDecodeAsNil() { - yyv4652[yyj4652] = PreferredSchedulingTerm{} - } else { - yyv4654 := &yyv4652[yyj4652] - yyv4654.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4652 := 0 - for ; !r.CheckBreak(); yyj4652++ { - - if yyj4652 >= len(yyv4652) { - yyv4652 = append(yyv4652, PreferredSchedulingTerm{}) // var yyz4652 PreferredSchedulingTerm - yyc4652 = true - } - yyh4652.ElemContainerState(yyj4652) - if yyj4652 < len(yyv4652) { - if r.TryDecodeAsNil() { - yyv4652[yyj4652] = PreferredSchedulingTerm{} - } else { - yyv4655 := &yyv4652[yyj4652] - yyv4655.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4652 < len(yyv4652) { - yyv4652 = yyv4652[:yyj4652] - yyc4652 = true - } else if yyj4652 == 0 && yyv4652 == nil { - yyv4652 = []PreferredSchedulingTerm{} - yyc4652 = true - } - } - yyh4652.End() - if yyc4652 { - *v = yyv4652 - } -} - -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 _, yyv4656 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4657 := &yyv4656 - yy4657.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 - - yyv4658 := *v - yyh4658, yyl4658 := z.DecSliceHelperStart() - var yyc4658 bool - if yyl4658 == 0 { - if yyv4658 == nil { - yyv4658 = []Volume{} - 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, 200) - if yyrt4658 { - if yyrl4658 <= cap(yyv4658) { - yyv4658 = yyv4658[:yyrl4658] - } else { - yyv4658 = make([]Volume, yyrl4658) - } - } else { - yyv4658 = make([]Volume, 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] = Volume{} - } else { - yyv4659 := &yyv4658[yyj4658] - yyv4659.CodecDecodeSelf(d) - } - - } - if yyrt4658 { - for ; yyj4658 < yyl4658; yyj4658++ { - yyv4658 = append(yyv4658, Volume{}) - yyh4658.ElemContainerState(yyj4658) - if r.TryDecodeAsNil() { - yyv4658[yyj4658] = Volume{} - } else { - yyv4660 := &yyv4658[yyj4658] - yyv4660.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4658 := 0 - for ; !r.CheckBreak(); yyj4658++ { - - if yyj4658 >= len(yyv4658) { - yyv4658 = append(yyv4658, Volume{}) // var yyz4658 Volume - yyc4658 = true - } - yyh4658.ElemContainerState(yyj4658) - if yyj4658 < len(yyv4658) { - if r.TryDecodeAsNil() { - yyv4658[yyj4658] = Volume{} - } 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 = []Volume{} - yyc4658 = true - } - } - yyh4658.End() - if yyc4658 { - *v = yyv4658 - } -} - -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 _, yyv4662 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4663 := &yyv4662 - yy4663.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 - - yyv4664 := *v - yyh4664, yyl4664 := z.DecSliceHelperStart() - var yyc4664 bool - if yyl4664 == 0 { - if yyv4664 == nil { - yyv4664 = []Container{} - 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, 256) - if yyrt4664 { - if yyrl4664 <= cap(yyv4664) { - yyv4664 = yyv4664[:yyrl4664] - } else { - yyv4664 = make([]Container, yyrl4664) - } - } else { - yyv4664 = make([]Container, 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] = Container{} - } else { - yyv4665 := &yyv4664[yyj4664] - yyv4665.CodecDecodeSelf(d) - } - - } - if yyrt4664 { - for ; yyj4664 < yyl4664; yyj4664++ { - yyv4664 = append(yyv4664, Container{}) - yyh4664.ElemContainerState(yyj4664) - if r.TryDecodeAsNil() { - yyv4664[yyj4664] = Container{} - } else { - yyv4666 := &yyv4664[yyj4664] - yyv4666.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4664 := 0 - for ; !r.CheckBreak(); yyj4664++ { - - if yyj4664 >= len(yyv4664) { - yyv4664 = append(yyv4664, Container{}) // var yyz4664 Container - yyc4664 = true - } - yyh4664.ElemContainerState(yyj4664) - if yyj4664 < len(yyv4664) { - if r.TryDecodeAsNil() { - yyv4664[yyj4664] = Container{} - } 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 = []Container{} - yyc4664 = true - } - } - yyh4664.End() - if yyc4664 { - *v = yyv4664 - } -} - -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 _, yyv4668 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4669 := &yyv4668 - yy4669.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 - - yyv4670 := *v - yyh4670, yyl4670 := z.DecSliceHelperStart() - var yyc4670 bool - if yyl4670 == 0 { - if yyv4670 == nil { - yyv4670 = []LocalObjectReference{} - 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, 16) - if yyrt4670 { - if yyrl4670 <= cap(yyv4670) { - yyv4670 = yyv4670[:yyrl4670] - } else { - yyv4670 = make([]LocalObjectReference, yyrl4670) - } - } else { - yyv4670 = make([]LocalObjectReference, 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] = LocalObjectReference{} - } else { - yyv4671 := &yyv4670[yyj4670] - yyv4671.CodecDecodeSelf(d) - } - - } - if yyrt4670 { - for ; yyj4670 < yyl4670; yyj4670++ { - yyv4670 = append(yyv4670, LocalObjectReference{}) - yyh4670.ElemContainerState(yyj4670) - if r.TryDecodeAsNil() { - yyv4670[yyj4670] = LocalObjectReference{} - } else { - yyv4672 := &yyv4670[yyj4670] - yyv4672.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4670 := 0 - for ; !r.CheckBreak(); yyj4670++ { - - if yyj4670 >= len(yyv4670) { - yyv4670 = append(yyv4670, LocalObjectReference{}) // var yyz4670 LocalObjectReference - yyc4670 = true - } - yyh4670.ElemContainerState(yyj4670) - if yyj4670 < len(yyv4670) { - if r.TryDecodeAsNil() { - yyv4670[yyj4670] = LocalObjectReference{} - } 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 = []LocalObjectReference{} - yyc4670 = true - } - } - yyh4670.End() - if yyc4670 { - *v = yyv4670 - } -} - -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 _, yyv4674 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4675 := &yyv4674 - yy4675.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 - - yyv4676 := *v - yyh4676, yyl4676 := z.DecSliceHelperStart() - var yyc4676 bool - if yyl4676 == 0 { - if yyv4676 == nil { - yyv4676 = []PodCondition{} - 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, 112) - if yyrt4676 { - if yyrl4676 <= cap(yyv4676) { - yyv4676 = yyv4676[:yyrl4676] - } else { - yyv4676 = make([]PodCondition, yyrl4676) - } - } else { - yyv4676 = make([]PodCondition, 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] = PodCondition{} - } else { - yyv4677 := &yyv4676[yyj4676] - yyv4677.CodecDecodeSelf(d) - } - - } - if yyrt4676 { - for ; yyj4676 < yyl4676; yyj4676++ { - yyv4676 = append(yyv4676, PodCondition{}) - yyh4676.ElemContainerState(yyj4676) - if r.TryDecodeAsNil() { - yyv4676[yyj4676] = PodCondition{} - } else { - yyv4678 := &yyv4676[yyj4676] - yyv4678.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4676 := 0 - for ; !r.CheckBreak(); yyj4676++ { - - if yyj4676 >= len(yyv4676) { - yyv4676 = append(yyv4676, PodCondition{}) // var yyz4676 PodCondition - yyc4676 = true - } - yyh4676.ElemContainerState(yyj4676) - if yyj4676 < len(yyv4676) { - if r.TryDecodeAsNil() { - yyv4676[yyj4676] = PodCondition{} - } 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 = []PodCondition{} - yyc4676 = true - } - } - yyh4676.End() - if yyc4676 { - *v = yyv4676 - } -} - -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 _, yyv4680 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4681 := &yyv4680 - yy4681.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 - - yyv4682 := *v - yyh4682, yyl4682 := z.DecSliceHelperStart() - var yyc4682 bool - if yyl4682 == 0 { - if yyv4682 == nil { - yyv4682 = []ContainerStatus{} - 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, 120) - if yyrt4682 { - if yyrl4682 <= cap(yyv4682) { - yyv4682 = yyv4682[:yyrl4682] - } else { - yyv4682 = make([]ContainerStatus, yyrl4682) - } - } else { - yyv4682 = make([]ContainerStatus, 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] = ContainerStatus{} - } else { - yyv4683 := &yyv4682[yyj4682] - yyv4683.CodecDecodeSelf(d) - } - - } - if yyrt4682 { - for ; yyj4682 < yyl4682; yyj4682++ { - yyv4682 = append(yyv4682, ContainerStatus{}) - yyh4682.ElemContainerState(yyj4682) - if r.TryDecodeAsNil() { - yyv4682[yyj4682] = ContainerStatus{} - } else { - yyv4684 := &yyv4682[yyj4682] - yyv4684.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4682 := 0 - for ; !r.CheckBreak(); yyj4682++ { - - if yyj4682 >= len(yyv4682) { - yyv4682 = append(yyv4682, ContainerStatus{}) // var yyz4682 ContainerStatus - yyc4682 = true - } - yyh4682.ElemContainerState(yyj4682) - if yyj4682 < len(yyv4682) { - if r.TryDecodeAsNil() { - yyv4682[yyj4682] = ContainerStatus{} - } 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 = []ContainerStatus{} - yyc4682 = true - } - } - yyh4682.End() - if yyc4682 { - *v = yyv4682 - } -} - -func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4686 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4687 := &yyv4686 - yy4687.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4688 := *v - yyh4688, yyl4688 := z.DecSliceHelperStart() - var yyc4688 bool - if yyl4688 == 0 { - if yyv4688 == nil { - yyv4688 = []PodTemplate{} - 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, 704) - if yyrt4688 { - if yyrl4688 <= cap(yyv4688) { - yyv4688 = yyv4688[:yyrl4688] - } else { - yyv4688 = make([]PodTemplate, yyrl4688) - } - } else { - yyv4688 = make([]PodTemplate, 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] = PodTemplate{} - } else { - yyv4689 := &yyv4688[yyj4688] - yyv4689.CodecDecodeSelf(d) - } - - } - if yyrt4688 { - for ; yyj4688 < yyl4688; yyj4688++ { - yyv4688 = append(yyv4688, PodTemplate{}) - yyh4688.ElemContainerState(yyj4688) - if r.TryDecodeAsNil() { - yyv4688[yyj4688] = PodTemplate{} - } else { - yyv4690 := &yyv4688[yyj4688] - yyv4690.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4688 := 0 - for ; !r.CheckBreak(); yyj4688++ { - - if yyj4688 >= len(yyv4688) { - yyv4688 = append(yyv4688, PodTemplate{}) // var yyz4688 PodTemplate - yyc4688 = true - } - yyh4688.ElemContainerState(yyj4688) - if yyj4688 < len(yyv4688) { - if r.TryDecodeAsNil() { - yyv4688[yyj4688] = PodTemplate{} - } 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 = []PodTemplate{} - yyc4688 = true - } - } - yyh4688.End() - if yyc4688 { - *v = yyv4688 - } -} - -func (x codecSelfer1234) encSliceReplicationControllerCondition(v []ReplicationControllerCondition, 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) decSliceReplicationControllerCondition(v *[]ReplicationControllerCondition, 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 = []ReplicationControllerCondition{} - 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, 88) - if yyrt4694 { - if yyrl4694 <= cap(yyv4694) { - yyv4694 = yyv4694[:yyrl4694] - } else { - yyv4694 = make([]ReplicationControllerCondition, yyrl4694) - } - } else { - yyv4694 = make([]ReplicationControllerCondition, 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] = ReplicationControllerCondition{} - } else { - yyv4695 := &yyv4694[yyj4694] - yyv4695.CodecDecodeSelf(d) - } - - } - if yyrt4694 { - for ; yyj4694 < yyl4694; yyj4694++ { - yyv4694 = append(yyv4694, ReplicationControllerCondition{}) - yyh4694.ElemContainerState(yyj4694) - if r.TryDecodeAsNil() { - yyv4694[yyj4694] = ReplicationControllerCondition{} - } else { - yyv4696 := &yyv4694[yyj4694] - yyv4696.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4694 := 0 - for ; !r.CheckBreak(); yyj4694++ { - - if yyj4694 >= len(yyv4694) { - yyv4694 = append(yyv4694, ReplicationControllerCondition{}) // var yyz4694 ReplicationControllerCondition - yyc4694 = true - } - yyh4694.ElemContainerState(yyj4694) - if yyj4694 < len(yyv4694) { - if r.TryDecodeAsNil() { - yyv4694[yyj4694] = ReplicationControllerCondition{} - } 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 = []ReplicationControllerCondition{} - yyc4694 = true - } - } - yyh4694.End() - if yyc4694 { - *v = yyv4694 - } -} - -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 _, yyv4698 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4699 := &yyv4698 - yy4699.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 - - yyv4700 := *v - yyh4700, yyl4700 := z.DecSliceHelperStart() - var yyc4700 bool - if yyl4700 == 0 { - if yyv4700 == nil { - yyv4700 = []ReplicationController{} - 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, 328) - if yyrt4700 { - if yyrl4700 <= cap(yyv4700) { - yyv4700 = yyv4700[:yyrl4700] - } else { - yyv4700 = make([]ReplicationController, yyrl4700) - } - } else { - yyv4700 = make([]ReplicationController, 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] = ReplicationController{} - } else { - yyv4701 := &yyv4700[yyj4700] - yyv4701.CodecDecodeSelf(d) - } - - } - if yyrt4700 { - for ; yyj4700 < yyl4700; yyj4700++ { - yyv4700 = append(yyv4700, ReplicationController{}) - yyh4700.ElemContainerState(yyj4700) - if r.TryDecodeAsNil() { - yyv4700[yyj4700] = ReplicationController{} - } else { - yyv4702 := &yyv4700[yyj4700] - yyv4702.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4700 := 0 - for ; !r.CheckBreak(); yyj4700++ { - - if yyj4700 >= len(yyv4700) { - yyv4700 = append(yyv4700, ReplicationController{}) // var yyz4700 ReplicationController - yyc4700 = true - } - yyh4700.ElemContainerState(yyj4700) - if yyj4700 < len(yyv4700) { - if r.TryDecodeAsNil() { - yyv4700[yyj4700] = ReplicationController{} - } 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 = []ReplicationController{} - yyc4700 = true - } - } - yyh4700.End() - if yyc4700 { - *v = yyv4700 - } -} - -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 _, yyv4704 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4705 := &yyv4704 - yy4705.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 - - yyv4706 := *v - yyh4706, yyl4706 := z.DecSliceHelperStart() - var yyc4706 bool - if yyl4706 == 0 { - if yyv4706 == nil { - yyv4706 = []Service{} - 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, 440) - if yyrt4706 { - if yyrl4706 <= cap(yyv4706) { - yyv4706 = yyv4706[:yyrl4706] - } else { - yyv4706 = make([]Service, yyrl4706) - } - } else { - yyv4706 = make([]Service, 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] = Service{} - } else { - yyv4707 := &yyv4706[yyj4706] - yyv4707.CodecDecodeSelf(d) - } - - } - if yyrt4706 { - for ; yyj4706 < yyl4706; yyj4706++ { - yyv4706 = append(yyv4706, Service{}) - yyh4706.ElemContainerState(yyj4706) - if r.TryDecodeAsNil() { - yyv4706[yyj4706] = Service{} - } else { - yyv4708 := &yyv4706[yyj4706] - yyv4708.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4706 := 0 - for ; !r.CheckBreak(); yyj4706++ { - - if yyj4706 >= len(yyv4706) { - yyv4706 = append(yyv4706, Service{}) // var yyz4706 Service - yyc4706 = true - } - yyh4706.ElemContainerState(yyj4706) - if yyj4706 < len(yyv4706) { - if r.TryDecodeAsNil() { - yyv4706[yyj4706] = Service{} - } 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 = []Service{} - yyc4706 = true - } - } - yyh4706.End() - if yyc4706 { - *v = yyv4706 - } -} - -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 _, yyv4710 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4711 := &yyv4710 - yy4711.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 - - yyv4712 := *v - yyh4712, yyl4712 := z.DecSliceHelperStart() - var yyc4712 bool - if yyl4712 == 0 { - if yyv4712 == nil { - yyv4712 = []LoadBalancerIngress{} - 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, 32) - if yyrt4712 { - if yyrl4712 <= cap(yyv4712) { - yyv4712 = yyv4712[:yyrl4712] - } else { - yyv4712 = make([]LoadBalancerIngress, yyrl4712) - } - } else { - yyv4712 = make([]LoadBalancerIngress, 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] = LoadBalancerIngress{} - } else { - yyv4713 := &yyv4712[yyj4712] - yyv4713.CodecDecodeSelf(d) - } - - } - if yyrt4712 { - for ; yyj4712 < yyl4712; yyj4712++ { - yyv4712 = append(yyv4712, LoadBalancerIngress{}) - yyh4712.ElemContainerState(yyj4712) - if r.TryDecodeAsNil() { - yyv4712[yyj4712] = LoadBalancerIngress{} - } else { - yyv4714 := &yyv4712[yyj4712] - yyv4714.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4712 := 0 - for ; !r.CheckBreak(); yyj4712++ { - - if yyj4712 >= len(yyv4712) { - yyv4712 = append(yyv4712, LoadBalancerIngress{}) // var yyz4712 LoadBalancerIngress - yyc4712 = true - } - yyh4712.ElemContainerState(yyj4712) - if yyj4712 < len(yyv4712) { - if r.TryDecodeAsNil() { - yyv4712[yyj4712] = LoadBalancerIngress{} - } 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 = []LoadBalancerIngress{} - yyc4712 = true - } - } - yyh4712.End() - if yyc4712 { - *v = yyv4712 - } -} - -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 _, yyv4716 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4717 := &yyv4716 - yy4717.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 - - yyv4718 := *v - yyh4718, yyl4718 := z.DecSliceHelperStart() - var yyc4718 bool - if yyl4718 == 0 { - if yyv4718 == nil { - yyv4718 = []ServicePort{} - 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, 80) - if yyrt4718 { - if yyrl4718 <= cap(yyv4718) { - yyv4718 = yyv4718[:yyrl4718] - } else { - yyv4718 = make([]ServicePort, yyrl4718) - } - } else { - yyv4718 = make([]ServicePort, 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] = ServicePort{} - } else { - yyv4719 := &yyv4718[yyj4718] - yyv4719.CodecDecodeSelf(d) - } - - } - if yyrt4718 { - for ; yyj4718 < yyl4718; yyj4718++ { - yyv4718 = append(yyv4718, ServicePort{}) - yyh4718.ElemContainerState(yyj4718) - if r.TryDecodeAsNil() { - yyv4718[yyj4718] = ServicePort{} - } else { - yyv4720 := &yyv4718[yyj4718] - yyv4720.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4718 := 0 - for ; !r.CheckBreak(); yyj4718++ { - - if yyj4718 >= len(yyv4718) { - yyv4718 = append(yyv4718, ServicePort{}) // var yyz4718 ServicePort - yyc4718 = true - } - yyh4718.ElemContainerState(yyj4718) - if yyj4718 < len(yyv4718) { - if r.TryDecodeAsNil() { - yyv4718[yyj4718] = ServicePort{} - } 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 = []ServicePort{} - yyc4718 = true - } - } - yyh4718.End() - if yyc4718 { - *v = yyv4718 - } -} - -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 _, yyv4722 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4723 := &yyv4722 - yy4723.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 - - yyv4724 := *v - yyh4724, yyl4724 := z.DecSliceHelperStart() - var yyc4724 bool - if yyl4724 == 0 { - if yyv4724 == nil { - yyv4724 = []ObjectReference{} - 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([]ObjectReference, yyrl4724) - } - } else { - yyv4724 = make([]ObjectReference, 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] = ObjectReference{} - } else { - yyv4725 := &yyv4724[yyj4724] - yyv4725.CodecDecodeSelf(d) - } - - } - if yyrt4724 { - for ; yyj4724 < yyl4724; yyj4724++ { - yyv4724 = append(yyv4724, ObjectReference{}) - yyh4724.ElemContainerState(yyj4724) - if r.TryDecodeAsNil() { - yyv4724[yyj4724] = ObjectReference{} - } else { - yyv4726 := &yyv4724[yyj4724] - yyv4726.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4724 := 0 - for ; !r.CheckBreak(); yyj4724++ { - - if yyj4724 >= len(yyv4724) { - yyv4724 = append(yyv4724, ObjectReference{}) // var yyz4724 ObjectReference - yyc4724 = true - } - yyh4724.ElemContainerState(yyj4724) - if yyj4724 < len(yyv4724) { - if r.TryDecodeAsNil() { - yyv4724[yyj4724] = ObjectReference{} - } 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 = []ObjectReference{} - yyc4724 = true - } - } - yyh4724.End() - if yyc4724 { - *v = yyv4724 - } -} - -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 _, yyv4728 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4729 := &yyv4728 - yy4729.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 - - yyv4730 := *v - yyh4730, yyl4730 := z.DecSliceHelperStart() - var yyc4730 bool - if yyl4730 == 0 { - if yyv4730 == nil { - yyv4730 = []ServiceAccount{} - 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, 304) - if yyrt4730 { - if yyrl4730 <= cap(yyv4730) { - yyv4730 = yyv4730[:yyrl4730] - } else { - yyv4730 = make([]ServiceAccount, yyrl4730) - } - } else { - yyv4730 = make([]ServiceAccount, 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] = ServiceAccount{} - } else { - yyv4731 := &yyv4730[yyj4730] - yyv4731.CodecDecodeSelf(d) - } - - } - if yyrt4730 { - for ; yyj4730 < yyl4730; yyj4730++ { - yyv4730 = append(yyv4730, ServiceAccount{}) - yyh4730.ElemContainerState(yyj4730) - if r.TryDecodeAsNil() { - yyv4730[yyj4730] = ServiceAccount{} - } else { - yyv4732 := &yyv4730[yyj4730] - yyv4732.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4730 := 0 - for ; !r.CheckBreak(); yyj4730++ { - - if yyj4730 >= len(yyv4730) { - yyv4730 = append(yyv4730, ServiceAccount{}) // var yyz4730 ServiceAccount - yyc4730 = true - } - yyh4730.ElemContainerState(yyj4730) - if yyj4730 < len(yyv4730) { - if r.TryDecodeAsNil() { - yyv4730[yyj4730] = ServiceAccount{} - } 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 = []ServiceAccount{} - yyc4730 = true - } - } - yyh4730.End() - if yyc4730 { - *v = yyv4730 - } -} - -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 _, yyv4734 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4735 := &yyv4734 - yy4735.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 - - yyv4736 := *v - yyh4736, yyl4736 := z.DecSliceHelperStart() - var yyc4736 bool - if yyl4736 == 0 { - if yyv4736 == nil { - yyv4736 = []EndpointSubset{} - 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, 72) - if yyrt4736 { - if yyrl4736 <= cap(yyv4736) { - yyv4736 = yyv4736[:yyrl4736] - } else { - yyv4736 = make([]EndpointSubset, yyrl4736) - } - } else { - yyv4736 = make([]EndpointSubset, 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] = EndpointSubset{} - } else { - yyv4737 := &yyv4736[yyj4736] - yyv4737.CodecDecodeSelf(d) - } - - } - if yyrt4736 { - for ; yyj4736 < yyl4736; yyj4736++ { - yyv4736 = append(yyv4736, EndpointSubset{}) - yyh4736.ElemContainerState(yyj4736) - if r.TryDecodeAsNil() { - yyv4736[yyj4736] = EndpointSubset{} - } else { - yyv4738 := &yyv4736[yyj4736] - yyv4738.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4736 := 0 - for ; !r.CheckBreak(); yyj4736++ { - - if yyj4736 >= len(yyv4736) { - yyv4736 = append(yyv4736, EndpointSubset{}) // var yyz4736 EndpointSubset - yyc4736 = true - } - yyh4736.ElemContainerState(yyj4736) - if yyj4736 < len(yyv4736) { - if r.TryDecodeAsNil() { - yyv4736[yyj4736] = EndpointSubset{} - } 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 = []EndpointSubset{} - yyc4736 = true - } - } - yyh4736.End() - if yyc4736 { - *v = yyv4736 - } -} - -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 _, yyv4740 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4741 := &yyv4740 - yy4741.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 - - yyv4742 := *v - yyh4742, yyl4742 := z.DecSliceHelperStart() - var yyc4742 bool - if yyl4742 == 0 { - if yyv4742 == nil { - yyv4742 = []EndpointAddress{} - yyc4742 = true - } else if len(yyv4742) != 0 { - yyv4742 = yyv4742[:0] - yyc4742 = true - } - } else if yyl4742 > 0 { - var yyrr4742, yyrl4742 int - var yyrt4742 bool - if yyl4742 > cap(yyv4742) { - - yyrg4742 := len(yyv4742) > 0 - yyv24742 := yyv4742 - yyrl4742, yyrt4742 = z.DecInferLen(yyl4742, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4742 { - if yyrl4742 <= cap(yyv4742) { - yyv4742 = yyv4742[:yyrl4742] - } else { - yyv4742 = make([]EndpointAddress, yyrl4742) - } - } else { - yyv4742 = make([]EndpointAddress, yyrl4742) - } - yyc4742 = true - yyrr4742 = len(yyv4742) - if yyrg4742 { - copy(yyv4742, yyv24742) - } - } else if yyl4742 != len(yyv4742) { - yyv4742 = yyv4742[:yyl4742] - yyc4742 = true - } - yyj4742 := 0 - for ; yyj4742 < yyrr4742; yyj4742++ { - yyh4742.ElemContainerState(yyj4742) - if r.TryDecodeAsNil() { - yyv4742[yyj4742] = EndpointAddress{} - } else { - yyv4743 := &yyv4742[yyj4742] - yyv4743.CodecDecodeSelf(d) - } - - } - if yyrt4742 { - for ; yyj4742 < yyl4742; yyj4742++ { - yyv4742 = append(yyv4742, EndpointAddress{}) - yyh4742.ElemContainerState(yyj4742) - if r.TryDecodeAsNil() { - yyv4742[yyj4742] = EndpointAddress{} - } else { - yyv4744 := &yyv4742[yyj4742] - yyv4744.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4742 := 0 - for ; !r.CheckBreak(); yyj4742++ { - - if yyj4742 >= len(yyv4742) { - yyv4742 = append(yyv4742, EndpointAddress{}) // var yyz4742 EndpointAddress - yyc4742 = true - } - yyh4742.ElemContainerState(yyj4742) - if yyj4742 < len(yyv4742) { - if r.TryDecodeAsNil() { - yyv4742[yyj4742] = EndpointAddress{} - } else { - yyv4745 := &yyv4742[yyj4742] - yyv4745.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4742 < len(yyv4742) { - yyv4742 = yyv4742[:yyj4742] - yyc4742 = true - } else if yyj4742 == 0 && yyv4742 == nil { - yyv4742 = []EndpointAddress{} - yyc4742 = true - } - } - yyh4742.End() - if yyc4742 { - *v = yyv4742 - } -} - -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 _, yyv4746 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4747 := &yyv4746 - yy4747.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 - - yyv4748 := *v - yyh4748, yyl4748 := z.DecSliceHelperStart() - var yyc4748 bool - if yyl4748 == 0 { - if yyv4748 == nil { - yyv4748 = []EndpointPort{} - yyc4748 = true - } else if len(yyv4748) != 0 { - yyv4748 = yyv4748[:0] - yyc4748 = true - } - } else if yyl4748 > 0 { - var yyrr4748, yyrl4748 int - var yyrt4748 bool - if yyl4748 > cap(yyv4748) { - - yyrg4748 := len(yyv4748) > 0 - yyv24748 := yyv4748 - yyrl4748, yyrt4748 = z.DecInferLen(yyl4748, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4748 { - if yyrl4748 <= cap(yyv4748) { - yyv4748 = yyv4748[:yyrl4748] - } else { - yyv4748 = make([]EndpointPort, yyrl4748) - } - } else { - yyv4748 = make([]EndpointPort, yyrl4748) - } - yyc4748 = true - yyrr4748 = len(yyv4748) - if yyrg4748 { - copy(yyv4748, yyv24748) - } - } else if yyl4748 != len(yyv4748) { - yyv4748 = yyv4748[:yyl4748] - yyc4748 = true - } - yyj4748 := 0 - for ; yyj4748 < yyrr4748; yyj4748++ { - yyh4748.ElemContainerState(yyj4748) - if r.TryDecodeAsNil() { - yyv4748[yyj4748] = EndpointPort{} - } else { - yyv4749 := &yyv4748[yyj4748] - yyv4749.CodecDecodeSelf(d) - } - - } - if yyrt4748 { - for ; yyj4748 < yyl4748; yyj4748++ { - yyv4748 = append(yyv4748, EndpointPort{}) - yyh4748.ElemContainerState(yyj4748) - if r.TryDecodeAsNil() { - yyv4748[yyj4748] = EndpointPort{} - } else { - yyv4750 := &yyv4748[yyj4748] - yyv4750.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4748 := 0 - for ; !r.CheckBreak(); yyj4748++ { - - if yyj4748 >= len(yyv4748) { - yyv4748 = append(yyv4748, EndpointPort{}) // var yyz4748 EndpointPort - yyc4748 = true - } - yyh4748.ElemContainerState(yyj4748) - if yyj4748 < len(yyv4748) { - if r.TryDecodeAsNil() { - yyv4748[yyj4748] = EndpointPort{} - } else { - yyv4751 := &yyv4748[yyj4748] - yyv4751.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4748 < len(yyv4748) { - yyv4748 = yyv4748[:yyj4748] - yyc4748 = true - } else if yyj4748 == 0 && yyv4748 == nil { - yyv4748 = []EndpointPort{} - yyc4748 = true - } - } - yyh4748.End() - if yyc4748 { - *v = yyv4748 - } -} - -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 _, yyv4752 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4753 := &yyv4752 - yy4753.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 - - yyv4754 := *v - yyh4754, yyl4754 := z.DecSliceHelperStart() - var yyc4754 bool - if yyl4754 == 0 { - if yyv4754 == nil { - yyv4754 = []Endpoints{} - yyc4754 = true - } else if len(yyv4754) != 0 { - yyv4754 = yyv4754[:0] - yyc4754 = true - } - } else if yyl4754 > 0 { - var yyrr4754, yyrl4754 int - var yyrt4754 bool - if yyl4754 > cap(yyv4754) { - - yyrg4754 := len(yyv4754) > 0 - yyv24754 := yyv4754 - yyrl4754, yyrt4754 = z.DecInferLen(yyl4754, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4754 { - if yyrl4754 <= cap(yyv4754) { - yyv4754 = yyv4754[:yyrl4754] - } else { - yyv4754 = make([]Endpoints, yyrl4754) - } - } else { - yyv4754 = make([]Endpoints, yyrl4754) - } - yyc4754 = true - yyrr4754 = len(yyv4754) - if yyrg4754 { - copy(yyv4754, yyv24754) - } - } else if yyl4754 != len(yyv4754) { - yyv4754 = yyv4754[:yyl4754] - yyc4754 = true - } - yyj4754 := 0 - for ; yyj4754 < yyrr4754; yyj4754++ { - yyh4754.ElemContainerState(yyj4754) - if r.TryDecodeAsNil() { - yyv4754[yyj4754] = Endpoints{} - } else { - yyv4755 := &yyv4754[yyj4754] - yyv4755.CodecDecodeSelf(d) - } - - } - if yyrt4754 { - for ; yyj4754 < yyl4754; yyj4754++ { - yyv4754 = append(yyv4754, Endpoints{}) - yyh4754.ElemContainerState(yyj4754) - if r.TryDecodeAsNil() { - yyv4754[yyj4754] = Endpoints{} - } else { - yyv4756 := &yyv4754[yyj4754] - yyv4756.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4754 := 0 - for ; !r.CheckBreak(); yyj4754++ { - - if yyj4754 >= len(yyv4754) { - yyv4754 = append(yyv4754, Endpoints{}) // var yyz4754 Endpoints - yyc4754 = true - } - yyh4754.ElemContainerState(yyj4754) - if yyj4754 < len(yyv4754) { - if r.TryDecodeAsNil() { - yyv4754[yyj4754] = Endpoints{} - } else { - yyv4757 := &yyv4754[yyj4754] - yyv4757.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4754 < len(yyv4754) { - yyv4754 = yyv4754[:yyj4754] - yyc4754 = true - } else if yyj4754 == 0 && yyv4754 == nil { - yyv4754 = []Endpoints{} - yyc4754 = true - } - } - yyh4754.End() - if yyc4754 { - *v = yyv4754 - } -} - -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 _, yyv4758 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4759 := &yyv4758 - yy4759.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 - - yyv4760 := *v - yyh4760, yyl4760 := z.DecSliceHelperStart() - var yyc4760 bool - if yyl4760 == 0 { - if yyv4760 == nil { - yyv4760 = []NodeCondition{} - yyc4760 = true - } else if len(yyv4760) != 0 { - yyv4760 = yyv4760[:0] - yyc4760 = true - } - } else if yyl4760 > 0 { - var yyrr4760, yyrl4760 int - var yyrt4760 bool - if yyl4760 > cap(yyv4760) { - - yyrg4760 := len(yyv4760) > 0 - yyv24760 := yyv4760 - yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4760 { - if yyrl4760 <= cap(yyv4760) { - yyv4760 = yyv4760[:yyrl4760] - } else { - yyv4760 = make([]NodeCondition, yyrl4760) - } - } else { - yyv4760 = make([]NodeCondition, yyrl4760) - } - yyc4760 = true - yyrr4760 = len(yyv4760) - if yyrg4760 { - copy(yyv4760, yyv24760) - } - } else if yyl4760 != len(yyv4760) { - yyv4760 = yyv4760[:yyl4760] - yyc4760 = true - } - yyj4760 := 0 - for ; yyj4760 < yyrr4760; yyj4760++ { - yyh4760.ElemContainerState(yyj4760) - if r.TryDecodeAsNil() { - yyv4760[yyj4760] = NodeCondition{} - } else { - yyv4761 := &yyv4760[yyj4760] - yyv4761.CodecDecodeSelf(d) - } - - } - if yyrt4760 { - for ; yyj4760 < yyl4760; yyj4760++ { - yyv4760 = append(yyv4760, NodeCondition{}) - yyh4760.ElemContainerState(yyj4760) - if r.TryDecodeAsNil() { - yyv4760[yyj4760] = NodeCondition{} - } else { - yyv4762 := &yyv4760[yyj4760] - yyv4762.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4760 := 0 - for ; !r.CheckBreak(); yyj4760++ { - - if yyj4760 >= len(yyv4760) { - yyv4760 = append(yyv4760, NodeCondition{}) // var yyz4760 NodeCondition - yyc4760 = true - } - yyh4760.ElemContainerState(yyj4760) - if yyj4760 < len(yyv4760) { - if r.TryDecodeAsNil() { - yyv4760[yyj4760] = NodeCondition{} - } else { - yyv4763 := &yyv4760[yyj4760] - yyv4763.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4760 < len(yyv4760) { - yyv4760 = yyv4760[:yyj4760] - yyc4760 = true - } else if yyj4760 == 0 && yyv4760 == nil { - yyv4760 = []NodeCondition{} - yyc4760 = true - } - } - yyh4760.End() - if yyc4760 { - *v = yyv4760 - } -} - -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 _, yyv4764 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4765 := &yyv4764 - yy4765.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 - - yyv4766 := *v - yyh4766, yyl4766 := z.DecSliceHelperStart() - var yyc4766 bool - if yyl4766 == 0 { - if yyv4766 == nil { - yyv4766 = []NodeAddress{} - yyc4766 = true - } else if len(yyv4766) != 0 { - yyv4766 = yyv4766[:0] - yyc4766 = true - } - } else if yyl4766 > 0 { - var yyrr4766, yyrl4766 int - var yyrt4766 bool - if yyl4766 > cap(yyv4766) { - - yyrg4766 := len(yyv4766) > 0 - yyv24766 := yyv4766 - yyrl4766, yyrt4766 = z.DecInferLen(yyl4766, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4766 { - if yyrl4766 <= cap(yyv4766) { - yyv4766 = yyv4766[:yyrl4766] - } else { - yyv4766 = make([]NodeAddress, yyrl4766) - } - } else { - yyv4766 = make([]NodeAddress, yyrl4766) - } - yyc4766 = true - yyrr4766 = len(yyv4766) - if yyrg4766 { - copy(yyv4766, yyv24766) - } - } else if yyl4766 != len(yyv4766) { - yyv4766 = yyv4766[:yyl4766] - yyc4766 = true - } - yyj4766 := 0 - for ; yyj4766 < yyrr4766; yyj4766++ { - yyh4766.ElemContainerState(yyj4766) - if r.TryDecodeAsNil() { - yyv4766[yyj4766] = NodeAddress{} - } else { - yyv4767 := &yyv4766[yyj4766] - yyv4767.CodecDecodeSelf(d) - } - - } - if yyrt4766 { - for ; yyj4766 < yyl4766; yyj4766++ { - yyv4766 = append(yyv4766, NodeAddress{}) - yyh4766.ElemContainerState(yyj4766) - if r.TryDecodeAsNil() { - yyv4766[yyj4766] = NodeAddress{} - } else { - yyv4768 := &yyv4766[yyj4766] - yyv4768.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4766 := 0 - for ; !r.CheckBreak(); yyj4766++ { - - if yyj4766 >= len(yyv4766) { - yyv4766 = append(yyv4766, NodeAddress{}) // var yyz4766 NodeAddress - yyc4766 = true - } - yyh4766.ElemContainerState(yyj4766) - if yyj4766 < len(yyv4766) { - if r.TryDecodeAsNil() { - yyv4766[yyj4766] = NodeAddress{} - } else { - yyv4769 := &yyv4766[yyj4766] - yyv4769.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4766 < len(yyv4766) { - yyv4766 = yyv4766[:yyj4766] - yyc4766 = true - } else if yyj4766 == 0 && yyv4766 == nil { - yyv4766 = []NodeAddress{} - yyc4766 = true - } - } - yyh4766.End() - if yyc4766 { - *v = yyv4766 - } -} - -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 _, yyv4770 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4771 := &yyv4770 - yy4771.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 - - yyv4772 := *v - yyh4772, yyl4772 := z.DecSliceHelperStart() - var yyc4772 bool - if yyl4772 == 0 { - if yyv4772 == nil { - yyv4772 = []ContainerImage{} - yyc4772 = true - } else if len(yyv4772) != 0 { - yyv4772 = yyv4772[:0] - yyc4772 = true - } - } else if yyl4772 > 0 { - var yyrr4772, yyrl4772 int - var yyrt4772 bool - if yyl4772 > cap(yyv4772) { - - yyrg4772 := len(yyv4772) > 0 - yyv24772 := yyv4772 - yyrl4772, yyrt4772 = z.DecInferLen(yyl4772, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4772 { - if yyrl4772 <= cap(yyv4772) { - yyv4772 = yyv4772[:yyrl4772] - } else { - yyv4772 = make([]ContainerImage, yyrl4772) - } - } else { - yyv4772 = make([]ContainerImage, yyrl4772) - } - yyc4772 = true - yyrr4772 = len(yyv4772) - if yyrg4772 { - copy(yyv4772, yyv24772) - } - } else if yyl4772 != len(yyv4772) { - yyv4772 = yyv4772[:yyl4772] - yyc4772 = true - } - yyj4772 := 0 - for ; yyj4772 < yyrr4772; yyj4772++ { - yyh4772.ElemContainerState(yyj4772) - if r.TryDecodeAsNil() { - yyv4772[yyj4772] = ContainerImage{} - } else { - yyv4773 := &yyv4772[yyj4772] - yyv4773.CodecDecodeSelf(d) - } - - } - if yyrt4772 { - for ; yyj4772 < yyl4772; yyj4772++ { - yyv4772 = append(yyv4772, ContainerImage{}) - yyh4772.ElemContainerState(yyj4772) - if r.TryDecodeAsNil() { - yyv4772[yyj4772] = ContainerImage{} - } else { - yyv4774 := &yyv4772[yyj4772] - yyv4774.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4772 := 0 - for ; !r.CheckBreak(); yyj4772++ { - - if yyj4772 >= len(yyv4772) { - yyv4772 = append(yyv4772, ContainerImage{}) // var yyz4772 ContainerImage - yyc4772 = true - } - yyh4772.ElemContainerState(yyj4772) - if yyj4772 < len(yyv4772) { - if r.TryDecodeAsNil() { - yyv4772[yyj4772] = ContainerImage{} - } else { - yyv4775 := &yyv4772[yyj4772] - yyv4775.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4772 < len(yyv4772) { - yyv4772 = yyv4772[:yyj4772] - yyc4772 = true - } else if yyj4772 == 0 && yyv4772 == nil { - yyv4772 = []ContainerImage{} - yyc4772 = true - } - } - yyh4772.End() - if yyc4772 { - *v = yyv4772 - } -} - -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 _, yyv4776 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4776.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 - - yyv4777 := *v - yyh4777, yyl4777 := z.DecSliceHelperStart() - var yyc4777 bool - if yyl4777 == 0 { - if yyv4777 == nil { - yyv4777 = []UniqueVolumeName{} - yyc4777 = true - } else if len(yyv4777) != 0 { - yyv4777 = yyv4777[:0] - yyc4777 = true - } - } else if yyl4777 > 0 { - var yyrr4777, yyrl4777 int - var yyrt4777 bool - if yyl4777 > cap(yyv4777) { - - yyrl4777, yyrt4777 = z.DecInferLen(yyl4777, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4777 { - if yyrl4777 <= cap(yyv4777) { - yyv4777 = yyv4777[:yyrl4777] - } else { - yyv4777 = make([]UniqueVolumeName, yyrl4777) - } - } else { - yyv4777 = make([]UniqueVolumeName, yyrl4777) - } - yyc4777 = true - yyrr4777 = len(yyv4777) - } else if yyl4777 != len(yyv4777) { - yyv4777 = yyv4777[:yyl4777] - yyc4777 = true - } - yyj4777 := 0 - for ; yyj4777 < yyrr4777; yyj4777++ { - yyh4777.ElemContainerState(yyj4777) - if r.TryDecodeAsNil() { - yyv4777[yyj4777] = "" - } else { - yyv4777[yyj4777] = UniqueVolumeName(r.DecodeString()) - } - - } - if yyrt4777 { - for ; yyj4777 < yyl4777; yyj4777++ { - yyv4777 = append(yyv4777, "") - yyh4777.ElemContainerState(yyj4777) - if r.TryDecodeAsNil() { - yyv4777[yyj4777] = "" - } else { - yyv4777[yyj4777] = UniqueVolumeName(r.DecodeString()) - } - - } - } - - } else { - yyj4777 := 0 - for ; !r.CheckBreak(); yyj4777++ { - - if yyj4777 >= len(yyv4777) { - yyv4777 = append(yyv4777, "") // var yyz4777 UniqueVolumeName - yyc4777 = true - } - yyh4777.ElemContainerState(yyj4777) - if yyj4777 < len(yyv4777) { - if r.TryDecodeAsNil() { - yyv4777[yyj4777] = "" - } else { - yyv4777[yyj4777] = UniqueVolumeName(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4777 < len(yyv4777) { - yyv4777 = yyv4777[:yyj4777] - yyc4777 = true - } else if yyj4777 == 0 && yyv4777 == nil { - yyv4777 = []UniqueVolumeName{} - yyc4777 = true - } - } - yyh4777.End() - if yyc4777 { - *v = yyv4777 - } -} - -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 _, yyv4781 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4782 := &yyv4781 - yy4782.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 - - yyv4783 := *v - yyh4783, yyl4783 := z.DecSliceHelperStart() - var yyc4783 bool - if yyl4783 == 0 { - if yyv4783 == nil { - yyv4783 = []AttachedVolume{} - yyc4783 = true - } else if len(yyv4783) != 0 { - yyv4783 = yyv4783[:0] - yyc4783 = true - } - } else if yyl4783 > 0 { - var yyrr4783, yyrl4783 int - var yyrt4783 bool - if yyl4783 > cap(yyv4783) { - - yyrg4783 := len(yyv4783) > 0 - yyv24783 := yyv4783 - yyrl4783, yyrt4783 = z.DecInferLen(yyl4783, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4783 { - if yyrl4783 <= cap(yyv4783) { - yyv4783 = yyv4783[:yyrl4783] - } else { - yyv4783 = make([]AttachedVolume, yyrl4783) - } - } else { - yyv4783 = make([]AttachedVolume, yyrl4783) - } - yyc4783 = true - yyrr4783 = len(yyv4783) - if yyrg4783 { - copy(yyv4783, yyv24783) - } - } else if yyl4783 != len(yyv4783) { - yyv4783 = yyv4783[:yyl4783] - yyc4783 = true - } - yyj4783 := 0 - for ; yyj4783 < yyrr4783; yyj4783++ { - yyh4783.ElemContainerState(yyj4783) - if r.TryDecodeAsNil() { - yyv4783[yyj4783] = AttachedVolume{} - } else { - yyv4784 := &yyv4783[yyj4783] - yyv4784.CodecDecodeSelf(d) - } - - } - if yyrt4783 { - for ; yyj4783 < yyl4783; yyj4783++ { - yyv4783 = append(yyv4783, AttachedVolume{}) - yyh4783.ElemContainerState(yyj4783) - if r.TryDecodeAsNil() { - yyv4783[yyj4783] = AttachedVolume{} - } else { - yyv4785 := &yyv4783[yyj4783] - yyv4785.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4783 := 0 - for ; !r.CheckBreak(); yyj4783++ { - - if yyj4783 >= len(yyv4783) { - yyv4783 = append(yyv4783, AttachedVolume{}) // var yyz4783 AttachedVolume - yyc4783 = true - } - yyh4783.ElemContainerState(yyj4783) - if yyj4783 < len(yyv4783) { - if r.TryDecodeAsNil() { - yyv4783[yyj4783] = AttachedVolume{} - } else { - yyv4786 := &yyv4783[yyj4783] - yyv4786.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4783 < len(yyv4783) { - yyv4783 = yyv4783[:yyj4783] - yyc4783 = true - } else if yyj4783 == 0 && yyv4783 == nil { - yyv4783 = []AttachedVolume{} - yyc4783 = true - } - } - yyh4783.End() - if yyc4783 { - *v = yyv4783 - } -} - -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 _, yyv4787 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4788 := &yyv4787 - yy4788.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 - - yyv4789 := *v - yyh4789, yyl4789 := z.DecSliceHelperStart() - var yyc4789 bool - if yyl4789 == 0 { - if yyv4789 == nil { - yyv4789 = []PreferAvoidPodsEntry{} - 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, 64) - if yyrt4789 { - if yyrl4789 <= cap(yyv4789) { - yyv4789 = yyv4789[:yyrl4789] - } else { - yyv4789 = make([]PreferAvoidPodsEntry, yyrl4789) - } - } else { - yyv4789 = make([]PreferAvoidPodsEntry, 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] = PreferAvoidPodsEntry{} - } else { - yyv4790 := &yyv4789[yyj4789] - yyv4790.CodecDecodeSelf(d) - } - - } - if yyrt4789 { - for ; yyj4789 < yyl4789; yyj4789++ { - yyv4789 = append(yyv4789, PreferAvoidPodsEntry{}) - yyh4789.ElemContainerState(yyj4789) - if r.TryDecodeAsNil() { - yyv4789[yyj4789] = PreferAvoidPodsEntry{} - } else { - yyv4791 := &yyv4789[yyj4789] - yyv4791.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4789 := 0 - for ; !r.CheckBreak(); yyj4789++ { - - if yyj4789 >= len(yyv4789) { - yyv4789 = append(yyv4789, PreferAvoidPodsEntry{}) // var yyz4789 PreferAvoidPodsEntry - yyc4789 = true - } - yyh4789.ElemContainerState(yyj4789) - if yyj4789 < len(yyv4789) { - if r.TryDecodeAsNil() { - yyv4789[yyj4789] = PreferAvoidPodsEntry{} - } 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 = []PreferAvoidPodsEntry{} - yyc4789 = true - } - } - yyh4789.End() - if yyc4789 { - *v = yyv4789 - } -} - -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 yyk4793, yyv4793 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4793.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4794 := &yyv4793 - yym4795 := z.EncBinary() - _ = yym4795 - if false { - } else if z.HasExtensions() && z.EncExt(yy4794) { - } else if !yym4795 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4794) - } else { - z.EncFallback(yy4794) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4796 := *v - yyl4796 := r.ReadMapStart() - yybh4796 := z.DecBasicHandle() - if yyv4796 == nil { - yyrl4796, _ := z.DecInferLen(yyl4796, yybh4796.MaxInitLen, 72) - yyv4796 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4796) - *v = yyv4796 - } - var yymk4796 ResourceName - var yymv4796 pkg3_resource.Quantity - var yymg4796 bool - if yybh4796.MapValueReset { - yymg4796 = true - } - if yyl4796 > 0 { - for yyj4796 := 0; yyj4796 < yyl4796; yyj4796++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4796 = "" - } else { - yymk4796 = ResourceName(r.DecodeString()) - } - - if yymg4796 { - yymv4796 = yyv4796[yymk4796] - } else { - yymv4796 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4796 = pkg3_resource.Quantity{} - } else { - yyv4798 := &yymv4796 - yym4799 := z.DecBinary() - _ = yym4799 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4798) { - } else if !yym4799 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4798) - } else { - z.DecFallback(yyv4798, false) - } - } - - if yyv4796 != nil { - yyv4796[yymk4796] = yymv4796 - } - } - } else if yyl4796 < 0 { - for yyj4796 := 0; !r.CheckBreak(); yyj4796++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4796 = "" - } else { - yymk4796 = ResourceName(r.DecodeString()) - } - - if yymg4796 { - yymv4796 = yyv4796[yymk4796] - } else { - yymv4796 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4796 = pkg3_resource.Quantity{} - } else { - yyv4801 := &yymv4796 - yym4802 := z.DecBinary() - _ = yym4802 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4801) { - } else if !yym4802 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4801) - } else { - z.DecFallback(yyv4801, false) - } - } - - if yyv4796 != nil { - yyv4796[yymk4796] = yymv4796 - } - } - } // 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 _, yyv4803 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4804 := &yyv4803 - yy4804.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 - - yyv4805 := *v - yyh4805, yyl4805 := z.DecSliceHelperStart() - var yyc4805 bool - if yyl4805 == 0 { - if yyv4805 == nil { - yyv4805 = []Node{} - yyc4805 = true - } else if len(yyv4805) != 0 { - yyv4805 = yyv4805[:0] - yyc4805 = true - } - } else if yyl4805 > 0 { - var yyrr4805, yyrl4805 int - var yyrt4805 bool - if yyl4805 > cap(yyv4805) { - - yyrg4805 := len(yyv4805) > 0 - yyv24805 := yyv4805 - yyrl4805, yyrt4805 = z.DecInferLen(yyl4805, z.DecBasicHandle().MaxInitLen, 632) - if yyrt4805 { - if yyrl4805 <= cap(yyv4805) { - yyv4805 = yyv4805[:yyrl4805] - } else { - yyv4805 = make([]Node, yyrl4805) - } - } else { - yyv4805 = make([]Node, yyrl4805) - } - yyc4805 = true - yyrr4805 = len(yyv4805) - if yyrg4805 { - copy(yyv4805, yyv24805) - } - } else if yyl4805 != len(yyv4805) { - yyv4805 = yyv4805[:yyl4805] - yyc4805 = true - } - yyj4805 := 0 - for ; yyj4805 < yyrr4805; yyj4805++ { - yyh4805.ElemContainerState(yyj4805) - if r.TryDecodeAsNil() { - yyv4805[yyj4805] = Node{} - } else { - yyv4806 := &yyv4805[yyj4805] - yyv4806.CodecDecodeSelf(d) - } - - } - if yyrt4805 { - for ; yyj4805 < yyl4805; yyj4805++ { - yyv4805 = append(yyv4805, Node{}) - yyh4805.ElemContainerState(yyj4805) - if r.TryDecodeAsNil() { - yyv4805[yyj4805] = Node{} - } else { - yyv4807 := &yyv4805[yyj4805] - yyv4807.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4805 := 0 - for ; !r.CheckBreak(); yyj4805++ { - - if yyj4805 >= len(yyv4805) { - yyv4805 = append(yyv4805, Node{}) // var yyz4805 Node - yyc4805 = true - } - yyh4805.ElemContainerState(yyj4805) - if yyj4805 < len(yyv4805) { - if r.TryDecodeAsNil() { - yyv4805[yyj4805] = Node{} - } else { - yyv4808 := &yyv4805[yyj4805] - yyv4808.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4805 < len(yyv4805) { - yyv4805 = yyv4805[:yyj4805] - yyc4805 = true - } else if yyj4805 == 0 && yyv4805 == nil { - yyv4805 = []Node{} - yyc4805 = true - } - } - yyh4805.End() - if yyc4805 { - *v = yyv4805 - } -} - -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 _, yyv4809 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4809.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 - - yyv4810 := *v - yyh4810, yyl4810 := z.DecSliceHelperStart() - var yyc4810 bool - if yyl4810 == 0 { - if yyv4810 == nil { - yyv4810 = []FinalizerName{} - yyc4810 = true - } else if len(yyv4810) != 0 { - yyv4810 = yyv4810[:0] - yyc4810 = true - } - } else if yyl4810 > 0 { - var yyrr4810, yyrl4810 int - var yyrt4810 bool - if yyl4810 > cap(yyv4810) { - - yyrl4810, yyrt4810 = z.DecInferLen(yyl4810, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4810 { - if yyrl4810 <= cap(yyv4810) { - yyv4810 = yyv4810[:yyrl4810] - } else { - yyv4810 = make([]FinalizerName, yyrl4810) - } - } else { - yyv4810 = make([]FinalizerName, yyrl4810) - } - yyc4810 = true - yyrr4810 = len(yyv4810) - } else if yyl4810 != len(yyv4810) { - yyv4810 = yyv4810[:yyl4810] - yyc4810 = true - } - yyj4810 := 0 - for ; yyj4810 < yyrr4810; yyj4810++ { - yyh4810.ElemContainerState(yyj4810) - if r.TryDecodeAsNil() { - yyv4810[yyj4810] = "" - } else { - yyv4810[yyj4810] = FinalizerName(r.DecodeString()) - } - - } - if yyrt4810 { - for ; yyj4810 < yyl4810; yyj4810++ { - yyv4810 = append(yyv4810, "") - yyh4810.ElemContainerState(yyj4810) - if r.TryDecodeAsNil() { - yyv4810[yyj4810] = "" - } else { - yyv4810[yyj4810] = FinalizerName(r.DecodeString()) - } - - } - } - - } else { - yyj4810 := 0 - for ; !r.CheckBreak(); yyj4810++ { - - if yyj4810 >= len(yyv4810) { - yyv4810 = append(yyv4810, "") // var yyz4810 FinalizerName - yyc4810 = true - } - yyh4810.ElemContainerState(yyj4810) - if yyj4810 < len(yyv4810) { - if r.TryDecodeAsNil() { - yyv4810[yyj4810] = "" - } else { - yyv4810[yyj4810] = FinalizerName(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4810 < len(yyv4810) { - yyv4810 = yyv4810[:yyj4810] - yyc4810 = true - } else if yyj4810 == 0 && yyv4810 == nil { - yyv4810 = []FinalizerName{} - yyc4810 = true - } - } - yyh4810.End() - if yyc4810 { - *v = yyv4810 - } -} - -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 _, yyv4814 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4815 := &yyv4814 - yy4815.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 - - yyv4816 := *v - yyh4816, yyl4816 := z.DecSliceHelperStart() - var yyc4816 bool - if yyl4816 == 0 { - if yyv4816 == nil { - yyv4816 = []Namespace{} - 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) { - - yyrg4816 := len(yyv4816) > 0 - yyv24816 := yyv4816 - yyrl4816, yyrt4816 = z.DecInferLen(yyl4816, z.DecBasicHandle().MaxInitLen, 296) - if yyrt4816 { - if yyrl4816 <= cap(yyv4816) { - yyv4816 = yyv4816[:yyrl4816] - } else { - yyv4816 = make([]Namespace, yyrl4816) - } - } else { - yyv4816 = make([]Namespace, yyrl4816) - } - yyc4816 = true - yyrr4816 = len(yyv4816) - if yyrg4816 { - copy(yyv4816, yyv24816) - } - } else if yyl4816 != len(yyv4816) { - yyv4816 = yyv4816[:yyl4816] - yyc4816 = true - } - yyj4816 := 0 - for ; yyj4816 < yyrr4816; yyj4816++ { - yyh4816.ElemContainerState(yyj4816) - if r.TryDecodeAsNil() { - yyv4816[yyj4816] = Namespace{} - } else { - yyv4817 := &yyv4816[yyj4816] - yyv4817.CodecDecodeSelf(d) - } - - } - if yyrt4816 { - for ; yyj4816 < yyl4816; yyj4816++ { - yyv4816 = append(yyv4816, Namespace{}) - yyh4816.ElemContainerState(yyj4816) - if r.TryDecodeAsNil() { - yyv4816[yyj4816] = Namespace{} - } else { - yyv4818 := &yyv4816[yyj4816] - yyv4818.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4816 := 0 - for ; !r.CheckBreak(); yyj4816++ { - - if yyj4816 >= len(yyv4816) { - yyv4816 = append(yyv4816, Namespace{}) // var yyz4816 Namespace - yyc4816 = true - } - yyh4816.ElemContainerState(yyj4816) - if yyj4816 < len(yyv4816) { - if r.TryDecodeAsNil() { - yyv4816[yyj4816] = Namespace{} - } else { - yyv4819 := &yyv4816[yyj4816] - yyv4819.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4816 < len(yyv4816) { - yyv4816 = yyv4816[:yyj4816] - yyc4816 = true - } else if yyj4816 == 0 && yyv4816 == nil { - yyv4816 = []Namespace{} - yyc4816 = true - } - } - yyh4816.End() - if yyc4816 { - *v = yyv4816 - } -} - -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 _, yyv4820 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4821 := &yyv4820 - yy4821.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 - - yyv4822 := *v - yyh4822, yyl4822 := z.DecSliceHelperStart() - var yyc4822 bool - if yyl4822 == 0 { - if yyv4822 == nil { - yyv4822 = []Event{} - 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, 504) - if yyrt4822 { - if yyrl4822 <= cap(yyv4822) { - yyv4822 = yyv4822[:yyrl4822] - } else { - yyv4822 = make([]Event, yyrl4822) - } - } else { - yyv4822 = make([]Event, 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] = Event{} - } else { - yyv4823 := &yyv4822[yyj4822] - yyv4823.CodecDecodeSelf(d) - } - - } - if yyrt4822 { - for ; yyj4822 < yyl4822; yyj4822++ { - yyv4822 = append(yyv4822, Event{}) - yyh4822.ElemContainerState(yyj4822) - if r.TryDecodeAsNil() { - yyv4822[yyj4822] = Event{} - } else { - yyv4824 := &yyv4822[yyj4822] - yyv4824.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4822 := 0 - for ; !r.CheckBreak(); yyj4822++ { - - if yyj4822 >= len(yyv4822) { - yyv4822 = append(yyv4822, Event{}) // var yyz4822 Event - yyc4822 = true - } - yyh4822.ElemContainerState(yyj4822) - if yyj4822 < len(yyv4822) { - if r.TryDecodeAsNil() { - yyv4822[yyj4822] = Event{} - } 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 = []Event{} - yyc4822 = true - } - } - yyh4822.End() - if yyc4822 { - *v = yyv4822 - } -} - -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 _, yyv4826 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyv4826 == nil { - r.EncodeNil() - } else { - yym4827 := z.EncBinary() - _ = yym4827 - if false { - } else if z.HasExtensions() && z.EncExt(yyv4826) { - } else { - z.EncFallback(yyv4826) - } - } - } - 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 - - yyv4828 := *v - yyh4828, yyl4828 := z.DecSliceHelperStart() - var yyc4828 bool - if yyl4828 == 0 { - if yyv4828 == nil { - yyv4828 = []pkg7_runtime.Object{} - 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, 16) - if yyrt4828 { - if yyrl4828 <= cap(yyv4828) { - yyv4828 = yyv4828[:yyrl4828] - } else { - yyv4828 = make([]pkg7_runtime.Object, yyrl4828) - } - } else { - yyv4828 = make([]pkg7_runtime.Object, 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] = nil - } else { - yyv4829 := &yyv4828[yyj4828] - yym4830 := z.DecBinary() - _ = yym4830 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4829) { - } else { - z.DecFallback(yyv4829, true) - } - } - - } - if yyrt4828 { - for ; yyj4828 < yyl4828; yyj4828++ { - yyv4828 = append(yyv4828, nil) - yyh4828.ElemContainerState(yyj4828) - if r.TryDecodeAsNil() { - yyv4828[yyj4828] = nil - } else { - yyv4831 := &yyv4828[yyj4828] - yym4832 := z.DecBinary() - _ = yym4832 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4831) { - } else { - z.DecFallback(yyv4831, true) - } - } - - } - } - - } else { - yyj4828 := 0 - for ; !r.CheckBreak(); yyj4828++ { - - if yyj4828 >= len(yyv4828) { - yyv4828 = append(yyv4828, nil) // var yyz4828 pkg7_runtime.Object - yyc4828 = true - } - yyh4828.ElemContainerState(yyj4828) - if yyj4828 < len(yyv4828) { - if r.TryDecodeAsNil() { - yyv4828[yyj4828] = nil - } else { - yyv4833 := &yyv4828[yyj4828] - yym4834 := z.DecBinary() - _ = yym4834 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4833) { - } else { - z.DecFallback(yyv4833, true) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj4828 < len(yyv4828) { - yyv4828 = yyv4828[:yyj4828] - yyc4828 = true - } else if yyj4828 == 0 && yyv4828 == nil { - yyv4828 = []pkg7_runtime.Object{} - yyc4828 = true - } - } - yyh4828.End() - if yyc4828 { - *v = yyv4828 - } -} - -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 _, yyv4835 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4836 := &yyv4835 - yy4836.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 - - yyv4837 := *v - yyh4837, yyl4837 := z.DecSliceHelperStart() - var yyc4837 bool - if yyl4837 == 0 { - if yyv4837 == nil { - yyv4837 = []LimitRangeItem{} - yyc4837 = true - } else if len(yyv4837) != 0 { - yyv4837 = yyv4837[:0] - yyc4837 = true - } - } else if yyl4837 > 0 { - var yyrr4837, yyrl4837 int - var yyrt4837 bool - if yyl4837 > cap(yyv4837) { - - yyrg4837 := len(yyv4837) > 0 - yyv24837 := yyv4837 - yyrl4837, yyrt4837 = z.DecInferLen(yyl4837, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4837 { - if yyrl4837 <= cap(yyv4837) { - yyv4837 = yyv4837[:yyrl4837] - } else { - yyv4837 = make([]LimitRangeItem, yyrl4837) - } - } else { - yyv4837 = make([]LimitRangeItem, yyrl4837) - } - yyc4837 = true - yyrr4837 = len(yyv4837) - if yyrg4837 { - copy(yyv4837, yyv24837) - } - } else if yyl4837 != len(yyv4837) { - yyv4837 = yyv4837[:yyl4837] - yyc4837 = true - } - yyj4837 := 0 - for ; yyj4837 < yyrr4837; yyj4837++ { - yyh4837.ElemContainerState(yyj4837) - if r.TryDecodeAsNil() { - yyv4837[yyj4837] = LimitRangeItem{} - } else { - yyv4838 := &yyv4837[yyj4837] - yyv4838.CodecDecodeSelf(d) - } - - } - if yyrt4837 { - for ; yyj4837 < yyl4837; yyj4837++ { - yyv4837 = append(yyv4837, LimitRangeItem{}) - yyh4837.ElemContainerState(yyj4837) - if r.TryDecodeAsNil() { - yyv4837[yyj4837] = LimitRangeItem{} - } else { - yyv4839 := &yyv4837[yyj4837] - yyv4839.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4837 := 0 - for ; !r.CheckBreak(); yyj4837++ { - - if yyj4837 >= len(yyv4837) { - yyv4837 = append(yyv4837, LimitRangeItem{}) // var yyz4837 LimitRangeItem - yyc4837 = true - } - yyh4837.ElemContainerState(yyj4837) - if yyj4837 < len(yyv4837) { - if r.TryDecodeAsNil() { - yyv4837[yyj4837] = LimitRangeItem{} - } else { - yyv4840 := &yyv4837[yyj4837] - yyv4840.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4837 < len(yyv4837) { - yyv4837 = yyv4837[:yyj4837] - yyc4837 = true - } else if yyj4837 == 0 && yyv4837 == nil { - yyv4837 = []LimitRangeItem{} - yyc4837 = true - } - } - yyh4837.End() - if yyc4837 { - *v = yyv4837 - } -} - -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 _, yyv4841 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4842 := &yyv4841 - yy4842.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 - - yyv4843 := *v - yyh4843, yyl4843 := z.DecSliceHelperStart() - var yyc4843 bool - if yyl4843 == 0 { - if yyv4843 == nil { - yyv4843 = []LimitRange{} - yyc4843 = true - } else if len(yyv4843) != 0 { - yyv4843 = yyv4843[:0] - yyc4843 = true - } - } else if yyl4843 > 0 { - var yyrr4843, yyrl4843 int - var yyrt4843 bool - if yyl4843 > cap(yyv4843) { - - yyrg4843 := len(yyv4843) > 0 - yyv24843 := yyv4843 - yyrl4843, yyrt4843 = z.DecInferLen(yyl4843, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4843 { - if yyrl4843 <= cap(yyv4843) { - yyv4843 = yyv4843[:yyrl4843] - } else { - yyv4843 = make([]LimitRange, yyrl4843) - } - } else { - yyv4843 = make([]LimitRange, yyrl4843) - } - yyc4843 = true - yyrr4843 = len(yyv4843) - if yyrg4843 { - copy(yyv4843, yyv24843) - } - } else if yyl4843 != len(yyv4843) { - yyv4843 = yyv4843[:yyl4843] - yyc4843 = true - } - yyj4843 := 0 - for ; yyj4843 < yyrr4843; yyj4843++ { - yyh4843.ElemContainerState(yyj4843) - if r.TryDecodeAsNil() { - yyv4843[yyj4843] = LimitRange{} - } else { - yyv4844 := &yyv4843[yyj4843] - yyv4844.CodecDecodeSelf(d) - } - - } - if yyrt4843 { - for ; yyj4843 < yyl4843; yyj4843++ { - yyv4843 = append(yyv4843, LimitRange{}) - yyh4843.ElemContainerState(yyj4843) - if r.TryDecodeAsNil() { - yyv4843[yyj4843] = LimitRange{} - } else { - yyv4845 := &yyv4843[yyj4843] - yyv4845.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4843 := 0 - for ; !r.CheckBreak(); yyj4843++ { - - if yyj4843 >= len(yyv4843) { - yyv4843 = append(yyv4843, LimitRange{}) // var yyz4843 LimitRange - yyc4843 = true - } - yyh4843.ElemContainerState(yyj4843) - if yyj4843 < len(yyv4843) { - if r.TryDecodeAsNil() { - yyv4843[yyj4843] = LimitRange{} - } else { - yyv4846 := &yyv4843[yyj4843] - yyv4846.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4843 < len(yyv4843) { - yyv4843 = yyv4843[:yyj4843] - yyc4843 = true - } else if yyj4843 == 0 && yyv4843 == nil { - yyv4843 = []LimitRange{} - yyc4843 = true - } - } - yyh4843.End() - if yyc4843 { - *v = yyv4843 - } -} - -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 _, yyv4847 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4847.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 - - yyv4848 := *v - yyh4848, yyl4848 := z.DecSliceHelperStart() - var yyc4848 bool - if yyl4848 == 0 { - if yyv4848 == nil { - yyv4848 = []ResourceQuotaScope{} - yyc4848 = true - } else if len(yyv4848) != 0 { - yyv4848 = yyv4848[:0] - yyc4848 = true - } - } else if yyl4848 > 0 { - var yyrr4848, yyrl4848 int - var yyrt4848 bool - if yyl4848 > cap(yyv4848) { - - yyrl4848, yyrt4848 = z.DecInferLen(yyl4848, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4848 { - if yyrl4848 <= cap(yyv4848) { - yyv4848 = yyv4848[:yyrl4848] - } else { - yyv4848 = make([]ResourceQuotaScope, yyrl4848) - } - } else { - yyv4848 = make([]ResourceQuotaScope, yyrl4848) - } - yyc4848 = true - yyrr4848 = len(yyv4848) - } else if yyl4848 != len(yyv4848) { - yyv4848 = yyv4848[:yyl4848] - yyc4848 = true - } - yyj4848 := 0 - for ; yyj4848 < yyrr4848; yyj4848++ { - yyh4848.ElemContainerState(yyj4848) - if r.TryDecodeAsNil() { - yyv4848[yyj4848] = "" - } else { - yyv4848[yyj4848] = ResourceQuotaScope(r.DecodeString()) - } - - } - if yyrt4848 { - for ; yyj4848 < yyl4848; yyj4848++ { - yyv4848 = append(yyv4848, "") - yyh4848.ElemContainerState(yyj4848) - if r.TryDecodeAsNil() { - yyv4848[yyj4848] = "" - } else { - yyv4848[yyj4848] = ResourceQuotaScope(r.DecodeString()) - } - - } - } - - } else { - yyj4848 := 0 - for ; !r.CheckBreak(); yyj4848++ { - - if yyj4848 >= len(yyv4848) { - yyv4848 = append(yyv4848, "") // var yyz4848 ResourceQuotaScope - yyc4848 = true - } - yyh4848.ElemContainerState(yyj4848) - if yyj4848 < len(yyv4848) { - if r.TryDecodeAsNil() { - yyv4848[yyj4848] = "" - } else { - yyv4848[yyj4848] = ResourceQuotaScope(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4848 < len(yyv4848) { - yyv4848 = yyv4848[:yyj4848] - yyc4848 = true - } else if yyj4848 == 0 && yyv4848 == nil { - yyv4848 = []ResourceQuotaScope{} - yyc4848 = true - } - } - yyh4848.End() - if yyc4848 { - *v = yyv4848 - } -} - -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 _, yyv4852 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4853 := &yyv4852 - yy4853.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 - - yyv4854 := *v - yyh4854, yyl4854 := z.DecSliceHelperStart() - var yyc4854 bool - if yyl4854 == 0 { - if yyv4854 == nil { - yyv4854 = []ResourceQuota{} - yyc4854 = true - } else if len(yyv4854) != 0 { - yyv4854 = yyv4854[:0] - yyc4854 = true - } - } else if yyl4854 > 0 { - var yyrr4854, yyrl4854 int - var yyrt4854 bool - if yyl4854 > cap(yyv4854) { - - yyrg4854 := len(yyv4854) > 0 - yyv24854 := yyv4854 - yyrl4854, yyrt4854 = z.DecInferLen(yyl4854, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4854 { - if yyrl4854 <= cap(yyv4854) { - yyv4854 = yyv4854[:yyrl4854] - } else { - yyv4854 = make([]ResourceQuota, yyrl4854) - } - } else { - yyv4854 = make([]ResourceQuota, yyrl4854) - } - yyc4854 = true - yyrr4854 = len(yyv4854) - if yyrg4854 { - copy(yyv4854, yyv24854) - } - } else if yyl4854 != len(yyv4854) { - yyv4854 = yyv4854[:yyl4854] - yyc4854 = true - } - yyj4854 := 0 - for ; yyj4854 < yyrr4854; yyj4854++ { - yyh4854.ElemContainerState(yyj4854) - if r.TryDecodeAsNil() { - yyv4854[yyj4854] = ResourceQuota{} - } else { - yyv4855 := &yyv4854[yyj4854] - yyv4855.CodecDecodeSelf(d) - } - - } - if yyrt4854 { - for ; yyj4854 < yyl4854; yyj4854++ { - yyv4854 = append(yyv4854, ResourceQuota{}) - yyh4854.ElemContainerState(yyj4854) - if r.TryDecodeAsNil() { - yyv4854[yyj4854] = ResourceQuota{} - } else { - yyv4856 := &yyv4854[yyj4854] - yyv4856.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4854 := 0 - for ; !r.CheckBreak(); yyj4854++ { - - if yyj4854 >= len(yyv4854) { - yyv4854 = append(yyv4854, ResourceQuota{}) // var yyz4854 ResourceQuota - yyc4854 = true - } - yyh4854.ElemContainerState(yyj4854) - if yyj4854 < len(yyv4854) { - if r.TryDecodeAsNil() { - yyv4854[yyj4854] = ResourceQuota{} - } else { - yyv4857 := &yyv4854[yyj4854] - yyv4857.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4854 < len(yyv4854) { - yyv4854 = yyv4854[:yyj4854] - yyc4854 = true - } else if yyj4854 == 0 && yyv4854 == nil { - yyv4854 = []ResourceQuota{} - yyc4854 = true - } - } - yyh4854.End() - if yyc4854 { - *v = yyv4854 - } -} - -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 yyk4858, yyv4858 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4859 := z.EncBinary() - _ = yym4859 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4858)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4858 == nil { - r.EncodeNil() - } else { - yym4860 := z.EncBinary() - _ = yym4860 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4858)) - } - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4861 := *v - yyl4861 := r.ReadMapStart() - yybh4861 := z.DecBasicHandle() - if yyv4861 == nil { - yyrl4861, _ := z.DecInferLen(yyl4861, yybh4861.MaxInitLen, 40) - yyv4861 = make(map[string][]uint8, yyrl4861) - *v = yyv4861 - } - var yymk4861 string - var yymv4861 []uint8 - var yymg4861 bool - if yybh4861.MapValueReset { - yymg4861 = true - } - if yyl4861 > 0 { - for yyj4861 := 0; yyj4861 < yyl4861; yyj4861++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4861 = "" - } else { - yymk4861 = string(r.DecodeString()) - } - - if yymg4861 { - yymv4861 = yyv4861[yymk4861] - } else { - yymv4861 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4861 = nil - } else { - yyv4863 := &yymv4861 - yym4864 := z.DecBinary() - _ = yym4864 - if false { - } else { - *yyv4863 = r.DecodeBytes(*(*[]byte)(yyv4863), false, false) - } - } - - if yyv4861 != nil { - yyv4861[yymk4861] = yymv4861 - } - } - } else if yyl4861 < 0 { - for yyj4861 := 0; !r.CheckBreak(); yyj4861++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4861 = "" - } else { - yymk4861 = string(r.DecodeString()) - } - - if yymg4861 { - yymv4861 = yyv4861[yymk4861] - } else { - yymv4861 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4861 = nil - } else { - yyv4866 := &yymv4861 - yym4867 := z.DecBinary() - _ = yym4867 - if false { - } else { - *yyv4866 = r.DecodeBytes(*(*[]byte)(yyv4866), false, false) - } - } - - if yyv4861 != nil { - yyv4861[yymk4861] = yymv4861 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4868 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4869 := &yyv4868 - yy4869.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4870 := *v - yyh4870, yyl4870 := z.DecSliceHelperStart() - var yyc4870 bool - if yyl4870 == 0 { - if yyv4870 == nil { - yyv4870 = []Secret{} - yyc4870 = true - } else if len(yyv4870) != 0 { - yyv4870 = yyv4870[:0] - yyc4870 = true - } - } else if yyl4870 > 0 { - var yyrr4870, yyrl4870 int - var yyrt4870 bool - if yyl4870 > cap(yyv4870) { - - yyrg4870 := len(yyv4870) > 0 - yyv24870 := yyv4870 - yyrl4870, yyrt4870 = z.DecInferLen(yyl4870, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4870 { - if yyrl4870 <= cap(yyv4870) { - yyv4870 = yyv4870[:yyrl4870] - } else { - yyv4870 = make([]Secret, yyrl4870) - } - } else { - yyv4870 = make([]Secret, yyrl4870) - } - yyc4870 = true - yyrr4870 = len(yyv4870) - if yyrg4870 { - copy(yyv4870, yyv24870) - } - } else if yyl4870 != len(yyv4870) { - yyv4870 = yyv4870[:yyl4870] - yyc4870 = true - } - yyj4870 := 0 - for ; yyj4870 < yyrr4870; yyj4870++ { - yyh4870.ElemContainerState(yyj4870) - if r.TryDecodeAsNil() { - yyv4870[yyj4870] = Secret{} - } else { - yyv4871 := &yyv4870[yyj4870] - yyv4871.CodecDecodeSelf(d) - } - - } - if yyrt4870 { - for ; yyj4870 < yyl4870; yyj4870++ { - yyv4870 = append(yyv4870, Secret{}) - yyh4870.ElemContainerState(yyj4870) - if r.TryDecodeAsNil() { - yyv4870[yyj4870] = Secret{} - } else { - yyv4872 := &yyv4870[yyj4870] - yyv4872.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4870 := 0 - for ; !r.CheckBreak(); yyj4870++ { - - if yyj4870 >= len(yyv4870) { - yyv4870 = append(yyv4870, Secret{}) // var yyz4870 Secret - yyc4870 = true - } - yyh4870.ElemContainerState(yyj4870) - if yyj4870 < len(yyv4870) { - if r.TryDecodeAsNil() { - yyv4870[yyj4870] = Secret{} - } else { - yyv4873 := &yyv4870[yyj4870] - yyv4873.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4870 < len(yyv4870) { - yyv4870 = yyv4870[:yyj4870] - yyc4870 = true - } else if yyj4870 == 0 && yyv4870 == nil { - yyv4870 = []Secret{} - yyc4870 = true - } - } - yyh4870.End() - if yyc4870 { - *v = yyv4870 - } -} - -func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4874 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4875 := &yyv4874 - yy4875.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4876 := *v - yyh4876, yyl4876 := z.DecSliceHelperStart() - var yyc4876 bool - if yyl4876 == 0 { - if yyv4876 == nil { - yyv4876 = []ConfigMap{} - yyc4876 = true - } else if len(yyv4876) != 0 { - yyv4876 = yyv4876[:0] - yyc4876 = true - } - } else if yyl4876 > 0 { - var yyrr4876, yyrl4876 int - var yyrt4876 bool - if yyl4876 > cap(yyv4876) { - - yyrg4876 := len(yyv4876) > 0 - yyv24876 := yyv4876 - yyrl4876, yyrt4876 = z.DecInferLen(yyl4876, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4876 { - if yyrl4876 <= cap(yyv4876) { - yyv4876 = yyv4876[:yyrl4876] - } else { - yyv4876 = make([]ConfigMap, yyrl4876) - } - } else { - yyv4876 = make([]ConfigMap, yyrl4876) - } - yyc4876 = true - yyrr4876 = len(yyv4876) - if yyrg4876 { - copy(yyv4876, yyv24876) - } - } else if yyl4876 != len(yyv4876) { - yyv4876 = yyv4876[:yyl4876] - yyc4876 = true - } - yyj4876 := 0 - for ; yyj4876 < yyrr4876; yyj4876++ { - yyh4876.ElemContainerState(yyj4876) - if r.TryDecodeAsNil() { - yyv4876[yyj4876] = ConfigMap{} - } else { - yyv4877 := &yyv4876[yyj4876] - yyv4877.CodecDecodeSelf(d) - } - - } - if yyrt4876 { - for ; yyj4876 < yyl4876; yyj4876++ { - yyv4876 = append(yyv4876, ConfigMap{}) - yyh4876.ElemContainerState(yyj4876) - if r.TryDecodeAsNil() { - yyv4876[yyj4876] = ConfigMap{} - } else { - yyv4878 := &yyv4876[yyj4876] - yyv4878.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4876 := 0 - for ; !r.CheckBreak(); yyj4876++ { - - if yyj4876 >= len(yyv4876) { - yyv4876 = append(yyv4876, ConfigMap{}) // var yyz4876 ConfigMap - yyc4876 = true - } - yyh4876.ElemContainerState(yyj4876) - if yyj4876 < len(yyv4876) { - if r.TryDecodeAsNil() { - yyv4876[yyj4876] = ConfigMap{} - } else { - yyv4879 := &yyv4876[yyj4876] - yyv4879.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4876 < len(yyv4876) { - yyv4876 = yyv4876[:yyj4876] - yyc4876 = true - } else if yyj4876 == 0 && yyv4876 == nil { - yyv4876 = []ConfigMap{} - yyc4876 = true - } - } - yyh4876.End() - if yyc4876 { - *v = yyv4876 - } -} - -func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4880 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4881 := &yyv4880 - yy4881.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4882 := *v - yyh4882, yyl4882 := z.DecSliceHelperStart() - var yyc4882 bool - if yyl4882 == 0 { - if yyv4882 == nil { - yyv4882 = []ComponentCondition{} - yyc4882 = true - } else if len(yyv4882) != 0 { - yyv4882 = yyv4882[:0] - yyc4882 = true - } - } else if yyl4882 > 0 { - var yyrr4882, yyrl4882 int - var yyrt4882 bool - if yyl4882 > cap(yyv4882) { - - yyrg4882 := len(yyv4882) > 0 - yyv24882 := yyv4882 - yyrl4882, yyrt4882 = z.DecInferLen(yyl4882, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4882 { - if yyrl4882 <= cap(yyv4882) { - yyv4882 = yyv4882[:yyrl4882] - } else { - yyv4882 = make([]ComponentCondition, yyrl4882) - } - } else { - yyv4882 = make([]ComponentCondition, yyrl4882) - } - yyc4882 = true - yyrr4882 = len(yyv4882) - if yyrg4882 { - copy(yyv4882, yyv24882) - } - } else if yyl4882 != len(yyv4882) { - yyv4882 = yyv4882[:yyl4882] - yyc4882 = true - } - yyj4882 := 0 - for ; yyj4882 < yyrr4882; yyj4882++ { - yyh4882.ElemContainerState(yyj4882) - if r.TryDecodeAsNil() { - yyv4882[yyj4882] = ComponentCondition{} - } else { - yyv4883 := &yyv4882[yyj4882] - yyv4883.CodecDecodeSelf(d) - } - - } - if yyrt4882 { - for ; yyj4882 < yyl4882; yyj4882++ { - yyv4882 = append(yyv4882, ComponentCondition{}) - yyh4882.ElemContainerState(yyj4882) - if r.TryDecodeAsNil() { - yyv4882[yyj4882] = ComponentCondition{} - } else { - yyv4884 := &yyv4882[yyj4882] - yyv4884.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4882 := 0 - for ; !r.CheckBreak(); yyj4882++ { - - if yyj4882 >= len(yyv4882) { - yyv4882 = append(yyv4882, ComponentCondition{}) // var yyz4882 ComponentCondition - yyc4882 = true - } - yyh4882.ElemContainerState(yyj4882) - if yyj4882 < len(yyv4882) { - if r.TryDecodeAsNil() { - yyv4882[yyj4882] = ComponentCondition{} - } else { - yyv4885 := &yyv4882[yyj4882] - yyv4885.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4882 < len(yyv4882) { - yyv4882 = yyv4882[:yyj4882] - yyc4882 = true - } else if yyj4882 == 0 && yyv4882 == nil { - yyv4882 = []ComponentCondition{} - yyc4882 = true - } - } - yyh4882.End() - if yyc4882 { - *v = yyv4882 - } -} - -func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4886 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4887 := &yyv4886 - yy4887.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4888 := *v - yyh4888, yyl4888 := z.DecSliceHelperStart() - var yyc4888 bool - if yyl4888 == 0 { - if yyv4888 == nil { - yyv4888 = []ComponentStatus{} - 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) { - - yyrg4888 := len(yyv4888) > 0 - yyv24888 := yyv4888 - yyrl4888, yyrt4888 = z.DecInferLen(yyl4888, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4888 { - if yyrl4888 <= cap(yyv4888) { - yyv4888 = yyv4888[:yyrl4888] - } else { - yyv4888 = make([]ComponentStatus, yyrl4888) - } - } else { - yyv4888 = make([]ComponentStatus, yyrl4888) - } - yyc4888 = true - yyrr4888 = len(yyv4888) - if yyrg4888 { - copy(yyv4888, yyv24888) - } - } else if yyl4888 != len(yyv4888) { - yyv4888 = yyv4888[:yyl4888] - yyc4888 = true - } - yyj4888 := 0 - for ; yyj4888 < yyrr4888; yyj4888++ { - yyh4888.ElemContainerState(yyj4888) - if r.TryDecodeAsNil() { - yyv4888[yyj4888] = ComponentStatus{} - } else { - yyv4889 := &yyv4888[yyj4888] - yyv4889.CodecDecodeSelf(d) - } - - } - if yyrt4888 { - for ; yyj4888 < yyl4888; yyj4888++ { - yyv4888 = append(yyv4888, ComponentStatus{}) - yyh4888.ElemContainerState(yyj4888) - if r.TryDecodeAsNil() { - yyv4888[yyj4888] = ComponentStatus{} - } else { - yyv4890 := &yyv4888[yyj4888] - yyv4890.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4888 := 0 - for ; !r.CheckBreak(); yyj4888++ { - - if yyj4888 >= len(yyv4888) { - yyv4888 = append(yyv4888, ComponentStatus{}) // var yyz4888 ComponentStatus - yyc4888 = true - } - yyh4888.ElemContainerState(yyj4888) - if yyj4888 < len(yyv4888) { - if r.TryDecodeAsNil() { - yyv4888[yyj4888] = ComponentStatus{} - } else { - yyv4891 := &yyv4888[yyj4888] - yyv4891.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4888 < len(yyv4888) { - yyv4888 = yyv4888[:yyj4888] - yyc4888 = true - } else if yyj4888 == 0 && yyv4888 == nil { - yyv4888 = []ComponentStatus{} - yyc4888 = true - } - } - yyh4888.End() - if yyc4888 { - *v = yyv4888 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/api/types.go b/staging/src/k8s.io/client-go/pkg/api/types.go index 21f2db5dd6a..770f6a42f49 100644 --- a/staging/src/k8s.io/client-go/pkg/api/types.go +++ b/staging/src/k8s.io/client-go/pkg/api/types.go @@ -63,7 +63,7 @@ type ObjectMeta struct { // automatically. Name is primarily intended for creation idempotence and configuration // definition. // +optional - Name string `json:"name,omitempty"` + Name string // GenerateName indicates that the name should be made unique by the server prior to persisting // it. A non-empty value for the field indicates the name will be made unique (and the name @@ -77,42 +77,42 @@ type ObjectMeta struct { // 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"` + GenerateName string // 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"` + Namespace string // SelfLink is a URL representing this object. // +optional - SelfLink string `json:"selfLink,omitempty"` + SelfLink string // 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"` + UID types.UID // 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"` + ResourceVersion string // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. // +optional - Generation int64 `json:"generation,omitempty"` + Generation int64 // 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 metav1.Time `json:"creationTimestamp,omitempty"` + CreationTimestamp metav1.Time // 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 @@ -132,12 +132,12 @@ type ObjectMeta struct { // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - DeletionTimestamp *metav1.Time `json:"deletionTimestamp,omitempty"` + DeletionTimestamp *metav1.Time // 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"` + DeletionGracePeriodSeconds *int64 // Labels are key value pairs that may be used to scope and select individual resources. // Label keys are of the form: @@ -149,34 +149,34 @@ type ObjectMeta struct { // 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"` + Labels map[string]string // 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"` + Annotations map[string]string // 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 []metav1.OwnerReference `json:"ownerReferences,omitempty"` + OwnerReferences []metav1.OwnerReference // 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"` + Finalizers []string // 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"` + ClusterName string } const ( @@ -196,12 +196,12 @@ const ( type Volume struct { // Required: This must be a DNS_LABEL. Each volume in a pod must have // a unique name. - Name string `json:"name"` + Name string // 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"` + VolumeSource } // VolumeSource represents the source location of a volume to mount. @@ -215,82 +215,82 @@ 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"` + HostPath *HostPathVolumeSource // EmptyDir represents a temporary directory that shares a pod's lifetime. // +optional - EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty"` + EmptyDir *EmptyDirVolumeSource // 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"` + GCEPersistentDisk *GCEPersistentDiskVolumeSource // 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"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource // GitRepo represents a git repository at a particular revision. // +optional - GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty"` + GitRepo *GitRepoVolumeSource // Secret represents a secret that should populate this volume. // +optional - Secret *SecretVolumeSource `json:"secret,omitempty"` + Secret *SecretVolumeSource // NFS represents an NFS mount on the host that shares a pod's lifetime // +optional - NFS *NFSVolumeSource `json:"nfs,omitempty"` + NFS *NFSVolumeSource // 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"` + ISCSI *ISCSIVolumeSource // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime // +optional - Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` + Glusterfs *GlusterfsVolumeSource // PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace // +optional - PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` + PersistentVolumeClaim *PersistentVolumeClaimVolumeSource // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime // +optional - RBD *RBDVolumeSource `json:"rbd,omitempty"` + RBD *RBDVolumeSource // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime // +optional - Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` + Quobyte *QuobyteVolumeSource // 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"` + FlexVolume *FlexVolumeSource // Cinder represents a cinder volume attached and mounted on kubelets host machine // +optional - Cinder *CinderVolumeSource `json:"cinder,omitempty"` + Cinder *CinderVolumeSource // CephFS represents a Cephfs mount on the host that shares a pod's lifetime // +optional - CephFS *CephFSVolumeSource `json:"cephfs,omitempty"` + CephFS *CephFSVolumeSource // 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"` + Flocker *FlockerVolumeSource // DownwardAPI represents metadata about the pod that should populate this volume // +optional - DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"` + DownwardAPI *DownwardAPIVolumeSource // 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"` + FC *FCVolumeSource // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. // +optional - AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` + AzureFile *AzureFileVolumeSource // ConfigMap represents a configMap that should populate this volume // +optional - ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` + ConfigMap *ConfigMapVolumeSource // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine // +optional - VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSource // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. // +optional - AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` + AzureDisk *AzureDiskVolumeSource // PhotonPersistentDisk represents a Photon Controller persistent disk attached and mounted on kubelets host machine - PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource } // Similar to VolumeSource but meant for the administrator who creates PVs. @@ -299,106 +299,106 @@ 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"` + GCEPersistentDisk *GCEPersistentDiskVolumeSource // 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"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource // 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"` + HostPath *HostPathVolumeSource // Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod // +optional - Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` + Glusterfs *GlusterfsVolumeSource // NFS represents an NFS mount on the host that shares a pod's lifetime // +optional - NFS *NFSVolumeSource `json:"nfs,omitempty"` + NFS *NFSVolumeSource // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime // +optional - RBD *RBDVolumeSource `json:"rbd,omitempty"` + RBD *RBDVolumeSource // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime // +optional - Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` + Quobyte *QuobyteVolumeSource // 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"` + ISCSI *ISCSIVolumeSource // 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"` + FlexVolume *FlexVolumeSource // Cinder represents a cinder volume attached and mounted on kubelets host machine // +optional - Cinder *CinderVolumeSource `json:"cinder,omitempty"` + Cinder *CinderVolumeSource // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime // +optional - CephFS *CephFSVolumeSource `json:"cephfs,omitempty"` + CephFS *CephFSVolumeSource // 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"` + FC *FCVolumeSource // 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"` + Flocker *FlockerVolumeSource // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. // +optional - AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` + AzureFile *AzureFileVolumeSource // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine // +optional - VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSource // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. // +optional - AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` + AzureDisk *AzureDiskVolumeSource // PhotonPersistentDisk represents a Photon Controller persistent disk attached and mounted on kubelets host machine - PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource } type PersistentVolumeClaimVolumeSource struct { // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume - ClaimName string `json:"claimName"` + ClaimName string // Optional: Defaults to false (read/write). ReadOnly here // will force the ReadOnly setting in VolumeMounts // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // +genclient=true // +nonNamespaced=true type PersistentVolume struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta //Spec defines a persistent volume owned by the cluster // +optional - Spec PersistentVolumeSpec `json:"spec,omitempty"` + Spec PersistentVolumeSpec // Status represents the current information about persistent volume. // +optional - Status PersistentVolumeStatus `json:"status,omitempty"` + Status PersistentVolumeStatus } type PersistentVolumeSpec struct { // Resources represents the actual resources of the volume - Capacity ResourceList `json:"capacity"` + Capacity ResourceList // Source represents the location and type of a volume to mount. - PersistentVolumeSource `json:",inline"` + PersistentVolumeSource // AccessModes contains all ways the volume can be mounted // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + AccessModes []PersistentVolumeAccessMode // 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"` + ClaimRef *ObjectReference // Optional: what happens to a persistent volume when released from its claim. // +optional - PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"` + PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy } // PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes @@ -419,44 +419,44 @@ 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"` + Phase PersistentVolumePhase // A human-readable message indicating details about why the volume is in this state. // +optional - Message string `json:"message,omitempty"` + Message string // 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"` + Reason string } type PersistentVolumeList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` - Items []PersistentVolume `json:"items"` + metav1.ListMeta + Items []PersistentVolume } // +genclient=true // PersistentVolumeClaim is a user's request for and claim to a persistent volume type PersistentVolumeClaim struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the volume requested by a pod author // +optional - Spec PersistentVolumeClaimSpec `json:"spec,omitempty"` + Spec PersistentVolumeClaimSpec // Status represents the current information about a claim // +optional - Status PersistentVolumeClaimStatus `json:"status,omitempty"` + Status PersistentVolumeClaimStatus } type PersistentVolumeClaimList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` - Items []PersistentVolumeClaim `json:"items"` + metav1.ListMeta + Items []PersistentVolumeClaim } // PersistentVolumeClaimSpec describes the common attributes of storage devices @@ -464,30 +464,30 @@ type PersistentVolumeClaimList struct { type PersistentVolumeClaimSpec struct { // Contains the types of access modes required // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + AccessModes []PersistentVolumeAccessMode // A label query over volumes to consider for binding. This selector is // ignored when VolumeName is set // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // Resources represents the minimum resources required // +optional - Resources ResourceRequirements `json:"resources,omitempty"` + Resources ResourceRequirements // 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"` + VolumeName string } type PersistentVolumeClaimStatus struct { // Phase represents the current phase of PersistentVolumeClaim // +optional - Phase PersistentVolumeClaimPhase `json:"phase,omitempty"` + Phase PersistentVolumeClaimPhase // AccessModes contains all ways the volume backing the PVC can be mounted // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` + AccessModes []PersistentVolumeAccessMode // Represents the actual resources of the underlying volume // +optional - Capacity ResourceList `json:"capacity,omitempty"` + Capacity ResourceList } type PersistentVolumeAccessMode string @@ -535,7 +535,7 @@ const ( // Represents a host path mapped into a pod. // Host path volumes do not support ownership management or SELinux relabeling. type HostPathVolumeSource struct { - Path string `json:"path"` + Path string } // Represents an empty directory for a pod. @@ -548,7 +548,7 @@ type EmptyDirVolumeSource struct { // 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"` + Medium StorageMedium } // StorageMedium defines ways that storage can be allocated to a volume. @@ -577,22 +577,22 @@ const ( // PDs support ownership management and SELinux relabeling. type GCEPersistentDiskVolumeSource struct { // Unique name of the PD resource. Used to identify the disk in GCE - PDName string `json:"pdName"` + PDName string // 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"` + FSType string // 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"` + Partition int32 // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents an ISCSI disk. @@ -602,26 +602,26 @@ 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"` + TargetPortal string // Required: target iSCSI Qualified Name // +optional - IQN string `json:"iqn,omitempty"` + IQN string // Required: iSCSI target lun number // +optional - Lun int32 `json:"lun,omitempty"` + Lun int32 // Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. // +optional - ISCSIInterface string `json:"iscsiInterface,omitempty"` + ISCSIInterface string // 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"` + FSType string // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a Fibre Channel volume. @@ -629,45 +629,45 @@ type ISCSIVolumeSource struct { // Fibre Channel volumes support ownership management and SELinux relabeling. type FCVolumeSource struct { // Required: FC target worldwide names (WWNs) - TargetWWNs []string `json:"targetWWNs"` + TargetWWNs []string // Required: FC target lun number - Lun *int32 `json:"lun"` + Lun *int32 // 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"` + FSType string // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // 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. type FlexVolumeSource struct { // Driver is the name of the driver to use for this volume. - Driver string `json:"driver"` + Driver string // 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"` + FSType string // 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"` + SecretRef *LocalObjectReference // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool // Optional: Extra driver options if any. // +optional - Options map[string]string `json:"options,omitempty"` + Options map[string]string } // Represents a Persistent Disk resource in AWS. @@ -678,22 +678,22 @@ type FlexVolumeSource struct { // ownership management and SELinux relabeling. type AWSElasticBlockStoreVolumeSource struct { // Unique id of the persistent disk resource. Used to identify the disk in AWS - VolumeID string `json:"volumeID"` + VolumeID string // 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"` + FSType string // 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"` + Partition int32 // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a volume that is populated with the contents of a git repository. @@ -701,16 +701,16 @@ type AWSElasticBlockStoreVolumeSource struct { // Git repo volumes support SELinux relabeling. type GitRepoVolumeSource struct { // Repository URL - Repository string `json:"repository"` + Repository string // Commit hash, this is optional // +optional - Revision string `json:"revision,omitempty"` + Revision string // 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"` + Directory string // TODO: Consider credentials here. } @@ -722,7 +722,7 @@ type GitRepoVolumeSource struct { type SecretVolumeSource struct { // Name of the secret in the pod's namespace to use. // +optional - SecretName string `json:"secretName,omitempty"` + SecretName string // 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 @@ -731,29 +731,29 @@ type SecretVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. // +optional - Items []KeyToPath `json:"items,omitempty"` + Items []KeyToPath // 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"` + DefaultMode *int32 } // Represents an NFS mount that lasts the lifetime of a pod. // NFS volumes do not support ownership management or SELinux relabeling. type NFSVolumeSource struct { // Server is the hostname or IP address of the NFS server - Server string `json:"server"` + Server string // Path is the exported NFS share - Path string `json:"path"` + Path string // 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"` + ReadOnly bool } // Represents a Quobyte mount that lasts the lifetime of a pod. @@ -762,71 +762,71 @@ type QuobyteVolumeSource struct { // Registry represents a single or multiple Quobyte Registry services // specified as a string as host:port pair (multiple entries are separated with commas) // which acts as the central registry for volumes - Registry string `json:"registry"` + Registry string // Volume is a string that references an already created Quobyte volume by name. - Volume string `json:"volume"` + Volume string // Defaults to false (read/write). ReadOnly here will force // the Quobyte to be mounted with read-only permissions // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool // User to map volume access to // Defaults to the root user // +optional - User string `json:"user,omitempty"` + User string // Group to map volume access to // Default is no group // +optional - Group string `json:"group,omitempty"` + Group string } // Represents a Glusterfs mount that lasts the lifetime of a pod. // Glusterfs volumes do not support ownership management or SELinux relabeling. type GlusterfsVolumeSource struct { // Required: EndpointsName is the endpoint name that details Glusterfs topology - EndpointsName string `json:"endpoints"` + EndpointsName string // Required: Path is the Glusterfs volume path - Path string `json:"path"` + Path string // 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"` + ReadOnly bool } // Represents a Rados Block Device mount that lasts the lifetime of a pod. // RBD volumes support ownership management and SELinux relabeling. type RBDVolumeSource struct { // Required: CephMonitors is a collection of Ceph monitors - CephMonitors []string `json:"monitors"` + CephMonitors []string // Required: RBDImage is the rados image name - RBDImage string `json:"image"` + RBDImage string // 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"` + FSType string // Optional: RadosPool is the rados pool name,default is rbd // +optional - RBDPool string `json:"pool,omitempty"` + RBDPool string // Optional: RBDUser is the rados user name, default is admin // +optional - RadosUser string `json:"user,omitempty"` + RadosUser string // Optional: Keyring is the path to key ring for RBDUser, default is /etc/ceph/keyring // +optional - Keyring string `json:"keyring,omitempty"` + Keyring string // Optional: SecretRef is name of the authentication secret for RBDUser, default is nil. // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty"` + SecretRef *LocalObjectReference // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a cinder volume resource in Openstack. A Cinder volume @@ -835,39 +835,39 @@ type RBDVolumeSource struct { // management and SELinux relabeling. type CinderVolumeSource struct { // Unique id of the volume used to identify the cinder volume - VolumeID string `json:"volumeID"` + VolumeID string // 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"` + FSType string // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a Ceph Filesystem mount that lasts the lifetime of a pod // Cephfs volumes do not support ownership management or SELinux relabeling. type CephFSVolumeSource struct { // Required: Monitors is a collection of Ceph monitors - Monitors []string `json:"monitors"` + Monitors []string // Optional: Used as the mounted root, rather than the full Ceph tree, default is / // +optional - Path string `json:"path,omitempty"` + Path string // Optional: User is the rados user name, default is admin // +optional - User string `json:"user,omitempty"` + User string // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret // +optional - SecretFile string `json:"secretFile,omitempty"` + SecretFile string // Optional: SecretRef is reference to the authentication secret for User, default is empty. // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty"` + SecretRef *LocalObjectReference // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a Flocker volume mounted by the Flocker agent. @@ -877,10 +877,10 @@ type FlockerVolumeSource struct { // Name of the dataset stored as metadata -> name on the dataset for Flocker // should be considered as deprecated // +optional - DatasetName string `json:"datasetName,omitempty"` + DatasetName string // UUID of the dataset. This is unique identifier of a Flocker dataset // +optional - DatasetUUID string `json:"datasetUUID,omitempty"` + DatasetUUID string } // Represents a volume containing downward API info. @@ -888,66 +888,66 @@ type FlockerVolumeSource struct { type DownwardAPIVolumeSource struct { // Items is a list of DownwardAPIVolume file // +optional - Items []DownwardAPIVolumeFile `json:"items,omitempty"` + Items []DownwardAPIVolumeFile // 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"` + DefaultMode *int32 } // Represents a single file containing information from the downward API type DownwardAPIVolumeFile struct { // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - Path string `json:"path"` + Path string // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. // +optional - FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty"` + FieldRef *ObjectFieldSelector // 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"` + ResourceFieldRef *ResourceFieldSelector // 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"` + Mode *int32 } // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. type AzureFileVolumeSource struct { // the name of secret that contains Azure Storage Account Name and Key - SecretName string `json:"secretName"` + SecretName string // Share Name - ShareName string `json:"shareName"` + ShareName string // Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool } // Represents a vSphere volume resource. type VsphereVirtualDiskVolumeSource struct { // Path that identifies vSphere volume vmdk - VolumePath string `json:"volumePath"` + VolumePath string // 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"` + FSType string } // Represents a Photon Controller persistent disk resource. type PhotonPersistentDiskVolumeSource struct { // ID that identifies Photon Controller persistent disk - PdID string `json:"pdID"` + PdID string // 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"` + FSType string } type AzureDataDiskCachingMode string @@ -961,21 +961,21 @@ const ( // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. type AzureDiskVolumeSource struct { // The Name of the data disk in the blob storage - DiskName string `json:"diskName"` + DiskName string // The URI the the data disk in the blob storage - DataDiskURI string `json:"diskURI"` + DataDiskURI string // Host Caching mode: None, Read Only, Read Write. // +optional - CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty"` + CachingMode *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"` + FSType *string // Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. // +optional - ReadOnly *bool `json:"readOnly,omitempty"` + ReadOnly *bool } // Adapts a ConfigMap into a volume. @@ -985,7 +985,7 @@ type AzureDiskVolumeSource struct { // the items element is populated with specific mappings of keys to paths. // ConfigMap volumes support ownership management and SELinux relabeling. type ConfigMapVolumeSource struct { - LocalObjectReference `json:",inline"` + LocalObjectReference // If unspecified, each key-value pair in the Data field of the referenced // ConfigMap will be projected into the volume as a file whose name is the // key and content is the value. If specified, the listed keys will be @@ -994,32 +994,32 @@ type ConfigMapVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. // +optional - Items []KeyToPath `json:"items,omitempty"` + Items []KeyToPath // 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"` + DefaultMode *int32 } // Maps a string key to a path within a volume. type KeyToPath struct { // The key to project. - Key string `json:"key"` + Key string // The relative path of the file to map the key to. // May not be an absolute path. // May not contain the path element '..'. // May not start with the string '..'. - Path string `json:"path"` + Path string // Optional: mode bits to use on this file, should be a value between 0 // and 0777. If not specified, the volume defaultMode will be used. // This might be in conflict with other options that affect the file // mode, like fsGroup, and the result can be other mode bits set. // +optional - Mode *int32 `json:"mode,omitempty"` + Mode *int32 } // ContainerPort represents a network port in a single container @@ -1027,40 +1027,40 @@ 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"` + Name string // 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"` + HostPort int32 // Required: This must be a valid port number, 0 < x < 65536. - ContainerPort int32 `json:"containerPort"` + ContainerPort int32 // Required: Supports "TCP" and "UDP". // +optional - Protocol Protocol `json:"protocol,omitempty"` + Protocol Protocol // Optional: What host IP to bind the external port to. // +optional - HostIP string `json:"hostIP,omitempty"` + HostIP string } // VolumeMount describes a mounting of a Volume within a container. type VolumeMount struct { // Required: This must match the Name of a Volume [above]. - Name string `json:"name"` + Name string // Optional: Defaults to false (read-write). // +optional - ReadOnly bool `json:"readOnly,omitempty"` + ReadOnly bool // Required. Must not contain ':'. - MountPath string `json:"mountPath"` + MountPath string // Path within the volume from which the container's volume should be mounted. // Defaults to "" (volume's root). // +optional - SubPath string `json:"subPath,omitempty"` + SubPath string } // EnvVar represents an environment variable present in a Container. type EnvVar struct { // Required: This must be a C_IDENTIFIER. - Name string `json:"name"` + Name string // Optional: no more than one of the following may be specified. // Optional: Defaults to ""; variable references $(VAR_NAME) are expanded // using the previous defined environment variables in the container and @@ -1070,10 +1070,10 @@ type EnvVar struct { // references will never be expanded, regardless of whether the variable // exists or not. // +optional - Value string `json:"value,omitempty"` + Value string // Optional: Specifies a source the value of this var should come from. // +optional - ValueFrom *EnvVarSource `json:"valueFrom,omitempty"` + ValueFrom *EnvVarSource } // EnvVarSource represents a source for the value of an EnvVar. @@ -1082,17 +1082,17 @@ 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"` + FieldRef *ObjectFieldSelector // 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"` + ResourceFieldRef *ResourceFieldSelector // Selects a key of a ConfigMap. // +optional - ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` + ConfigMapKeyRef *ConfigMapKeySelector // Selects a key of a secret in the pod's namespace. // +optional - SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"` + SecretKeyRef *SecretKeySelector } // ObjectFieldSelector selects an APIVersioned field of an object. @@ -1100,65 +1100,65 @@ type ObjectFieldSelector struct { // Required: Version of the schema the FieldPath is written in terms of. // If no value is specified, it will be defaulted to the APIVersion of the // enclosing object. - APIVersion string `json:"apiVersion"` + APIVersion string // Required: Path of the field to select in the specified API version - FieldPath string `json:"fieldPath"` + FieldPath string } // 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"` + ContainerName string // Required: resource to select - Resource string `json:"resource"` + Resource string // Specifies the output format of the exposed resources, defaults to "1" // +optional - Divisor resource.Quantity `json:"divisor,omitempty"` + Divisor resource.Quantity } // Selects a key from a ConfigMap. type ConfigMapKeySelector struct { // The ConfigMap to select from. - LocalObjectReference `json:",inline"` + LocalObjectReference // The key to select. - Key string `json:"key"` + Key string } // SecretKeySelector selects a key of a Secret. type SecretKeySelector struct { // The name of the secret in the pod's namespace to select from. - LocalObjectReference `json:",inline"` + LocalObjectReference // The key of the secret to select from. Must be a valid secret key. - Key string `json:"key"` + Key string } // HTTPHeader describes a custom header to be used in HTTP probes type HTTPHeader struct { // The header field name - Name string `json:"name"` + Name string // The header field value - Value string `json:"value"` + Value string } // 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"` + Path string // Required: Name or number of the port to access on the container. // +optional - Port intstr.IntOrString `json:"port,omitempty"` + Port intstr.IntOrString // 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"` + Host string // Optional: Scheme to use for connecting to the host, defaults to HTTP. // +optional - Scheme URIScheme `json:"scheme,omitempty"` + Scheme URIScheme // Optional: Custom headers to set in the request. HTTP allows repeated headers. // +optional - HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"` + HTTPHeaders []HTTPHeader } // URIScheme identifies the scheme used for connection to a host for Get actions @@ -1175,7 +1175,7 @@ const ( type TCPSocketAction struct { // Required: Port to connect to. // +optional - Port intstr.IntOrString `json:"port,omitempty"` + Port intstr.IntOrString } // ExecAction describes a "run in container" action. @@ -1185,30 +1185,30 @@ 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. // +optional - Command []string `json:"command,omitempty"` + Command []string } // Probe describes a health check to be performed against a container to determine whether it is // alive or ready to receive traffic. type Probe struct { // The action taken to determine the health of a container - Handler `json:",inline"` + Handler // Length of time before health checking is activated. In seconds. // +optional - InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"` + InitialDelaySeconds int32 // Length of time before health checking times out. In seconds. // +optional - TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"` + TimeoutSeconds int32 // How often (in seconds) to perform the probe. // +optional - PeriodSeconds int32 `json:"periodSeconds,omitempty"` + PeriodSeconds int32 // Minimum consecutive successes for the probe to be considered successful after having failed. // Must be 1 for liveness. // +optional - SuccessThreshold int32 `json:"successThreshold,omitempty"` + SuccessThreshold int32 // Minimum consecutive failures for the probe to be considered failed after having succeeded. // +optional - FailureThreshold int32 `json:"failureThreshold,omitempty"` + FailureThreshold int32 } // PullPolicy describes a policy for if/when to pull a container image @@ -1230,81 +1230,81 @@ type Capability string type Capabilities struct { // Added capabilities // +optional - Add []Capability `json:"add,omitempty"` + Add []Capability // Removed capabilities // +optional - Drop []Capability `json:"drop,omitempty"` + Drop []Capability } // ResourceRequirements describes the compute resource requirements. type ResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. // +optional - Limits ResourceList `json:"limits,omitempty"` + Limits ResourceList // 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"` + Requests ResourceList } // Container represents a single container that is expected to be run on the host. type Container struct { // Required: This must be a DNS_LABEL. Each container in a pod must // have a unique name. - Name string `json:"name"` + Name string // Required. - Image string `json:"image"` + Image string // Optional: The docker image's entrypoint is used if this is not provided; cannot be updated. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, // regardless of whether the variable exists or not. // +optional - Command []string `json:"command,omitempty"` + Command []string // 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"` + Args []string // Optional: Defaults to Docker's default. // +optional - WorkingDir string `json:"workingDir,omitempty"` + WorkingDir string // +optional - Ports []ContainerPort `json:"ports,omitempty"` + Ports []ContainerPort // +optional - Env []EnvVar `json:"env,omitempty"` + Env []EnvVar // Compute resource requirements. // +optional - Resources ResourceRequirements `json:"resources,omitempty"` + Resources ResourceRequirements // +optional - VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` + VolumeMounts []VolumeMount // +optional - LivenessProbe *Probe `json:"livenessProbe,omitempty"` + LivenessProbe *Probe // +optional - ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + ReadinessProbe *Probe // +optional - Lifecycle *Lifecycle `json:"lifecycle,omitempty"` + Lifecycle *Lifecycle // Required. // +optional - TerminationMessagePath string `json:"terminationMessagePath,omitempty"` + TerminationMessagePath string // Required: Policy for pulling images for this container - ImagePullPolicy PullPolicy `json:"imagePullPolicy"` + ImagePullPolicy PullPolicy // 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"` + SecurityContext *SecurityContext // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) // and shouldn't be used for general purpose containers. // +optional - Stdin bool `json:"stdin,omitempty"` + Stdin bool // +optional - StdinOnce bool `json:"stdinOnce,omitempty"` + StdinOnce bool // +optional - TTY bool `json:"tty,omitempty"` + TTY bool } // Handler defines a specific action that should be taken @@ -1313,14 +1313,14 @@ 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"` + Exec *ExecAction // HTTPGet specifies the http request to perform. // +optional - HTTPGet *HTTPGetAction `json:"httpGet,omitempty"` + HTTPGet *HTTPGetAction // TCPSocket specifies an action involving a TCP port. // TODO: implement a realistic TCP lifecycle hook // +optional - TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"` + TCPSocket *TCPSocketAction } // Lifecycle describes actions that the management system should take in response to container lifecycle @@ -1330,11 +1330,11 @@ 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"` + PostStart *Handler // 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"` + PreStop *Handler } // The below types are used by kube_client and api_server. @@ -1354,31 +1354,31 @@ const ( type ContainerStateWaiting struct { // A brief CamelCase string indicating details about why the container is in waiting state. // +optional - Reason string `json:"reason,omitempty"` + Reason string // A human-readable message indicating details about why the container is in waiting state. // +optional - Message string `json:"message,omitempty"` + Message string } type ContainerStateRunning struct { // +optional - StartedAt metav1.Time `json:"startedAt,omitempty"` + StartedAt metav1.Time } type ContainerStateTerminated struct { - ExitCode int32 `json:"exitCode"` + ExitCode int32 // +optional - Signal int32 `json:"signal,omitempty"` + Signal int32 // +optional - Reason string `json:"reason,omitempty"` + Reason string // +optional - Message string `json:"message,omitempty"` + Message string // +optional - StartedAt metav1.Time `json:"startedAt,omitempty"` + StartedAt metav1.Time // +optional - FinishedAt metav1.Time `json:"finishedAt,omitempty"` + FinishedAt metav1.Time // +optional - ContainerID string `json:"containerID,omitempty"` + ContainerID string } // ContainerState holds a possible state of container. @@ -1386,29 +1386,29 @@ type ContainerStateTerminated struct { // If none of them is specified, the default one is ContainerStateWaiting. type ContainerState struct { // +optional - Waiting *ContainerStateWaiting `json:"waiting,omitempty"` + Waiting *ContainerStateWaiting // +optional - Running *ContainerStateRunning `json:"running,omitempty"` + Running *ContainerStateRunning // +optional - Terminated *ContainerStateTerminated `json:"terminated,omitempty"` + Terminated *ContainerStateTerminated } type ContainerStatus struct { // Each container in a pod must have a unique name. - Name string `json:"name"` + Name string // +optional - State ContainerState `json:"state,omitempty"` + State ContainerState // +optional - LastTerminationState ContainerState `json:"lastState,omitempty"` + LastTerminationState ContainerState // Ready specifies whether the container has passed its readiness check. - Ready bool `json:"ready"` + Ready bool // Note that this is calculated from dead containers. But those containers are subject to // garbage collection. This value will get capped at 5 by GC. - RestartCount int32 `json:"restartCount"` - Image string `json:"image"` - ImageID string `json:"imageID"` + RestartCount int32 + Image string + ImageID string // +optional - ContainerID string `json:"containerID,omitempty"` + ContainerID string } // PodPhase is a label for the condition of a pod at the current time. @@ -1451,16 +1451,16 @@ const ( ) type PodCondition struct { - Type PodConditionType `json:"type"` - Status ConditionStatus `json:"status"` + Type PodConditionType + Status ConditionStatus // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` + LastProbeTime metav1.Time // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // +optional - Reason string `json:"reason,omitempty"` + Reason string // +optional - Message string `json:"message,omitempty"` + Message string } // RestartPolicy describes how the container should be restarted. @@ -1477,11 +1477,11 @@ const ( // PodList is a list of Pods. type PodList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Pod `json:"items"` + Items []Pod } // DNSPolicy defines how a pod's DNS will be configured. @@ -1503,30 +1503,30 @@ const ( // by the node selector terms. type NodeSelector struct { //Required. A list of node selector terms. The terms are ORed. - NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms"` + NodeSelectorTerms []NodeSelectorTerm } // A null or empty node selector term matches no objects. type NodeSelectorTerm struct { //Required. A list of node selector requirements. The requirements are ANDed. - MatchExpressions []NodeSelectorRequirement `json:"matchExpressions"` + MatchExpressions []NodeSelectorRequirement } // A node selector requirement is a selector that contains values, a key, and an operator // that relates the key and values. type NodeSelectorRequirement struct { // The label key that the selector applies to. - Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"` + Key string // Represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - Operator NodeSelectorOperator `json:"operator"` + Operator NodeSelectorOperator // An array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // the values array must be empty. If the operator is Gt or Lt, the values // array must have a single element, which will be interpreted as an integer. // This array is replaced during a strategic merge patch. // +optional - Values []string `json:"values,omitempty"` + Values []string } // A node selector operator is the set of operators that can be used in @@ -1546,13 +1546,13 @@ const ( type Affinity struct { // Describes node affinity scheduling rules for the pod. // +optional - NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"` + NodeAffinity *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"` + PodAffinity *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"` + PodAntiAffinity *PodAntiAffinity } // Pod affinity is a group of inter pod affinity scheduling rules. @@ -1566,7 +1566,7 @@ type PodAffinity struct { // 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"` + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm // If the affinity requirements specified by this field are not met at // scheduling time, the pod will not be scheduled onto the node. // If the affinity requirements specified by this field cease to be met @@ -1575,7 +1575,7 @@ type PodAffinity struct { // 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"` + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm // The scheduler will prefer to schedule pods to nodes that satisfy // the affinity expressions specified by this field, but it may choose // a node that violates one or more of the expressions. The node that is @@ -1586,7 +1586,7 @@ type PodAffinity struct { // "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"` + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm } // Pod anti affinity is a group of inter pod anti affinity scheduling rules. @@ -1600,7 +1600,7 @@ type PodAntiAffinity struct { // 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"` + // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm // If the anti-affinity requirements specified by this field are not met at // scheduling time, the pod will not be scheduled onto the node. // If the anti-affinity requirements specified by this field cease to be met @@ -1609,7 +1609,7 @@ type PodAntiAffinity struct { // 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"` + RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm // The scheduler will prefer to schedule pods to nodes that satisfy // the anti-affinity expressions specified by this field, but it may choose // a node that violates one or more of the expressions. The node that is @@ -1620,16 +1620,16 @@ type PodAntiAffinity struct { // "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"` + PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm } // The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) type WeightedPodAffinityTerm struct { // weight associated with matching the corresponding podAffinityTerm, // in the range 1-100. - Weight int32 `json:"weight"` + Weight int32 // Required. A pod affinity term, associated with the corresponding weight. - PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"` + PodAffinityTerm PodAffinityTerm } // Defines a set of pods (namely those matching the labelSelector @@ -1641,12 +1641,12 @@ type WeightedPodAffinityTerm struct { type PodAffinityTerm struct { // A label query over a set of resources, in this case pods. // +optional - LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` + LabelSelector *metav1.LabelSelector // namespaces specifies which namespaces the labelSelector applies to (matches against); // nil list means "this pod's namespace," empty list means "all namespaces" // The json tag here is not "omitempty" since we need to distinguish nil and empty. // See https://golang.org/pkg/encoding/json/#Marshal for more details. - Namespaces []string `json:"namespaces"` + Namespaces []string // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching // the labelSelector in the specified namespaces, where co-located is defined as running on a node // whose value of the label with key topologyKey matches that of any node on which any of the @@ -1655,7 +1655,7 @@ type PodAffinityTerm struct { // ("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"` + TopologyKey string } // Node affinity is a group of node affinity scheduling rules. @@ -1667,7 +1667,7 @@ type NodeAffinity struct { // 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"` + // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector // If the affinity requirements specified by this field are not met at // scheduling time, the pod will not be scheduled onto the node. @@ -1675,7 +1675,7 @@ type NodeAffinity struct { // 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"` + RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector // The scheduler will prefer to schedule pods to nodes that satisfy // the affinity expressions specified by this field, but it may choose // a node that violates one or more of the expressions. The node that is @@ -1686,30 +1686,30 @@ type NodeAffinity struct { // "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"` + PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm } // An empty preferred scheduling term matches all objects with implicit weight 0 // (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). type PreferredSchedulingTerm struct { // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - Weight int32 `json:"weight"` + Weight int32 // A node selector term, associated with the corresponding weight. - Preference NodeSelectorTerm `json:"preference"` + Preference NodeSelectorTerm } // The node this Taint is attached to has the effect "effect" on // any pod that that does not tolerate the Taint. type Taint struct { // Required. The taint key to be applied to a node. - Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"` + Key string // Required. The taint value corresponding to the taint key. // +optional - Value string `json:"value,omitempty"` + Value string // Required. The effect of the taint on pods // that do not tolerate the taint. // Valid effects are NoSchedule and PreferNoSchedule. - Effect TaintEffect `json:"effect"` + Effect TaintEffect } type TaintEffect string @@ -1743,21 +1743,21 @@ const ( type Toleration struct { // Required. Key is the taint key that the toleration applies to. // +optional - Key string `json:"key,omitempty" patchStrategy:"merge" patchMergeKey:"key"` + Key string // 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"` + Operator 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"` + Value string // 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"` + Effect TaintEffect // TODO: For forgiveness (#1574), we'd eventually add at least a grace period // here, and possibly an occurrence threshold and period. } @@ -1772,13 +1772,13 @@ const ( // PodSpec is a description of a pod type PodSpec struct { - Volumes []Volume `json:"volumes"` + Volumes []Volume // List of initialization containers belonging to the pod. - InitContainers []Container `json:"-"` + InitContainers []Container // List of containers belonging to the pod. - Containers []Container `json:"containers"` + Containers []Container // +optional - RestartPolicy RestartPolicy `json:"restartPolicy,omitempty"` + RestartPolicy RestartPolicy // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. // Value must be non-negative integer. The value zero indicates delete immediately. // If this value is nil, the default grace period will be used instead. @@ -1786,54 +1786,55 @@ 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. // +optional - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + TerminationGracePeriodSeconds *int64 // 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"` + ActiveDeadlineSeconds *int64 // Required: Set DNS policy. // +optional - DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty"` + DNSPolicy DNSPolicy // NodeSelector is a selector which must be true for the pod to fit on a node // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string // ServiceAccountName is the name of the ServiceAccount to use to run this pod // The pod will be allowed to use secrets referenced by the ServiceAccount - ServiceAccountName string `json:"serviceAccountName"` + ServiceAccountName string // 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"` + NodeName string // 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"` + SecurityContext *PodSecurityContext // 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"` + ImagePullSecrets []LocalObjectReference // 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"` + Hostname string // 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"` + Subdomain string // If specified, the pod's scheduling constraints - Affinity *Affinity `json:"affinity,omitempty"` + // +optional + Affinity *Affinity } // Sysctl defines a kernel parameter to be set type Sysctl struct { // Name of a property to set - Name string `json:"name"` + Name string // Value of a property to set - Value string `json:"value"` + Value string } // PodSecurityContext holds pod-level security attributes and common container settings. @@ -1845,31 +1846,31 @@ type PodSecurityContext struct { // Optional: Default to false // +k8s:conversion-gen=false // +optional - HostNetwork bool `json:"hostNetwork,omitempty"` + HostNetwork bool // Use the host's pid namespace. // Optional: Default to false. // +k8s:conversion-gen=false // +optional - HostPID bool `json:"hostPID,omitempty"` + HostPID bool // Use the host's ipc namespace. // Optional: Default to false. // +k8s:conversion-gen=false // +optional - HostIPC bool `json:"hostIPC,omitempty"` + HostIPC bool // 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"` + SELinuxOptions *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"` + RunAsUser *int64 // Indicates that the container must run as a non-root user. // If true, the Kubelet will validate the image at runtime to ensure that it // does not run as UID 0 (root) and fail to start the container if it does. @@ -1877,12 +1878,12 @@ type PodSecurityContext struct { // 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"` + RunAsNonRoot *bool // 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"` + SupplementalGroups []int64 // A special supplemental group that applies to all containers in a pod. // Some volume types allow the Kubelet to change the ownership of that volume // to be owned by the pod: @@ -1893,107 +1894,121 @@ type PodSecurityContext struct { // // If unset, the Kubelet will not modify the ownership and permissions of any volume. // +optional - FSGroup *int64 `json:"fsGroup,omitempty"` + FSGroup *int64 } +// PodQOSClass defines the supported qos classes of Pods. +type PodQOSClass string + +const ( + // PodQOSGuaranteed is the Guaranteed qos class. + PodQOSGuaranteed PodQOSClass = "Guaranteed" + // PodQOSBurstable is the Burstable qos class. + PodQOSBurstable PodQOSClass = "Burstable" + // PodQOSBestEffort is the BestEffort qos class. + PodQOSBestEffort PodQOSClass = "BestEffort" +) + // PodStatus represents information about the status of a pod. Status may trail the actual // state of a system. type PodStatus struct { // +optional - Phase PodPhase `json:"phase,omitempty"` + Phase PodPhase // +optional - Conditions []PodCondition `json:"conditions,omitempty"` + Conditions []PodCondition // A human readable message indicating details about why the pod is in this state. // +optional - Message string `json:"message,omitempty"` + Message string // A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' // +optional - Reason string `json:"reason,omitempty"` + Reason string // +optional - HostIP string `json:"hostIP,omitempty"` + HostIP string // +optional - PodIP string `json:"podIP,omitempty"` + PodIP string // 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 *metav1.Time `json:"startTime,omitempty"` + StartTime *metav1.Time + // +optional + QOSClass PodQOSClass `json:"qosClass,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://kubernetes.io/docs/user-guide/pod-states#container-statuses - InitContainerStatuses []ContainerStatus `json:"-"` + InitContainerStatuses []ContainerStatus // 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"` + ContainerStatuses []ContainerStatus } // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded type PodStatusResult struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Status represents the current information about a pod. This data may not be up // to date. // +optional - Status PodStatus `json:"status,omitempty"` + Status PodStatus } // +genclient=true // Pod is a collection of containers, used as either input (create, update) or as output (list, get). type Pod struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the behavior of a pod. // +optional - Spec PodSpec `json:"spec,omitempty"` + Spec PodSpec // Status represents the current information about a pod. This data may not be up // to date. // +optional - Status PodStatus `json:"status,omitempty"` + Status PodStatus } // 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"` + ObjectMeta // Spec defines the behavior of a pod. // +optional - Spec PodSpec `json:"spec,omitempty"` + Spec PodSpec } // +genclient=true // PodTemplate describes a template for creating copies of a predefined pod. type PodTemplate struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Template defines the pods that will be created from this pod template // +optional - Template PodTemplateSpec `json:"template,omitempty"` + Template PodTemplateSpec } // PodTemplateList is a list of PodTemplates. type PodTemplateList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []PodTemplate `json:"items"` + Items []PodTemplate } // ReplicationControllerSpec is the specification of a replication controller. @@ -2001,55 +2016,55 @@ type PodTemplateList struct { // a TemplateRef or a Template set. type ReplicationControllerSpec struct { // Replicas is the number of desired replicas. - Replicas int32 `json:"replicas"` + Replicas int32 // 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"` + MinReadySeconds int32 // Selector is a label query over pods that should match the Replicas count. - Selector map[string]string `json:"selector"` + Selector map[string]string // 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"` + //TemplateRef *ObjectReference // 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"` + Template *PodTemplateSpec } // ReplicationControllerStatus represents the current status of a replication // controller. type ReplicationControllerStatus struct { // Replicas is the number of actual replicas. - Replicas int32 `json:"replicas"` + Replicas int32 // The number of pods that have labels matching the labels of the pod template of the replication controller. // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + FullyLabeledReplicas int32 // The number of ready replicas for this replication controller. // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty"` + ReadyReplicas int32 // The number of available replicas (ready for at least minReadySeconds) for this replication controller. // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty"` + AvailableReplicas int32 // ObservedGeneration is the most recent generation observed by the controller. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 // Represents the latest available observations of a replication controller's current state. // +optional - Conditions []ReplicationControllerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` + Conditions []ReplicationControllerCondition } type ReplicationControllerConditionType string @@ -2065,45 +2080,45 @@ const ( // ReplicationControllerCondition describes the state of a replication controller at a certain point. type ReplicationControllerCondition struct { // Type of replication controller condition. - Type ReplicationControllerConditionType `json:"type"` + Type ReplicationControllerConditionType // Status of the condition, one of True, False, Unknown. - Status ConditionStatus `json:"status"` + Status ConditionStatus // The last time the condition transitioned from one status to another. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // The reason for the condition's last transition. // +optional - Reason string `json:"reason,omitempty"` + Reason string // A human readable message indicating details about the transition. // +optional - Message string `json:"message,omitempty"` + Message string } // +genclient=true // ReplicationController represents the configuration of a replication controller. type ReplicationController struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the desired behavior of this replication controller. // +optional - Spec ReplicationControllerSpec `json:"spec,omitempty"` + Spec ReplicationControllerSpec // 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"` + Status ReplicationControllerStatus } // ReplicationControllerList is a collection of replication controllers. type ReplicationControllerList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []ReplicationController `json:"items"` + Items []ReplicationController } const ( @@ -2114,11 +2129,11 @@ const ( // ServiceList holds a list of services. type ServiceList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Service `json:"items"` + Items []Service } // Session Affinity Type string @@ -2160,7 +2175,7 @@ type ServiceStatus struct { // LoadBalancer contains the current status of the load-balancer, // if one is present. // +optional - LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty"` + LoadBalancer LoadBalancerStatus } // LoadBalancerStatus represents the status of a load-balancer @@ -2168,7 +2183,7 @@ 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"` + Ingress []LoadBalancerIngress } // LoadBalancerIngress represents the status of a load-balancer ingress point: @@ -2177,12 +2192,12 @@ 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"` + IP string // Hostname is set for load-balancer ingress points that are DNS based // (typically AWS load-balancers) // +optional - Hostname string `json:"hostname,omitempty"` + Hostname string } // ServiceSpec describes the attributes that a user creates on a service @@ -2202,10 +2217,10 @@ type ServiceSpec struct { // to the clusterIP. // More info: http://kubernetes.io/docs/user-guide/services#overview // +optional - Type ServiceType `json:"type,omitempty"` + Type ServiceType // Required: The list of ports that are exposed by this service. - Ports []ServicePort `json:"ports"` + Ports []ServicePort // 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 @@ -2213,7 +2228,7 @@ type ServiceSpec struct { // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. // Ignored if type is ExternalName. // More info: http://kubernetes.io/docs/user-guide/services#overview - Selector map[string]string `json:"selector"` + Selector map[string]string // 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 @@ -2225,7 +2240,7 @@ type ServiceSpec struct { // type is ExternalName. // More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies // +optional - ClusterIP string `json:"clusterIP,omitempty"` + ClusterIP string // ExternalName is the external reference that kubedns or equivalent will // return as a CNAME record for this service. No proxying will be involved. @@ -2235,7 +2250,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"` + ExternalIPs []string // Only applies to Service Type: LoadBalancer // LoadBalancer will get created with the IP specified in this field. @@ -2243,17 +2258,17 @@ type ServiceSpec struct { // 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"` + LoadBalancerIP string // Optional: Supports "ClientIP" and "None". Used to maintain session affinity. // +optional - SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty"` + SessionAffinity ServiceAffinity // 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"` + LoadBalancerSourceRanges []string } type ServicePort struct { @@ -2261,13 +2276,13 @@ type ServicePort struct { // name of this port within the service. This must be a DNS_LABEL. // All ports within a ServiceSpec must have unique names. This maps to // the 'Name' field in EndpointPort objects. - Name string `json:"name"` + Name string // The IP protocol for this port. Supports "TCP" and "UDP". - Protocol Protocol `json:"protocol"` + Protocol Protocol // The port that will be exposed on the service. - Port int32 `json:"port"` + Port int32 // Optional: The target port on pods selected by this service. If this // is a string, it will be looked up as a named port in the target @@ -2275,11 +2290,11 @@ 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. - TargetPort intstr.IntOrString `json:"targetPort"` + TargetPort intstr.IntOrString // The port on each node on which this service is exposed. // Default is to auto-allocate a port if the ServiceType of this Service requires one. - NodePort int32 `json:"nodePort"` + NodePort int32 } // +genclient=true @@ -2288,17 +2303,17 @@ type ServicePort struct { // (for example 3306) that the proxy listens on, and the selector that determines which pods // will answer requests sent through the proxy. type Service struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the behavior of a service. // +optional - Spec ServiceSpec `json:"spec,omitempty"` + Spec ServiceSpec // Status represents the current status of a service. // +optional - Status ServiceStatus `json:"status,omitempty"` + Status ServiceStatus } // +genclient=true @@ -2308,27 +2323,27 @@ type Service struct { // * a principal that can be authenticated and authorized // * a set of secrets type ServiceAccount struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount - Secrets []ObjectReference `json:"secrets"` + Secrets []ObjectReference // 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"` + ImagePullSecrets []LocalObjectReference } // ServiceAccountList is a list of ServiceAccount objects type ServiceAccountList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []ServiceAccount `json:"items"` + Items []ServiceAccount } // +genclient=true @@ -2346,9 +2361,9 @@ type ServiceAccountList struct { // }, // ] type Endpoints struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // The set of all endpoints is the union of all subsets. Subsets []EndpointSubset @@ -2380,10 +2395,10 @@ type EndpointAddress struct { // Optional: Hostname of this endpoint // Meant to be used by DNS servers etc. // +optional - Hostname string `json:"hostname,omitempty"` + Hostname string // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. // +optional - NodeName *string `json:"nodeName,omitempty"` + NodeName *string // Optional: The kubernetes object related to the entry point. TargetRef *ObjectReference } @@ -2403,11 +2418,11 @@ type EndpointPort struct { // EndpointsList is a list of endpoints. type EndpointsList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Endpoints `json:"items"` + Items []Endpoints } // NodeSpec describes the attributes that a node is created with. @@ -2415,20 +2430,20 @@ 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"` + PodCIDR string // External ID of the node assigned by some machine database (e.g. a cloud provider) // +optional - ExternalID string `json:"externalID,omitempty"` + ExternalID string // ID of the node assigned by the cloud provider // Note: format is "://" // +optional - ProviderID string `json:"providerID,omitempty"` + ProviderID string // Unschedulable controls node schedulability of new pods. By default node is schedulable. // +optional - Unschedulable bool `json:"unschedulable,omitempty"` + Unschedulable bool } // DaemonEndpoint contains information about a single Daemon endpoint. @@ -2440,14 +2455,14 @@ type DaemonEndpoint struct { */ // Port number of the given endpoint. - Port int32 `json:"Port"` + Port int32 } // 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"` + KubeletEndpoint DaemonEndpoint } // NodeSystemInfo is a set of ids/uuids to uniquely identify the node. @@ -2455,61 +2470,61 @@ type NodeSystemInfo struct { // MachineID reported by the node. For unique machine identification // in the cluster this field is prefered. Learn more from man(5) // machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - MachineID string `json:"machineID"` + MachineID string // SystemUUID reported by the node. For unique machine identification // MachineID is prefered. This field is specific to Red Hat hosts // https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html - SystemUUID string `json:"systemUUID"` + SystemUUID string // Boot ID reported by the node. - BootID string `json:"bootID"` + BootID string // Kernel Version reported by the node. - KernelVersion string `json:"kernelVersion"` + KernelVersion string // OS Image reported by the node. - OSImage string `json:"osImage"` + OSImage string // ContainerRuntime Version reported by the node. - ContainerRuntimeVersion string `json:"containerRuntimeVersion"` + ContainerRuntimeVersion string // Kubelet Version reported by the node. - KubeletVersion string `json:"kubeletVersion"` + KubeletVersion string // KubeProxy Version reported by the node. - KubeProxyVersion string `json:"kubeProxyVersion"` + KubeProxyVersion string // The Operating System reported by the node - OperatingSystem string `json:"operatingSystem"` + OperatingSystem string // The Architecture reported by the node - Architecture string `json:"architecture"` + Architecture string } // 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"` + Capacity ResourceList // Allocatable represents the resources of a node that are available for scheduling. // +optional - Allocatable ResourceList `json:"allocatable,omitempty"` + Allocatable ResourceList // NodePhase is the current lifecycle phase of the node. // +optional - Phase NodePhase `json:"phase,omitempty"` + Phase NodePhase // Conditions is an array of current node conditions. // +optional - Conditions []NodeCondition `json:"conditions,omitempty"` + Conditions []NodeCondition // Queried from cloud provider, if available. // +optional - Addresses []NodeAddress `json:"addresses,omitempty"` + Addresses []NodeAddress // Endpoints of daemons running on the Node. // +optional - DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty"` + DaemonEndpoints NodeDaemonEndpoints // Set of ids/uuids to uniquely identify the node. // +optional - NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"` + NodeInfo NodeSystemInfo // List of container images on this node // +optional - Images []ContainerImage `json:"images,omitempty"` + Images []ContainerImage // List of attachable volumes in use (mounted) by the node. // +optional - VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty"` + VolumesInUse []UniqueVolumeName // List of volumes that are attached to the node. // +optional - VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"` + VolumesAttached []AttachedVolume } type UniqueVolumeName string @@ -2517,10 +2532,10 @@ type UniqueVolumeName string // AttachedVolume describes a volume attached to a node type AttachedVolume struct { // Name of the attached volume - Name UniqueVolumeName `json:"name"` + Name UniqueVolumeName // DevicePath represents the device path where the volume should be available - DevicePath string `json:"devicePath"` + DevicePath string } // AvoidPods describes pods that should avoid this node. This is the value for a @@ -2530,22 +2545,22 @@ 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"` + PreferAvoidPods []PreferAvoidPodsEntry } // Describes a class of pods that should avoid this node. type PreferAvoidPodsEntry struct { // The class of pods. - PodSignature PodSignature `json:"podSignature"` + PodSignature PodSignature // Time at which this entry was added to the list. // +optional - EvictionTime metav1.Time `json:"evictionTime,omitempty"` + EvictionTime metav1.Time // (brief) reason why this entry was added to the list. // +optional - Reason string `json:"reason,omitempty"` + Reason string // Human readable message indicating why this entry was added to the list. // +optional - Message string `json:"message,omitempty"` + Message string } // Describes the class of pods that should avoid this node. @@ -2553,16 +2568,16 @@ type PreferAvoidPodsEntry struct { type PodSignature struct { // Reference to controller whose pods should avoid this node. // +optional - PodController *metav1.OwnerReference `json:"podController,omitempty"` + PodController *metav1.OwnerReference } // Describe a container image type ContainerImage struct { // Names by which this image is known. - Names []string `json:"names"` + Names []string // The size of the image in bytes. // +optional - SizeBytes int64 `json:"sizeBytes,omitempty"` + SizeBytes int64 } type NodePhase string @@ -2597,16 +2612,16 @@ const ( ) type NodeCondition struct { - Type NodeConditionType `json:"type"` - Status ConditionStatus `json:"status"` + Type NodeConditionType + Status ConditionStatus // +optional - LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime,omitempty"` + LastHeartbeatTime metav1.Time // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // +optional - Reason string `json:"reason,omitempty"` + Reason string // +optional - Message string `json:"message,omitempty"` + Message string } type NodeAddressType string @@ -2622,8 +2637,8 @@ const ( ) type NodeAddress struct { - Type NodeAddressType `json:"type"` - Address string `json:"address"` + Type NodeAddressType + Address string } // NodeResources is an object for conveying resource information about a node. @@ -2631,7 +2646,7 @@ type NodeAddress struct { type NodeResources struct { // Capacity represents the available resources of a node // +optional - Capacity ResourceList `json:"capacity,omitempty"` + Capacity ResourceList } // ResourceName is the name identifying various resources in a ResourceList. @@ -2668,26 +2683,26 @@ type ResourceList map[ResourceName]resource.Quantity // Node is a worker node in Kubernetes // The name of the node according to etcd is in ObjectMeta.Name. type Node struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the behavior of a node. // +optional - Spec NodeSpec `json:"spec,omitempty"` + Spec NodeSpec // Status describes the current status of a Node // +optional - Status NodeStatus `json:"status,omitempty"` + Status NodeStatus } // NodeList is a list of nodes. type NodeList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Node `json:"items"` + Items []Node } // NamespaceSpec describes the attributes on a Namespace @@ -2696,6 +2711,7 @@ type NamespaceSpec struct { Finalizers []FinalizerName } +// FinalizerName is the name identifying a finalizer during namespace lifecycle. type FinalizerName string // These are internal finalizer values to Kubernetes, must be qualified name unless defined here @@ -2708,7 +2724,7 @@ const ( type NamespaceStatus struct { // Phase is the current lifecycle phase of the namespace. // +optional - Phase NamespacePhase `json:"phase,omitempty"` + Phase NamespacePhase } type NamespacePhase string @@ -2727,71 +2743,71 @@ const ( // A namespace provides a scope for Names. // Use of multiple namespaces is optional type Namespace struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the behavior of the Namespace. // +optional - Spec NamespaceSpec `json:"spec,omitempty"` + Spec NamespaceSpec // Status describes the current status of a Namespace // +optional - Status NamespaceStatus `json:"status,omitempty"` + Status NamespaceStatus } // NamespaceList is a list of Namespaces. type NamespaceList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Namespace `json:"items"` + Items []Namespace } // Binding ties one object to another - for example, a pod is bound to a node by a scheduler. type Binding struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // ObjectMeta describes the object that is being bound. // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Target is the object to bind to. - Target ObjectReference `json:"target"` + Target ObjectReference } // 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"` + UID *types.UID } // DeleteOptions may be provided when deleting an API object type DeleteOptions struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // 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"` + GracePeriodSeconds *int64 // 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"` + Preconditions *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"` + OrphanDependents *bool } // ListOptions is the query options to a standard REST list call, and has future support for // watch calls. type ListOptions struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // A selector based on labels LabelSelector labels.Selector @@ -2845,27 +2861,27 @@ type PodLogOptions struct { // PodAttachOptions is the query options to a Pod's remote attach call // TODO: merge w/ PodExecOptions below for stdin, stdout, etc type PodAttachOptions struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Stdin if true indicates that stdin is to be redirected for the attach call // +optional - Stdin bool `json:"stdin,omitempty"` + Stdin bool // Stdout if true indicates that stdout is to be redirected for the attach call // +optional - Stdout bool `json:"stdout,omitempty"` + Stdout bool // Stderr if true indicates that stderr is to be redirected for the attach call // +optional - Stderr bool `json:"stderr,omitempty"` + Stderr bool // TTY if true indicates that a tty will be allocated for the attach call // +optional - TTY bool `json:"tty,omitempty"` + TTY bool // Container to attach to. // +optional - Container string `json:"container,omitempty"` + Container string } // PodExecOptions is the query options to a Pod's remote exec call @@ -2922,17 +2938,17 @@ type ServiceProxyOptions struct { // ObjectReference contains enough information to let you inspect or modify the referred object. type ObjectReference struct { // +optional - Kind string `json:"kind,omitempty"` + Kind string // +optional - Namespace string `json:"namespace,omitempty"` + Namespace string // +optional - Name string `json:"name,omitempty"` + Name string // +optional - UID types.UID `json:"uid,omitempty"` + UID types.UID // +optional - APIVersion string `json:"apiVersion,omitempty"` + APIVersion string // +optional - ResourceVersion string `json:"resourceVersion,omitempty"` + ResourceVersion string // 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 @@ -2943,7 +2959,7 @@ type ObjectReference struct { // 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"` + FieldPath string } // LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. @@ -2953,18 +2969,18 @@ type LocalObjectReference struct { } type SerializedReference struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - Reference ObjectReference `json:"reference,omitempty"` + Reference ObjectReference } type EventSource struct { // Component from which the event is generated. // +optional - Component string `json:"component,omitempty"` + Component string // Node name on which the event is generated. // +optional - Host string `json:"host,omitempty"` + Host string } // Valid values for event types (new types could be added in future) @@ -2980,63 +2996,63 @@ const ( // Event is a report of an event somewhere in the cluster. // TODO: Decide whether to store these separately or with the object they apply to. type Event struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Required. The object that this event is about. // +optional - InvolvedObject ObjectReference `json:"involvedObject,omitempty"` + InvolvedObject ObjectReference // 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"` + Reason string // Optional. A human-readable description of the status of this operation. // TODO: decide on maximum length. // +optional - Message string `json:"message,omitempty"` + Message string // Optional. The component reporting this event. Should be a short machine understandable string. // +optional - Source EventSource `json:"source,omitempty"` + Source EventSource // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) // +optional - FirstTimestamp metav1.Time `json:"firstTimestamp,omitempty"` + FirstTimestamp metav1.Time // The time at which the most recent occurrence of this event was recorded. // +optional - LastTimestamp metav1.Time `json:"lastTimestamp,omitempty"` + LastTimestamp metav1.Time // The number of times this event has occurred. // +optional - Count int32 `json:"count,omitempty"` + Count int32 // Type of this event (Normal, Warning), new types could be added in the future. // +optional - Type string `json:"type,omitempty"` + Type string } // EventList is a list of events. type EventList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Event `json:"items"` + Items []Event } // List holds a list of objects, which may not be known by the server. type List struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []runtime.Object `json:"items"` + Items []runtime.Object } // A type of object that is limited @@ -3055,51 +3071,51 @@ const ( type LimitRangeItem struct { // Type of resource that this limit applies to // +optional - Type LimitType `json:"type,omitempty"` + Type LimitType // Max usage constraints on this kind by resource name // +optional - Max ResourceList `json:"max,omitempty"` + Max ResourceList // Min usage constraints on this kind by resource name // +optional - Min ResourceList `json:"min,omitempty"` + Min ResourceList // Default resource requirement limit value by resource name. // +optional - Default ResourceList `json:"default,omitempty"` + Default ResourceList // DefaultRequest resource requirement request value by resource name. // +optional - DefaultRequest ResourceList `json:"defaultRequest,omitempty"` + DefaultRequest ResourceList // MaxLimitRequestRatio represents the max burst value for the named resource // +optional - MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty"` + MaxLimitRequestRatio ResourceList } // LimitRangeSpec defines a min/max usage limit for resources that match on kind type LimitRangeSpec struct { // Limits is the list of LimitRangeItem objects that are enforced - Limits []LimitRangeItem `json:"limits"` + Limits []LimitRangeItem } // +genclient=true // LimitRange sets resource usage limits for each kind of resource in a Namespace type LimitRange struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the limits enforced // +optional - Spec LimitRangeSpec `json:"spec,omitempty"` + Spec LimitRangeSpec } // LimitRangeList is a list of LimitRange items. type LimitRangeList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is a list of LimitRange objects - Items []LimitRange `json:"items"` + Items []LimitRange } // The following identify resource constants for Kubernetes object types @@ -3152,48 +3168,48 @@ const ( type ResourceQuotaSpec struct { // Hard is the set of desired hard limits for each named resource // +optional - Hard ResourceList `json:"hard,omitempty"` + Hard ResourceList // 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"` + Scopes []ResourceQuotaScope } // ResourceQuotaStatus defines the enforced hard limits and observed use type ResourceQuotaStatus struct { // Hard is the set of enforced hard limits for each named resource // +optional - Hard ResourceList `json:"hard,omitempty"` + Hard ResourceList // Used is the current observed total usage of the resource in the namespace // +optional - Used ResourceList `json:"used,omitempty"` + Used ResourceList } // +genclient=true // ResourceQuota sets aggregate quota restrictions enforced per namespace type ResourceQuota struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // Spec defines the desired quota // +optional - Spec ResourceQuotaSpec `json:"spec,omitempty"` + Spec ResourceQuotaSpec // Status defines the actual enforced quota and its current usage // +optional - Status ResourceQuotaStatus `json:"status,omitempty"` + Status ResourceQuotaStatus } // ResourceQuotaList is a list of ResourceQuota items type ResourceQuotaList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is a list of ResourceQuota objects - Items []ResourceQuota `json:"items"` + Items []ResourceQuota } // +genclient=true @@ -3201,20 +3217,20 @@ type ResourceQuotaList struct { // Secret holds secret data of a certain type. The total bytes of the values in // the Data field must be less than MaxSecretSize bytes. type Secret struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // 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"` + Data map[string][]byte // Used to facilitate programmatic handling of secret data. // +optional - Type SecretType `json:"type,omitempty"` + Type SecretType } const MaxSecretSize = 1 * 1024 * 1024 @@ -3302,35 +3318,35 @@ const ( ) type SecretList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []Secret `json:"items"` + Items []Secret } // +genclient=true // ConfigMap holds configuration data for components or applications to consume. type ConfigMap struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // 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"` + Data map[string]string } // ConfigMapList is a resource containing a list of ConfigMap objects. type ConfigMapList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of ConfigMaps. - Items []ConfigMap `json:"items"` + Items []ConfigMap } // These constants are for remote command execution and port forwarding and are @@ -3394,12 +3410,12 @@ const ( ) type ComponentCondition struct { - Type ComponentConditionType `json:"type"` - Status ConditionStatus `json:"status"` + Type ComponentConditionType + Status ConditionStatus // +optional - Message string `json:"message,omitempty"` + Message string // +optional - Error string `json:"error,omitempty"` + Error string } // +genclient=true @@ -3407,20 +3423,20 @@ type ComponentCondition struct { // ComponentStatus (and ComponentStatusList) holds the cluster validation info. type ComponentStatus struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // +optional - Conditions []ComponentCondition `json:"conditions,omitempty"` + Conditions []ComponentCondition } type ComponentStatusList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []ComponentStatus `json:"items"` + Items []ComponentStatus } // SecurityContext holds security configuration that will be applied to a container. @@ -3430,24 +3446,24 @@ 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"` + Capabilities *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"` + Privileged *bool // 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"` + SELinuxOptions *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"` + RunAsUser *int64 // Indicates that the container must run as a non-root user. // If true, the Kubelet will validate the image at runtime to ensure that it // does not run as UID 0 (root) and fail to start the container if it does. @@ -3455,27 +3471,27 @@ type SecurityContext struct { // 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"` + RunAsNonRoot *bool // 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"` + ReadOnlyRootFilesystem *bool } // SELinuxOptions are the labels to be applied to the container. type SELinuxOptions struct { // SELinux user label // +optional - User string `json:"user,omitempty"` + User string // SELinux role label // +optional - Role string `json:"role,omitempty"` + Role string // SELinux type label // +optional - Type string `json:"type,omitempty"` + Type string // SELinux level label. // +optional - Level string `json:"level,omitempty"` + Level string } // RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record @@ -3486,18 +3502,18 @@ type SELinuxOptions struct { // data encoding hints). A range allocation should *ALWAYS* be recreatable at any time by observation // of the cluster, thus the object is less strongly typed than most. type RangeAllocation struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta // A string representing a unique label for a range of resources, such as a CIDR "10.0.0.0/8" or // port range "10000-30000". Range is not strongly schema'd here. The Range is expected to define // a start and end unless there is an implicit end. - Range string `json:"range"` + Range string // A byte array representing the serialized state of a range allocation. Additional clarifiers on // the type or format of data should be represented with annotations. For IP allocations, this is // represented as a bit array starting at the base IP of the CIDR in Range, with each bit representing // a single allocated address (the fifth bit on CIDR 10.0.0.0/8 is 10.0.0.4). - Data []byte `json:"data"` + Data []byte } const ( diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/generated.pb.go b/staging/src/k8s.io/client-go/pkg/api/v1/generated.pb.go index 146e81ff7b9..6bae67ca8e8 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/generated.pb.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/generated.pb.go @@ -6015,6 +6015,18 @@ func (m *PodSpec) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintGenerated(data, i, uint64(len(m.Subdomain))) i += copy(data[i:], m.Subdomain) + if m.Affinity != nil { + data[i] = 0x92 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Affinity.Size())) + n120, err := m.Affinity.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n120 + } return i, nil } @@ -6069,11 +6081,11 @@ func (m *PodStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n120, err := m.StartTime.MarshalTo(data[i:]) + n121, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n120 + i += n121 } if len(m.ContainerStatuses) > 0 { for _, msg := range m.ContainerStatuses { @@ -6087,6 +6099,10 @@ func (m *PodStatus) MarshalTo(data []byte) (int, error) { i += n } } + data[i] = 0x4a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.QOSClass))) + i += copy(data[i:], m.QOSClass) return i, nil } @@ -6108,19 +6124,19 @@ func (m *PodStatusResult) 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.Status.Size())) - n122, err := m.Status.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.Status.Size())) + n123, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n123 return i, nil } @@ -6142,19 +6158,19 @@ func (m *PodTemplate) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n123, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n123 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n124, err := m.Template.MarshalTo(data[i:]) + 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.Template.Size())) + n125, err := m.Template.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n125 return i, nil } @@ -6176,11 +6192,11 @@ func (m *PodTemplateList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n125, err := m.ListMeta.MarshalTo(data[i:]) + n126, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n125 + i += n126 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6214,19 +6230,19 @@ func (m *PodTemplateSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n126, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n126 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n127, err := m.Spec.MarshalTo(data[i:]) + n127, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n127 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n128, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n128 return i, nil } @@ -6272,19 +6288,19 @@ func (m *PreferAvoidPodsEntry) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSignature.Size())) - n128, err := m.PodSignature.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n128 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) - n129, err := m.EvictionTime.MarshalTo(data[i:]) + n129, err := m.PodSignature.MarshalTo(data[i:]) if err != nil { return 0, err } i += n129 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) + n130, err := m.EvictionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n130 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -6317,11 +6333,11 @@ func (m *PreferredSchedulingTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Preference.Size())) - n130, err := m.Preference.MarshalTo(data[i:]) + n131, err := m.Preference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n130 + i += n131 return i, nil } @@ -6343,11 +6359,11 @@ func (m *Probe) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Handler.Size())) - n131, err := m.Handler.MarshalTo(data[i:]) + n132, err := m.Handler.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n131 + i += n132 data[i] = 0x10 i++ i = encodeVarintGenerated(data, i, uint64(m.InitialDelaySeconds)) @@ -6462,11 +6478,11 @@ func (m *RBDVolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) - n132, err := m.SecretRef.MarshalTo(data[i:]) + n133, err := m.SecretRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n132 + i += n133 } data[i] = 0x40 i++ @@ -6497,11 +6513,11 @@ func (m *RangeAllocation) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n133, err := m.ObjectMeta.MarshalTo(data[i:]) + n134, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n133 + i += n134 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Range))) @@ -6533,27 +6549,27 @@ func (m *ReplicationController) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n134, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n134 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n135, err := m.Spec.MarshalTo(data[i:]) + n135, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n135 - data[i] = 0x1a + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n136, err := m.Status.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n136, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } i += n136 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n137, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n137 return i, nil } @@ -6583,11 +6599,11 @@ func (m *ReplicationControllerCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n137, err := m.LastTransitionTime.MarshalTo(data[i:]) + n138, err := m.LastTransitionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n137 + i += n138 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -6617,11 +6633,11 @@ func (m *ReplicationControllerList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n138, err := m.ListMeta.MarshalTo(data[i:]) + n139, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n138 + i += n139 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6678,11 +6694,11 @@ func (m *ReplicationControllerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n139, err := m.Template.MarshalTo(data[i:]) + n140, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n139 + i += n140 } data[i] = 0x20 i++ @@ -6761,11 +6777,11 @@ func (m *ResourceFieldSelector) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Divisor.Size())) - n140, err := m.Divisor.MarshalTo(data[i:]) + n141, err := m.Divisor.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n140 + i += n141 return i, nil } @@ -6787,27 +6803,27 @@ func (m *ResourceQuota) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n141, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n141 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n142, err := m.Spec.MarshalTo(data[i:]) + n142, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n142 - data[i] = 0x1a + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n143, err := m.Status.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n143, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } i += n143 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n144, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n144 return i, nil } @@ -6829,11 +6845,11 @@ func (m *ResourceQuotaList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n144, err := m.ListMeta.MarshalTo(data[i:]) + n145, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n144 + i += n145 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6879,11 +6895,11 @@ func (m *ResourceQuotaSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n145, err := (&v).MarshalTo(data[i:]) + n146, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n145 + i += n146 } } if len(m.Scopes) > 0 { @@ -6934,11 +6950,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n146, err := (&v).MarshalTo(data[i:]) + n147, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n146 + i += n147 } } if len(m.Used) > 0 { @@ -6956,11 +6972,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n147, err := (&v).MarshalTo(data[i:]) + n148, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n147 + i += n148 } } return i, nil @@ -6996,11 +7012,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n148, err := (&v).MarshalTo(data[i:]) + n149, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n148 + i += n149 } } if len(m.Requests) > 0 { @@ -7018,11 +7034,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n149, err := (&v).MarshalTo(data[i:]) + n150, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n149 + i += n150 } } return i, nil @@ -7080,11 +7096,11 @@ func (m *Secret) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n150, err := m.ObjectMeta.MarshalTo(data[i:]) + n151, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n150 + i += n151 if len(m.Data) > 0 { for k := range m.Data { data[i] = 0x12 @@ -7144,11 +7160,11 @@ func (m *SecretKeySelector) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) - n151, err := m.LocalObjectReference.MarshalTo(data[i:]) + n152, err := m.LocalObjectReference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n151 + i += n152 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Key))) @@ -7174,11 +7190,11 @@ func (m *SecretList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n152, err := m.ListMeta.MarshalTo(data[i:]) + n153, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n152 + i += n153 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7252,11 +7268,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Capabilities.Size())) - n153, err := m.Capabilities.MarshalTo(data[i:]) + n154, err := m.Capabilities.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n153 + i += n154 } if m.Privileged != nil { data[i] = 0x10 @@ -7272,11 +7288,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n154, err := m.SELinuxOptions.MarshalTo(data[i:]) + n155, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n154 + i += n155 } if m.RunAsUser != nil { data[i] = 0x20 @@ -7324,11 +7340,11 @@ func (m *SerializedReference) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Reference.Size())) - n155, err := m.Reference.MarshalTo(data[i:]) + n156, err := m.Reference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n155 + i += n156 return i, nil } @@ -7350,27 +7366,27 @@ func (m *Service) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n156, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n156 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n157, err := m.Spec.MarshalTo(data[i:]) + n157, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n157 - data[i] = 0x1a + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n158, err := m.Status.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n158, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } i += n158 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n159, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n159 return i, nil } @@ -7392,11 +7408,11 @@ func (m *ServiceAccount) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n159, err := m.ObjectMeta.MarshalTo(data[i:]) + n160, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n159 + i += n160 if len(m.Secrets) > 0 { for _, msg := range m.Secrets { data[i] = 0x12 @@ -7442,11 +7458,11 @@ func (m *ServiceAccountList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n160, err := m.ListMeta.MarshalTo(data[i:]) + n161, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n160 + i += n161 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7480,11 +7496,11 @@ func (m *ServiceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n161, err := m.ListMeta.MarshalTo(data[i:]) + n162, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n161 + i += n162 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7529,11 +7545,11 @@ func (m *ServicePort) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.TargetPort.Size())) - n162, err := m.TargetPort.MarshalTo(data[i:]) + n163, err := m.TargetPort.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n162 + i += n163 data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.NodePort)) @@ -7692,11 +7708,11 @@ func (m *ServiceStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) - n163, err := m.LoadBalancer.MarshalTo(data[i:]) + n164, err := m.LoadBalancer.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n163 + i += n164 return i, nil } @@ -7744,11 +7760,11 @@ func (m *TCPSocketAction) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n164, err := m.Port.MarshalTo(data[i:]) + n165, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n164 + i += n165 return i, nil } @@ -7838,11 +7854,11 @@ func (m *Volume) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.VolumeSource.Size())) - n165, err := m.VolumeSource.MarshalTo(data[i:]) + n166, err := m.VolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n165 + i += n166 return i, nil } @@ -7903,163 +7919,163 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.HostPath.Size())) - n166, err := m.HostPath.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n166 - } - if m.EmptyDir != nil { - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) - n167, err := m.EmptyDir.MarshalTo(data[i:]) + n167, err := m.HostPath.MarshalTo(data[i:]) if err != nil { return 0, err } i += n167 } - if m.GCEPersistentDisk != nil { - data[i] = 0x1a + if m.EmptyDir != nil { + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) - n168, err := m.GCEPersistentDisk.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) + n168, err := m.EmptyDir.MarshalTo(data[i:]) if err != nil { return 0, err } i += n168 } - if m.AWSElasticBlockStore != nil { - data[i] = 0x22 + if m.GCEPersistentDisk != nil { + data[i] = 0x1a i++ - i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) - n169, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) + n169, err := m.GCEPersistentDisk.MarshalTo(data[i:]) if err != nil { return 0, err } i += n169 } - if m.GitRepo != nil { - data[i] = 0x2a + if m.AWSElasticBlockStore != nil { + data[i] = 0x22 i++ - i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) - n170, err := m.GitRepo.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) + n170, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) if err != nil { return 0, err } i += n170 } - if m.Secret != nil { - data[i] = 0x32 + if m.GitRepo != nil { + data[i] = 0x2a i++ - i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) - n171, err := m.Secret.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) + n171, err := m.GitRepo.MarshalTo(data[i:]) if err != nil { return 0, err } i += n171 } - if m.NFS != nil { - data[i] = 0x3a + if m.Secret != nil { + data[i] = 0x32 i++ - i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) - n172, err := m.NFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) + n172, err := m.Secret.MarshalTo(data[i:]) if err != nil { return 0, err } i += n172 } - if m.ISCSI != nil { - data[i] = 0x42 + if m.NFS != nil { + data[i] = 0x3a i++ - i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) - n173, err := m.ISCSI.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) + n173, err := m.NFS.MarshalTo(data[i:]) if err != nil { return 0, err } i += n173 } - if m.Glusterfs != nil { - data[i] = 0x4a + if m.ISCSI != nil { + data[i] = 0x42 i++ - i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) - n174, err := m.Glusterfs.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) + n174, err := m.ISCSI.MarshalTo(data[i:]) if err != nil { return 0, err } i += n174 } - if m.PersistentVolumeClaim != nil { - data[i] = 0x52 + if m.Glusterfs != nil { + data[i] = 0x4a i++ - i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) - n175, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) + n175, err := m.Glusterfs.MarshalTo(data[i:]) if err != nil { return 0, err } i += n175 } - if m.RBD != nil { - data[i] = 0x5a + if m.PersistentVolumeClaim != nil { + data[i] = 0x52 i++ - i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) - n176, err := m.RBD.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) + n176, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) if err != nil { return 0, err } i += n176 } - if m.FlexVolume != nil { - data[i] = 0x62 + if m.RBD != nil { + data[i] = 0x5a i++ - i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) - n177, err := m.FlexVolume.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) + n177, err := m.RBD.MarshalTo(data[i:]) if err != nil { return 0, err } i += n177 } - if m.Cinder != nil { - data[i] = 0x6a + if m.FlexVolume != nil { + data[i] = 0x62 i++ - i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) - n178, err := m.Cinder.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) + n178, err := m.FlexVolume.MarshalTo(data[i:]) if err != nil { return 0, err } i += n178 } - if m.CephFS != nil { - data[i] = 0x72 + if m.Cinder != nil { + data[i] = 0x6a i++ - i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) - n179, err := m.CephFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) + n179, err := m.Cinder.MarshalTo(data[i:]) if err != nil { return 0, err } i += n179 } - if m.Flocker != nil { - data[i] = 0x7a + if m.CephFS != nil { + data[i] = 0x72 i++ - i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) - n180, err := m.Flocker.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) + n180, err := m.CephFS.MarshalTo(data[i:]) if err != nil { return 0, err } i += n180 } + if m.Flocker != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) + n181, err := m.Flocker.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n181 + } if m.DownwardAPI != nil { data[i] = 0x82 i++ data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.DownwardAPI.Size())) - n181, err := m.DownwardAPI.MarshalTo(data[i:]) + n182, err := m.DownwardAPI.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n181 + i += n182 } if m.FC != nil { data[i] = 0x8a @@ -8067,11 +8083,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) - n182, err := m.FC.MarshalTo(data[i:]) + n183, err := m.FC.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n182 + i += n183 } if m.AzureFile != nil { data[i] = 0x92 @@ -8079,11 +8095,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) - n183, err := m.AzureFile.MarshalTo(data[i:]) + n184, err := m.AzureFile.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n183 + i += n184 } if m.ConfigMap != nil { data[i] = 0x9a @@ -8091,11 +8107,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.ConfigMap.Size())) - n184, err := m.ConfigMap.MarshalTo(data[i:]) + n185, err := m.ConfigMap.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n184 + i += n185 } if m.VsphereVolume != nil { data[i] = 0xa2 @@ -8103,11 +8119,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) - n185, err := m.VsphereVolume.MarshalTo(data[i:]) + n186, err := m.VsphereVolume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n185 + i += n186 } if m.Quobyte != nil { data[i] = 0xaa @@ -8115,11 +8131,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.Quobyte.Size())) - n186, err := m.Quobyte.MarshalTo(data[i:]) + n187, err := m.Quobyte.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n186 + i += n187 } if m.AzureDisk != nil { data[i] = 0xb2 @@ -8127,11 +8143,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureDisk.Size())) - n187, err := m.AzureDisk.MarshalTo(data[i:]) + n188, err := m.AzureDisk.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n187 + i += n188 } if m.PhotonPersistentDisk != nil { data[i] = 0xba @@ -8139,11 +8155,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.PhotonPersistentDisk.Size())) - n188, err := m.PhotonPersistentDisk.MarshalTo(data[i:]) + n189, err := m.PhotonPersistentDisk.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n188 + i += n189 } return i, nil } @@ -8195,11 +8211,11 @@ func (m *WeightedPodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PodAffinityTerm.Size())) - n189, err := m.PodAffinityTerm.MarshalTo(data[i:]) + n190, err := m.PodAffinityTerm.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n189 + i += n190 return i, nil } @@ -10082,6 +10098,10 @@ func (m *PodSpec) Size() (n int) { n += 2 + l + sovGenerated(uint64(l)) l = len(m.Subdomain) n += 2 + l + sovGenerated(uint64(l)) + if m.Affinity != nil { + l = m.Affinity.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -10114,6 +10134,8 @@ func (m *PodStatus) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + l = len(m.QOSClass) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -12421,6 +12443,7 @@ func (this *PodSpec) String() string { `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, `Subdomain:` + fmt.Sprintf("%v", this.Subdomain) + `,`, + `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "Affinity", 1) + `,`, `}`, }, "") return s @@ -12438,6 +12461,7 @@ func (this *PodStatus) String() string { `PodIP:` + fmt.Sprintf("%v", this.PodIP) + `,`, `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_apis_meta_v1.Time", 1) + `,`, `ContainerStatuses:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ContainerStatuses), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + `,`, + `QOSClass:` + fmt.Sprintf("%v", this.QOSClass) + `,`, `}`, }, "") return s @@ -30994,6 +31018,39 @@ func (m *PodSpec) Unmarshal(data []byte) error { } m.Subdomain = string(data[iNdEx:postIndex]) iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.Affinity == nil { + m.Affinity = &Affinity{} + } + if err := m.Affinity.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -31284,6 +31341,35 @@ func (m *PodStatus) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QOSClass", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QOSClass = PodQOSClass(data[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -39144,630 +39230,633 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 9989 bytes of a gzipped FileDescriptorProto + // 10040 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x7d, 0x6d, 0x8c, 0x24, 0xc7, - 0x75, 0x98, 0x7a, 0x66, 0xbf, 0xe6, 0xed, 0xe7, 0xd5, 0x7d, 0x70, 0xb9, 0x22, 0x6f, 0x4f, 0x4d, + 0x75, 0x98, 0x7a, 0x66, 0xbf, 0xe6, 0xed, 0xe7, 0xd5, 0x7d, 0x70, 0xb9, 0x26, 0x6f, 0x4f, 0x4d, 0x91, 0x3a, 0x92, 0xc7, 0x5d, 0xdd, 0x91, 0x14, 0x29, 0x91, 0xa1, 0xb4, 0xbb, 0xb3, 0x7b, 0xb7, - 0xba, 0xdb, 0xbb, 0x61, 0xcd, 0xde, 0x1d, 0x25, 0x11, 0x92, 0x7a, 0xa7, 0x6b, 0x77, 0x5b, 0xd7, - 0xdb, 0x3d, 0xec, 0xee, 0xd9, 0xbb, 0x95, 0x62, 0xc0, 0x91, 0x19, 0x1b, 0x81, 0x04, 0x47, 0x41, - 0x20, 0x24, 0x40, 0x12, 0x44, 0x09, 0x90, 0xc0, 0x89, 0x61, 0x2b, 0x8a, 0x94, 0x40, 0x8a, 0x65, - 0x03, 0x41, 0x6c, 0x47, 0x41, 0xe2, 0x40, 0xfa, 0x13, 0x1b, 0x36, 0xb0, 0x31, 0xd7, 0xf9, 0x97, - 0xfc, 0x08, 0x90, 0x5f, 0x39, 0x18, 0x49, 0x50, 0x9f, 0x5d, 0xd5, 0xd3, 0xb3, 0xdd, 0x73, 0xbc, - 0x39, 0x53, 0x46, 0xfe, 0xcd, 0xbc, 0xf7, 0xea, 0xd5, 0x47, 0xbf, 0x7a, 0xf5, 0xea, 0xd5, 0xab, - 0x57, 0x70, 0xe1, 0xce, 0xab, 0xf1, 0x82, 0x17, 0x2e, 0xde, 0xe9, 0x6c, 0x91, 0x28, 0x20, 0x09, - 0x89, 0x17, 0xdb, 0x77, 0x76, 0x16, 0x9d, 0xb6, 0xb7, 0xb8, 0x7f, 0x71, 0x71, 0x87, 0x04, 0x24, - 0x72, 0x12, 0xe2, 0x2e, 0xb4, 0xa3, 0x30, 0x09, 0xd1, 0x13, 0x9c, 0x7a, 0x21, 0xa5, 0x5e, 0x68, - 0xdf, 0xd9, 0x59, 0x70, 0xda, 0xde, 0xc2, 0xfe, 0xc5, 0xb9, 0x17, 0x76, 0xbc, 0x64, 0xb7, 0xb3, - 0xb5, 0xd0, 0x0a, 0xf7, 0x16, 0x77, 0xc2, 0x9d, 0x70, 0x91, 0x15, 0xda, 0xea, 0x6c, 0xb3, 0x7f, - 0xec, 0x0f, 0xfb, 0xc5, 0x99, 0xcd, 0x5d, 0xea, 0x5d, 0x75, 0x44, 0xe2, 0xb0, 0x13, 0xb5, 0x48, - 0xb6, 0x01, 0xc7, 0x94, 0x89, 0x17, 0xf7, 0x48, 0xe2, 0xe4, 0x34, 0x7a, 0xee, 0x85, 0xfc, 0x32, - 0x51, 0x27, 0x48, 0xbc, 0xbd, 0xee, 0x2a, 0x5e, 0x3a, 0x9e, 0x3c, 0x6e, 0xed, 0x92, 0x3d, 0xa7, - 0xab, 0xd4, 0xc5, 0xfc, 0x52, 0x9d, 0xc4, 0xf3, 0x17, 0xbd, 0x20, 0x89, 0x93, 0x28, 0x5b, 0xc4, - 0xfe, 0x43, 0x0b, 0xce, 0x2d, 0xdd, 0x6e, 0xae, 0xfa, 0x4e, 0x9c, 0x78, 0xad, 0x65, 0x3f, 0x6c, - 0xdd, 0x69, 0x26, 0x61, 0x44, 0x6e, 0x85, 0x7e, 0x67, 0x8f, 0x34, 0xd9, 0x00, 0xa0, 0x0b, 0x30, - 0xb6, 0xcf, 0xfe, 0xaf, 0xd7, 0x67, 0xad, 0x73, 0xd6, 0xf9, 0xda, 0xf2, 0xcc, 0x4f, 0x0e, 0xe7, - 0x3f, 0x74, 0x74, 0x38, 0x3f, 0x76, 0x4b, 0xc0, 0xb1, 0xa2, 0x40, 0xcf, 0xc0, 0xc8, 0x76, 0xbc, - 0x79, 0xd0, 0x26, 0xb3, 0x15, 0x46, 0x3b, 0x25, 0x68, 0x47, 0xd6, 0x9a, 0x14, 0x8a, 0x05, 0x16, - 0x2d, 0x42, 0xad, 0xed, 0x44, 0x89, 0x97, 0x78, 0x61, 0x30, 0x5b, 0x3d, 0x67, 0x9d, 0x1f, 0x5e, - 0x3e, 0x21, 0x48, 0x6b, 0x0d, 0x89, 0xc0, 0x29, 0x0d, 0x6d, 0x46, 0x44, 0x1c, 0xf7, 0x46, 0xe0, - 0x1f, 0xcc, 0x0e, 0x9d, 0xb3, 0xce, 0x8f, 0xa5, 0xcd, 0xc0, 0x02, 0x8e, 0x15, 0x85, 0xfd, 0xc3, - 0x0a, 0x8c, 0x2d, 0x6d, 0x6f, 0x7b, 0x81, 0x97, 0x1c, 0xa0, 0x2f, 0xc3, 0x44, 0x10, 0xba, 0x44, - 0xfe, 0x67, 0xbd, 0x18, 0xbf, 0xf4, 0xdc, 0xc2, 0x71, 0xa2, 0xb4, 0x70, 0x5d, 0x2b, 0xb1, 0x3c, - 0x73, 0x74, 0x38, 0x3f, 0xa1, 0x43, 0xb0, 0xc1, 0x11, 0xbd, 0x0d, 0xe3, 0xed, 0xd0, 0x55, 0x15, - 0x54, 0x58, 0x05, 0xcf, 0x1e, 0x5f, 0x41, 0x23, 0x2d, 0xb0, 0x3c, 0x7d, 0x74, 0x38, 0x3f, 0xae, - 0x01, 0xb0, 0xce, 0x0e, 0xf9, 0x30, 0x4d, 0xff, 0x06, 0x89, 0xa7, 0x6a, 0xa8, 0xb2, 0x1a, 0x5e, - 0x28, 0xae, 0x41, 0x2b, 0xb4, 0x7c, 0xf2, 0xe8, 0x70, 0x7e, 0x3a, 0x03, 0xc4, 0x59, 0xd6, 0xf6, - 0x57, 0x61, 0x6a, 0x29, 0x49, 0x9c, 0xd6, 0x2e, 0x71, 0xf9, 0xf7, 0x45, 0x2f, 0xc1, 0x50, 0xe0, - 0xec, 0x11, 0xf1, 0xf5, 0xcf, 0x89, 0x61, 0x1f, 0xba, 0xee, 0xec, 0x91, 0xfb, 0x87, 0xf3, 0x33, - 0x37, 0x03, 0xef, 0x9d, 0x8e, 0x90, 0x19, 0x0a, 0xc3, 0x8c, 0x1a, 0x5d, 0x02, 0x70, 0xc9, 0xbe, - 0xd7, 0x22, 0x0d, 0x27, 0xd9, 0x15, 0xd2, 0x80, 0x44, 0x59, 0xa8, 0x2b, 0x0c, 0xd6, 0xa8, 0xec, - 0xaf, 0x5b, 0x50, 0x5b, 0xda, 0x0f, 0x3d, 0xb7, 0x11, 0xba, 0x31, 0xea, 0xc0, 0x74, 0x3b, 0x22, - 0xdb, 0x24, 0x52, 0xa0, 0x59, 0xeb, 0x5c, 0xf5, 0xfc, 0xf8, 0xa5, 0x4b, 0x05, 0xfd, 0x36, 0x0b, - 0xad, 0x06, 0x49, 0x74, 0xb0, 0xfc, 0x98, 0xa8, 0x7a, 0x3a, 0x83, 0xc5, 0xd9, 0x3a, 0xec, 0xbf, - 0x55, 0x81, 0xd3, 0x4b, 0x5f, 0xed, 0x44, 0xa4, 0xee, 0xc5, 0x77, 0xb2, 0x53, 0xc1, 0xf5, 0xe2, - 0x3b, 0xd7, 0xd3, 0xc1, 0x50, 0x32, 0x58, 0x17, 0x70, 0xac, 0x28, 0xd0, 0x0b, 0x30, 0x4a, 0x7f, - 0xdf, 0xc4, 0xeb, 0xa2, 0xf7, 0x27, 0x05, 0xf1, 0x78, 0xdd, 0x49, 0x9c, 0x3a, 0x47, 0x61, 0x49, - 0x83, 0x36, 0x60, 0xbc, 0xe5, 0xb4, 0x76, 0xbd, 0x60, 0x67, 0x23, 0x74, 0x09, 0xfb, 0xc2, 0xb5, - 0xe5, 0xe7, 0x29, 0xf9, 0x4a, 0x0a, 0xbe, 0x7f, 0x38, 0x3f, 0xcb, 0xdb, 0x26, 0x58, 0x68, 0x38, - 0xac, 0x97, 0x47, 0xb6, 0x9a, 0x88, 0x43, 0x8c, 0x13, 0xe4, 0x4c, 0xc2, 0xf3, 0xda, 0x9c, 0x1a, - 0x66, 0x73, 0x6a, 0xa2, 0xc7, 0x7c, 0xfa, 0xe7, 0x96, 0x18, 0x93, 0x35, 0xcf, 0x37, 0xd5, 0xc3, - 0x25, 0x80, 0x98, 0xb4, 0x22, 0x92, 0x68, 0xa3, 0xa2, 0x3e, 0x73, 0x53, 0x61, 0xb0, 0x46, 0x45, - 0x27, 0x7f, 0xbc, 0xeb, 0x44, 0x4c, 0x5a, 0xc4, 0xd8, 0xa8, 0xc9, 0xdf, 0x94, 0x08, 0x9c, 0xd2, - 0x18, 0x93, 0xbf, 0x5a, 0x38, 0xf9, 0xff, 0x8d, 0x05, 0xa3, 0xcb, 0x5e, 0xe0, 0x7a, 0xc1, 0x0e, - 0x7a, 0x0b, 0xc6, 0xa8, 0x56, 0x76, 0x9d, 0xc4, 0x11, 0xf3, 0xfe, 0xfc, 0xf1, 0xc2, 0x73, 0x63, - 0xeb, 0x2b, 0xa4, 0x95, 0x6c, 0x90, 0xc4, 0x49, 0xbb, 0x91, 0xc2, 0xb0, 0xe2, 0x86, 0x6e, 0xc2, - 0x48, 0xe2, 0x44, 0x3b, 0x24, 0x11, 0xd3, 0xfd, 0x85, 0x32, 0x7c, 0x31, 0x15, 0x35, 0x12, 0xb4, - 0x48, 0xaa, 0x18, 0x37, 0x19, 0x13, 0x2c, 0x98, 0xd9, 0x2d, 0x98, 0x58, 0x71, 0xda, 0xce, 0x96, - 0xe7, 0x7b, 0x89, 0x47, 0x62, 0xf4, 0x31, 0xa8, 0x3a, 0xae, 0xcb, 0x04, 0xbf, 0xb6, 0x7c, 0xfa, - 0xe8, 0x70, 0xbe, 0xba, 0xe4, 0xba, 0xf7, 0x0f, 0xe7, 0x41, 0x51, 0x1d, 0x60, 0x4a, 0x81, 0x9e, - 0x83, 0x21, 0x37, 0x0a, 0xdb, 0xb3, 0x15, 0x46, 0x79, 0x86, 0xce, 0xd0, 0x7a, 0x14, 0xb6, 0x33, - 0xa4, 0x8c, 0xc6, 0xfe, 0xbd, 0x0a, 0xa0, 0x15, 0xd2, 0xde, 0x5d, 0x6b, 0x1a, 0xdf, 0xf2, 0x3c, - 0x8c, 0xed, 0x85, 0x81, 0x97, 0x84, 0x51, 0x2c, 0x2a, 0x64, 0xf2, 0xb0, 0x21, 0x60, 0x58, 0x61, - 0xd1, 0x39, 0x18, 0x6a, 0xa7, 0xd3, 0x7a, 0x42, 0xaa, 0x04, 0x36, 0xa1, 0x19, 0x86, 0x52, 0x74, - 0x62, 0x12, 0x09, 0x39, 0x56, 0x14, 0x37, 0x63, 0x12, 0x61, 0x86, 0x49, 0x25, 0x87, 0xca, 0x94, - 0x90, 0xd2, 0x8c, 0xe4, 0x50, 0x0c, 0xd6, 0xa8, 0xd0, 0x97, 0xa0, 0xc6, 0xff, 0x61, 0xb2, 0xcd, - 0x44, 0xb6, 0x50, 0x19, 0x5c, 0x0b, 0x5b, 0x8e, 0x9f, 0x1d, 0xfc, 0x49, 0x26, 0x69, 0x92, 0x11, - 0x4e, 0x79, 0x1a, 0x92, 0x36, 0x52, 0x28, 0x69, 0x7f, 0xd7, 0x02, 0xb4, 0xe2, 0x05, 0x2e, 0x89, - 0x1e, 0xc1, 0x92, 0xd9, 0xdf, 0x24, 0xf8, 0x13, 0xda, 0xb4, 0x70, 0xaf, 0x1d, 0x06, 0x24, 0x48, - 0x56, 0xc2, 0xc0, 0xe5, 0xcb, 0xe8, 0xa7, 0x60, 0x28, 0xa1, 0x55, 0xf1, 0x66, 0x3d, 0x23, 0x3f, - 0x0b, 0xad, 0xe0, 0xfe, 0xe1, 0xfc, 0x99, 0xee, 0x12, 0xac, 0x09, 0xac, 0x0c, 0xfa, 0x24, 0x8c, - 0xc4, 0x89, 0x93, 0x74, 0x62, 0xd1, 0xd0, 0x8f, 0xc8, 0x86, 0x36, 0x19, 0xf4, 0xfe, 0xe1, 0xfc, - 0xb4, 0x2a, 0xc6, 0x41, 0x58, 0x14, 0x40, 0xcf, 0xc2, 0xe8, 0x1e, 0x89, 0x63, 0x67, 0x47, 0x2a, - 0xb6, 0x69, 0x51, 0x76, 0x74, 0x83, 0x83, 0xb1, 0xc4, 0xa3, 0xa7, 0x60, 0x98, 0x44, 0x51, 0x18, - 0x09, 0x89, 0x98, 0x14, 0x84, 0xc3, 0xab, 0x14, 0x88, 0x39, 0xce, 0xfe, 0x99, 0x05, 0xd3, 0xaa, - 0xad, 0xbc, 0xae, 0x01, 0x4e, 0x75, 0x17, 0xa0, 0x25, 0x3b, 0x16, 0xb3, 0x09, 0x36, 0x7e, 0xe9, - 0xe3, 0xc7, 0xf3, 0xee, 0x1e, 0xc8, 0xb4, 0x0e, 0x05, 0x8a, 0xb1, 0xc6, 0xd7, 0xfe, 0x3d, 0x0b, - 0x4e, 0x66, 0xfa, 0x74, 0xcd, 0x8b, 0x13, 0xf4, 0xf9, 0xae, 0x7e, 0x5d, 0xe8, 0x5d, 0x77, 0xbc, - 0x40, 0x69, 0x99, 0xe0, 0x7b, 0x31, 0xef, 0x9b, 0x92, 0x12, 0x09, 0xd1, 0x7a, 0x86, 0x61, 0xd8, - 0x4b, 0xc8, 0x9e, 0xec, 0xd4, 0x0b, 0x25, 0x3b, 0xc5, 0x5b, 0x97, 0x7e, 0x9b, 0x75, 0xca, 0x03, - 0x73, 0x56, 0xf6, 0xff, 0xb2, 0xa0, 0xb6, 0x12, 0x06, 0xdb, 0xde, 0xce, 0x86, 0xd3, 0x1e, 0xe0, - 0x57, 0x69, 0xc2, 0x10, 0xe3, 0xca, 0x9b, 0x7e, 0xb1, 0xa8, 0xe9, 0xa2, 0x41, 0x0b, 0x74, 0xe5, - 0xe4, 0x26, 0x81, 0x52, 0x4a, 0x14, 0x84, 0x19, 0xb3, 0xb9, 0x57, 0xa0, 0xa6, 0x08, 0xd0, 0x0c, - 0x54, 0xef, 0x10, 0x6e, 0x2f, 0xd6, 0x30, 0xfd, 0x89, 0x4e, 0xc1, 0xf0, 0xbe, 0xe3, 0x77, 0xc4, - 0x54, 0xc5, 0xfc, 0xcf, 0xa7, 0x2a, 0xaf, 0x5a, 0xf6, 0x8f, 0x2d, 0x38, 0xa5, 0x2a, 0xb9, 0x4a, - 0x0e, 0x9a, 0xc4, 0x27, 0xad, 0x24, 0x8c, 0xd0, 0xbb, 0x16, 0x9c, 0xf2, 0x73, 0x94, 0x90, 0x18, - 0x8d, 0x07, 0x51, 0x5f, 0x4f, 0x88, 0x86, 0x9f, 0xca, 0xc3, 0xe2, 0xdc, 0xda, 0xd0, 0x93, 0xbc, - 0x2f, 0x7c, 0xe6, 0x8e, 0x0b, 0x06, 0xd5, 0xab, 0xe4, 0x80, 0x75, 0xcc, 0xfe, 0x91, 0x05, 0x93, - 0xaa, 0xf9, 0x03, 0x17, 0xbb, 0x6b, 0xa6, 0xd8, 0x7d, 0xac, 0xe4, 0xb7, 0xeb, 0x21, 0x70, 0xff, - 0xb0, 0x02, 0xa7, 0x15, 0x8d, 0xa1, 0x88, 0x3f, 0x20, 0x63, 0xdf, 0x5f, 0x77, 0xaf, 0x92, 0x83, - 0xcd, 0x90, 0xae, 0xa4, 0xf9, 0xdd, 0x45, 0x17, 0x61, 0xdc, 0x25, 0xdb, 0x4e, 0xc7, 0x4f, 0x94, - 0xa1, 0x38, 0xcc, 0x77, 0x10, 0xf5, 0x14, 0x8c, 0x75, 0x1a, 0xfb, 0x0f, 0x6a, 0x6c, 0x4a, 0x26, - 0x8e, 0x17, 0x90, 0x88, 0x2e, 0xcd, 0x9a, 0x3d, 0x3f, 0xa1, 0xdb, 0xf3, 0xc2, 0x76, 0x7f, 0x0a, - 0x86, 0xbd, 0x3d, 0xaa, 0xac, 0x2b, 0xa6, 0x0e, 0x5e, 0xa7, 0x40, 0xcc, 0x71, 0xe8, 0x69, 0x18, - 0x6d, 0x85, 0x7b, 0x7b, 0x4e, 0xe0, 0xce, 0x56, 0x99, 0xb1, 0x30, 0x4e, 0xf5, 0xf9, 0x0a, 0x07, - 0x61, 0x89, 0x43, 0x4f, 0xc0, 0x90, 0x13, 0xed, 0xc4, 0xb3, 0x43, 0x8c, 0x66, 0x8c, 0xd6, 0xb4, - 0x14, 0xed, 0xc4, 0x98, 0x41, 0xa9, 0x11, 0x70, 0x37, 0x8c, 0xee, 0x78, 0xc1, 0x4e, 0xdd, 0x8b, - 0xd8, 0x8a, 0xae, 0x19, 0x01, 0xb7, 0x15, 0x06, 0x6b, 0x54, 0xa8, 0x01, 0xc3, 0xed, 0x30, 0x4a, - 0xe2, 0xd9, 0x11, 0x36, 0x9c, 0xcf, 0x17, 0x4a, 0x0f, 0xef, 0x77, 0x23, 0x8c, 0x92, 0xb4, 0x2b, - 0xf4, 0x5f, 0x8c, 0x39, 0x23, 0xb4, 0x02, 0x55, 0x12, 0xec, 0xcf, 0x8e, 0x32, 0x7e, 0x1f, 0x3d, - 0x9e, 0xdf, 0x6a, 0xb0, 0x7f, 0xcb, 0x89, 0xd2, 0x29, 0xb4, 0x1a, 0xec, 0x63, 0x5a, 0x1a, 0xb5, - 0xa0, 0x26, 0xbd, 0x06, 0xf1, 0xec, 0x58, 0x19, 0x01, 0xc3, 0x82, 0x1c, 0x93, 0x77, 0x3a, 0x5e, - 0x44, 0xf6, 0x48, 0x90, 0xc4, 0xa9, 0x25, 0x2c, 0xb1, 0x31, 0x4e, 0xf9, 0xa2, 0x16, 0x4c, 0x70, - 0xc3, 0x61, 0x23, 0xec, 0x04, 0x49, 0x3c, 0x5b, 0x63, 0x4d, 0x2e, 0xd8, 0x6a, 0xde, 0x4a, 0x4b, - 0x2c, 0x9f, 0x12, 0xec, 0x27, 0x34, 0x60, 0x8c, 0x0d, 0xa6, 0xe8, 0x6d, 0x98, 0xf4, 0xbd, 0x7d, - 0x12, 0x90, 0x38, 0x6e, 0x44, 0xe1, 0x16, 0x99, 0x05, 0xd6, 0x9b, 0xa7, 0x8a, 0xb6, 0x5d, 0xe1, - 0x16, 0x59, 0x3e, 0x71, 0x74, 0x38, 0x3f, 0x79, 0x4d, 0x2f, 0x8d, 0x4d, 0x66, 0xe8, 0x4b, 0x30, - 0x45, 0xad, 0x14, 0x2f, 0x65, 0x3f, 0x5e, 0x9e, 0x3d, 0x3a, 0x3a, 0x9c, 0x9f, 0xc2, 0x46, 0x71, - 0x9c, 0x61, 0x87, 0x36, 0xa1, 0xe6, 0x7b, 0xdb, 0xa4, 0x75, 0xd0, 0xf2, 0xc9, 0xec, 0x04, 0xe3, - 0x5d, 0x30, 0xe5, 0xae, 0x49, 0x72, 0x6e, 0x19, 0xaa, 0xbf, 0x38, 0x65, 0x84, 0x6e, 0xc1, 0x99, - 0x84, 0x44, 0x7b, 0x5e, 0xe0, 0xd0, 0xe5, 0x5a, 0x98, 0x2d, 0x6c, 0x6f, 0x3b, 0xc9, 0xa4, 0xf6, - 0xac, 0x18, 0xd8, 0x33, 0x9b, 0xb9, 0x54, 0xb8, 0x47, 0x69, 0x74, 0x03, 0xa6, 0xd9, 0x7c, 0x6a, - 0x74, 0x7c, 0xbf, 0x11, 0xfa, 0x5e, 0xeb, 0x60, 0x76, 0x8a, 0x31, 0x7c, 0x5a, 0xee, 0x58, 0xd7, - 0x4d, 0x34, 0xb5, 0xe8, 0xd3, 0x7f, 0x38, 0x5b, 0x1a, 0xf9, 0x30, 0x1d, 0x93, 0x56, 0x27, 0xf2, - 0x92, 0x03, 0x2a, 0xfb, 0xe4, 0x5e, 0x32, 0x3b, 0x5d, 0x66, 0x87, 0xd2, 0x34, 0x0b, 0x71, 0x77, - 0x41, 0x06, 0x88, 0xb3, 0xac, 0xa9, 0xaa, 0x88, 0x13, 0xd7, 0x0b, 0x66, 0x67, 0x98, 0x49, 0xaa, - 0xe6, 0x57, 0x93, 0x02, 0x31, 0xc7, 0xb1, 0x0d, 0x1f, 0xfd, 0x71, 0x83, 0xea, 0xde, 0x13, 0x8c, - 0x30, 0xdd, 0xf0, 0x49, 0x04, 0x4e, 0x69, 0xe8, 0x6a, 0x95, 0x24, 0x07, 0xb3, 0x88, 0x91, 0xaa, - 0xa9, 0xb6, 0xb9, 0xf9, 0x39, 0x4c, 0xe1, 0xf6, 0x16, 0x4c, 0xa9, 0x69, 0xcd, 0x46, 0x07, 0xcd, - 0xc3, 0x30, 0xd5, 0x5c, 0x72, 0xdf, 0x52, 0xa3, 0x4d, 0xa0, 0x0a, 0x2d, 0xc6, 0x1c, 0xce, 0x9a, - 0xe0, 0x7d, 0x95, 0x2c, 0x1f, 0x24, 0x84, 0xdb, 0xaf, 0x55, 0xad, 0x09, 0x12, 0x81, 0x53, 0x1a, - 0xfb, 0xff, 0xf0, 0x15, 0x31, 0xd5, 0x1d, 0x25, 0xf4, 0xe6, 0x05, 0x18, 0xdb, 0x0d, 0xe3, 0x84, - 0x52, 0xb3, 0x3a, 0x86, 0xd3, 0x55, 0xf0, 0x8a, 0x80, 0x63, 0x45, 0x81, 0x5e, 0x83, 0xc9, 0x96, - 0x5e, 0x81, 0x50, 0xe5, 0xa7, 0x45, 0x11, 0xb3, 0x76, 0x6c, 0xd2, 0xa2, 0x57, 0x61, 0x8c, 0x39, - 0xf1, 0x5a, 0xa1, 0x2f, 0x2c, 0x65, 0xb9, 0x32, 0x8d, 0x35, 0x04, 0xfc, 0xbe, 0xf6, 0x1b, 0x2b, - 0x6a, 0xba, 0xdf, 0xa0, 0x4d, 0x58, 0x6f, 0x08, 0x75, 0xab, 0xf6, 0x1b, 0x57, 0x18, 0x14, 0x0b, - 0xac, 0xfd, 0x2f, 0x2a, 0xda, 0x28, 0x53, 0x8b, 0x8f, 0xa0, 0xcf, 0xc3, 0xe8, 0x5d, 0xc7, 0x4b, - 0xbc, 0x60, 0x47, 0xac, 0xa0, 0x2f, 0x96, 0xd4, 0xbd, 0xac, 0xf8, 0x6d, 0x5e, 0x94, 0xaf, 0x13, - 0xe2, 0x0f, 0x96, 0x0c, 0x29, 0xef, 0xa8, 0x13, 0x04, 0x94, 0x77, 0xa5, 0x7f, 0xde, 0x98, 0x17, - 0xe5, 0xbc, 0xc5, 0x1f, 0x2c, 0x19, 0xa2, 0x6d, 0x00, 0x39, 0xfb, 0x88, 0x2b, 0x9c, 0x67, 0x9f, - 0xe8, 0x87, 0xfd, 0xa6, 0x2a, 0xbd, 0x3c, 0x45, 0x57, 0xa6, 0xf4, 0x3f, 0xd6, 0x38, 0xdb, 0x11, - 0x33, 0x44, 0xba, 0x9b, 0x85, 0x3e, 0x47, 0x27, 0x80, 0x13, 0x25, 0xc4, 0x5d, 0x4a, 0x8a, 0xcd, - 0xe0, 0xd4, 0x9a, 0xda, 0xf4, 0xf6, 0x88, 0x3e, 0x55, 0x04, 0x0b, 0x9c, 0x72, 0xb3, 0xbf, 0x5f, - 0x85, 0xd9, 0x5e, 0x8d, 0xa5, 0x02, 0x49, 0xee, 0x79, 0xc9, 0x0a, 0x35, 0x14, 0x2c, 0x53, 0x20, - 0x57, 0x05, 0x1c, 0x2b, 0x0a, 0x2a, 0x19, 0xb1, 0xb7, 0x13, 0x38, 0xbe, 0x10, 0x5e, 0x25, 0x19, - 0x4d, 0x06, 0xc5, 0x02, 0x4b, 0xe9, 0x22, 0xe2, 0xc4, 0xc2, 0x73, 0xab, 0x49, 0x10, 0x66, 0x50, - 0x2c, 0xb0, 0xfa, 0xae, 0x6f, 0xa8, 0x60, 0xd7, 0x67, 0x0c, 0xd0, 0xf0, 0xc3, 0x1c, 0x20, 0xf4, - 0x36, 0xc0, 0xb6, 0x17, 0x78, 0xf1, 0x2e, 0xe3, 0x3d, 0xd2, 0x27, 0x6f, 0x65, 0x8c, 0xac, 0x29, - 0x1e, 0x58, 0xe3, 0x87, 0x5e, 0x86, 0x71, 0x35, 0x31, 0xd7, 0xeb, 0xb3, 0xa3, 0xa6, 0xa7, 0x2f, - 0xd5, 0x52, 0x75, 0xac, 0xd3, 0xd9, 0x5f, 0xc9, 0x4a, 0x8a, 0x98, 0x0f, 0xda, 0xd8, 0x5a, 0x65, - 0xc7, 0xb6, 0x72, 0xfc, 0xd8, 0xda, 0xff, 0xa5, 0x4a, 0x37, 0xcb, 0x5a, 0x65, 0x9d, 0xb8, 0x84, - 0x2e, 0x7b, 0x93, 0x2a, 0x76, 0x27, 0x21, 0x62, 0x36, 0x5e, 0xe8, 0x67, 0xba, 0xe8, 0xcb, 0x00, - 0x9d, 0x05, 0x9c, 0x13, 0xda, 0x85, 0x9a, 0xef, 0xc4, 0x6c, 0xf7, 0x48, 0xc4, 0x2c, 0xec, 0x8f, - 0x6d, 0x6a, 0x7c, 0x3b, 0x71, 0xa2, 0xad, 0xb3, 0xbc, 0x96, 0x94, 0x39, 0x5d, 0x95, 0xa8, 0x51, - 0x20, 0x8f, 0x0a, 0x54, 0x73, 0xa8, 0xe5, 0x70, 0x80, 0x39, 0x0e, 0xbd, 0x0a, 0x13, 0x11, 0x61, - 0x72, 0xb2, 0x42, 0xed, 0x1e, 0x26, 0x76, 0xc3, 0xa9, 0x81, 0x84, 0x35, 0x1c, 0x36, 0x28, 0x53, - 0xfb, 0x78, 0xe4, 0x18, 0xfb, 0xf8, 0x59, 0x18, 0x65, 0x3f, 0x94, 0x54, 0xa8, 0x2f, 0xb4, 0xce, - 0xc1, 0x58, 0xe2, 0xb3, 0x42, 0x34, 0x56, 0x52, 0x88, 0x9e, 0x83, 0xa9, 0xba, 0x43, 0xf6, 0xc2, - 0x60, 0x35, 0x70, 0xdb, 0xa1, 0x17, 0x24, 0x68, 0x16, 0x86, 0xd8, 0x4a, 0xc2, 0xe7, 0xfa, 0x10, - 0xe5, 0x80, 0x87, 0xa8, 0x8d, 0x6b, 0xff, 0x5f, 0x0b, 0x26, 0xeb, 0xc4, 0x27, 0x09, 0xb9, 0xd1, - 0x66, 0xfe, 0x06, 0xb4, 0x06, 0x68, 0x27, 0x72, 0x5a, 0xa4, 0x41, 0x22, 0x2f, 0x74, 0x9b, 0xa4, - 0x15, 0x06, 0xcc, 0xc3, 0x4e, 0x97, 0xc6, 0x33, 0x47, 0x87, 0xf3, 0xe8, 0x72, 0x17, 0x16, 0xe7, - 0x94, 0x40, 0x2e, 0x4c, 0xb6, 0x23, 0x62, 0x38, 0x48, 0xac, 0x62, 0xb3, 0xbc, 0xa1, 0x17, 0xe1, - 0x56, 0xa3, 0x01, 0xc2, 0x26, 0x53, 0xf4, 0x19, 0x98, 0x09, 0xa3, 0xf6, 0xae, 0x13, 0xd4, 0x49, - 0x9b, 0x04, 0x2e, 0x35, 0x95, 0x85, 0x17, 0xec, 0xd4, 0xd1, 0xe1, 0xfc, 0xcc, 0x8d, 0x0c, 0x0e, - 0x77, 0x51, 0xdb, 0xbf, 0x5e, 0x81, 0xd3, 0xf5, 0xf0, 0x6e, 0x70, 0xd7, 0x89, 0xdc, 0xa5, 0xc6, - 0x3a, 0xb7, 0x7f, 0x99, 0x57, 0x51, 0x7a, 0x33, 0xad, 0x9e, 0xde, 0xcc, 0x2f, 0xc0, 0xd8, 0xb6, - 0x47, 0x7c, 0x17, 0x93, 0x6d, 0xd1, 0xbd, 0x8b, 0x65, 0xbc, 0x18, 0x6b, 0xb4, 0x8c, 0xf4, 0x04, - 0x70, 0x67, 0xea, 0x9a, 0x60, 0x83, 0x15, 0x43, 0xd4, 0x81, 0x19, 0x69, 0xe0, 0x4b, 0xac, 0x98, - 0x1d, 0x2f, 0x96, 0xdb, 0x3f, 0x98, 0xd5, 0xb0, 0xf1, 0xc0, 0x19, 0x86, 0xb8, 0xab, 0x0a, 0xba, - 0x31, 0xdb, 0xa3, 0xeb, 0xc2, 0x10, 0x93, 0x15, 0xb6, 0x31, 0x63, 0x3b, 0x47, 0x06, 0xb5, 0xff, - 0xa9, 0x05, 0x8f, 0x75, 0x8d, 0x96, 0xd8, 0x56, 0xbf, 0x25, 0xf7, 0xb3, 0xfc, 0x38, 0xa6, 0xa0, - 0x95, 0xb9, 0x63, 0x5e, 0x6e, 0x6f, 0x5b, 0x29, 0xb1, 0xb7, 0xbd, 0x01, 0xa7, 0x56, 0xf7, 0xda, - 0xc9, 0x41, 0xdd, 0x33, 0x9d, 0xb0, 0xaf, 0xc0, 0xc8, 0x1e, 0x71, 0xbd, 0xce, 0x9e, 0xf8, 0xac, - 0xf3, 0x52, 0x91, 0x6e, 0x30, 0xe8, 0xfd, 0xc3, 0xf9, 0xc9, 0x66, 0x12, 0x46, 0xce, 0x0e, 0xe1, - 0x00, 0x2c, 0xc8, 0xed, 0xf7, 0x2c, 0x98, 0x96, 0x13, 0x6a, 0xc9, 0x75, 0x23, 0x12, 0xc7, 0x68, - 0x0e, 0x2a, 0x5e, 0x5b, 0x30, 0x02, 0xc1, 0xa8, 0xb2, 0xde, 0xc0, 0x15, 0xaf, 0x8d, 0x3e, 0x0f, - 0x35, 0xee, 0xbb, 0x4f, 0x85, 0xa3, 0xcf, 0xb3, 0x00, 0xb6, 0xe9, 0xd8, 0x94, 0x3c, 0x70, 0xca, - 0x4e, 0x1a, 0x94, 0x4c, 0x55, 0x57, 0x4d, 0x4f, 0xf2, 0x15, 0x01, 0xc7, 0x8a, 0x02, 0x9d, 0x87, - 0xb1, 0x20, 0x74, 0xf9, 0xb1, 0x0a, 0x5f, 0x70, 0x99, 0xc8, 0x5d, 0x17, 0x30, 0xac, 0xb0, 0xf6, - 0x37, 0x2d, 0x98, 0x90, 0x7d, 0x2c, 0x69, 0xdb, 0xd2, 0x49, 0x92, 0xda, 0xb5, 0xe9, 0x24, 0xa1, - 0xb6, 0x29, 0xc3, 0x18, 0x26, 0x69, 0xb5, 0x1f, 0x93, 0xd4, 0xfe, 0x51, 0x05, 0xa6, 0x64, 0x73, - 0x9a, 0x9d, 0xad, 0x98, 0x24, 0xe8, 0x8b, 0x50, 0x73, 0xf8, 0xe0, 0x13, 0x29, 0x67, 0x2f, 0x14, - 0x6d, 0xcc, 0x8d, 0x6f, 0x96, 0x5a, 0x05, 0x4b, 0x92, 0x0f, 0x4e, 0x59, 0xa2, 0x7d, 0x38, 0x11, - 0x84, 0x09, 0x5b, 0x0f, 0x14, 0xbe, 0x9c, 0x17, 0x34, 0x5b, 0xcf, 0xe3, 0xa2, 0x9e, 0x13, 0xd7, - 0xb3, 0xfc, 0x70, 0x77, 0x15, 0xe8, 0x86, 0x74, 0x5e, 0x54, 0x59, 0x5d, 0xcf, 0x95, 0xab, 0xab, - 0xb7, 0xef, 0xc2, 0xfe, 0x1d, 0x0b, 0x6a, 0x92, 0x6c, 0x90, 0x4e, 0xf0, 0xdb, 0x30, 0x1a, 0xb3, - 0x4f, 0x23, 0x87, 0xe9, 0x42, 0xb9, 0xa6, 0xf3, 0xef, 0x99, 0x2e, 0x7e, 0xfc, 0x7f, 0x8c, 0x25, - 0x37, 0xe6, 0x7a, 0x54, 0x1d, 0xf8, 0x80, 0xb9, 0x1e, 0x55, 0xbb, 0x7a, 0xb8, 0x1e, 0x7f, 0xcd, - 0x82, 0x11, 0xee, 0x10, 0x2a, 0xe7, 0x55, 0xd3, 0x9c, 0xc7, 0x29, 0xc7, 0x5b, 0x14, 0x28, 0x7c, - 0xc9, 0xe8, 0x36, 0xd4, 0xd8, 0x8f, 0xb5, 0x28, 0xdc, 0x13, 0xab, 0xc0, 0x73, 0x65, 0x1c, 0x52, - 0x5c, 0xeb, 0x71, 0x55, 0x72, 0x4b, 0x32, 0xc0, 0x29, 0x2f, 0xfb, 0xc7, 0x55, 0x3a, 0xe5, 0x53, - 0x52, 0x63, 0x4d, 0xb3, 0x1e, 0xc5, 0x9a, 0x56, 0x19, 0xfc, 0x9a, 0xf6, 0x0e, 0x4c, 0xb7, 0x34, - 0x27, 0x7c, 0xba, 0x92, 0x5e, 0x2a, 0xe9, 0x62, 0xd6, 0x3c, 0xf7, 0xdc, 0x01, 0xb2, 0x62, 0xb2, - 0xc3, 0x59, 0xfe, 0x88, 0xc0, 0x04, 0x3f, 0x3e, 0x14, 0xf5, 0x0d, 0xb1, 0xfa, 0x16, 0x0b, 0x7d, - 0x2d, 0xbc, 0x84, 0xaa, 0x8c, 0x85, 0x98, 0x34, 0x35, 0x46, 0xd8, 0x60, 0x6b, 0xff, 0xea, 0x30, - 0x0c, 0xaf, 0xee, 0x93, 0x20, 0x19, 0xe0, 0x14, 0xdf, 0x83, 0x29, 0x2f, 0xd8, 0x0f, 0xfd, 0x7d, - 0xe2, 0x72, 0xfc, 0x83, 0x2d, 0x67, 0x67, 0x44, 0x25, 0x53, 0xeb, 0x06, 0x33, 0x9c, 0x61, 0x3e, - 0x88, 0x6d, 0xe4, 0x9b, 0x30, 0xc2, 0x25, 0x42, 0xec, 0x21, 0x0b, 0x1c, 0xa3, 0x6c, 0x40, 0xc5, - 0xcc, 0x49, 0x37, 0xbb, 0xdc, 0x27, 0x2b, 0x18, 0xa1, 0x5d, 0x98, 0xda, 0xf6, 0xa2, 0x38, 0xa1, - 0xbb, 0xc1, 0x38, 0x71, 0xf6, 0xda, 0x7d, 0x6f, 0x21, 0xd5, 0x78, 0xac, 0x19, 0x7c, 0x70, 0x86, - 0x2f, 0x22, 0x30, 0x49, 0x77, 0x30, 0x69, 0x45, 0xa3, 0x7d, 0x56, 0xa4, 0x3c, 0x47, 0xd7, 0x74, - 0x36, 0xd8, 0xe4, 0x4a, 0xd5, 0x50, 0x8b, 0xed, 0x77, 0xc6, 0xd8, 0x4a, 0xae, 0xd4, 0x10, 0xdf, - 0xe8, 0x70, 0x1c, 0xd5, 0x66, 0xec, 0x9c, 0xb8, 0x66, 0x6a, 0xb3, 0xf4, 0x34, 0xd8, 0xfe, 0x1e, - 0x5d, 0x77, 0xe8, 0xf8, 0x0d, 0x5c, 0x65, 0x5f, 0x31, 0x55, 0xf6, 0x53, 0x25, 0xbe, 0x69, 0x0f, - 0x75, 0xfd, 0x65, 0x18, 0xd7, 0x3e, 0x39, 0x5a, 0x84, 0x5a, 0x4b, 0x1e, 0x69, 0x0a, 0xbd, 0xad, - 0x8c, 0x06, 0x75, 0xd6, 0x89, 0x53, 0x1a, 0x3a, 0x2a, 0xd4, 0xd8, 0xca, 0x86, 0x3d, 0x50, 0x53, - 0x0c, 0x33, 0x8c, 0xfd, 0x22, 0xc0, 0xea, 0x3d, 0xd2, 0x5a, 0x6a, 0xb1, 0xd3, 0x76, 0xed, 0x88, - 0xc4, 0xea, 0x7d, 0x44, 0x42, 0x87, 0x72, 0x6a, 0x6d, 0xc5, 0xb0, 0x5e, 0x17, 0x00, 0xb8, 0x15, - 0x78, 0xfb, 0xf6, 0x75, 0xe9, 0xd4, 0xe4, 0x9e, 0x27, 0x05, 0xc5, 0x1a, 0x05, 0x7a, 0x1c, 0xaa, - 0x7e, 0x27, 0x10, 0xc6, 0xd9, 0xe8, 0xd1, 0xe1, 0x7c, 0xf5, 0x5a, 0x27, 0xc0, 0x14, 0xa6, 0xc5, - 0x17, 0x54, 0x4b, 0xc7, 0x17, 0x14, 0x47, 0xd8, 0x7d, 0xbb, 0x0a, 0x33, 0x6b, 0x3e, 0xb9, 0x67, - 0xb4, 0xfa, 0x19, 0x18, 0x71, 0x23, 0x6f, 0x9f, 0x44, 0x59, 0xe7, 0x45, 0x9d, 0x41, 0xb1, 0xc0, - 0x96, 0x0e, 0x79, 0x30, 0xc2, 0x3d, 0xaa, 0x03, 0x0e, 0xf7, 0x28, 0xec, 0x33, 0xda, 0x86, 0xd1, - 0x90, 0x6f, 0x9e, 0x67, 0x87, 0x99, 0x28, 0xbe, 0x76, 0x7c, 0x63, 0xb2, 0xe3, 0xb3, 0x20, 0xb6, - 0xde, 0xfc, 0xf8, 0x59, 0x69, 0x31, 0x01, 0xc5, 0x92, 0xf9, 0xdc, 0xa7, 0x60, 0x42, 0xa7, 0xec, - 0xeb, 0x1c, 0xfa, 0x97, 0x2c, 0x38, 0xb9, 0xe6, 0x87, 0xad, 0x3b, 0x99, 0x98, 0x94, 0x97, 0x61, - 0x9c, 0x4e, 0xa6, 0xd8, 0x08, 0xd4, 0x32, 0x22, 0xd2, 0x04, 0x0a, 0xeb, 0x74, 0x5a, 0xb1, 0x9b, - 0x37, 0xd7, 0xeb, 0x79, 0x81, 0x6c, 0x02, 0x85, 0x75, 0x3a, 0xfb, 0x3f, 0x5b, 0xf0, 0xe4, 0xe5, - 0x95, 0xd5, 0x06, 0x89, 0x62, 0x2f, 0x4e, 0x48, 0x90, 0x74, 0xc5, 0xd2, 0x3d, 0x03, 0x23, 0x6d, - 0x57, 0x6b, 0x8a, 0x12, 0x81, 0x46, 0x9d, 0xb5, 0x42, 0x60, 0x3f, 0x28, 0x01, 0xa5, 0xbf, 0x66, - 0xc1, 0xc9, 0xcb, 0x5e, 0x82, 0x49, 0x3b, 0xcc, 0x86, 0xbf, 0x45, 0xa4, 0x1d, 0xc6, 0x5e, 0x12, - 0x46, 0x07, 0xd9, 0xf0, 0x37, 0xac, 0x30, 0x58, 0xa3, 0xe2, 0x35, 0xef, 0x7b, 0x31, 0x6d, 0x69, - 0xc5, 0xdc, 0xd4, 0x61, 0x01, 0xc7, 0x8a, 0x82, 0x76, 0xcc, 0xf5, 0x22, 0x66, 0x24, 0x1c, 0x88, - 0x19, 0xac, 0x3a, 0x56, 0x97, 0x08, 0x9c, 0xd2, 0xd8, 0x7f, 0xdf, 0x82, 0xd3, 0x97, 0xfd, 0x4e, - 0x9c, 0x90, 0x68, 0x3b, 0x36, 0x1a, 0xfb, 0x22, 0xd4, 0x88, 0x34, 0x68, 0x45, 0x5b, 0xd5, 0x92, - 0xa1, 0x2c, 0x5d, 0x1e, 0x7b, 0xa7, 0xe8, 0x4a, 0x84, 0x7a, 0xf5, 0x17, 0x98, 0xf4, 0x5b, 0x15, - 0x98, 0xbc, 0xb2, 0xb9, 0xd9, 0xb8, 0x4c, 0x12, 0xa1, 0x25, 0x8b, 0xdd, 0x2f, 0x0d, 0x6d, 0xef, - 0x39, 0x7e, 0x69, 0xa1, 0xc7, 0xac, 0xeb, 0x24, 0x9e, 0xbf, 0xc0, 0x43, 0x9d, 0x17, 0xd6, 0x83, - 0xe4, 0x46, 0xd4, 0x4c, 0x22, 0x2f, 0xd8, 0xc9, 0xdd, 0xab, 0x4a, 0x4d, 0x5e, 0xed, 0xa5, 0xc9, - 0xd1, 0x8b, 0x30, 0xc2, 0x22, 0xad, 0xa5, 0xd1, 0xf1, 0x61, 0x65, 0x1f, 0x30, 0xe8, 0xfd, 0xc3, - 0xf9, 0xda, 0x4d, 0xbc, 0xce, 0xff, 0x60, 0x41, 0x8a, 0xbe, 0x04, 0xe3, 0xbb, 0x49, 0xd2, 0xbe, - 0x42, 0x1c, 0x97, 0x44, 0x52, 0x4b, 0x14, 0x98, 0x67, 0x74, 0x30, 0x78, 0x81, 0x74, 0x62, 0xa5, - 0xb0, 0x18, 0xeb, 0x1c, 0xed, 0x26, 0x40, 0x8a, 0x7b, 0x48, 0x7b, 0x0e, 0xfb, 0xaf, 0x55, 0x60, - 0xf4, 0x8a, 0x13, 0xb8, 0x3e, 0x89, 0xd0, 0x1a, 0x0c, 0x91, 0x7b, 0xa4, 0x55, 0xce, 0xb2, 0x4c, - 0x97, 0x3a, 0xee, 0x3f, 0xa2, 0xff, 0x31, 0x2b, 0x8f, 0x30, 0x8c, 0xd2, 0x76, 0x5f, 0x56, 0xf1, - 0x91, 0xcf, 0x17, 0x8f, 0x82, 0x12, 0x09, 0xbe, 0x4e, 0x0a, 0x10, 0x96, 0x8c, 0x98, 0xa7, 0xa5, - 0xd5, 0x6e, 0x52, 0xe5, 0x96, 0x94, 0x0b, 0x81, 0xde, 0x5c, 0x69, 0x70, 0x72, 0xc1, 0x97, 0x7b, - 0x5a, 0x24, 0x10, 0xa7, 0xec, 0xec, 0x57, 0xe1, 0x14, 0x3b, 0xa2, 0x73, 0x92, 0x5d, 0x63, 0xce, - 0x14, 0x0a, 0xa7, 0xfd, 0x8f, 0x2a, 0x70, 0x62, 0xbd, 0xb9, 0xd2, 0x34, 0x7d, 0x64, 0xaf, 0xc2, - 0x04, 0x5f, 0x9e, 0xa9, 0xd0, 0x39, 0xbe, 0x28, 0xaf, 0x9c, 0xcb, 0x9b, 0x1a, 0x0e, 0x1b, 0x94, - 0xe8, 0x49, 0xa8, 0x7a, 0xef, 0x04, 0xd9, 0x48, 0x9d, 0xf5, 0x37, 0xaf, 0x63, 0x0a, 0xa7, 0x68, - 0xba, 0xd2, 0x73, 0x15, 0xa7, 0xd0, 0x6a, 0xb5, 0x7f, 0x03, 0xa6, 0xbc, 0xb8, 0x15, 0x7b, 0xeb, - 0x01, 0x9d, 0xff, 0x4e, 0x4b, 0x8a, 0x6f, 0x6a, 0x94, 0xd3, 0xa6, 0x2a, 0x2c, 0xce, 0x50, 0x6b, - 0xfa, 0x76, 0xb8, 0xb4, 0xb5, 0x50, 0x1c, 0x28, 0xf9, 0x15, 0xa8, 0xa9, 0xb0, 0x16, 0x19, 0x8a, - 0x64, 0xe5, 0x87, 0x22, 0x95, 0x50, 0x38, 0xd2, 0x73, 0x59, 0xcd, 0xf5, 0x5c, 0xfe, 0x86, 0x05, - 0xe9, 0x09, 0x3e, 0xc2, 0x50, 0x6b, 0x87, 0xec, 0x58, 0x20, 0x92, 0x27, 0x6f, 0x4f, 0x17, 0x48, - 0x22, 0x9f, 0x09, 0x5c, 0x56, 0x1a, 0xb2, 0x2c, 0x4e, 0xd9, 0xa0, 0x6b, 0x30, 0xda, 0x8e, 0x48, - 0x33, 0x61, 0xd1, 0xb6, 0x7d, 0x70, 0x64, 0x52, 0xdd, 0xe0, 0x25, 0xb1, 0x64, 0x61, 0xff, 0x6b, - 0x0b, 0xe0, 0x9a, 0xb7, 0xe7, 0x25, 0xd8, 0x09, 0x76, 0xc8, 0x00, 0xb7, 0x77, 0xd7, 0x61, 0x28, - 0x6e, 0x93, 0x56, 0xb9, 0x03, 0x9d, 0xb4, 0x45, 0xcd, 0x36, 0x69, 0xa5, 0x9f, 0x81, 0xfe, 0xc3, - 0x8c, 0x8f, 0xfd, 0x9b, 0x00, 0x53, 0x29, 0x19, 0x35, 0xb4, 0xd1, 0x0b, 0x46, 0x78, 0xe9, 0xe3, - 0x99, 0xf0, 0xd2, 0x1a, 0xa3, 0xd6, 0x22, 0x4a, 0x13, 0xa8, 0xee, 0x39, 0xf7, 0x84, 0x5d, 0xff, - 0x72, 0xd9, 0x06, 0xd1, 0x9a, 0x16, 0x36, 0x9c, 0x7b, 0xdc, 0x8c, 0x7a, 0x5e, 0x0a, 0xd0, 0x86, - 0x73, 0xef, 0x3e, 0x3f, 0xb6, 0x61, 0x33, 0x90, 0x6e, 0x24, 0xbe, 0xfe, 0x5f, 0xd3, 0xff, 0x4c, - 0x29, 0xd2, 0xea, 0x58, 0xad, 0x5e, 0x20, 0x1c, 0x70, 0x7d, 0xd6, 0xea, 0x05, 0xd9, 0x5a, 0xbd, - 0xa0, 0x44, 0xad, 0x5e, 0x80, 0xde, 0xb5, 0x60, 0x54, 0xf8, 0xad, 0x59, 0x2c, 0xd4, 0xf8, 0xa5, - 0x4f, 0xf6, 0x55, 0xb5, 0x70, 0x80, 0xf3, 0xea, 0x17, 0xa5, 0xed, 0x28, 0xa0, 0x85, 0x4d, 0x90, - 0x55, 0xa3, 0xef, 0x58, 0x30, 0x25, 0x7e, 0x63, 0xf2, 0x4e, 0x87, 0xc4, 0x89, 0x58, 0xa5, 0x3e, - 0xf3, 0x20, 0xad, 0x11, 0x2c, 0x78, 0xa3, 0x3e, 0x21, 0x55, 0x8c, 0x89, 0x2c, 0x6c, 0x5b, 0xa6, - 0x3d, 0xe8, 0x87, 0x16, 0x9c, 0xda, 0x73, 0xee, 0xf1, 0x1a, 0x39, 0x0c, 0x3b, 0x89, 0x17, 0x8a, - 0x78, 0xaf, 0xb5, 0x7e, 0xe5, 0xa4, 0x8b, 0x11, 0x6f, 0xee, 0xeb, 0xf2, 0x30, 0x31, 0x8f, 0xa4, - 0xb0, 0xd1, 0xb9, 0x2d, 0x9c, 0x73, 0x61, 0x4c, 0x0a, 0x66, 0x8e, 0xd5, 0xbe, 0xac, 0x2f, 0xc6, - 0xc7, 0xcf, 0x40, 0xe9, 0xd9, 0x5a, 0x78, 0xb3, 0xe3, 0x04, 0x89, 0x97, 0x1c, 0x68, 0x36, 0x3e, - 0xab, 0x45, 0x08, 0xe2, 0x00, 0x6b, 0xd9, 0x85, 0x09, 0x5d, 0xe6, 0x06, 0x58, 0x53, 0x08, 0x27, - 0x73, 0xe4, 0x69, 0x80, 0x15, 0x76, 0xe0, 0xf1, 0x9e, 0x72, 0x31, 0xb8, 0x6a, 0xed, 0xdf, 0xb2, - 0x74, 0x85, 0x39, 0x70, 0xbf, 0xc9, 0x86, 0xe9, 0x37, 0x39, 0x5f, 0x76, 0xde, 0xf4, 0x70, 0x9e, - 0x6c, 0xeb, 0x8d, 0xa7, 0xcb, 0x00, 0xda, 0x84, 0x11, 0x9f, 0x42, 0xe4, 0x01, 0xcd, 0x85, 0x7e, - 0x66, 0x66, 0x6a, 0x59, 0x30, 0x78, 0x8c, 0x05, 0x2f, 0xfb, 0x07, 0x16, 0x0c, 0x0d, 0x7c, 0x6c, - 0x1a, 0xe6, 0xd8, 0xf4, 0x32, 0x4e, 0xc5, 0x9d, 0xcb, 0x05, 0xec, 0xdc, 0x5d, 0xbd, 0x97, 0x90, - 0x20, 0x66, 0x46, 0x64, 0xee, 0xf0, 0xfc, 0x7a, 0x05, 0xc6, 0x69, 0x45, 0xf2, 0x78, 0xfd, 0x35, - 0x98, 0xf4, 0x9d, 0x2d, 0xe2, 0x4b, 0x0f, 0x6f, 0x76, 0xc3, 0x75, 0x4d, 0x47, 0x62, 0x93, 0x96, - 0x16, 0xde, 0xd6, 0x1d, 0xe0, 0xc2, 0x18, 0x52, 0x85, 0x0d, 0xef, 0x38, 0x36, 0x69, 0xa9, 0xcd, - 0x7f, 0xd7, 0x49, 0x5a, 0xbb, 0x62, 0x33, 0xa6, 0x9a, 0x7b, 0x9b, 0x02, 0x31, 0xc7, 0xa1, 0x25, - 0x98, 0x96, 0xb2, 0x7a, 0x8b, 0xee, 0xd2, 0xc3, 0x40, 0x18, 0x8a, 0xea, 0xa2, 0x1c, 0x36, 0xd1, - 0x38, 0x4b, 0x8f, 0x3e, 0x05, 0x53, 0x74, 0x70, 0xc2, 0x4e, 0x22, 0x83, 0x07, 0x86, 0x59, 0xf0, - 0x00, 0x8b, 0xd1, 0xdc, 0x34, 0x30, 0x38, 0x43, 0x69, 0x7f, 0x09, 0x4e, 0x5e, 0x0b, 0x1d, 0x77, - 0xd9, 0xf1, 0x9d, 0xa0, 0x45, 0xa2, 0xf5, 0x60, 0xa7, 0xf0, 0x9c, 0x55, 0x3f, 0x0b, 0xad, 0x14, - 0x9d, 0x85, 0xda, 0x11, 0x20, 0xbd, 0x02, 0x11, 0xf6, 0xf2, 0x36, 0x8c, 0x7a, 0xbc, 0x2a, 0x21, - 0xb2, 0x17, 0x8b, 0xdc, 0x49, 0x5d, 0x6d, 0xd4, 0xc2, 0x38, 0x38, 0x00, 0x4b, 0x96, 0x74, 0x0f, - 0x91, 0xe7, 0x7f, 0x2a, 0xde, 0xa6, 0xd9, 0x7f, 0xc3, 0x82, 0xe9, 0xeb, 0x99, 0xdb, 0x58, 0xcf, - 0xc0, 0x48, 0x4c, 0xa2, 0x1c, 0x67, 0x5a, 0x93, 0x41, 0xb1, 0xc0, 0x3e, 0xf4, 0x0d, 0xfa, 0x37, - 0x2a, 0x50, 0x63, 0xa1, 0x93, 0x6d, 0xa7, 0x35, 0x48, 0x73, 0x74, 0xc3, 0x30, 0x47, 0x0b, 0xb6, - 0x87, 0xaa, 0x41, 0xbd, 0xac, 0x51, 0x74, 0x53, 0xdd, 0x4e, 0x2a, 0xb5, 0x33, 0x4c, 0x19, 0xf2, - 0xbb, 0x2c, 0x53, 0xe6, 0x65, 0x26, 0x79, 0x73, 0x89, 0x9d, 0x4e, 0x2a, 0xda, 0x0f, 0xd8, 0xe9, - 0xa4, 0x6a, 0x57, 0x0f, 0x95, 0xd4, 0xd0, 0x9a, 0xce, 0x14, 0xf6, 0xa7, 0x59, 0x28, 0x9c, 0xe3, - 0x7b, 0x5f, 0x25, 0xea, 0x8a, 0xdf, 0xbc, 0x08, 0x6e, 0x13, 0xd0, 0xfb, 0x4c, 0xbb, 0x88, 0x7f, - 0xfc, 0xe6, 0x66, 0x5a, 0xc4, 0xbe, 0x02, 0xd3, 0x99, 0x81, 0x43, 0x2f, 0xc3, 0x70, 0x7b, 0xd7, - 0x89, 0x49, 0x26, 0xcc, 0x62, 0xb8, 0x41, 0x81, 0xf7, 0x0f, 0xe7, 0xa7, 0x54, 0x01, 0x06, 0xc1, - 0x9c, 0xda, 0xfe, 0x73, 0x0b, 0x86, 0xae, 0x87, 0xee, 0x20, 0x05, 0xec, 0x8a, 0x21, 0x60, 0xcf, - 0x14, 0xdf, 0xf7, 0xee, 0x29, 0x5b, 0x8d, 0x8c, 0x6c, 0x9d, 0x2f, 0xc1, 0xeb, 0x78, 0xb1, 0xda, - 0x83, 0x71, 0x76, 0x9f, 0x5c, 0xc4, 0x97, 0xbc, 0x68, 0xec, 0x9b, 0xe6, 0x33, 0xfb, 0xa6, 0x69, - 0x8d, 0x54, 0xdb, 0x3d, 0x3d, 0x0b, 0xa3, 0x22, 0x9e, 0x21, 0x1b, 0x02, 0x28, 0x68, 0xb1, 0xc4, - 0xdb, 0xff, 0xb2, 0x0a, 0xc6, 0xfd, 0x75, 0xf4, 0xfb, 0x16, 0x2c, 0x44, 0xfc, 0xda, 0x81, 0x5b, - 0xef, 0x44, 0x5e, 0xb0, 0xd3, 0x6c, 0xed, 0x12, 0xb7, 0xe3, 0x7b, 0xc1, 0xce, 0xfa, 0x4e, 0x10, - 0x2a, 0xf0, 0xea, 0x3d, 0xd2, 0xea, 0x30, 0xa7, 0x6a, 0xe9, 0x6b, 0xf3, 0xea, 0x4c, 0xf3, 0xd2, - 0xd1, 0xe1, 0xfc, 0x02, 0xee, 0xab, 0x16, 0xdc, 0x67, 0xab, 0xd0, 0x1f, 0x59, 0xb0, 0xc8, 0x6f, - 0x70, 0x97, 0xef, 0x49, 0xa9, 0xfd, 0x66, 0x43, 0x32, 0x4d, 0xd9, 0x6d, 0x92, 0x68, 0x6f, 0xf9, - 0x15, 0x31, 0xc8, 0x8b, 0x8d, 0xfe, 0x6a, 0xc5, 0xfd, 0x36, 0xd3, 0xfe, 0xed, 0x2a, 0x4c, 0xd2, - 0xf1, 0x4c, 0x6f, 0x6f, 0xbe, 0x6c, 0x88, 0xc9, 0x47, 0x32, 0x62, 0x72, 0xc2, 0x20, 0x7e, 0x38, - 0x17, 0x37, 0xdf, 0x81, 0x13, 0xbe, 0x13, 0x27, 0x57, 0x88, 0x13, 0x25, 0x5b, 0xc4, 0x61, 0xc7, - 0x88, 0xc5, 0x93, 0x20, 0x73, 0x2e, 0xa9, 0x22, 0x64, 0xae, 0x65, 0x59, 0xe1, 0x6e, 0xee, 0x28, - 0x01, 0xc4, 0x0e, 0x2c, 0x23, 0x27, 0x88, 0x79, 0x4f, 0x3c, 0xe1, 0x84, 0xed, 0xa7, 0xce, 0x39, - 0x51, 0x27, 0xba, 0xd6, 0xc5, 0x0b, 0xe7, 0xf0, 0xd7, 0x0e, 0xa3, 0x87, 0xcb, 0x1e, 0x46, 0x8f, - 0x14, 0xc4, 0xdd, 0xfe, 0xb2, 0x05, 0x27, 0xe9, 0x27, 0x31, 0x63, 0x34, 0x63, 0x14, 0xc2, 0x34, - 0x6d, 0xbe, 0x4f, 0x12, 0x09, 0x2b, 0x5e, 0x47, 0x58, 0x20, 0x9d, 0xc1, 0x27, 0x35, 0xd4, 0xae, - 0x9a, 0xcc, 0x70, 0x96, 0xbb, 0xfd, 0x5d, 0x0b, 0x58, 0x10, 0xd8, 0xc0, 0x97, 0xaf, 0xcb, 0xe6, - 0xf2, 0x65, 0x17, 0xeb, 0x8a, 0x1e, 0x2b, 0xd7, 0x4b, 0x30, 0x43, 0xb1, 0x8d, 0x28, 0xbc, 0x77, - 0x20, 0x0d, 0xea, 0x62, 0x4f, 0xec, 0xbb, 0x15, 0x3e, 0x61, 0xd4, 0xcd, 0x29, 0xf4, 0x2b, 0x16, - 0x8c, 0xb5, 0x9c, 0xb6, 0xd3, 0xe2, 0x79, 0x3f, 0x4a, 0x78, 0x5d, 0x8c, 0xf2, 0x0b, 0x2b, 0xa2, - 0x2c, 0xf7, 0x18, 0x7c, 0x5c, 0x76, 0x5d, 0x82, 0x0b, 0xbd, 0x04, 0xaa, 0xf2, 0x39, 0x0f, 0x26, - 0x0d, 0x66, 0x03, 0xdc, 0x66, 0xfe, 0x8a, 0xc5, 0x95, 0xbd, 0xda, 0x10, 0xdc, 0x85, 0x13, 0x81, - 0xf6, 0x9f, 0xaa, 0x31, 0x69, 0xff, 0x2e, 0x94, 0x57, 0xe7, 0x4c, 0xfb, 0x69, 0xc1, 0x6e, 0x19, - 0x86, 0xb8, 0xbb, 0x0e, 0xfb, 0x1f, 0x5b, 0xf0, 0x98, 0x4e, 0xa8, 0x5d, 0x74, 0x2b, 0xf2, 0x02, - 0xd7, 0x61, 0x2c, 0x6c, 0x93, 0xc8, 0x49, 0x37, 0x3f, 0xe7, 0xe5, 0xe8, 0xdf, 0x10, 0xf0, 0xfb, - 0x87, 0xf3, 0xa7, 0x74, 0xee, 0x12, 0x8e, 0x55, 0x49, 0x64, 0xc3, 0x08, 0x1b, 0x97, 0x58, 0x5c, - 0x51, 0x64, 0x59, 0x30, 0xd8, 0xd9, 0x47, 0x8c, 0x05, 0xc6, 0xfe, 0x9b, 0x16, 0x17, 0x36, 0xbd, - 0xe9, 0xe8, 0x6b, 0x30, 0xb3, 0x47, 0xf7, 0x49, 0xab, 0xf7, 0xda, 0x74, 0x01, 0x65, 0x67, 0xbe, - 0x56, 0x99, 0x65, 0xa3, 0x47, 0x77, 0x97, 0x67, 0x45, 0xeb, 0x67, 0x36, 0x32, 0x6c, 0x71, 0x57, - 0x45, 0xf6, 0x1f, 0x8b, 0xf9, 0xca, 0x6c, 0xb6, 0x67, 0x61, 0xb4, 0x1d, 0xba, 0x2b, 0xeb, 0x75, - 0x2c, 0xc6, 0x4a, 0x29, 0x9c, 0x06, 0x07, 0x63, 0x89, 0x47, 0x97, 0x00, 0xc8, 0xbd, 0x84, 0x44, - 0x81, 0xe3, 0xab, 0xb3, 0x5a, 0x65, 0x22, 0xad, 0x2a, 0x0c, 0xd6, 0xa8, 0x68, 0x99, 0x76, 0x14, - 0xee, 0x7b, 0x2e, 0x8b, 0x3c, 0xaf, 0x9a, 0x65, 0x1a, 0x0a, 0x83, 0x35, 0x2a, 0xba, 0x3b, 0xed, - 0x04, 0x31, 0x5f, 0xbe, 0x9c, 0x2d, 0x91, 0xbc, 0x61, 0x2c, 0xdd, 0x9d, 0xde, 0xd4, 0x91, 0xd8, - 0xa4, 0xb5, 0x7f, 0x56, 0x03, 0x48, 0x0d, 0x24, 0xf4, 0x6e, 0xf7, 0x0c, 0xfd, 0x44, 0x59, 0xeb, - 0xea, 0xe1, 0x4d, 0x4f, 0xf4, 0x2d, 0x0b, 0xc6, 0x1d, 0xdf, 0x0f, 0x5b, 0x4e, 0xc2, 0x7a, 0x54, - 0x29, 0xab, 0x2b, 0x44, 0x4b, 0x96, 0xd2, 0xb2, 0xbc, 0x31, 0x2f, 0xca, 0xa3, 0x3c, 0x0d, 0x53, - 0xd8, 0x1e, 0xbd, 0x09, 0xe8, 0xe3, 0xd2, 0xb0, 0xe6, 0x1f, 0x65, 0x2e, 0x6b, 0x58, 0xd7, 0x98, - 0x86, 0xd4, 0x6c, 0x6a, 0xf4, 0x25, 0x23, 0x4f, 0xc1, 0x50, 0x99, 0xdb, 0xb1, 0x86, 0xc9, 0x50, - 0x94, 0xa2, 0x00, 0x7d, 0x5e, 0x0f, 0xca, 0x1d, 0x2e, 0x73, 0xf5, 0x54, 0xb3, 0x5c, 0x0b, 0x02, - 0x72, 0x13, 0x98, 0x76, 0xcd, 0x85, 0x52, 0x04, 0x5a, 0x5d, 0x2c, 0xae, 0x21, 0xb3, 0xc2, 0xa6, - 0x4b, 0x63, 0x06, 0x81, 0xb3, 0x55, 0xd0, 0xd5, 0x90, 0xaa, 0xad, 0xf5, 0x60, 0x3b, 0x14, 0xe1, - 0x56, 0x17, 0x4a, 0x7c, 0xf3, 0x83, 0x38, 0x21, 0x7b, 0xb4, 0x4c, 0xba, 0x1a, 0x5e, 0x17, 0x5c, - 0xb0, 0xe2, 0x87, 0x36, 0x61, 0x84, 0x5d, 0xf0, 0x88, 0x67, 0xc7, 0xca, 0xb8, 0xc7, 0xcc, 0x1b, - 0x8d, 0xa9, 0x01, 0xc2, 0xfe, 0xc6, 0x58, 0xf0, 0x42, 0x57, 0xe4, 0x0d, 0xe0, 0x78, 0x3d, 0xb8, - 0x19, 0x13, 0x76, 0x03, 0xb8, 0xb6, 0xfc, 0xd1, 0xf4, 0x4a, 0x2f, 0x87, 0xe7, 0x66, 0x66, 0x32, - 0x4a, 0x52, 0x3b, 0x44, 0xfc, 0x97, 0x09, 0x9f, 0x66, 0xa1, 0x4c, 0x43, 0xcd, 0xf4, 0x50, 0xe9, - 0x60, 0xdf, 0x32, 0x99, 0xe1, 0x2c, 0xf7, 0x47, 0xb8, 0x06, 0xce, 0xf9, 0x30, 0x93, 0x9d, 0x92, - 0x03, 0x5c, 0x71, 0xff, 0x6c, 0x08, 0xa6, 0x4c, 0xc1, 0x40, 0x8b, 0x50, 0xdb, 0x63, 0xe9, 0x98, - 0xd2, 0x24, 0x30, 0x4a, 0xfe, 0x37, 0x24, 0x02, 0xa7, 0x34, 0x2c, 0x1d, 0x0e, 0x2b, 0xae, 0x05, - 0xda, 0xa4, 0xe9, 0x70, 0x14, 0x06, 0x6b, 0x54, 0xd4, 0x68, 0xdd, 0x0a, 0xc3, 0x44, 0x29, 0x6e, - 0x25, 0x33, 0xcb, 0x0c, 0x8a, 0x05, 0x96, 0x2a, 0xec, 0x3b, 0xb4, 0x43, 0xbe, 0xe9, 0xea, 0x53, - 0x0a, 0xfb, 0xaa, 0x8e, 0xc4, 0x26, 0x2d, 0x5d, 0x80, 0xc2, 0x98, 0x09, 0xa1, 0x30, 0x8d, 0xd3, - 0xc0, 0xa5, 0x26, 0xbf, 0xf0, 0x24, 0xf1, 0xe8, 0x73, 0xf0, 0x98, 0xba, 0x9f, 0x84, 0xb9, 0xeb, - 0x54, 0xd6, 0x38, 0x62, 0xec, 0x6c, 0x1f, 0x5b, 0xc9, 0x27, 0xc3, 0xbd, 0xca, 0xa3, 0x37, 0x60, - 0x4a, 0x98, 0xb5, 0x92, 0xe3, 0xa8, 0x79, 0xae, 0x7d, 0xd5, 0xc0, 0xe2, 0x0c, 0x35, 0xaa, 0xc3, - 0x0c, 0x85, 0x30, 0x8b, 0x52, 0x72, 0xe0, 0xf7, 0xac, 0xd4, 0xca, 0x7c, 0x35, 0x83, 0xc7, 0x5d, - 0x25, 0xd0, 0x12, 0x4c, 0x73, 0xdb, 0x82, 0xee, 0xdf, 0xd8, 0x77, 0x10, 0x11, 0x92, 0x6a, 0x12, - 0xdc, 0x30, 0xd1, 0x38, 0x4b, 0x8f, 0x5e, 0x85, 0x09, 0x27, 0x6a, 0xed, 0x7a, 0x09, 0x69, 0x25, - 0x9d, 0x88, 0xdf, 0xad, 0xd7, 0x02, 0x03, 0x96, 0x34, 0x1c, 0x36, 0x28, 0xed, 0xaf, 0xc2, 0xc9, - 0x9c, 0x10, 0x6c, 0x2a, 0x38, 0x4e, 0xdb, 0x93, 0x7d, 0xca, 0x84, 0x20, 0x2d, 0x35, 0xd6, 0x65, - 0x6f, 0x34, 0x2a, 0x2a, 0x9d, 0xcc, 0x67, 0xac, 0xe5, 0x66, 0x53, 0xd2, 0xb9, 0x26, 0x11, 0x38, - 0xa5, 0xb1, 0xff, 0x7b, 0x0d, 0x34, 0x27, 0x4b, 0x89, 0xc0, 0x93, 0x57, 0x61, 0x42, 0xa6, 0x1b, - 0xd4, 0xd2, 0x7c, 0xa9, 0x6e, 0x5e, 0xd6, 0x70, 0xd8, 0xa0, 0xa4, 0x6d, 0x0b, 0xa4, 0xcb, 0x28, - 0x1b, 0xf0, 0xa4, 0x7c, 0x49, 0x38, 0xa5, 0x41, 0x17, 0x60, 0x2c, 0x26, 0xfe, 0xf6, 0x35, 0x2f, - 0xb8, 0x23, 0x04, 0x5b, 0x69, 0xe5, 0xa6, 0x80, 0x63, 0x45, 0x81, 0x3e, 0x03, 0xd5, 0x8e, 0xe7, - 0x0a, 0x51, 0x5e, 0x90, 0x76, 0xe7, 0xcd, 0xf5, 0xfa, 0xfd, 0xc3, 0xf9, 0xf9, 0xfc, 0x1c, 0x8a, - 0x74, 0x13, 0x1d, 0x2f, 0xd0, 0xc9, 0x47, 0x8b, 0xe6, 0xb9, 0xce, 0x47, 0xfa, 0x74, 0x9d, 0x5f, - 0x02, 0x10, 0x7d, 0x96, 0x92, 0x5c, 0x4d, 0xbf, 0xd9, 0x65, 0x85, 0xc1, 0x1a, 0x15, 0xdd, 0x8a, - 0xb7, 0x22, 0xe2, 0xc8, 0x1d, 0x2b, 0x0f, 0x11, 0x1e, 0x7b, 0xd0, 0xad, 0xf8, 0x4a, 0x96, 0x15, - 0xee, 0xe6, 0x8e, 0xf6, 0xe0, 0x84, 0x4b, 0x27, 0x91, 0x51, 0x65, 0xad, 0xdf, 0xa8, 0x64, 0x5a, - 0x5d, 0x3d, 0xcb, 0x06, 0x77, 0x73, 0x46, 0x5f, 0x84, 0x39, 0x09, 0xec, 0xbe, 0x7b, 0xc8, 0x26, - 0x4a, 0x75, 0xf9, 0xec, 0xd1, 0xe1, 0xfc, 0x5c, 0xbd, 0x27, 0x15, 0x3e, 0x86, 0x03, 0x7a, 0x1b, - 0x46, 0xd8, 0x31, 0x4b, 0x3c, 0x3b, 0xce, 0xd6, 0xb9, 0x97, 0xca, 0x3a, 0x1a, 0x17, 0xd8, 0x61, - 0x8d, 0x88, 0xdb, 0x4c, 0xcf, 0xad, 0x18, 0x10, 0x0b, 0x9e, 0xa8, 0x0d, 0xe3, 0x4e, 0x10, 0x84, - 0x89, 0xc3, 0xcd, 0xaf, 0x89, 0x32, 0x16, 0xa4, 0x56, 0xc5, 0x52, 0x5a, 0x96, 0xd7, 0xa3, 0x82, - 0xc1, 0x34, 0x0c, 0xd6, 0xab, 0x40, 0x1d, 0x98, 0x0e, 0xef, 0x52, 0x55, 0x29, 0x4f, 0x1a, 0xe2, - 0xd9, 0xc9, 0xa2, 0x04, 0x89, 0xe9, 0xc7, 0xb9, 0x61, 0x14, 0xd5, 0x34, 0x98, 0xc9, 0x12, 0x67, - 0xeb, 0x40, 0x0b, 0x86, 0x17, 0x79, 0x2a, 0x8d, 0x4d, 0x4e, 0xbd, 0xc8, 0xba, 0xd3, 0x98, 0xdd, - 0x6e, 0xe5, 0xf1, 0x88, 0x4c, 0x13, 0x4c, 0x67, 0x6e, 0xb7, 0xa6, 0x28, 0xac, 0xd3, 0xcd, 0x7d, - 0x12, 0xc6, 0xb5, 0x61, 0xef, 0x27, 0x08, 0x76, 0xee, 0x0d, 0x98, 0xc9, 0x0e, 0x67, 0x5f, 0x41, - 0xb4, 0xff, 0xb3, 0x02, 0xd3, 0x39, 0x87, 0x38, 0x77, 0x3c, 0x16, 0xc8, 0x6d, 0xa8, 0xbc, 0xab, - 0x5e, 0xe0, 0x62, 0x86, 0x31, 0x15, 0x57, 0xa5, 0x84, 0xe2, 0x92, 0x5a, 0xb4, 0xda, 0x53, 0x8b, - 0x0a, 0x65, 0x35, 0xf4, 0xe0, 0xca, 0xca, 0x5c, 0x1d, 0x86, 0x4b, 0xad, 0x0e, 0x0f, 0x41, 0xc1, - 0x19, 0x0b, 0xcc, 0x68, 0x89, 0x05, 0xe6, 0x3b, 0x15, 0x98, 0x49, 0xc3, 0x85, 0x45, 0xe6, 0xd1, - 0xc1, 0x9d, 0x0d, 0x6c, 0x1a, 0x67, 0x03, 0x45, 0x09, 0x45, 0x33, 0xed, 0xea, 0x79, 0x4e, 0xf0, - 0x76, 0xe6, 0x9c, 0xe0, 0xa5, 0x3e, 0xf9, 0x1e, 0x7f, 0x66, 0xf0, 0xdd, 0x0a, 0x9c, 0xce, 0x16, - 0x59, 0xf1, 0x1d, 0x6f, 0x6f, 0x80, 0xe3, 0xf4, 0x39, 0x63, 0x9c, 0x5e, 0xe9, 0xaf, 0x3f, 0xac, - 0x71, 0x3d, 0x07, 0xcb, 0xc9, 0x0c, 0xd6, 0x27, 0x1f, 0x84, 0xf9, 0xf1, 0x23, 0xf6, 0x33, 0x0b, - 0x1e, 0xcf, 0x2d, 0x37, 0x70, 0x4f, 0xe8, 0x5b, 0xa6, 0x27, 0xf4, 0xc5, 0x07, 0xe8, 0x5b, 0x0f, - 0xd7, 0xe8, 0x51, 0xa5, 0x47, 0x9f, 0x98, 0xb7, 0xe8, 0x06, 0x8c, 0x3b, 0xad, 0x16, 0x89, 0xe3, - 0x8d, 0xd0, 0x55, 0xd9, 0x70, 0x5e, 0x60, 0xab, 0x48, 0x0a, 0xbe, 0x7f, 0x38, 0x3f, 0x97, 0x65, - 0x91, 0xa2, 0xb1, 0xce, 0xc1, 0xcc, 0x6a, 0x55, 0x19, 0x50, 0x56, 0xab, 0x4b, 0x00, 0xfb, 0x6a, - 0x97, 0x9a, 0x75, 0x42, 0x69, 0xfb, 0x57, 0x8d, 0x0a, 0x7d, 0x81, 0x59, 0x7d, 0x3c, 0x3a, 0x62, - 0xa8, 0xc8, 0x51, 0xa0, 0x7d, 0x3d, 0x3d, 0xce, 0x82, 0x5f, 0x5f, 0x54, 0xee, 0x3a, 0xc5, 0xd0, - 0xfe, 0x41, 0x15, 0x3e, 0x7c, 0x8c, 0xc0, 0xa1, 0x25, 0xf3, 0xd0, 0xf3, 0xf9, 0xac, 0x6f, 0x66, - 0x2e, 0xb7, 0xb0, 0xe1, 0xac, 0xc9, 0x7c, 0xa9, 0xca, 0xfb, 0xfe, 0x52, 0xdf, 0xd6, 0x3d, 0x69, - 0x3c, 0xb8, 0xf1, 0xf2, 0x03, 0x4f, 0xa9, 0x9f, 0x4f, 0xcf, 0xf7, 0xd7, 0x2d, 0xf8, 0x48, 0x6e, - 0xa7, 0x8c, 0xc0, 0x8a, 0x45, 0xa8, 0xb5, 0x28, 0x50, 0xbb, 0x7d, 0x92, 0x5e, 0xfb, 0x92, 0x08, - 0x9c, 0xd2, 0x18, 0xf1, 0x13, 0x95, 0xc2, 0xf8, 0x89, 0x7f, 0x6f, 0xc1, 0xa9, 0x6c, 0x23, 0x06, - 0xae, 0x6f, 0x9a, 0xa6, 0xbe, 0x59, 0xe8, 0xef, 0xc3, 0xf7, 0x50, 0x35, 0xdf, 0x99, 0x84, 0x33, - 0x5d, 0x6b, 0x14, 0x1f, 0xc3, 0x5f, 0xb4, 0xe0, 0xc4, 0x0e, 0xb3, 0xaf, 0xb5, 0x0b, 0x3e, 0xa2, - 0x57, 0x05, 0xb7, 0xa2, 0x8e, 0xbd, 0x17, 0xc4, 0x77, 0x0b, 0x5d, 0x24, 0xb8, 0xbb, 0x32, 0xf4, - 0x4d, 0x0b, 0x4e, 0x39, 0x77, 0xe3, 0xae, 0xec, 0xf5, 0x42, 0x88, 0xde, 0x28, 0x70, 0x62, 0x15, - 0xe4, 0xbd, 0x5f, 0x9e, 0x3d, 0x3a, 0x9c, 0x3f, 0x95, 0x47, 0x85, 0x73, 0x6b, 0x45, 0x6f, 0x8b, - 0xdc, 0x5f, 0xd4, 0xe0, 0x29, 0x75, 0x55, 0x2d, 0xef, 0xba, 0x01, 0x57, 0x48, 0x12, 0x83, 0x15, - 0x47, 0xf4, 0x65, 0xa8, 0xed, 0xc8, 0x3b, 0x3d, 0x42, 0xdd, 0x15, 0xac, 0x29, 0xb9, 0x57, 0x80, - 0x78, 0x50, 0xbb, 0x42, 0xe1, 0x94, 0x29, 0xba, 0x02, 0xd5, 0x60, 0x3b, 0x16, 0xf7, 0x66, 0x8b, - 0x82, 0x67, 0xcc, 0x50, 0x25, 0x7e, 0xe1, 0xf0, 0xfa, 0x5a, 0x13, 0x53, 0x16, 0x94, 0x53, 0xb4, - 0xe5, 0x0a, 0xef, 0x6d, 0x01, 0x27, 0xbc, 0x5c, 0xef, 0xe6, 0x84, 0x97, 0xeb, 0x98, 0xb2, 0x60, - 0x51, 0x7a, 0x71, 0x2b, 0xf6, 0x84, 0x6b, 0xb6, 0xe0, 0x52, 0x75, 0xd7, 0x25, 0x0c, 0x9e, 0x06, - 0x8e, 0x81, 0x31, 0x67, 0x84, 0x36, 0x61, 0xa4, 0xc5, 0x12, 0x36, 0x8b, 0x9d, 0x73, 0x51, 0x1a, - 0xdf, 0xae, 0xe4, 0xce, 0xfc, 0x08, 0x89, 0xc3, 0xb1, 0xe0, 0xc5, 0xb8, 0x92, 0xf6, 0xee, 0x76, - 0x2c, 0x36, 0xc7, 0x45, 0x5c, 0xbb, 0x52, 0x6f, 0x0b, 0xae, 0x0c, 0x8e, 0x05, 0x2f, 0x54, 0x87, - 0xca, 0x76, 0x4b, 0xe4, 0x5e, 0x2c, 0x70, 0xc9, 0x9a, 0xb7, 0x47, 0x97, 0x47, 0x8e, 0x0e, 0xe7, - 0x2b, 0x6b, 0x2b, 0xb8, 0xb2, 0xdd, 0x42, 0x6f, 0xc1, 0xe8, 0x36, 0xbf, 0x0f, 0x28, 0xf2, 0x2c, - 0x5e, 0x2c, 0xba, 0xb4, 0xd8, 0x75, 0x79, 0x90, 0x5f, 0x5c, 0x10, 0x08, 0x2c, 0xd9, 0xa1, 0x2f, - 0x02, 0x6c, 0xab, 0x1b, 0x8e, 0x22, 0xd1, 0xe2, 0x42, 0x7f, 0x37, 0x22, 0xc5, 0xbe, 0x51, 0x41, - 0xb1, 0xc6, 0x91, 0xca, 0xbc, 0x23, 0x73, 0xce, 0xb3, 0x24, 0x8b, 0x85, 0x32, 0x9f, 0x9b, 0xa2, - 0x9e, 0xcb, 0xbc, 0x42, 0xe1, 0x94, 0x29, 0xea, 0xc0, 0xe4, 0x7e, 0xdc, 0xde, 0x25, 0x72, 0xea, - 0xb3, 0xcc, 0x8b, 0xe3, 0x97, 0x5e, 0x2f, 0x48, 0xa7, 0x29, 0x8a, 0x78, 0x51, 0xd2, 0x71, 0xfc, - 0x2e, 0x0d, 0xc6, 0x72, 0x19, 0xdd, 0xd2, 0xd9, 0x62, 0xb3, 0x16, 0xfa, 0x49, 0xde, 0xe9, 0x84, - 0x5b, 0x07, 0x09, 0x11, 0x99, 0x19, 0x0b, 0x3e, 0xc9, 0x9b, 0x9c, 0xb8, 0xfb, 0x93, 0x08, 0x04, - 0x96, 0xec, 0xd4, 0x90, 0x31, 0x6d, 0x3c, 0x53, 0x7a, 0xc8, 0xba, 0xfa, 0x90, 0x0e, 0x19, 0xd3, - 0xbe, 0x29, 0x53, 0xa6, 0x75, 0xdb, 0xbb, 0x61, 0x12, 0x06, 0x19, 0xdd, 0x7f, 0xa2, 0x8c, 0xd6, - 0x6d, 0xe4, 0x94, 0xec, 0xd6, 0xba, 0x79, 0x54, 0x38, 0xb7, 0x56, 0xfb, 0x8f, 0x87, 0xbb, 0x17, - 0x5b, 0x66, 0x08, 0xff, 0x6a, 0xf7, 0xb9, 0xe2, 0x67, 0xfa, 0xdf, 0xe5, 0x3d, 0xc4, 0x13, 0xc6, - 0x6f, 0x5a, 0x70, 0xa6, 0x9d, 0xbb, 0x98, 0x8a, 0x05, 0xab, 0xdf, 0xcd, 0x22, 0x1f, 0x30, 0x95, - 0x76, 0x34, 0x1f, 0x8f, 0x7b, 0xd4, 0x99, 0x35, 0x3f, 0xab, 0xef, 0xdb, 0xfc, 0xbc, 0x0d, 0x63, - 0xcc, 0x62, 0x4a, 0x73, 0x60, 0xf4, 0x99, 0x36, 0x82, 0x2d, 0x7d, 0x2b, 0x82, 0x05, 0x56, 0xcc, - 0xe8, 0xc0, 0x3d, 0x99, 0xed, 0x04, 0x26, 0x0c, 0x2d, 0xf2, 0xa5, 0x72, 0xaf, 0xc6, 0x9a, 0x18, - 0x89, 0x27, 0x1b, 0xc7, 0x11, 0xdf, 0x2f, 0x22, 0xc0, 0xc7, 0x57, 0xf6, 0x28, 0xcd, 0xd9, 0x7f, - 0x66, 0xe5, 0xd8, 0x5f, 0x7c, 0x03, 0xf2, 0xba, 0xb9, 0x01, 0x79, 0x26, 0xbb, 0x01, 0xe9, 0x72, - 0x14, 0x18, 0x7b, 0x8f, 0xf2, 0xc9, 0x03, 0xcb, 0x26, 0xe9, 0xb0, 0x7d, 0x38, 0x57, 0x34, 0xb9, - 0x59, 0x04, 0x8f, 0xab, 0x8e, 0xc3, 0xd2, 0x08, 0x1e, 0x77, 0xbd, 0x8e, 0x19, 0xa6, 0xec, 0x6d, - 0x6f, 0xfb, 0x7f, 0x5b, 0x50, 0x6d, 0x84, 0xee, 0x00, 0x1d, 0x1f, 0x97, 0x0d, 0xc7, 0xc7, 0xd3, - 0x85, 0x2f, 0xed, 0xf4, 0x74, 0x73, 0xdc, 0xc8, 0xb8, 0x39, 0x3e, 0x56, 0xcc, 0xea, 0x78, 0xa7, - 0xc6, 0x0f, 0xab, 0xa0, 0xbf, 0x15, 0x84, 0xfe, 0xe0, 0x41, 0x42, 0x39, 0xab, 0xe5, 0x9e, 0x0f, - 0x12, 0x75, 0xb0, 0xd0, 0x1f, 0x79, 0xbd, 0xeb, 0xe7, 0x36, 0xa2, 0xf3, 0x36, 0xf1, 0x76, 0x76, - 0x13, 0xe2, 0x66, 0x3b, 0xf6, 0xe8, 0x22, 0x3a, 0xff, 0x9b, 0x05, 0xd3, 0x99, 0xda, 0xd1, 0x57, - 0xf2, 0xee, 0x89, 0x3c, 0x90, 0x33, 0xe3, 0x44, 0xe1, 0xb5, 0x92, 0x05, 0x00, 0xe5, 0x7d, 0x96, - 0x2e, 0x07, 0x66, 0x81, 0x29, 0xf7, 0x74, 0x8c, 0x35, 0x0a, 0xf4, 0x32, 0x8c, 0x27, 0x61, 0x3b, - 0xf4, 0xc3, 0x9d, 0x83, 0xab, 0x44, 0x66, 0x1f, 0x50, 0x9e, 0xfb, 0xcd, 0x14, 0x85, 0x75, 0x3a, - 0xfb, 0xc7, 0x55, 0xc8, 0xbe, 0x33, 0xf5, 0xff, 0xa5, 0xf4, 0xe7, 0x47, 0x4a, 0xff, 0xd0, 0x82, - 0x19, 0x5a, 0x3b, 0x0b, 0xdb, 0x90, 0xd1, 0x97, 0x2a, 0xcf, 0xb7, 0x75, 0x4c, 0x9e, 0xef, 0x67, - 0xa8, 0xae, 0x73, 0xc3, 0x4e, 0x22, 0xdc, 0x24, 0x9a, 0x0a, 0xa3, 0x50, 0x2c, 0xb0, 0x82, 0x8e, - 0x44, 0x91, 0xb8, 0x8e, 0xa2, 0xd3, 0x91, 0x28, 0xc2, 0x02, 0x2b, 0xd3, 0x80, 0x0f, 0xe5, 0xa7, - 0x01, 0xe7, 0xf9, 0x7b, 0x44, 0xb8, 0x80, 0x30, 0x02, 0xb4, 0xfc, 0x3d, 0x32, 0x8e, 0x20, 0xa5, - 0xb1, 0xbf, 0x5b, 0x85, 0x89, 0x46, 0xe8, 0xa6, 0x01, 0xd5, 0x2f, 0x19, 0x01, 0xd5, 0xe7, 0x32, - 0x01, 0xd5, 0x33, 0x3a, 0xed, 0xc3, 0x89, 0xa7, 0x16, 0x39, 0x9e, 0x58, 0xa2, 0xfa, 0x07, 0x8a, - 0xa5, 0x36, 0x72, 0x3c, 0x29, 0x36, 0xd8, 0xe4, 0xfa, 0x97, 0x27, 0x86, 0xfa, 0xcf, 0x2d, 0x98, - 0x6a, 0x84, 0x2e, 0x15, 0xce, 0xbf, 0x4c, 0x92, 0xa8, 0x67, 0x86, 0x1a, 0x39, 0x26, 0x33, 0xd4, - 0x6f, 0x58, 0x30, 0xda, 0x08, 0xdd, 0x81, 0xbb, 0x0f, 0xd7, 0x4c, 0xf7, 0xe1, 0x47, 0x0a, 0x75, - 0x6e, 0x0f, 0x8f, 0xe1, 0x0f, 0xaa, 0x30, 0x49, 0xdb, 0x1b, 0xee, 0xc8, 0xaf, 0x65, 0x8c, 0x8c, - 0x55, 0x62, 0x64, 0xa8, 0x09, 0x18, 0xfa, 0x7e, 0x78, 0x37, 0xfb, 0xe5, 0xd6, 0x18, 0x14, 0x0b, - 0x2c, 0xba, 0x00, 0x63, 0xed, 0x88, 0xec, 0x7b, 0x61, 0x27, 0xce, 0x5e, 0x6a, 0x6b, 0x08, 0x38, - 0x56, 0x14, 0xe8, 0x25, 0x98, 0x88, 0xbd, 0xa0, 0x45, 0x64, 0x30, 0xc1, 0x10, 0x0b, 0x26, 0xe0, - 0x49, 0xf7, 0x34, 0x38, 0x36, 0xa8, 0xd0, 0x4d, 0xa8, 0xb1, 0xff, 0x6c, 0xf6, 0xf4, 0x9b, 0x95, - 0x9c, 0x67, 0x9d, 0x92, 0xc5, 0x71, 0xca, 0x09, 0x5d, 0x02, 0x48, 0x64, 0xd0, 0x43, 0x2c, 0xb2, - 0x67, 0x28, 0x6b, 0x54, 0x85, 0x43, 0xc4, 0x58, 0xa3, 0x42, 0xcf, 0x43, 0x2d, 0x71, 0x3c, 0xff, - 0x9a, 0x17, 0x90, 0x58, 0x04, 0x8c, 0x88, 0xb4, 0xb1, 0x02, 0x88, 0x53, 0x3c, 0x5d, 0xe7, 0xd9, - 0x65, 0x5a, 0xfe, 0xda, 0xc1, 0x18, 0xa3, 0x66, 0xeb, 0xfc, 0x35, 0x05, 0xc5, 0x1a, 0x85, 0xfd, - 0x22, 0x5b, 0xaf, 0xfb, 0x8c, 0xb6, 0xff, 0x69, 0x05, 0x50, 0x83, 0x05, 0x57, 0x18, 0x0f, 0x42, - 0xec, 0xc2, 0x54, 0x4c, 0xae, 0x79, 0x41, 0xe7, 0x9e, 0x60, 0x55, 0xee, 0x72, 0x43, 0x73, 0x55, - 0x2f, 0xc3, 0xef, 0x90, 0x9a, 0x30, 0x9c, 0xe1, 0x4b, 0x87, 0x24, 0xea, 0x04, 0x4b, 0xf1, 0xcd, - 0x98, 0x44, 0xe2, 0x49, 0x07, 0x36, 0x24, 0x58, 0x02, 0x71, 0x8a, 0xa7, 0x02, 0xc0, 0xfe, 0x5c, - 0x0f, 0x03, 0x1c, 0x86, 0x89, 0x14, 0x19, 0x96, 0xe8, 0x5b, 0x83, 0x63, 0x83, 0x0a, 0xad, 0x01, - 0x8a, 0x3b, 0xed, 0xb6, 0xcf, 0x4e, 0xb1, 0x1c, 0xff, 0x72, 0x14, 0x76, 0xda, 0x3c, 0xb2, 0x56, - 0xe4, 0xc8, 0x6e, 0x76, 0x61, 0x71, 0x4e, 0x09, 0x3a, 0xdd, 0xb7, 0x63, 0xf6, 0x5b, 0xdc, 0x91, - 0xe5, 0x1e, 0xb5, 0x26, 0x03, 0x61, 0x89, 0xb3, 0xbf, 0xc6, 0x96, 0x27, 0x96, 0x6d, 0x3f, 0xe9, - 0x44, 0x04, 0xdd, 0x81, 0xc9, 0x36, 0x5b, 0x82, 0x92, 0x28, 0xf4, 0x7d, 0x12, 0x15, 0xbf, 0x5b, - 0xd4, 0x33, 0xbc, 0x83, 0x67, 0xd8, 0xd6, 0x99, 0x61, 0x93, 0xb7, 0xfd, 0x9f, 0x80, 0xe9, 0x1a, - 0x71, 0x8c, 0x38, 0x2a, 0x82, 0x37, 0x85, 0x15, 0xf6, 0xd1, 0x32, 0x2f, 0xcc, 0xa4, 0x7a, 0x5c, - 0x84, 0x82, 0x62, 0xc9, 0x05, 0x7d, 0x81, 0x85, 0x26, 0xf3, 0x29, 0x5e, 0xfe, 0xd9, 0x27, 0x4e, - 0x6f, 0x84, 0x25, 0x0b, 0x16, 0x58, 0x63, 0x87, 0xae, 0xc1, 0xa4, 0x48, 0xcf, 0x2e, 0x1c, 0x02, - 0x55, 0x63, 0x53, 0x3c, 0x89, 0x75, 0xe4, 0xfd, 0x2c, 0x00, 0x9b, 0x85, 0xd1, 0x0e, 0x3c, 0xa9, - 0x3d, 0xd5, 0x92, 0x13, 0x88, 0xc4, 0x75, 0xc7, 0x47, 0x8e, 0x0e, 0xe7, 0x9f, 0xdc, 0x3c, 0x8e, - 0x10, 0x1f, 0xcf, 0x07, 0xdd, 0x80, 0xd3, 0x4e, 0x2b, 0xf1, 0xf6, 0x49, 0x9d, 0x38, 0xae, 0xef, - 0x05, 0xc4, 0xbc, 0x46, 0xfd, 0xf8, 0xd1, 0xe1, 0xfc, 0xe9, 0xa5, 0x3c, 0x02, 0x9c, 0x5f, 0x0e, - 0xbd, 0x0e, 0x35, 0x37, 0x88, 0xc5, 0x18, 0x8c, 0x18, 0xaf, 0xd2, 0xd4, 0xea, 0xd7, 0x9b, 0xaa, - 0xff, 0xe9, 0x1f, 0x9c, 0x16, 0x40, 0xef, 0xf0, 0x67, 0x72, 0xd5, 0x3e, 0x84, 0xbf, 0x86, 0xf4, - 0x4a, 0xa9, 0x9d, 0xaf, 0x71, 0xed, 0x81, 0xfb, 0xca, 0x54, 0xa8, 0x9f, 0x71, 0x23, 0xc2, 0xa8, - 0x02, 0x7d, 0x16, 0x50, 0x4c, 0xa2, 0x7d, 0xaf, 0x45, 0x96, 0x5a, 0x2c, 0xef, 0x24, 0x3b, 0x92, - 0x1b, 0x33, 0xe2, 0xdd, 0x51, 0xb3, 0x8b, 0x02, 0xe7, 0x94, 0x42, 0x57, 0xa8, 0xde, 0xd1, 0xa1, - 0x22, 0x32, 0x53, 0x1a, 0x75, 0xb3, 0x75, 0xd2, 0x8e, 0x48, 0xcb, 0x49, 0x88, 0x6b, 0x72, 0xc4, - 0x99, 0x72, 0x74, 0x65, 0x51, 0x69, 0xb4, 0xc1, 0x8c, 0x27, 0xec, 0x4e, 0xa5, 0x4d, 0xf7, 0x48, - 0xbb, 0x61, 0x9c, 0x5c, 0x27, 0xc9, 0xdd, 0x30, 0xba, 0xc3, 0x7c, 0xec, 0x63, 0x5a, 0x22, 0xaf, - 0x14, 0x85, 0x75, 0x3a, 0x6a, 0x03, 0xb1, 0xc3, 0x9d, 0xf5, 0x3a, 0xf3, 0x9c, 0x8f, 0xa5, 0x73, - 0xe7, 0x0a, 0x07, 0x63, 0x89, 0x97, 0xa4, 0xeb, 0x8d, 0x15, 0xe6, 0x05, 0xcf, 0x90, 0xae, 0x37, - 0x56, 0xb0, 0xc4, 0xa3, 0xb0, 0xfb, 0xed, 0x9f, 0xa9, 0x32, 0x27, 0x12, 0xdd, 0x7a, 0xbc, 0xe4, - 0xf3, 0x3f, 0xf7, 0x60, 0x46, 0xbd, 0x3f, 0xc4, 0x33, 0x2c, 0xc6, 0xb3, 0xd3, 0x65, 0x1e, 0xe9, - 0xcd, 0x4d, 0xd4, 0xa8, 0x42, 0x71, 0xd7, 0x33, 0x3c, 0x71, 0x57, 0x2d, 0x46, 0x3a, 0x80, 0x99, - 0xc2, 0xd4, 0xe8, 0x8b, 0x50, 0x8b, 0x3b, 0x5b, 0x6e, 0xb8, 0xe7, 0x78, 0x01, 0x73, 0x55, 0xeb, - 0x4f, 0xce, 0x4a, 0x04, 0x4e, 0x69, 0xe6, 0x3e, 0x0d, 0x27, 0xba, 0x64, 0xba, 0xaf, 0x18, 0xb2, - 0x6f, 0x0c, 0x41, 0x4d, 0x39, 0x73, 0xd0, 0xa2, 0xe9, 0xaf, 0x7b, 0x3c, 0xeb, 0xaf, 0x1b, 0xa3, - 0xeb, 0xaf, 0xee, 0xa2, 0xfb, 0x62, 0xce, 0x9b, 0x93, 0xcf, 0x15, 0x7e, 0xc4, 0xf2, 0x57, 0x39, - 0xfa, 0x78, 0x91, 0x33, 0x35, 0xeb, 0x87, 0x8e, 0x35, 0xeb, 0x4b, 0x3e, 0x2c, 0x44, 0x0d, 0xf8, - 0x76, 0xe8, 0xae, 0x37, 0xb2, 0xaf, 0x67, 0x34, 0x28, 0x10, 0x73, 0x1c, 0x33, 0xbd, 0xa8, 0x52, - 0x66, 0xa6, 0xd7, 0xe8, 0x03, 0x99, 0x5e, 0xb2, 0x38, 0x4e, 0x39, 0xa1, 0x7d, 0x38, 0xd1, 0x32, - 0x9f, 0x42, 0x51, 0xd7, 0x33, 0x5e, 0xe8, 0xe3, 0x29, 0x92, 0x8e, 0x96, 0xf6, 0x7d, 0x25, 0xcb, - 0x0f, 0x77, 0x57, 0x61, 0xff, 0x98, 0x7b, 0x7e, 0xc4, 0x6e, 0x90, 0xc4, 0x1d, 0x7f, 0x90, 0x89, - 0x9c, 0x6f, 0x18, 0x1b, 0xd4, 0x87, 0xe0, 0x73, 0xfc, 0x5d, 0x8b, 0xf9, 0x1c, 0x37, 0xc9, 0x5e, - 0xdb, 0x77, 0x92, 0x41, 0x06, 0xe6, 0x7d, 0x01, 0xc6, 0x12, 0x51, 0x4b, 0xb9, 0xec, 0xd3, 0x5a, - 0xb3, 0x98, 0x0f, 0x56, 0x69, 0x01, 0x09, 0xc5, 0x8a, 0xa1, 0xfd, 0xdb, 0xfc, 0x2b, 0x48, 0xcc, - 0xc0, 0xb7, 0x55, 0xd7, 0xcd, 0x6d, 0xd5, 0xb3, 0xa5, 0x7b, 0xd2, 0x6b, 0x7b, 0x65, 0xb6, 0x9f, - 0x99, 0x6a, 0x1f, 0x7c, 0x17, 0xb8, 0xbd, 0x01, 0xe6, 0xdb, 0x2e, 0xe8, 0x75, 0x1e, 0xd6, 0xca, - 0x75, 0xe1, 0x73, 0x7d, 0x86, 0xb4, 0xda, 0xdf, 0xaf, 0xc0, 0xa9, 0xbc, 0x37, 0xde, 0x91, 0x0b, - 0x13, 0x6d, 0xcd, 0x7c, 0x2e, 0x97, 0xb1, 0x40, 0x37, 0xb8, 0x53, 0xa3, 0x45, 0x87, 0x62, 0x83, - 0x2b, 0xda, 0x82, 0x09, 0xb2, 0xef, 0xb5, 0x94, 0x57, 0xa5, 0xd2, 0xa7, 0x72, 0x52, 0x75, 0xac, - 0x6a, 0x5c, 0xb0, 0xc1, 0x73, 0x00, 0xa9, 0xd1, 0xed, 0x7f, 0x62, 0xc1, 0x63, 0x3d, 0x72, 0x1a, - 0xd0, 0xea, 0xee, 0x32, 0xb7, 0xa3, 0x78, 0x38, 0x48, 0x55, 0xc7, 0x9d, 0x91, 0x58, 0x60, 0xd1, - 0x16, 0x00, 0x77, 0x26, 0xb2, 0x47, 0x54, 0x2b, 0x65, 0x4e, 0xfc, 0xbb, 0x6e, 0x10, 0x6b, 0x97, - 0x4b, 0xd5, 0xb3, 0xa9, 0x1a, 0x57, 0xfb, 0x7b, 0x55, 0x18, 0xe6, 0xef, 0x38, 0x36, 0x60, 0x74, - 0x97, 0x67, 0x4e, 0xec, 0x2f, 0x71, 0x63, 0x6a, 0x1e, 0x71, 0x00, 0x96, 0x6c, 0xd0, 0x06, 0x9c, - 0xf4, 0x02, 0x2f, 0xf1, 0x1c, 0xbf, 0x4e, 0x7c, 0xe7, 0x40, 0xda, 0xdb, 0x3c, 0x6b, 0xb6, 0x4c, - 0xf0, 0x7a, 0x72, 0xbd, 0x9b, 0x04, 0xe7, 0x95, 0x43, 0x6f, 0x74, 0x25, 0x40, 0xe2, 0x19, 0x29, - 0xd5, 0x9d, 0xa4, 0xe3, 0x93, 0x20, 0xa1, 0xd7, 0x60, 0xb2, 0xdd, 0xb5, 0xb3, 0xd0, 0x1e, 0x00, - 0x34, 0x77, 0x13, 0x26, 0x2d, 0xaa, 0xc3, 0x4c, 0xdc, 0x61, 0xe7, 0xaf, 0x9b, 0xbb, 0x11, 0x89, - 0x77, 0x43, 0xdf, 0x15, 0x2f, 0x58, 0x29, 0x2b, 0xaa, 0x99, 0xc1, 0xe3, 0xae, 0x12, 0x94, 0xcb, - 0xb6, 0xe3, 0xf9, 0x9d, 0x88, 0xa4, 0x5c, 0x46, 0x4c, 0x2e, 0x6b, 0x19, 0x3c, 0xee, 0x2a, 0x61, - 0xff, 0xa9, 0x05, 0x27, 0x73, 0x82, 0x14, 0x78, 0xe0, 0xdc, 0x8e, 0x17, 0x27, 0x2a, 0x37, 0xb2, - 0x16, 0x38, 0xc7, 0xe1, 0x58, 0x51, 0x50, 0x29, 0xe4, 0xdb, 0xc5, 0xec, 0xe1, 0x9f, 0x38, 0x86, - 0x15, 0xd8, 0xfe, 0xd2, 0x19, 0xa9, 0x87, 0xe8, 0x87, 0x7a, 0x3e, 0x44, 0xff, 0x14, 0x0c, 0xef, - 0xa8, 0xad, 0xb9, 0x66, 0x8f, 0xf0, 0xcd, 0x39, 0xc7, 0xd9, 0xdf, 0xae, 0xc2, 0x74, 0x26, 0x58, - 0x89, 0x36, 0x24, 0xf3, 0x5e, 0x3e, 0xf3, 0x27, 0xac, 0x90, 0xf6, 0x6e, 0xce, 0x9b, 0xf9, 0xcf, - 0x98, 0x8f, 0xea, 0xa6, 0x6d, 0x5e, 0xae, 0x1b, 0xef, 0x86, 0x95, 0xcd, 0xd7, 0xfe, 0x14, 0x0c, - 0xb5, 0x43, 0xf5, 0xfa, 0xa3, 0x12, 0x7a, 0xbc, 0x5c, 0x6f, 0x84, 0xa1, 0x8f, 0x19, 0x12, 0x3d, - 0x2d, 0x7a, 0x9f, 0xf1, 0x49, 0x62, 0xc7, 0x0d, 0x63, 0x6d, 0x08, 0x9e, 0x85, 0xd1, 0x3b, 0xe4, - 0x20, 0xf2, 0x82, 0x9d, 0xac, 0x47, 0xf6, 0x2a, 0x07, 0x63, 0x89, 0x37, 0x73, 0xb2, 0x8f, 0x0e, - 0x38, 0x27, 0xfb, 0x58, 0x61, 0xb4, 0xe5, 0x6f, 0x5a, 0x30, 0xcd, 0x72, 0xca, 0x89, 0xeb, 0x9e, - 0x5e, 0x18, 0x0c, 0x70, 0x49, 0x7c, 0x0a, 0x86, 0x23, 0x5a, 0x59, 0x36, 0x9d, 0x32, 0x6b, 0x01, - 0xe6, 0x38, 0xf4, 0x84, 0x78, 0x98, 0x9c, 0x7e, 0xbe, 0x09, 0x9e, 0x9e, 0x36, 0x7d, 0x61, 0x9c, - 0x45, 0xf1, 0x63, 0xd2, 0xf6, 0x3d, 0xde, 0xd8, 0xd4, 0x01, 0xf3, 0x41, 0x89, 0xe2, 0xcf, 0x6d, - 0xdc, 0xc3, 0x8a, 0xe2, 0xcf, 0x67, 0x7e, 0xbc, 0xf1, 0xf9, 0x3f, 0x2a, 0x70, 0x36, 0xb7, 0x5c, - 0x7a, 0x8e, 0xb3, 0x66, 0x9c, 0xe3, 0x5c, 0xca, 0x9c, 0xe3, 0xd8, 0xc7, 0x97, 0x7e, 0x38, 0x27, - 0x3b, 0xf9, 0x47, 0x2e, 0xd5, 0x47, 0x76, 0xe4, 0x32, 0x54, 0xd6, 0x50, 0x18, 0x2e, 0x30, 0x14, - 0x7e, 0x66, 0xc1, 0xe3, 0xb9, 0x03, 0xf6, 0x01, 0xbb, 0x34, 0x91, 0xdb, 0xc6, 0x1e, 0x86, 0xf3, - 0xdf, 0xae, 0xf6, 0xe8, 0x13, 0x33, 0xa1, 0xcf, 0x53, 0x8d, 0xc3, 0x90, 0xb1, 0x30, 0x80, 0x26, - 0xb8, 0xb6, 0xe1, 0x30, 0xac, 0xb0, 0x28, 0xd6, 0x2e, 0x1d, 0xf0, 0x46, 0xae, 0x3e, 0xe0, 0x64, - 0x5a, 0x30, 0xbd, 0x65, 0xfa, 0x8d, 0xd5, 0xcc, 0x65, 0x04, 0x74, 0x5b, 0xdb, 0x12, 0x55, 0x1f, - 0x64, 0x4b, 0x34, 0x91, 0xbf, 0x1d, 0x42, 0x4b, 0x30, 0xbd, 0xe7, 0x05, 0xec, 0x81, 0x32, 0xd3, - 0x02, 0x51, 0xf7, 0xbc, 0x36, 0x4c, 0x34, 0xce, 0xd2, 0xcf, 0xbd, 0x06, 0x93, 0x0f, 0xee, 0x22, - 0x79, 0xaf, 0x0a, 0x1f, 0x3e, 0x46, 0x21, 0xf0, 0x95, 0xc0, 0xf8, 0x2e, 0xda, 0x4a, 0xd0, 0xf5, - 0x6d, 0x1a, 0x70, 0x6a, 0xbb, 0xe3, 0xfb, 0x07, 0x2c, 0x02, 0x82, 0xb8, 0x92, 0x42, 0x58, 0x77, - 0xea, 0xe9, 0xd0, 0xb5, 0x1c, 0x1a, 0x9c, 0x5b, 0x12, 0x7d, 0x16, 0x50, 0xb8, 0xc5, 0xb2, 0x2c, - 0xba, 0xe9, 0x9d, 0x5c, 0xf6, 0x09, 0xaa, 0xe9, 0x44, 0xbd, 0xd1, 0x45, 0x81, 0x73, 0x4a, 0x51, - 0x5b, 0x8f, 0xbd, 0x3a, 0xaa, 0x9a, 0x95, 0xb1, 0xf5, 0xb0, 0x8e, 0xc4, 0x26, 0x2d, 0xba, 0x0c, - 0x27, 0x9c, 0x7d, 0xc7, 0xe3, 0xf9, 0x54, 0x24, 0x03, 0x6e, 0xec, 0x29, 0x37, 0xc4, 0x52, 0x96, - 0x00, 0x77, 0x97, 0x41, 0x6d, 0xc3, 0xab, 0xc4, 0xf3, 0x29, 0xbf, 0xfe, 0x00, 0x12, 0x5c, 0xda, - 0xcf, 0x64, 0xff, 0x89, 0x45, 0x97, 0xbb, 0x9c, 0x37, 0xbd, 0x8c, 0xe7, 0xaf, 0xb5, 0xab, 0x18, - 0xdd, 0xcf, 0x5f, 0x33, 0x87, 0xab, 0x49, 0xcb, 0x45, 0x23, 0x4e, 0xc3, 0x27, 0x0d, 0xcb, 0x52, - 0xdc, 0x3f, 0x52, 0x14, 0xe8, 0x36, 0x8c, 0xba, 0xde, 0xbe, 0x17, 0x87, 0x51, 0x89, 0x67, 0x67, - 0xbb, 0x42, 0xf2, 0x52, 0x5d, 0x59, 0xe7, 0x4c, 0xb0, 0xe4, 0x66, 0xff, 0x9d, 0x0a, 0x4c, 0xca, - 0xfa, 0xde, 0xec, 0x84, 0x4c, 0x87, 0x0d, 0x6a, 0x11, 0x7f, 0xd3, 0x58, 0xc4, 0x17, 0xcb, 0x5d, - 0xc2, 0x62, 0x8d, 0xea, 0xb9, 0x78, 0x7f, 0x2e, 0xb3, 0x78, 0x5f, 0xec, 0x87, 0xe9, 0xf1, 0x8b, - 0xf6, 0xbf, 0xb5, 0xe0, 0x84, 0x41, 0xff, 0x41, 0x49, 0xe9, 0x9b, 0xd7, 0x97, 0x1e, 0xab, 0xc6, - 0xf7, 0x2a, 0x99, 0x3e, 0xb0, 0xd5, 0xe2, 0x6b, 0x30, 0xb4, 0xeb, 0x44, 0x6e, 0xb9, 0x74, 0x62, - 0x5d, 0xc5, 0x17, 0xae, 0x38, 0x91, 0xcb, 0x75, 0xfe, 0x05, 0xf5, 0xea, 0x88, 0x13, 0xb9, 0x85, - 0x91, 0xc4, 0xac, 0x52, 0xf4, 0x2a, 0x8c, 0xc4, 0xad, 0xb0, 0xad, 0xa2, 0xb7, 0xce, 0xf1, 0x17, - 0x49, 0x28, 0xe4, 0xfe, 0xe1, 0x3c, 0x32, 0xab, 0xa3, 0x60, 0x2c, 0xe8, 0xe7, 0x08, 0xd4, 0x54, - 0xd5, 0x03, 0x8c, 0x59, 0x7d, 0xaf, 0x0a, 0x27, 0x73, 0xe4, 0x04, 0xfd, 0x82, 0x31, 0x6a, 0xaf, - 0xf5, 0x2d, 0x68, 0xef, 0x73, 0xdc, 0x7e, 0x81, 0xed, 0x83, 0x5c, 0x21, 0x1b, 0x0f, 0x50, 0xfd, - 0xcd, 0x98, 0x64, 0xab, 0xa7, 0xa0, 0xe2, 0xea, 0x69, 0xb5, 0x8f, 0x68, 0xf0, 0x69, 0x35, 0xaa, - 0x9d, 0x03, 0xfc, 0xc6, 0xef, 0x0e, 0xc1, 0xa9, 0xbc, 0x5b, 0x9e, 0xe8, 0x97, 0xad, 0x4c, 0x46, - 0xf0, 0x37, 0xfa, 0xbf, 0x2a, 0xca, 0xd3, 0x84, 0x8b, 0x1c, 0x08, 0x0b, 0x66, 0x8e, 0xf0, 0xc2, - 0xd1, 0x16, 0xb5, 0xb3, 0xe8, 0xff, 0x88, 0x67, 0x76, 0x97, 0xfa, 0xe0, 0x33, 0x0f, 0xd0, 0x14, - 0x91, 0x1c, 0x3e, 0xce, 0x44, 0xff, 0x4b, 0x70, 0x71, 0xf4, 0xbf, 0x6c, 0xc3, 0xdc, 0x0e, 0x8c, - 0x6b, 0xfd, 0x1a, 0xa0, 0x08, 0x78, 0x74, 0x41, 0xd2, 0x5a, 0x3d, 0x40, 0x31, 0xf8, 0x7b, 0x16, - 0x64, 0x42, 0x34, 0x94, 0xb3, 0xc5, 0xea, 0xe9, 0x6c, 0x39, 0x07, 0x43, 0x51, 0xe8, 0x93, 0x6c, - 0xb6, 0x6a, 0x1c, 0xfa, 0x04, 0x33, 0x8c, 0x7a, 0x7a, 0xb0, 0xda, 0xeb, 0xe9, 0x41, 0xba, 0x0b, - 0xf7, 0xc9, 0x3e, 0x91, 0xae, 0x0f, 0xa5, 0xbc, 0xaf, 0x51, 0x20, 0xe6, 0x38, 0xfb, 0xf7, 0xab, - 0x30, 0xc2, 0xfd, 0x0b, 0x03, 0x5c, 0x93, 0x1b, 0x62, 0xab, 0x5f, 0xea, 0xd6, 0x25, 0x6f, 0xcd, - 0x42, 0xdd, 0x49, 0x1c, 0x2e, 0x50, 0xaa, 0x6f, 0xa9, 0x7b, 0x00, 0x2d, 0x18, 0xbd, 0x9f, 0xcb, - 0xec, 0x64, 0x81, 0xf3, 0xd0, 0xc6, 0x62, 0x17, 0x20, 0x66, 0xcf, 0x5c, 0x51, 0x1e, 0x22, 0xe7, - 0xdb, 0x4b, 0xa5, 0xda, 0xd1, 0x54, 0xc5, 0x78, 0x6b, 0xd2, 0x64, 0x53, 0x0a, 0x81, 0x35, 0xde, - 0x73, 0xaf, 0x40, 0x4d, 0x11, 0x17, 0x99, 0xf9, 0x13, 0xba, 0x48, 0xfe, 0x15, 0x98, 0xce, 0xd4, - 0xd5, 0xd7, 0x2e, 0xe1, 0x47, 0x16, 0x9c, 0xe8, 0x7a, 0x2f, 0x15, 0xbd, 0x6b, 0xc1, 0x29, 0x3f, - 0xc7, 0xb1, 0x54, 0x1c, 0x22, 0xd3, 0xd3, 0x25, 0xa5, 0xb6, 0x08, 0x79, 0x58, 0x9c, 0x5b, 0x9b, - 0xcc, 0x62, 0x59, 0xc9, 0xcf, 0x62, 0x69, 0x7f, 0xdf, 0x02, 0xf1, 0xc9, 0x06, 0x6e, 0xfe, 0xac, - 0x9b, 0xe6, 0xcf, 0x47, 0xcb, 0xc8, 0x40, 0x0f, 0xbb, 0xe7, 0x3f, 0x58, 0x80, 0x38, 0x41, 0xf6, - 0xad, 0x3b, 0xee, 0xa5, 0xd3, 0xac, 0xf5, 0x54, 0x68, 0x14, 0x06, 0x6b, 0x54, 0x7d, 0x26, 0x34, - 0x57, 0x6f, 0x44, 0x95, 0x7b, 0x1e, 0xbe, 0x5a, 0xe2, 0x79, 0xf8, 0xdf, 0xad, 0x42, 0x36, 0x8a, - 0x01, 0x7d, 0x19, 0x26, 0x5a, 0x4e, 0xdb, 0xd9, 0xf2, 0x7c, 0x2f, 0xf1, 0x48, 0x5c, 0xee, 0x9c, - 0x68, 0x45, 0x2b, 0x21, 0xfc, 0xbc, 0x1a, 0x04, 0x1b, 0x1c, 0xd1, 0x02, 0x40, 0x3b, 0xf2, 0xf6, - 0x3d, 0x9f, 0xec, 0x30, 0xa3, 0x83, 0x05, 0x32, 0xf2, 0x43, 0x0f, 0x09, 0xc5, 0x1a, 0x45, 0x4e, - 0xd0, 0x5c, 0xf5, 0x51, 0x04, 0xcd, 0x0d, 0xf5, 0x19, 0x34, 0x37, 0x5c, 0x2a, 0x68, 0x0e, 0xc3, - 0x19, 0xe9, 0x9e, 0xa5, 0xff, 0xd7, 0x3c, 0x9f, 0xf0, 0x9c, 0x75, 0x22, 0xd4, 0x71, 0xee, 0xe8, - 0x70, 0xfe, 0x0c, 0xce, 0xa5, 0xc0, 0x3d, 0x4a, 0xda, 0x1d, 0x38, 0xd9, 0x24, 0x91, 0xc7, 0x52, - 0x0a, 0xb9, 0xe9, 0xf4, 0xfb, 0x22, 0xd4, 0xa2, 0xcc, 0xcc, 0xef, 0xf3, 0xd6, 0x99, 0x96, 0x98, - 0x42, 0xce, 0xf4, 0x94, 0xa5, 0xfd, 0xd7, 0x2b, 0x30, 0x2a, 0xa2, 0x85, 0x06, 0xb8, 0x8a, 0x5c, - 0x35, 0x76, 0x76, 0xcf, 0x16, 0xcd, 0x5c, 0xd6, 0x9c, 0x9e, 0x7b, 0xba, 0x66, 0x66, 0x4f, 0xf7, - 0x7c, 0x39, 0x76, 0xc7, 0xef, 0xe6, 0x7e, 0xa7, 0x02, 0x53, 0x66, 0xd4, 0xd4, 0x00, 0x87, 0xe3, - 0x2d, 0x18, 0x8d, 0x45, 0x28, 0x51, 0xa9, 0x07, 0xf9, 0xb3, 0x9f, 0x34, 0x7d, 0x6a, 0x5e, 0x04, - 0x0f, 0x49, 0x76, 0xb9, 0xd1, 0x4a, 0xd5, 0x47, 0x11, 0xad, 0x64, 0xff, 0x3b, 0xa6, 0x52, 0xf5, - 0x01, 0x1c, 0xf8, 0x82, 0xf0, 0xa6, 0xa9, 0x7a, 0x2f, 0x94, 0x92, 0x03, 0xd1, 0xb8, 0x1e, 0x0b, - 0xc3, 0xbf, 0xb2, 0x60, 0x5c, 0x10, 0x0e, 0xbc, 0xf9, 0x9f, 0x35, 0x9b, 0xff, 0x74, 0xa9, 0xe6, - 0xf7, 0x68, 0xf7, 0x3f, 0xa8, 0xa8, 0x76, 0x37, 0xc4, 0xeb, 0x9f, 0x85, 0xe9, 0x0b, 0xc7, 0xda, - 0x51, 0x98, 0x84, 0xad, 0xd0, 0x17, 0x8b, 0xfb, 0x13, 0x69, 0x74, 0x39, 0x87, 0xdf, 0xd7, 0x7e, - 0x63, 0x45, 0xcd, 0x02, 0xa7, 0xc3, 0x28, 0x11, 0x8b, 0x53, 0xde, 0xdb, 0xa3, 0x5b, 0xf2, 0x6d, - 0x67, 0x0a, 0x13, 0x97, 0x32, 0xfa, 0x7d, 0xd3, 0x34, 0x0d, 0x17, 0x57, 0x9c, 0xb0, 0xc6, 0x55, - 0xc6, 0x30, 0xb2, 0x1a, 0x86, 0x4d, 0xd7, 0xe9, 0x75, 0x01, 0xc7, 0x8a, 0xc2, 0x7e, 0x85, 0x69, - 0x57, 0x36, 0x3c, 0xfd, 0xc5, 0x80, 0x7f, 0x63, 0x44, 0x0d, 0x2c, 0xf3, 0x8d, 0x5c, 0x87, 0x61, - 0xda, 0x45, 0xb9, 0xfd, 0x2b, 0xa7, 0xca, 0x68, 0x13, 0xf4, 0x28, 0xb0, 0x28, 0x89, 0x31, 0x67, - 0x83, 0x48, 0x97, 0xbf, 0xfd, 0x95, 0xd2, 0xda, 0xb1, 0x0f, 0x0f, 0x3b, 0xcb, 0x08, 0xc3, 0x12, - 0x61, 0xac, 0x37, 0xb2, 0x29, 0x27, 0x57, 0x24, 0x02, 0xa7, 0x34, 0x68, 0x51, 0x58, 0xe9, 0xe6, - 0xd3, 0xb0, 0xd2, 0x4a, 0x97, 0x43, 0xa2, 0x99, 0xe9, 0x17, 0x61, 0x5c, 0x25, 0xdd, 0x6e, 0xf0, - 0xdc, 0xc9, 0x35, 0x6e, 0xb9, 0xac, 0xa6, 0x60, 0xac, 0xd3, 0xa0, 0x75, 0x38, 0xe9, 0xaa, 0x90, - 0xd5, 0x46, 0x67, 0xcb, 0xf7, 0x5a, 0xb4, 0x28, 0xbf, 0x2e, 0xf2, 0xd8, 0xd1, 0xe1, 0xfc, 0xc9, - 0x7a, 0x37, 0x1a, 0xe7, 0x95, 0x41, 0x9b, 0x30, 0x1d, 0xf3, 0xe4, 0xe2, 0xf2, 0x4a, 0x99, 0xc8, - 0xc9, 0xf6, 0x9c, 0x74, 0xf4, 0x37, 0x4d, 0xf4, 0x7d, 0x06, 0xe2, 0x1a, 0x41, 0x80, 0x70, 0x96, - 0x05, 0x7a, 0x03, 0xa6, 0x7c, 0xfd, 0x7d, 0xa4, 0x86, 0x88, 0xdc, 0x55, 0xe1, 0x0f, 0xc6, 0xeb, - 0x49, 0x0d, 0x9c, 0xa1, 0x46, 0x6f, 0xc1, 0xac, 0x0e, 0x11, 0x17, 0xd6, 0x9d, 0x60, 0x87, 0xc4, - 0x22, 0xab, 0xf1, 0x13, 0x47, 0x87, 0xf3, 0xb3, 0xd7, 0x7a, 0xd0, 0xe0, 0x9e, 0xa5, 0xd1, 0xab, - 0x30, 0x21, 0x47, 0x52, 0x8b, 0xe2, 0x4d, 0x03, 0x6f, 0x34, 0x1c, 0x36, 0x28, 0xdf, 0xdf, 0x79, - 0xc6, 0xd7, 0x68, 0x61, 0x6d, 0x39, 0x45, 0x5f, 0x81, 0x09, 0xbd, 0x8d, 0x42, 0x47, 0x7e, 0xbc, - 0xfc, 0x9b, 0x53, 0x62, 0x59, 0x56, 0x2d, 0xd7, 0x71, 0xd8, 0xe0, 0x6d, 0xdf, 0x80, 0x91, 0xe6, - 0x41, 0xdc, 0x4a, 0xfc, 0x87, 0xf5, 0x2a, 0x70, 0x0b, 0xa6, 0x33, 0xcf, 0xe7, 0xaa, 0x77, 0x98, - 0xad, 0x87, 0xf5, 0x0e, 0xb3, 0xfd, 0x75, 0x0b, 0x86, 0x37, 0x1d, 0xaf, 0xf8, 0x3d, 0x80, 0x32, - 0x4d, 0x46, 0x2f, 0xc3, 0x08, 0xd9, 0xde, 0x26, 0x2d, 0xf9, 0xae, 0xf3, 0x93, 0xd2, 0x9c, 0x59, - 0x65, 0x50, 0x3a, 0x35, 0x59, 0x65, 0xfc, 0x2f, 0x16, 0xc4, 0xf6, 0x7f, 0xb4, 0x00, 0x36, 0x43, - 0x5f, 0x1e, 0xd5, 0x14, 0xb4, 0x64, 0xb9, 0xeb, 0x65, 0x82, 0x67, 0x72, 0x5e, 0x26, 0x40, 0x29, - 0xc3, 0x9c, 0x77, 0x09, 0x54, 0x6f, 0xaa, 0xa5, 0x7a, 0x33, 0xd4, 0x4f, 0x6f, 0xbe, 0x65, 0x81, - 0x88, 0x98, 0x29, 0x21, 0x09, 0xae, 0xcc, 0x26, 0x6e, 0xa4, 0xa2, 0x78, 0xae, 0xcc, 0x6d, 0x0f, - 0x91, 0x80, 0x42, 0xc9, 0xa6, 0x91, 0x76, 0xc2, 0xe0, 0x4a, 0xb7, 0xf0, 0xe3, 0x1c, 0xbd, 0xc1, - 0x6c, 0xc7, 0xe2, 0x76, 0xf5, 0x95, 0x72, 0x8b, 0x25, 0xdb, 0xa6, 0x8c, 0x55, 0xf2, 0x25, 0x3d, - 0xd9, 0xb6, 0x44, 0xe0, 0x94, 0x06, 0x3d, 0x0b, 0xa3, 0x71, 0x67, 0x8b, 0x91, 0x67, 0xc2, 0x67, - 0x9a, 0x1c, 0x8c, 0x25, 0xde, 0xfe, 0x25, 0x04, 0x46, 0xd7, 0x8c, 0x44, 0x4f, 0xd6, 0x43, 0x4f, - 0xf4, 0xf4, 0x36, 0x8c, 0x91, 0xbd, 0x76, 0x72, 0x50, 0xf7, 0xa2, 0x72, 0xe9, 0xf6, 0x56, 0x05, - 0x75, 0x37, 0x77, 0x89, 0xc1, 0x8a, 0x63, 0x8f, 0xb4, 0x5d, 0xd5, 0x0f, 0x44, 0xda, 0xae, 0xa1, - 0xbf, 0x90, 0xb4, 0x5d, 0x6f, 0xc1, 0xe8, 0x0e, 0x7f, 0xd7, 0x5f, 0x5c, 0xf0, 0x2b, 0x38, 0x03, - 0xbb, 0xcc, 0x89, 0xbb, 0x73, 0xf1, 0x08, 0x04, 0x96, 0xec, 0xd0, 0x26, 0x8c, 0xf0, 0x7d, 0x87, - 0xc8, 0x84, 0xf5, 0xf1, 0x32, 0x1e, 0x99, 0xee, 0xa4, 0x50, 0x22, 0x46, 0x4a, 0xf0, 0x92, 0x69, - 0xba, 0x46, 0xdf, 0x7f, 0x9a, 0x2e, 0x95, 0x5c, 0x6b, 0xec, 0x61, 0x25, 0xd7, 0x32, 0x92, 0x94, - 0xd5, 0x06, 0x91, 0xa4, 0xec, 0x5b, 0x16, 0x9c, 0x6e, 0xe7, 0x25, 0xf8, 0x13, 0x69, 0xb2, 0x3e, - 0xfd, 0x00, 0x09, 0x0f, 0x8d, 0xaa, 0xd9, 0xa5, 0xab, 0x5c, 0x32, 0x9c, 0x5f, 0xb1, 0xcc, 0x76, - 0x36, 0xfe, 0xfe, 0xb3, 0x9d, 0x0d, 0x3a, 0x9f, 0x56, 0x9a, 0xfb, 0x6c, 0x72, 0x20, 0xb9, 0xcf, - 0xa6, 0x1e, 0x62, 0xee, 0x33, 0x2d, 0x6b, 0xd9, 0xf4, 0xc3, 0xcd, 0x5a, 0xb6, 0x0b, 0xe3, 0x6e, - 0x78, 0x37, 0xb8, 0xeb, 0x44, 0xee, 0x52, 0x63, 0x5d, 0x24, 0xc9, 0x2a, 0xc8, 0xc9, 0x50, 0x4f, - 0x0b, 0x18, 0x35, 0x70, 0xd7, 0x63, 0x8a, 0xc4, 0x3a, 0x6b, 0x91, 0xbf, 0xed, 0xc4, 0xfb, 0xcc, - 0xdf, 0x66, 0x64, 0x41, 0x43, 0x83, 0xc8, 0x82, 0xf6, 0x65, 0x76, 0x45, 0x7b, 0xdb, 0xdb, 0xd9, - 0x70, 0xda, 0xb3, 0x27, 0xcb, 0xd4, 0xb0, 0x22, 0xc9, 0xbb, 0x6b, 0x50, 0x28, 0x9c, 0x32, 0xed, - 0xce, 0xb3, 0x76, 0xea, 0x51, 0xe7, 0x59, 0x3b, 0x3d, 0xc0, 0x3c, 0x6b, 0x67, 0x1e, 0x69, 0x9e, - 0xb5, 0xc7, 0xfe, 0x42, 0xf2, 0xac, 0xfd, 0x55, 0x38, 0x7b, 0xfc, 0xe7, 0x48, 0x73, 0xf8, 0x36, - 0x52, 0x97, 0x41, 0x26, 0x87, 0x2f, 0x33, 0x75, 0x34, 0xaa, 0xd2, 0xe9, 0x9e, 0xbe, 0x6f, 0xc1, - 0x63, 0x3d, 0xf2, 0xa2, 0x94, 0xbe, 0xbb, 0xd0, 0x86, 0xe9, 0xb6, 0x59, 0xb4, 0xf4, 0xfd, 0x22, - 0x23, 0x0f, 0x8b, 0x8a, 0x8d, 0xcb, 0x20, 0x70, 0x96, 0xfd, 0xf2, 0x47, 0x7f, 0xf2, 0xde, 0xd9, - 0x0f, 0xfd, 0xf4, 0xbd, 0xb3, 0x1f, 0xfa, 0xa3, 0xf7, 0xce, 0x7e, 0xe8, 0x17, 0x8f, 0xce, 0x5a, - 0x3f, 0x39, 0x3a, 0x6b, 0xfd, 0xf4, 0xe8, 0xac, 0xf5, 0xa7, 0x47, 0x67, 0xad, 0x6f, 0xfd, 0xd9, - 0xd9, 0x0f, 0x7d, 0xbe, 0xb2, 0x7f, 0xf1, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x55, 0x52, 0xb9, - 0x48, 0x00, 0xb5, 0x00, 0x00, + 0xba, 0xaf, 0x61, 0xcd, 0xde, 0x1d, 0x25, 0x11, 0x92, 0x7a, 0xa7, 0x6b, 0x77, 0x5b, 0xd7, 0xdb, + 0x3d, 0xec, 0xee, 0xd9, 0xbb, 0xa5, 0x62, 0xc0, 0x91, 0x19, 0x1b, 0x81, 0x05, 0x47, 0x41, 0x20, + 0x24, 0x40, 0xbe, 0x94, 0x00, 0x09, 0x9c, 0x18, 0xb6, 0xa2, 0x48, 0x09, 0xa4, 0x58, 0x36, 0x10, + 0xc4, 0x76, 0x14, 0x04, 0x0e, 0xa4, 0x3f, 0xb1, 0x61, 0x03, 0x1b, 0x73, 0x9d, 0x7f, 0xc9, 0x8f, + 0x00, 0xf9, 0x95, 0x85, 0x91, 0x04, 0xf5, 0xd9, 0x55, 0x3d, 0x3d, 0xdb, 0x3d, 0xc7, 0x9b, 0x33, + 0x65, 0xe4, 0xdf, 0xcc, 0x7b, 0xaf, 0x5e, 0x7d, 0xf4, 0xab, 0x57, 0xaf, 0x5e, 0xbd, 0x7a, 0x05, + 0x17, 0xee, 0xbe, 0x1a, 0x2f, 0x78, 0xe1, 0xe2, 0xdd, 0xce, 0x26, 0x89, 0x02, 0x92, 0x90, 0x78, + 0xb1, 0x7d, 0x77, 0x7b, 0xd1, 0x69, 0x7b, 0x8b, 0x7b, 0x17, 0x17, 0xb7, 0x49, 0x40, 0x22, 0x27, + 0x21, 0xee, 0x42, 0x3b, 0x0a, 0x93, 0x10, 0x3d, 0xc1, 0xa9, 0x17, 0x52, 0xea, 0x85, 0xf6, 0xdd, + 0xed, 0x05, 0xa7, 0xed, 0x2d, 0xec, 0x5d, 0x9c, 0x7b, 0x61, 0xdb, 0x4b, 0x76, 0x3a, 0x9b, 0x0b, + 0xad, 0x70, 0x77, 0x71, 0x3b, 0xdc, 0x0e, 0x17, 0x59, 0xa1, 0xcd, 0xce, 0x16, 0xfb, 0xc7, 0xfe, + 0xb0, 0x5f, 0x9c, 0xd9, 0xdc, 0xa5, 0xde, 0x55, 0x47, 0x24, 0x0e, 0x3b, 0x51, 0x8b, 0x64, 0x1b, + 0x70, 0x4c, 0x99, 0x78, 0x71, 0x97, 0x24, 0x4e, 0x4e, 0xa3, 0xe7, 0x5e, 0xc8, 0x2f, 0x13, 0x75, + 0x82, 0xc4, 0xdb, 0xed, 0xae, 0xe2, 0xa5, 0xe3, 0xc9, 0xe3, 0xd6, 0x0e, 0xd9, 0x75, 0xba, 0x4a, + 0x5d, 0xcc, 0x2f, 0xd5, 0x49, 0x3c, 0x7f, 0xd1, 0x0b, 0x92, 0x38, 0x89, 0xb2, 0x45, 0xec, 0x3f, + 0xb4, 0xe0, 0xdc, 0xd2, 0x9d, 0xe6, 0xaa, 0xef, 0xc4, 0x89, 0xd7, 0x5a, 0xf6, 0xc3, 0xd6, 0xdd, + 0x66, 0x12, 0x46, 0xe4, 0x76, 0xe8, 0x77, 0x76, 0x49, 0x93, 0x0d, 0x00, 0xba, 0x00, 0x63, 0x7b, + 0xec, 0xff, 0x7a, 0x7d, 0xd6, 0x3a, 0x67, 0x9d, 0xaf, 0x2d, 0xcf, 0xfc, 0xf8, 0x60, 0xfe, 0x23, + 0x87, 0x07, 0xf3, 0x63, 0xb7, 0x05, 0x1c, 0x2b, 0x0a, 0xf4, 0x0c, 0x8c, 0x6c, 0xc5, 0x1b, 0xfb, + 0x6d, 0x32, 0x5b, 0x61, 0xb4, 0x53, 0x82, 0x76, 0x64, 0xad, 0x49, 0xa1, 0x58, 0x60, 0xd1, 0x22, + 0xd4, 0xda, 0x4e, 0x94, 0x78, 0x89, 0x17, 0x06, 0xb3, 0xd5, 0x73, 0xd6, 0xf9, 0xe1, 0xe5, 0x13, + 0x82, 0xb4, 0xd6, 0x90, 0x08, 0x9c, 0xd2, 0xd0, 0x66, 0x44, 0xc4, 0x71, 0x6f, 0x06, 0xfe, 0xfe, + 0xec, 0xd0, 0x39, 0xeb, 0xfc, 0x58, 0xda, 0x0c, 0x2c, 0xe0, 0x58, 0x51, 0xd8, 0x3f, 0xa8, 0xc0, + 0xd8, 0xd2, 0xd6, 0x96, 0x17, 0x78, 0xc9, 0x3e, 0xfa, 0x0a, 0x4c, 0x04, 0xa1, 0x4b, 0xe4, 0x7f, + 0xd6, 0x8b, 0xf1, 0x4b, 0xcf, 0x2d, 0x1c, 0x27, 0x4a, 0x0b, 0x37, 0xb4, 0x12, 0xcb, 0x33, 0x87, + 0x07, 0xf3, 0x13, 0x3a, 0x04, 0x1b, 0x1c, 0xd1, 0xdb, 0x30, 0xde, 0x0e, 0x5d, 0x55, 0x41, 0x85, + 0x55, 0xf0, 0xec, 0xf1, 0x15, 0x34, 0xd2, 0x02, 0xcb, 0xd3, 0x87, 0x07, 0xf3, 0xe3, 0x1a, 0x00, + 0xeb, 0xec, 0x90, 0x0f, 0xd3, 0xf4, 0x6f, 0x90, 0x78, 0xaa, 0x86, 0x2a, 0xab, 0xe1, 0x85, 0xe2, + 0x1a, 0xb4, 0x42, 0xcb, 0x27, 0x0f, 0x0f, 0xe6, 0xa7, 0x33, 0x40, 0x9c, 0x65, 0x6d, 0xbf, 0x0b, + 0x53, 0x4b, 0x49, 0xe2, 0xb4, 0x76, 0x88, 0xcb, 0xbf, 0x2f, 0x7a, 0x09, 0x86, 0x02, 0x67, 0x97, + 0x88, 0xaf, 0x7f, 0x4e, 0x0c, 0xfb, 0xd0, 0x0d, 0x67, 0x97, 0x1c, 0x1d, 0xcc, 0xcf, 0xdc, 0x0a, + 0xbc, 0x77, 0x3a, 0x42, 0x66, 0x28, 0x0c, 0x33, 0x6a, 0x74, 0x09, 0xc0, 0x25, 0x7b, 0x5e, 0x8b, + 0x34, 0x9c, 0x64, 0x47, 0x48, 0x03, 0x12, 0x65, 0xa1, 0xae, 0x30, 0x58, 0xa3, 0xb2, 0xbf, 0x6e, + 0x41, 0x6d, 0x69, 0x2f, 0xf4, 0xdc, 0x46, 0xe8, 0xc6, 0xa8, 0x03, 0xd3, 0xed, 0x88, 0x6c, 0x91, + 0x48, 0x81, 0x66, 0xad, 0x73, 0xd5, 0xf3, 0xe3, 0x97, 0x2e, 0x15, 0xf4, 0xdb, 0x2c, 0xb4, 0x1a, + 0x24, 0xd1, 0xfe, 0xf2, 0x63, 0xa2, 0xea, 0xe9, 0x0c, 0x16, 0x67, 0xeb, 0xb0, 0xff, 0x56, 0x05, + 0x4e, 0x2f, 0xbd, 0xdb, 0x89, 0x48, 0xdd, 0x8b, 0xef, 0x66, 0xa7, 0x82, 0xeb, 0xc5, 0x77, 0x6f, + 0xa4, 0x83, 0xa1, 0x64, 0xb0, 0x2e, 0xe0, 0x58, 0x51, 0xa0, 0x17, 0x60, 0x94, 0xfe, 0xbe, 0x85, + 0xd7, 0x45, 0xef, 0x4f, 0x0a, 0xe2, 0xf1, 0xba, 0x93, 0x38, 0x75, 0x8e, 0xc2, 0x92, 0x06, 0x5d, + 0x87, 0xf1, 0x96, 0xd3, 0xda, 0xf1, 0x82, 0xed, 0xeb, 0xa1, 0x4b, 0xd8, 0x17, 0xae, 0x2d, 0x3f, + 0x4f, 0xc9, 0x57, 0x52, 0xf0, 0xd1, 0xc1, 0xfc, 0x2c, 0x6f, 0x9b, 0x60, 0xa1, 0xe1, 0xb0, 0x5e, + 0x1e, 0xd9, 0x6a, 0x22, 0x0e, 0x31, 0x4e, 0x90, 0x33, 0x09, 0xcf, 0x6b, 0x73, 0x6a, 0x98, 0xcd, + 0xa9, 0x89, 0x1e, 0xf3, 0xe9, 0x5f, 0x58, 0x62, 0x4c, 0xd6, 0x3c, 0xdf, 0x54, 0x0f, 0x97, 0x00, + 0x62, 0xd2, 0x8a, 0x48, 0xa2, 0x8d, 0x8a, 0xfa, 0xcc, 0x4d, 0x85, 0xc1, 0x1a, 0x15, 0x9d, 0xfc, + 0xf1, 0x8e, 0x13, 0x31, 0x69, 0x11, 0x63, 0xa3, 0x26, 0x7f, 0x53, 0x22, 0x70, 0x4a, 0x63, 0x4c, + 0xfe, 0x6a, 0xe1, 0xe4, 0xff, 0xb7, 0x16, 0x8c, 0x2e, 0x7b, 0x81, 0xeb, 0x05, 0xdb, 0xe8, 0x2d, + 0x18, 0xa3, 0x5a, 0xd9, 0x75, 0x12, 0x47, 0xcc, 0xfb, 0xf3, 0xc7, 0x0b, 0xcf, 0xcd, 0xcd, 0xaf, + 0x92, 0x56, 0x72, 0x9d, 0x24, 0x4e, 0xda, 0x8d, 0x14, 0x86, 0x15, 0x37, 0x74, 0x0b, 0x46, 0x12, + 0x27, 0xda, 0x26, 0x89, 0x98, 0xee, 0x2f, 0x94, 0xe1, 0x8b, 0xa9, 0xa8, 0x91, 0xa0, 0x45, 0x52, + 0xc5, 0xb8, 0xc1, 0x98, 0x60, 0xc1, 0xcc, 0x6e, 0xc1, 0xc4, 0x8a, 0xd3, 0x76, 0x36, 0x3d, 0xdf, + 0x4b, 0x3c, 0x12, 0xa3, 0x8f, 0x43, 0xd5, 0x71, 0x5d, 0x26, 0xf8, 0xb5, 0xe5, 0xd3, 0x87, 0x07, + 0xf3, 0xd5, 0x25, 0xd7, 0x3d, 0x3a, 0x98, 0x07, 0x45, 0xb5, 0x8f, 0x29, 0x05, 0x7a, 0x0e, 0x86, + 0xdc, 0x28, 0x6c, 0xcf, 0x56, 0x18, 0xe5, 0x19, 0x3a, 0x43, 0xeb, 0x51, 0xd8, 0xce, 0x90, 0x32, + 0x1a, 0xfb, 0xf7, 0x2a, 0x80, 0x56, 0x48, 0x7b, 0x67, 0xad, 0x69, 0x7c, 0xcb, 0xf3, 0x30, 0xb6, + 0x1b, 0x06, 0x5e, 0x12, 0x46, 0xb1, 0xa8, 0x90, 0xc9, 0xc3, 0x75, 0x01, 0xc3, 0x0a, 0x8b, 0xce, + 0xc1, 0x50, 0x3b, 0x9d, 0xd6, 0x13, 0x52, 0x25, 0xb0, 0x09, 0xcd, 0x30, 0x94, 0xa2, 0x13, 0x93, + 0x48, 0xc8, 0xb1, 0xa2, 0xb8, 0x15, 0x93, 0x08, 0x33, 0x4c, 0x2a, 0x39, 0x54, 0xa6, 0x84, 0x94, + 0x66, 0x24, 0x87, 0x62, 0xb0, 0x46, 0x85, 0xbe, 0x0c, 0x35, 0xfe, 0x0f, 0x93, 0x2d, 0x26, 0xb2, + 0x85, 0xca, 0xe0, 0x5a, 0xd8, 0x72, 0xfc, 0xec, 0xe0, 0x4f, 0x32, 0x49, 0x93, 0x8c, 0x70, 0xca, + 0xd3, 0x90, 0xb4, 0x91, 0x42, 0x49, 0xfb, 0xbb, 0x16, 0xa0, 0x15, 0x2f, 0x70, 0x49, 0xf4, 0x08, + 0x96, 0xcc, 0xfe, 0x26, 0xc1, 0x9f, 0xd0, 0xa6, 0x85, 0xbb, 0xed, 0x30, 0x20, 0x41, 0xb2, 0x12, + 0x06, 0x2e, 0x5f, 0x46, 0x3f, 0x0d, 0x43, 0x09, 0xad, 0x8a, 0x37, 0xeb, 0x19, 0xf9, 0x59, 0x68, + 0x05, 0x47, 0x07, 0xf3, 0x67, 0xba, 0x4b, 0xb0, 0x26, 0xb0, 0x32, 0xe8, 0x53, 0x30, 0x12, 0x27, + 0x4e, 0xd2, 0x89, 0x45, 0x43, 0x3f, 0x2a, 0x1b, 0xda, 0x64, 0xd0, 0xa3, 0x83, 0xf9, 0x69, 0x55, + 0x8c, 0x83, 0xb0, 0x28, 0x80, 0x9e, 0x85, 0xd1, 0x5d, 0x12, 0xc7, 0xce, 0xb6, 0x54, 0x6c, 0xd3, + 0xa2, 0xec, 0xe8, 0x75, 0x0e, 0xc6, 0x12, 0x8f, 0x9e, 0x82, 0x61, 0x12, 0x45, 0x61, 0x24, 0x24, + 0x62, 0x52, 0x10, 0x0e, 0xaf, 0x52, 0x20, 0xe6, 0x38, 0xfb, 0xa7, 0x16, 0x4c, 0xab, 0xb6, 0xf2, + 0xba, 0x06, 0x38, 0xd5, 0x5d, 0x80, 0x96, 0xec, 0x58, 0xcc, 0x26, 0xd8, 0xf8, 0xa5, 0x4f, 0x1c, + 0xcf, 0xbb, 0x7b, 0x20, 0xd3, 0x3a, 0x14, 0x28, 0xc6, 0x1a, 0x5f, 0xfb, 0xf7, 0x2c, 0x38, 0x99, + 0xe9, 0xd3, 0x35, 0x2f, 0x4e, 0xd0, 0x17, 0xba, 0xfa, 0x75, 0xa1, 0x77, 0xdd, 0xf1, 0x02, 0xa5, + 0x65, 0x82, 0xef, 0xc5, 0xbc, 0x6f, 0x4a, 0x4a, 0x24, 0x44, 0xeb, 0x19, 0x86, 0x61, 0x2f, 0x21, + 0xbb, 0xb2, 0x53, 0x2f, 0x94, 0xec, 0x14, 0x6f, 0x5d, 0xfa, 0x6d, 0xd6, 0x29, 0x0f, 0xcc, 0x59, + 0xd9, 0xff, 0xcb, 0x82, 0xda, 0x4a, 0x18, 0x6c, 0x79, 0xdb, 0xd7, 0x9d, 0xf6, 0x00, 0xbf, 0x4a, + 0x13, 0x86, 0x18, 0x57, 0xde, 0xf4, 0x8b, 0x45, 0x4d, 0x17, 0x0d, 0x5a, 0xa0, 0x2b, 0x27, 0x37, + 0x09, 0x94, 0x52, 0xa2, 0x20, 0xcc, 0x98, 0xcd, 0xbd, 0x02, 0x35, 0x45, 0x80, 0x66, 0xa0, 0x7a, + 0x97, 0x70, 0x7b, 0xb1, 0x86, 0xe9, 0x4f, 0x74, 0x0a, 0x86, 0xf7, 0x1c, 0xbf, 0x23, 0xa6, 0x2a, + 0xe6, 0x7f, 0x3e, 0x5d, 0x79, 0xd5, 0xb2, 0x7f, 0x64, 0xc1, 0x29, 0x55, 0xc9, 0x55, 0xb2, 0xdf, + 0x24, 0x3e, 0x69, 0x25, 0x61, 0x84, 0xde, 0xb3, 0xe0, 0x94, 0x9f, 0xa3, 0x84, 0xc4, 0x68, 0x3c, + 0x88, 0xfa, 0x7a, 0x42, 0x34, 0xfc, 0x54, 0x1e, 0x16, 0xe7, 0xd6, 0x86, 0x9e, 0xe4, 0x7d, 0xe1, + 0x33, 0x77, 0x5c, 0x30, 0xa8, 0x5e, 0x25, 0xfb, 0xac, 0x63, 0xf6, 0x0f, 0x2d, 0x98, 0x54, 0xcd, + 0x1f, 0xb8, 0xd8, 0x5d, 0x33, 0xc5, 0xee, 0xe3, 0x25, 0xbf, 0x5d, 0x0f, 0x81, 0xfb, 0x47, 0x15, + 0x38, 0xad, 0x68, 0x0c, 0x45, 0xfc, 0x21, 0x19, 0xfb, 0xfe, 0xba, 0x7b, 0x95, 0xec, 0x6f, 0x84, + 0x74, 0x25, 0xcd, 0xef, 0x2e, 0xba, 0x08, 0xe3, 0x2e, 0xd9, 0x72, 0x3a, 0x7e, 0xa2, 0x0c, 0xc5, + 0x61, 0xbe, 0x83, 0xa8, 0xa7, 0x60, 0xac, 0xd3, 0xd8, 0x7f, 0x50, 0x63, 0x53, 0x32, 0x71, 0xbc, + 0x80, 0x44, 0x74, 0x69, 0xd6, 0xec, 0xf9, 0x09, 0xdd, 0x9e, 0x17, 0xb6, 0xfb, 0x53, 0x30, 0xec, + 0xed, 0x52, 0x65, 0x5d, 0x31, 0x75, 0xf0, 0x3a, 0x05, 0x62, 0x8e, 0x43, 0x4f, 0xc3, 0x68, 0x2b, + 0xdc, 0xdd, 0x75, 0x02, 0x77, 0xb6, 0xca, 0x8c, 0x85, 0x71, 0xaa, 0xcf, 0x57, 0x38, 0x08, 0x4b, + 0x1c, 0x7a, 0x02, 0x86, 0x9c, 0x68, 0x3b, 0x9e, 0x1d, 0x62, 0x34, 0x63, 0xb4, 0xa6, 0xa5, 0x68, + 0x3b, 0xc6, 0x0c, 0x4a, 0x8d, 0x80, 0x7b, 0x61, 0x74, 0xd7, 0x0b, 0xb6, 0xeb, 0x5e, 0xc4, 0x56, + 0x74, 0xcd, 0x08, 0xb8, 0xa3, 0x30, 0x58, 0xa3, 0x42, 0x0d, 0x18, 0x6e, 0x87, 0x51, 0x12, 0xcf, + 0x8e, 0xb0, 0xe1, 0x7c, 0xbe, 0x50, 0x7a, 0x78, 0xbf, 0x1b, 0x61, 0x94, 0xa4, 0x5d, 0xa1, 0xff, + 0x62, 0xcc, 0x19, 0xa1, 0x15, 0xa8, 0x92, 0x60, 0x6f, 0x76, 0x94, 0xf1, 0xfb, 0xd8, 0xf1, 0xfc, + 0x56, 0x83, 0xbd, 0xdb, 0x4e, 0x94, 0x4e, 0xa1, 0xd5, 0x60, 0x0f, 0xd3, 0xd2, 0xa8, 0x05, 0x35, + 0xe9, 0x35, 0x88, 0x67, 0xc7, 0xca, 0x08, 0x18, 0x16, 0xe4, 0x98, 0xbc, 0xd3, 0xf1, 0x22, 0xb2, + 0x4b, 0x82, 0x24, 0x4e, 0x2d, 0x61, 0x89, 0x8d, 0x71, 0xca, 0x17, 0xb5, 0x60, 0x82, 0x1b, 0x0e, + 0xd7, 0xc3, 0x4e, 0x90, 0xc4, 0xb3, 0x35, 0xd6, 0xe4, 0x82, 0xad, 0xe6, 0xed, 0xb4, 0xc4, 0xf2, + 0x29, 0xc1, 0x7e, 0x42, 0x03, 0xc6, 0xd8, 0x60, 0x8a, 0xde, 0x86, 0x49, 0xdf, 0xdb, 0x23, 0x01, + 0x89, 0xe3, 0x46, 0x14, 0x6e, 0x92, 0x59, 0x60, 0xbd, 0x79, 0xaa, 0x68, 0xdb, 0x15, 0x6e, 0x92, + 0xe5, 0x13, 0x87, 0x07, 0xf3, 0x93, 0xd7, 0xf4, 0xd2, 0xd8, 0x64, 0x86, 0xbe, 0x0c, 0x53, 0xd4, + 0x4a, 0xf1, 0x52, 0xf6, 0xe3, 0xe5, 0xd9, 0xa3, 0xc3, 0x83, 0xf9, 0x29, 0x6c, 0x14, 0xc7, 0x19, + 0x76, 0x68, 0x03, 0x6a, 0xbe, 0xb7, 0x45, 0x5a, 0xfb, 0x2d, 0x9f, 0xcc, 0x4e, 0x30, 0xde, 0x05, + 0x53, 0xee, 0x9a, 0x24, 0xe7, 0x96, 0xa1, 0xfa, 0x8b, 0x53, 0x46, 0xe8, 0x36, 0x9c, 0x49, 0x48, + 0xb4, 0xeb, 0x05, 0x0e, 0x5d, 0xae, 0x85, 0xd9, 0xc2, 0xf6, 0xb6, 0x93, 0x4c, 0x6a, 0xcf, 0x8a, + 0x81, 0x3d, 0xb3, 0x91, 0x4b, 0x85, 0x7b, 0x94, 0x46, 0x37, 0x61, 0x9a, 0xcd, 0xa7, 0x46, 0xc7, + 0xf7, 0x1b, 0xa1, 0xef, 0xb5, 0xf6, 0x67, 0xa7, 0x18, 0xc3, 0xa7, 0xe5, 0x8e, 0x75, 0xdd, 0x44, + 0x53, 0x8b, 0x3e, 0xfd, 0x87, 0xb3, 0xa5, 0x91, 0x0f, 0xd3, 0x31, 0x69, 0x75, 0x22, 0x2f, 0xd9, + 0xa7, 0xb2, 0x4f, 0xee, 0x27, 0xb3, 0xd3, 0x65, 0x76, 0x28, 0x4d, 0xb3, 0x10, 0x77, 0x17, 0x64, + 0x80, 0x38, 0xcb, 0x9a, 0xaa, 0x8a, 0x38, 0x71, 0xbd, 0x60, 0x76, 0x86, 0x99, 0xa4, 0x6a, 0x7e, + 0x35, 0x29, 0x10, 0x73, 0x1c, 0xdb, 0xf0, 0xd1, 0x1f, 0x37, 0xa9, 0xee, 0x3d, 0xc1, 0x08, 0xd3, + 0x0d, 0x9f, 0x44, 0xe0, 0x94, 0x86, 0xae, 0x56, 0x49, 0xb2, 0x3f, 0x8b, 0x18, 0xa9, 0x9a, 0x6a, + 0x1b, 0x1b, 0x9f, 0xc7, 0x14, 0x6e, 0x6f, 0xc2, 0x94, 0x9a, 0xd6, 0x6c, 0x74, 0xd0, 0x3c, 0x0c, + 0x53, 0xcd, 0x25, 0xf7, 0x2d, 0x35, 0xda, 0x04, 0xaa, 0xd0, 0x62, 0xcc, 0xe1, 0xac, 0x09, 0xde, + 0xbb, 0x64, 0x79, 0x3f, 0x21, 0xdc, 0x7e, 0xad, 0x6a, 0x4d, 0x90, 0x08, 0x9c, 0xd2, 0xd8, 0xff, + 0x87, 0xaf, 0x88, 0xa9, 0xee, 0x28, 0xa1, 0x37, 0x2f, 0xc0, 0xd8, 0x4e, 0x18, 0x27, 0x94, 0x9a, + 0xd5, 0x31, 0x9c, 0xae, 0x82, 0x57, 0x04, 0x1c, 0x2b, 0x0a, 0xf4, 0x1a, 0x4c, 0xb6, 0xf4, 0x0a, + 0x84, 0x2a, 0x3f, 0x2d, 0x8a, 0x98, 0xb5, 0x63, 0x93, 0x16, 0xbd, 0x0a, 0x63, 0xcc, 0x89, 0xd7, + 0x0a, 0x7d, 0x61, 0x29, 0xcb, 0x95, 0x69, 0xac, 0x21, 0xe0, 0x47, 0xda, 0x6f, 0xac, 0xa8, 0xe9, + 0x7e, 0x83, 0x36, 0x61, 0xbd, 0x21, 0xd4, 0xad, 0xda, 0x6f, 0x5c, 0x61, 0x50, 0x2c, 0xb0, 0xf6, + 0xbf, 0xac, 0x68, 0xa3, 0x4c, 0x2d, 0x3e, 0x82, 0xbe, 0x00, 0xa3, 0xf7, 0x1c, 0x2f, 0xf1, 0x82, + 0x6d, 0xb1, 0x82, 0xbe, 0x58, 0x52, 0xf7, 0xb2, 0xe2, 0x77, 0x78, 0x51, 0xbe, 0x4e, 0x88, 0x3f, + 0x58, 0x32, 0xa4, 0xbc, 0xa3, 0x4e, 0x10, 0x50, 0xde, 0x95, 0xfe, 0x79, 0x63, 0x5e, 0x94, 0xf3, + 0x16, 0x7f, 0xb0, 0x64, 0x88, 0xb6, 0x00, 0xe4, 0xec, 0x23, 0xae, 0x70, 0x9e, 0x7d, 0xb2, 0x1f, + 0xf6, 0x1b, 0xaa, 0xf4, 0xf2, 0x14, 0x5d, 0x99, 0xd2, 0xff, 0x58, 0xe3, 0x6c, 0x47, 0xcc, 0x10, + 0xe9, 0x6e, 0x16, 0xfa, 0x3c, 0x9d, 0x00, 0x4e, 0x94, 0x10, 0x77, 0x29, 0x29, 0x36, 0x83, 0x53, + 0x6b, 0x6a, 0xc3, 0xdb, 0x25, 0xfa, 0x54, 0x11, 0x2c, 0x70, 0xca, 0xcd, 0xfe, 0x5e, 0x15, 0x66, + 0x7b, 0x35, 0x96, 0x0a, 0x24, 0xb9, 0xef, 0x25, 0x2b, 0xd4, 0x50, 0xb0, 0x4c, 0x81, 0x5c, 0x15, + 0x70, 0xac, 0x28, 0xa8, 0x64, 0xc4, 0xde, 0x76, 0xe0, 0xf8, 0x42, 0x78, 0x95, 0x64, 0x34, 0x19, + 0x14, 0x0b, 0x2c, 0xa5, 0x8b, 0x88, 0x13, 0x0b, 0xcf, 0xad, 0x26, 0x41, 0x98, 0x41, 0xb1, 0xc0, + 0xea, 0xbb, 0xbe, 0xa1, 0x82, 0x5d, 0x9f, 0x31, 0x40, 0xc3, 0x0f, 0x73, 0x80, 0xd0, 0xdb, 0x00, + 0x5b, 0x5e, 0xe0, 0xc5, 0x3b, 0x8c, 0xf7, 0x48, 0x9f, 0xbc, 0x95, 0x31, 0xb2, 0xa6, 0x78, 0x60, + 0x8d, 0x1f, 0x7a, 0x19, 0xc6, 0xd5, 0xc4, 0x5c, 0xaf, 0xcf, 0x8e, 0x9a, 0x9e, 0xbe, 0x54, 0x4b, + 0xd5, 0xb1, 0x4e, 0x67, 0x7f, 0x35, 0x2b, 0x29, 0x62, 0x3e, 0x68, 0x63, 0x6b, 0x95, 0x1d, 0xdb, + 0xca, 0xf1, 0x63, 0x6b, 0xff, 0x97, 0x2a, 0xdd, 0x2c, 0x6b, 0x95, 0x75, 0xe2, 0x12, 0xba, 0xec, + 0x4d, 0xaa, 0xd8, 0x9d, 0x84, 0x88, 0xd9, 0x78, 0xa1, 0x9f, 0xe9, 0xa2, 0x2f, 0x03, 0x74, 0x16, + 0x70, 0x4e, 0x68, 0x07, 0x6a, 0xbe, 0x13, 0xb3, 0xdd, 0x23, 0x11, 0xb3, 0xb0, 0x3f, 0xb6, 0xa9, + 0xf1, 0xed, 0xc4, 0x89, 0xb6, 0xce, 0xf2, 0x5a, 0x52, 0xe6, 0x74, 0x55, 0xa2, 0x46, 0x81, 0x3c, + 0x2a, 0x50, 0xcd, 0xa1, 0x96, 0xc3, 0x3e, 0xe6, 0x38, 0xf4, 0x2a, 0x4c, 0x44, 0x84, 0xc9, 0xc9, + 0x0a, 0xb5, 0x7b, 0x98, 0xd8, 0x0d, 0xa7, 0x06, 0x12, 0xd6, 0x70, 0xd8, 0xa0, 0x4c, 0xed, 0xe3, + 0x91, 0x63, 0xec, 0xe3, 0x67, 0x61, 0x94, 0xfd, 0x50, 0x52, 0xa1, 0xbe, 0xd0, 0x3a, 0x07, 0x63, + 0x89, 0xcf, 0x0a, 0xd1, 0x58, 0x49, 0x21, 0x7a, 0x0e, 0xa6, 0xea, 0x0e, 0xd9, 0x0d, 0x83, 0xd5, + 0xc0, 0x6d, 0x87, 0x5e, 0x90, 0xa0, 0x59, 0x18, 0x62, 0x2b, 0x09, 0x9f, 0xeb, 0x43, 0x94, 0x03, + 0x1e, 0xa2, 0x36, 0xae, 0xfd, 0x7f, 0x2d, 0x98, 0xac, 0x13, 0x9f, 0x24, 0xe4, 0x66, 0x9b, 0xf9, + 0x1b, 0xd0, 0x1a, 0xa0, 0xed, 0xc8, 0x69, 0x91, 0x06, 0x89, 0xbc, 0xd0, 0x6d, 0x92, 0x56, 0x18, + 0x30, 0x0f, 0x3b, 0x5d, 0x1a, 0xcf, 0x1c, 0x1e, 0xcc, 0xa3, 0xcb, 0x5d, 0x58, 0x9c, 0x53, 0x02, + 0xb9, 0x30, 0xd9, 0x8e, 0x88, 0xe1, 0x20, 0xb1, 0x8a, 0xcd, 0xf2, 0x86, 0x5e, 0x84, 0x5b, 0x8d, + 0x06, 0x08, 0x9b, 0x4c, 0xd1, 0x67, 0x61, 0x26, 0x8c, 0xda, 0x3b, 0x4e, 0x50, 0x27, 0x6d, 0x12, + 0xb8, 0xd4, 0x54, 0x16, 0x5e, 0xb0, 0x53, 0x87, 0x07, 0xf3, 0x33, 0x37, 0x33, 0x38, 0xdc, 0x45, + 0x6d, 0xff, 0x7a, 0x05, 0x4e, 0xd7, 0xc3, 0x7b, 0xc1, 0x3d, 0x27, 0x72, 0x97, 0x1a, 0xeb, 0xdc, + 0xfe, 0x65, 0x5e, 0x45, 0xe9, 0xcd, 0xb4, 0x7a, 0x7a, 0x33, 0xbf, 0x08, 0x63, 0x5b, 0x1e, 0xf1, + 0x5d, 0x4c, 0xb6, 0x44, 0xf7, 0x2e, 0x96, 0xf1, 0x62, 0xac, 0xd1, 0x32, 0xd2, 0x13, 0xc0, 0x9d, + 0xa9, 0x6b, 0x82, 0x0d, 0x56, 0x0c, 0x51, 0x07, 0x66, 0xa4, 0x81, 0x2f, 0xb1, 0x62, 0x76, 0xbc, + 0x58, 0x6e, 0xff, 0x60, 0x56, 0xc3, 0xc6, 0x03, 0x67, 0x18, 0xe2, 0xae, 0x2a, 0xe8, 0xc6, 0x6c, + 0x97, 0xae, 0x0b, 0x43, 0x4c, 0x56, 0xd8, 0xc6, 0x8c, 0xed, 0x1c, 0x19, 0xd4, 0xfe, 0x67, 0x16, + 0x3c, 0xd6, 0x35, 0x5a, 0x62, 0x5b, 0xfd, 0x96, 0xdc, 0xcf, 0xf2, 0xe3, 0x98, 0x82, 0x56, 0xe6, + 0x8e, 0x79, 0xb9, 0xbd, 0x6d, 0xa5, 0xc4, 0xde, 0xf6, 0x26, 0x9c, 0x5a, 0xdd, 0x6d, 0x27, 0xfb, + 0x75, 0xcf, 0x74, 0xc2, 0xbe, 0x02, 0x23, 0xbb, 0xc4, 0xf5, 0x3a, 0xbb, 0xe2, 0xb3, 0xce, 0x4b, + 0x45, 0x7a, 0x9d, 0x41, 0x8f, 0x0e, 0xe6, 0x27, 0x9b, 0x49, 0x18, 0x39, 0xdb, 0x84, 0x03, 0xb0, + 0x20, 0xb7, 0xdf, 0xb7, 0x60, 0x5a, 0x4e, 0xa8, 0x25, 0xd7, 0x8d, 0x48, 0x1c, 0xa3, 0x39, 0xa8, + 0x78, 0x6d, 0xc1, 0x08, 0x04, 0xa3, 0xca, 0x7a, 0x03, 0x57, 0xbc, 0x36, 0xfa, 0x02, 0xd4, 0xb8, + 0xef, 0x3e, 0x15, 0x8e, 0x3e, 0xcf, 0x02, 0xd8, 0xa6, 0x63, 0x43, 0xf2, 0xc0, 0x29, 0x3b, 0x69, + 0x50, 0x32, 0x55, 0x5d, 0x35, 0x3d, 0xc9, 0x57, 0x04, 0x1c, 0x2b, 0x0a, 0x74, 0x1e, 0xc6, 0x82, + 0xd0, 0xe5, 0xc7, 0x2a, 0x7c, 0xc1, 0x65, 0x22, 0x77, 0x43, 0xc0, 0xb0, 0xc2, 0xda, 0xdf, 0xb0, + 0x60, 0x42, 0xf6, 0xb1, 0xa4, 0x6d, 0x4b, 0x27, 0x49, 0x6a, 0xd7, 0xa6, 0x93, 0x84, 0xda, 0xa6, + 0x0c, 0x63, 0x98, 0xa4, 0xd5, 0x7e, 0x4c, 0x52, 0xfb, 0x87, 0x15, 0x98, 0x92, 0xcd, 0x69, 0x76, + 0x36, 0x63, 0x92, 0xa0, 0x2f, 0x41, 0xcd, 0xe1, 0x83, 0x4f, 0xa4, 0x9c, 0xbd, 0x50, 0xb4, 0x31, + 0x37, 0xbe, 0x59, 0x6a, 0x15, 0x2c, 0x49, 0x3e, 0x38, 0x65, 0x89, 0xf6, 0xe0, 0x44, 0x10, 0x26, + 0x6c, 0x3d, 0x50, 0xf8, 0x72, 0x5e, 0xd0, 0x6c, 0x3d, 0x8f, 0x8b, 0x7a, 0x4e, 0xdc, 0xc8, 0xf2, + 0xc3, 0xdd, 0x55, 0xa0, 0x9b, 0xd2, 0x79, 0x51, 0x65, 0x75, 0x3d, 0x57, 0xae, 0xae, 0xde, 0xbe, + 0x0b, 0xfb, 0x77, 0x2c, 0xa8, 0x49, 0xb2, 0x41, 0x3a, 0xc1, 0xef, 0xc0, 0x68, 0xcc, 0x3e, 0x8d, + 0x1c, 0xa6, 0x0b, 0xe5, 0x9a, 0xce, 0xbf, 0x67, 0xba, 0xf8, 0xf1, 0xff, 0x31, 0x96, 0xdc, 0x98, + 0xeb, 0x51, 0x75, 0xe0, 0x43, 0xe6, 0x7a, 0x54, 0xed, 0xea, 0xe1, 0x7a, 0xfc, 0x35, 0x0b, 0x46, + 0xb8, 0x43, 0xa8, 0x9c, 0x57, 0x4d, 0x73, 0x1e, 0xa7, 0x1c, 0x6f, 0x53, 0xa0, 0xf0, 0x25, 0xa3, + 0x3b, 0x50, 0x63, 0x3f, 0xd6, 0xa2, 0x70, 0x57, 0xac, 0x02, 0xcf, 0x95, 0x71, 0x48, 0x71, 0xad, + 0xc7, 0x55, 0xc9, 0x6d, 0xc9, 0x00, 0xa7, 0xbc, 0xec, 0x1f, 0x55, 0xe9, 0x94, 0x4f, 0x49, 0x8d, + 0x35, 0xcd, 0x7a, 0x14, 0x6b, 0x5a, 0x65, 0xf0, 0x6b, 0xda, 0x3b, 0x30, 0xdd, 0xd2, 0x9c, 0xf0, + 0xe9, 0x4a, 0x7a, 0xa9, 0xa4, 0x8b, 0x59, 0xf3, 0xdc, 0x73, 0x07, 0xc8, 0x8a, 0xc9, 0x0e, 0x67, + 0xf9, 0x23, 0x02, 0x13, 0xfc, 0xf8, 0x50, 0xd4, 0x37, 0xc4, 0xea, 0x5b, 0x2c, 0xf4, 0xb5, 0xf0, + 0x12, 0xaa, 0x32, 0x16, 0x62, 0xd2, 0xd4, 0x18, 0x61, 0x83, 0xad, 0xfd, 0xab, 0xc3, 0x30, 0xbc, + 0xba, 0x47, 0x82, 0x64, 0x80, 0x53, 0x7c, 0x17, 0xa6, 0xbc, 0x60, 0x2f, 0xf4, 0xf7, 0x88, 0xcb, + 0xf1, 0x0f, 0xb6, 0x9c, 0x9d, 0x11, 0x95, 0x4c, 0xad, 0x1b, 0xcc, 0x70, 0x86, 0xf9, 0x20, 0xb6, + 0x91, 0x6f, 0xc2, 0x08, 0x97, 0x08, 0xb1, 0x87, 0x2c, 0x70, 0x8c, 0xb2, 0x01, 0x15, 0x33, 0x27, + 0xdd, 0xec, 0x72, 0x9f, 0xac, 0x60, 0x84, 0x76, 0x60, 0x6a, 0xcb, 0x8b, 0xe2, 0x84, 0xee, 0x06, + 0xe3, 0xc4, 0xd9, 0x6d, 0xf7, 0xbd, 0x85, 0x54, 0xe3, 0xb1, 0x66, 0xf0, 0xc1, 0x19, 0xbe, 0x88, + 0xc0, 0x24, 0xdd, 0xc1, 0xa4, 0x15, 0x8d, 0xf6, 0x59, 0x91, 0xf2, 0x1c, 0x5d, 0xd3, 0xd9, 0x60, + 0x93, 0x2b, 0x55, 0x43, 0x2d, 0xb6, 0xdf, 0x19, 0x63, 0x2b, 0xb9, 0x52, 0x43, 0x7c, 0xa3, 0xc3, + 0x71, 0x54, 0x9b, 0xb1, 0x73, 0xe2, 0x9a, 0xa9, 0xcd, 0xd2, 0xd3, 0x60, 0xfb, 0xbb, 0x74, 0xdd, + 0xa1, 0xe3, 0x37, 0x70, 0x95, 0x7d, 0xc5, 0x54, 0xd9, 0x4f, 0x95, 0xf8, 0xa6, 0x3d, 0xd4, 0xf5, + 0x57, 0x60, 0x5c, 0xfb, 0xe4, 0x68, 0x11, 0x6a, 0x2d, 0x79, 0xa4, 0x29, 0xf4, 0xb6, 0x32, 0x1a, + 0xd4, 0x59, 0x27, 0x4e, 0x69, 0xe8, 0xa8, 0x50, 0x63, 0x2b, 0x1b, 0xf6, 0x40, 0x4d, 0x31, 0xcc, + 0x30, 0xf6, 0x8b, 0x00, 0xab, 0xf7, 0x49, 0x6b, 0xa9, 0xc5, 0x4e, 0xdb, 0xb5, 0x23, 0x12, 0xab, + 0xf7, 0x11, 0x09, 0x1d, 0xca, 0xa9, 0xb5, 0x15, 0xc3, 0x7a, 0x5d, 0x00, 0xe0, 0x56, 0xe0, 0x9d, + 0x3b, 0x37, 0xa4, 0x53, 0x93, 0x7b, 0x9e, 0x14, 0x14, 0x6b, 0x14, 0xe8, 0x71, 0xa8, 0xfa, 0x9d, + 0x40, 0x18, 0x67, 0xa3, 0x87, 0x07, 0xf3, 0xd5, 0x6b, 0x9d, 0x00, 0x53, 0x98, 0x16, 0x5f, 0x50, + 0x2d, 0x1d, 0x5f, 0x50, 0x1c, 0x61, 0xf7, 0xad, 0x2a, 0xcc, 0xac, 0xf9, 0xe4, 0xbe, 0xd1, 0xea, + 0x67, 0x60, 0xc4, 0x8d, 0xbc, 0x3d, 0x12, 0x65, 0x9d, 0x17, 0x75, 0x06, 0xc5, 0x02, 0x5b, 0x3a, + 0xe4, 0xc1, 0x08, 0xf7, 0xa8, 0x0e, 0x38, 0xdc, 0xa3, 0xb0, 0xcf, 0x68, 0x0b, 0x46, 0x43, 0xbe, + 0x79, 0x9e, 0x1d, 0x66, 0xa2, 0xf8, 0xda, 0xf1, 0x8d, 0xc9, 0x8e, 0xcf, 0x82, 0xd8, 0x7a, 0xf3, + 0xe3, 0x67, 0xa5, 0xc5, 0x04, 0x14, 0x4b, 0xe6, 0x73, 0x9f, 0x86, 0x09, 0x9d, 0xb2, 0xaf, 0x73, + 0xe8, 0x5f, 0xb4, 0xe0, 0xe4, 0x9a, 0x1f, 0xb6, 0xee, 0x66, 0x62, 0x52, 0x5e, 0x86, 0x71, 0x3a, + 0x99, 0x62, 0x23, 0x50, 0xcb, 0x88, 0x48, 0x13, 0x28, 0xac, 0xd3, 0x69, 0xc5, 0x6e, 0xdd, 0x5a, + 0xaf, 0xe7, 0x05, 0xb2, 0x09, 0x14, 0xd6, 0xe9, 0xec, 0xff, 0x6c, 0xc1, 0x93, 0x97, 0x57, 0x56, + 0x1b, 0x24, 0x8a, 0xbd, 0x38, 0x21, 0x41, 0xd2, 0x15, 0x4b, 0xf7, 0x0c, 0x8c, 0xb4, 0x5d, 0xad, + 0x29, 0x4a, 0x04, 0x1a, 0x75, 0xd6, 0x0a, 0x81, 0xfd, 0xb0, 0x04, 0x94, 0xfe, 0x9a, 0x05, 0x27, + 0x2f, 0x7b, 0x09, 0x26, 0xed, 0x30, 0x1b, 0xfe, 0x16, 0x91, 0x76, 0x18, 0x7b, 0x49, 0x18, 0xed, + 0x67, 0xc3, 0xdf, 0xb0, 0xc2, 0x60, 0x8d, 0x8a, 0xd7, 0xbc, 0xe7, 0xc5, 0xb4, 0xa5, 0x15, 0x73, + 0x53, 0x87, 0x05, 0x1c, 0x2b, 0x0a, 0xda, 0x31, 0xd7, 0x8b, 0x98, 0x91, 0xb0, 0x2f, 0x66, 0xb0, + 0xea, 0x58, 0x5d, 0x22, 0x70, 0x4a, 0x63, 0xff, 0x7d, 0x0b, 0x4e, 0x5f, 0xf6, 0x3b, 0x71, 0x42, + 0xa2, 0xad, 0xd8, 0x68, 0xec, 0x8b, 0x50, 0x23, 0xd2, 0xa0, 0x15, 0x6d, 0x55, 0x4b, 0x86, 0xb2, + 0x74, 0x79, 0xec, 0x9d, 0xa2, 0x2b, 0x11, 0xea, 0xd5, 0x5f, 0x60, 0xd2, 0x6f, 0x55, 0x60, 0xf2, + 0xca, 0xc6, 0x46, 0xe3, 0x32, 0x49, 0x84, 0x96, 0x2c, 0x76, 0xbf, 0x34, 0xb4, 0xbd, 0xe7, 0xf8, + 0xa5, 0x85, 0x1e, 0xb3, 0xae, 0x93, 0x78, 0xfe, 0x02, 0x0f, 0x75, 0x5e, 0x58, 0x0f, 0x92, 0x9b, + 0x51, 0x33, 0x89, 0xbc, 0x60, 0x3b, 0x77, 0xaf, 0x2a, 0x35, 0x79, 0xb5, 0x97, 0x26, 0x47, 0x2f, + 0xc2, 0x08, 0x8b, 0xb4, 0x96, 0x46, 0xc7, 0xcf, 0x29, 0xfb, 0x80, 0x41, 0x8f, 0x0e, 0xe6, 0x6b, + 0xb7, 0xf0, 0x3a, 0xff, 0x83, 0x05, 0x29, 0xfa, 0x32, 0x8c, 0xef, 0x24, 0x49, 0xfb, 0x0a, 0x71, + 0x5c, 0x12, 0x49, 0x2d, 0x51, 0x60, 0x9e, 0xd1, 0xc1, 0xe0, 0x05, 0xd2, 0x89, 0x95, 0xc2, 0x62, + 0xac, 0x73, 0xb4, 0x9b, 0x00, 0x29, 0xee, 0x21, 0xed, 0x39, 0xec, 0xbf, 0x56, 0x81, 0xd1, 0x2b, + 0x4e, 0xe0, 0xfa, 0x24, 0x42, 0x6b, 0x30, 0x44, 0xee, 0x93, 0x56, 0x39, 0xcb, 0x32, 0x5d, 0xea, + 0xb8, 0xff, 0x88, 0xfe, 0xc7, 0xac, 0x3c, 0xc2, 0x30, 0x4a, 0xdb, 0x7d, 0x59, 0xc5, 0x47, 0x3e, + 0x5f, 0x3c, 0x0a, 0x4a, 0x24, 0xf8, 0x3a, 0x29, 0x40, 0x58, 0x32, 0x62, 0x9e, 0x96, 0x56, 0xbb, + 0x49, 0x95, 0x5b, 0x52, 0x2e, 0x04, 0x7a, 0x63, 0xa5, 0xc1, 0xc9, 0x05, 0x5f, 0xee, 0x69, 0x91, + 0x40, 0x9c, 0xb2, 0xb3, 0x5f, 0x85, 0x53, 0xec, 0x88, 0xce, 0x49, 0x76, 0x8c, 0x39, 0x53, 0x28, + 0x9c, 0xf6, 0x3f, 0xae, 0xc0, 0x89, 0xf5, 0xe6, 0x4a, 0xd3, 0xf4, 0x91, 0xbd, 0x0a, 0x13, 0x7c, + 0x79, 0xa6, 0x42, 0xe7, 0xf8, 0xa2, 0xbc, 0x72, 0x2e, 0x6f, 0x68, 0x38, 0x6c, 0x50, 0xa2, 0x27, + 0xa1, 0xea, 0xbd, 0x13, 0x64, 0x23, 0x75, 0xd6, 0xdf, 0xbc, 0x81, 0x29, 0x9c, 0xa2, 0xe9, 0x4a, + 0xcf, 0x55, 0x9c, 0x42, 0xab, 0xd5, 0xfe, 0x0d, 0x98, 0xf2, 0xe2, 0x56, 0xec, 0xad, 0x07, 0x74, + 0xfe, 0x3b, 0x2d, 0x29, 0xbe, 0xa9, 0x51, 0x4e, 0x9b, 0xaa, 0xb0, 0x38, 0x43, 0xad, 0xe9, 0xdb, + 0xe1, 0xd2, 0xd6, 0x42, 0x71, 0xa0, 0xe4, 0x57, 0xa1, 0xa6, 0xc2, 0x5a, 0x64, 0x28, 0x92, 0x95, + 0x1f, 0x8a, 0x54, 0x42, 0xe1, 0x48, 0xcf, 0x65, 0x35, 0xd7, 0x73, 0xf9, 0x1b, 0x16, 0xa4, 0x27, + 0xf8, 0x08, 0x43, 0xad, 0x1d, 0xb2, 0x63, 0x81, 0x48, 0x9e, 0xbc, 0x3d, 0x5d, 0x20, 0x89, 0x7c, + 0x26, 0x70, 0x59, 0x69, 0xc8, 0xb2, 0x38, 0x65, 0x83, 0xae, 0xc1, 0x68, 0x3b, 0x22, 0xcd, 0x84, + 0x45, 0xdb, 0xf6, 0xc1, 0x91, 0x49, 0x75, 0x83, 0x97, 0xc4, 0x92, 0x85, 0xfd, 0x6f, 0x2c, 0x80, + 0x6b, 0xde, 0xae, 0x97, 0x60, 0x27, 0xd8, 0x26, 0x03, 0xdc, 0xde, 0xdd, 0x80, 0xa1, 0xb8, 0x4d, + 0x5a, 0xe5, 0x0e, 0x74, 0xd2, 0x16, 0x35, 0xdb, 0xa4, 0x95, 0x7e, 0x06, 0xfa, 0x0f, 0x33, 0x3e, + 0xf6, 0x6f, 0x02, 0x4c, 0xa5, 0x64, 0xd4, 0xd0, 0x46, 0x2f, 0x18, 0xe1, 0xa5, 0x8f, 0x67, 0xc2, + 0x4b, 0x6b, 0x8c, 0x5a, 0x8b, 0x28, 0x4d, 0xa0, 0xba, 0xeb, 0xdc, 0x17, 0x76, 0xfd, 0xcb, 0x65, + 0x1b, 0x44, 0x6b, 0x5a, 0xb8, 0xee, 0xdc, 0xe7, 0x66, 0xd4, 0xf3, 0x52, 0x80, 0xae, 0x3b, 0xf7, + 0x8f, 0xf8, 0xb1, 0x0d, 0x9b, 0x81, 0x74, 0x23, 0xf1, 0xf5, 0xff, 0x9a, 0xfe, 0x67, 0x4a, 0x91, + 0x56, 0xc7, 0x6a, 0xf5, 0x02, 0xe1, 0x80, 0xeb, 0xb3, 0x56, 0x2f, 0xc8, 0xd6, 0xea, 0x05, 0x25, + 0x6a, 0xf5, 0x02, 0xf4, 0x9e, 0x05, 0xa3, 0xc2, 0x6f, 0xcd, 0x62, 0xa1, 0xc6, 0x2f, 0x7d, 0xaa, + 0xaf, 0xaa, 0x85, 0x03, 0x9c, 0x57, 0xbf, 0x28, 0x6d, 0x47, 0x01, 0x2d, 0x6c, 0x82, 0xac, 0x1a, + 0x7d, 0xdb, 0x82, 0x29, 0xf1, 0x1b, 0x93, 0x77, 0x3a, 0x24, 0x4e, 0xc4, 0x2a, 0xf5, 0xd9, 0x07, + 0x69, 0x8d, 0x60, 0xc1, 0x1b, 0xf5, 0x49, 0xa9, 0x62, 0x4c, 0x64, 0x61, 0xdb, 0x32, 0xed, 0x41, + 0x3f, 0xb0, 0xe0, 0xd4, 0xae, 0x73, 0x9f, 0xd7, 0xc8, 0x61, 0xd8, 0x49, 0xbc, 0x50, 0xc4, 0x7b, + 0xad, 0xf5, 0x2b, 0x27, 0x5d, 0x8c, 0x78, 0x73, 0x5f, 0x97, 0x87, 0x89, 0x79, 0x24, 0x85, 0x8d, + 0xce, 0x6d, 0xe1, 0x9c, 0x0b, 0x63, 0x52, 0x30, 0x73, 0xac, 0xf6, 0x65, 0x7d, 0x31, 0x3e, 0x7e, + 0x06, 0x4a, 0xcf, 0xd6, 0xc2, 0x9b, 0x1d, 0x27, 0x48, 0xbc, 0x64, 0x5f, 0xb3, 0xf1, 0x59, 0x2d, + 0x42, 0x10, 0x07, 0x58, 0xcb, 0x0e, 0x4c, 0xe8, 0x32, 0x37, 0xc0, 0x9a, 0x42, 0x38, 0x99, 0x23, + 0x4f, 0x03, 0xac, 0xb0, 0x03, 0x8f, 0xf7, 0x94, 0x8b, 0xc1, 0x55, 0x6b, 0xff, 0x96, 0xa5, 0x2b, + 0xcc, 0x81, 0xfb, 0x4d, 0xae, 0x9b, 0x7e, 0x93, 0xf3, 0x65, 0xe7, 0x4d, 0x0f, 0xe7, 0xc9, 0x96, + 0xde, 0x78, 0xba, 0x0c, 0xa0, 0x0d, 0x18, 0xf1, 0x29, 0x44, 0x1e, 0xd0, 0x5c, 0xe8, 0x67, 0x66, + 0xa6, 0x96, 0x05, 0x83, 0xc7, 0x58, 0xf0, 0xb2, 0xbf, 0x6f, 0xc1, 0xd0, 0xc0, 0xc7, 0xa6, 0x61, + 0x8e, 0x4d, 0x2f, 0xe3, 0x54, 0xdc, 0xb9, 0x5c, 0xc0, 0xce, 0xbd, 0xd5, 0xfb, 0x09, 0x09, 0x62, + 0x66, 0x44, 0xe6, 0x0e, 0xcf, 0xaf, 0x57, 0x60, 0x9c, 0x56, 0x24, 0x8f, 0xd7, 0x5f, 0x83, 0x49, + 0xdf, 0xd9, 0x24, 0xbe, 0xf4, 0xf0, 0x66, 0x37, 0x5c, 0xd7, 0x74, 0x24, 0x36, 0x69, 0x69, 0xe1, + 0x2d, 0xdd, 0x01, 0x2e, 0x8c, 0x21, 0x55, 0xd8, 0xf0, 0x8e, 0x63, 0x93, 0x96, 0xda, 0xfc, 0xf7, + 0x9c, 0xa4, 0xb5, 0x23, 0x36, 0x63, 0xaa, 0xb9, 0x77, 0x28, 0x10, 0x73, 0x1c, 0x5a, 0x82, 0x69, + 0x29, 0xab, 0xb7, 0xe9, 0x2e, 0x3d, 0x0c, 0x84, 0xa1, 0xa8, 0x2e, 0xca, 0x61, 0x13, 0x8d, 0xb3, + 0xf4, 0xe8, 0xd3, 0x30, 0x45, 0x07, 0x27, 0xec, 0x24, 0x32, 0x78, 0x60, 0x98, 0x05, 0x0f, 0xb0, + 0x18, 0xcd, 0x0d, 0x03, 0x83, 0x33, 0x94, 0xf6, 0x97, 0xe1, 0xe4, 0xb5, 0xd0, 0x71, 0x97, 0x1d, + 0xdf, 0x09, 0x5a, 0x24, 0x5a, 0x0f, 0xb6, 0x0b, 0xcf, 0x59, 0xf5, 0xb3, 0xd0, 0x4a, 0xd1, 0x59, + 0xa8, 0x1d, 0x01, 0xd2, 0x2b, 0x10, 0x61, 0x2f, 0x6f, 0xc3, 0xa8, 0xc7, 0xab, 0x12, 0x22, 0x7b, + 0xb1, 0xc8, 0x9d, 0xd4, 0xd5, 0x46, 0x2d, 0x8c, 0x83, 0x03, 0xb0, 0x64, 0x49, 0xf7, 0x10, 0x79, + 0xfe, 0xa7, 0xe2, 0x6d, 0x9a, 0xfd, 0x37, 0x2c, 0x98, 0xbe, 0x91, 0xb9, 0x8d, 0xf5, 0x0c, 0x8c, + 0xc4, 0x24, 0xca, 0x71, 0xa6, 0x35, 0x19, 0x14, 0x0b, 0xec, 0x43, 0xdf, 0xa0, 0xff, 0x4a, 0x05, + 0x6a, 0x2c, 0x74, 0xb2, 0xed, 0xb4, 0x06, 0x69, 0x8e, 0x5e, 0x37, 0xcc, 0xd1, 0x82, 0xed, 0xa1, + 0x6a, 0x50, 0x2f, 0x6b, 0x14, 0xdd, 0x52, 0xb7, 0x93, 0x4a, 0xed, 0x0c, 0x53, 0x86, 0xfc, 0x2e, + 0xcb, 0x94, 0x79, 0x99, 0x49, 0xde, 0x5c, 0x62, 0xa7, 0x93, 0x8a, 0xf6, 0x43, 0x76, 0x3a, 0xa9, + 0xda, 0xd5, 0x43, 0x25, 0x35, 0xb4, 0xa6, 0x33, 0x85, 0xfd, 0x19, 0x16, 0x0a, 0xe7, 0xf8, 0xde, + 0xbb, 0x44, 0x5d, 0xf1, 0x9b, 0x17, 0xc1, 0x6d, 0x02, 0x7a, 0xc4, 0xb4, 0x8b, 0xf8, 0xc7, 0x6f, + 0x6e, 0xa6, 0x45, 0xec, 0x2b, 0x30, 0x9d, 0x19, 0x38, 0xf4, 0x32, 0x0c, 0xb7, 0x77, 0x9c, 0x98, + 0x64, 0xc2, 0x2c, 0x86, 0x1b, 0x14, 0x78, 0x74, 0x30, 0x3f, 0xa5, 0x0a, 0x30, 0x08, 0xe6, 0xd4, + 0xf6, 0x9f, 0x5b, 0x30, 0x74, 0x23, 0x74, 0x07, 0x29, 0x60, 0x57, 0x0c, 0x01, 0x7b, 0xa6, 0xf8, + 0xbe, 0x77, 0x4f, 0xd9, 0x6a, 0x64, 0x64, 0xeb, 0x7c, 0x09, 0x5e, 0xc7, 0x8b, 0xd5, 0x2e, 0x8c, + 0xb3, 0xfb, 0xe4, 0x22, 0xbe, 0xe4, 0x45, 0x63, 0xdf, 0x34, 0x9f, 0xd9, 0x37, 0x4d, 0x6b, 0xa4, + 0xda, 0xee, 0xe9, 0x59, 0x18, 0x15, 0xf1, 0x0c, 0xd9, 0x10, 0x40, 0x41, 0x8b, 0x25, 0xde, 0xfe, + 0x57, 0x55, 0x30, 0xee, 0xaf, 0xa3, 0xdf, 0xb7, 0x60, 0x21, 0xe2, 0xd7, 0x0e, 0xdc, 0x7a, 0x27, + 0xf2, 0x82, 0xed, 0x66, 0x6b, 0x87, 0xb8, 0x1d, 0xdf, 0x0b, 0xb6, 0xd7, 0xb7, 0x83, 0x50, 0x81, + 0x57, 0xef, 0x93, 0x56, 0x87, 0x39, 0x55, 0x4b, 0x5f, 0x9b, 0x57, 0x67, 0x9a, 0x97, 0x0e, 0x0f, + 0xe6, 0x17, 0x70, 0x5f, 0xb5, 0xe0, 0x3e, 0x5b, 0x85, 0xfe, 0xc8, 0x82, 0x45, 0x7e, 0x83, 0xbb, + 0x7c, 0x4f, 0x4a, 0xed, 0x37, 0x1b, 0x92, 0x69, 0xca, 0x6e, 0x83, 0x44, 0xbb, 0xcb, 0xaf, 0x88, + 0x41, 0x5e, 0x6c, 0xf4, 0x57, 0x2b, 0xee, 0xb7, 0x99, 0xf6, 0x6f, 0x57, 0x61, 0x92, 0x8e, 0x67, + 0x7a, 0x7b, 0xf3, 0x65, 0x43, 0x4c, 0x3e, 0x9a, 0x11, 0x93, 0x13, 0x06, 0xf1, 0xc3, 0xb9, 0xb8, + 0xf9, 0x0e, 0x9c, 0xf0, 0x9d, 0x38, 0xb9, 0x42, 0x9c, 0x28, 0xd9, 0x24, 0x0e, 0x3b, 0x46, 0x2c, + 0x9e, 0x04, 0x99, 0x73, 0x49, 0x15, 0x21, 0x73, 0x2d, 0xcb, 0x0a, 0x77, 0x73, 0x47, 0x09, 0x20, + 0x76, 0x60, 0x19, 0x39, 0x41, 0xcc, 0x7b, 0xe2, 0x09, 0x27, 0x6c, 0x3f, 0x75, 0xce, 0x89, 0x3a, + 0xd1, 0xb5, 0x2e, 0x5e, 0x38, 0x87, 0xbf, 0x76, 0x18, 0x3d, 0x5c, 0xf6, 0x30, 0x7a, 0xa4, 0x20, + 0xee, 0xf6, 0x97, 0x2c, 0x38, 0x49, 0x3f, 0x89, 0x19, 0xa3, 0x19, 0xa3, 0x10, 0xa6, 0x69, 0xf3, + 0x7d, 0x92, 0x48, 0x58, 0xf1, 0x3a, 0xc2, 0x02, 0xe9, 0x0c, 0x3e, 0xa9, 0xa1, 0x76, 0xd5, 0x64, + 0x86, 0xb3, 0xdc, 0xed, 0xef, 0x58, 0xc0, 0x82, 0xc0, 0x06, 0xbe, 0x7c, 0x5d, 0x36, 0x97, 0x2f, + 0xbb, 0x58, 0x57, 0xf4, 0x58, 0xb9, 0x5e, 0x82, 0x19, 0x8a, 0x6d, 0x44, 0xe1, 0xfd, 0x7d, 0x69, + 0x50, 0x17, 0x7b, 0x62, 0xdf, 0xab, 0xf0, 0x09, 0xa3, 0x6e, 0x4e, 0xa1, 0x5f, 0xb6, 0x60, 0xac, + 0xe5, 0xb4, 0x9d, 0x16, 0xcf, 0xfb, 0x51, 0xc2, 0xeb, 0x62, 0x94, 0x5f, 0x58, 0x11, 0x65, 0xb9, + 0xc7, 0xe0, 0x13, 0xb2, 0xeb, 0x12, 0x5c, 0xe8, 0x25, 0x50, 0x95, 0xcf, 0x79, 0x30, 0x69, 0x30, + 0x1b, 0xe0, 0x36, 0xf3, 0x97, 0x2d, 0xae, 0xec, 0xd5, 0x86, 0xe0, 0x1e, 0x9c, 0x08, 0xb4, 0xff, + 0x54, 0x8d, 0x49, 0xfb, 0x77, 0xa1, 0xbc, 0x3a, 0x67, 0xda, 0x4f, 0x0b, 0x76, 0xcb, 0x30, 0xc4, + 0xdd, 0x75, 0xd8, 0xff, 0xc4, 0x82, 0xc7, 0x74, 0x42, 0xed, 0xa2, 0x5b, 0x91, 0x17, 0xb8, 0x0e, + 0x63, 0x61, 0x9b, 0x44, 0x4e, 0xba, 0xf9, 0x39, 0x2f, 0x47, 0xff, 0xa6, 0x80, 0x1f, 0x1d, 0xcc, + 0x9f, 0xd2, 0xb9, 0x4b, 0x38, 0x56, 0x25, 0x91, 0x0d, 0x23, 0x6c, 0x5c, 0x62, 0x71, 0x45, 0x91, + 0x65, 0xc1, 0x60, 0x67, 0x1f, 0x31, 0x16, 0x18, 0xfb, 0x6f, 0x5a, 0x5c, 0xd8, 0xf4, 0xa6, 0xa3, + 0xaf, 0xc1, 0xcc, 0x2e, 0xdd, 0x27, 0xad, 0xde, 0x6f, 0xd3, 0x05, 0x94, 0x9d, 0xf9, 0x5a, 0x65, + 0x96, 0x8d, 0x1e, 0xdd, 0x5d, 0x9e, 0x15, 0xad, 0x9f, 0xb9, 0x9e, 0x61, 0x8b, 0xbb, 0x2a, 0xb2, + 0xff, 0x58, 0xcc, 0x57, 0x66, 0xb3, 0x3d, 0x0b, 0xa3, 0xed, 0xd0, 0x5d, 0x59, 0xaf, 0x63, 0x31, + 0x56, 0x4a, 0xe1, 0x34, 0x38, 0x18, 0x4b, 0x3c, 0xba, 0x04, 0x40, 0xee, 0x27, 0x24, 0x0a, 0x1c, + 0x5f, 0x9d, 0xd5, 0x2a, 0x13, 0x69, 0x55, 0x61, 0xb0, 0x46, 0x45, 0xcb, 0xb4, 0xa3, 0x70, 0xcf, + 0x73, 0x59, 0xe4, 0x79, 0xd5, 0x2c, 0xd3, 0x50, 0x18, 0xac, 0x51, 0xd1, 0xdd, 0x69, 0x27, 0x88, + 0xf9, 0xf2, 0xe5, 0x6c, 0x8a, 0xe4, 0x0d, 0x63, 0xe9, 0xee, 0xf4, 0x96, 0x8e, 0xc4, 0x26, 0xad, + 0xfd, 0xd3, 0x1a, 0x40, 0x6a, 0x20, 0xa1, 0xf7, 0xba, 0x67, 0xe8, 0x27, 0xcb, 0x5a, 0x57, 0x0f, + 0x6f, 0x7a, 0xa2, 0x6f, 0x5a, 0x30, 0xee, 0xf8, 0x7e, 0xd8, 0x72, 0x12, 0xd6, 0xa3, 0x4a, 0x59, + 0x5d, 0x21, 0x5a, 0xb2, 0x94, 0x96, 0xe5, 0x8d, 0x79, 0x51, 0x1e, 0xe5, 0x69, 0x98, 0xc2, 0xf6, + 0xe8, 0x4d, 0x40, 0x9f, 0x90, 0x86, 0x35, 0xff, 0x28, 0x73, 0x59, 0xc3, 0xba, 0xc6, 0x34, 0xa4, + 0x66, 0x53, 0xa3, 0x2f, 0x1b, 0x79, 0x0a, 0x86, 0xca, 0xdc, 0x8e, 0x35, 0x4c, 0x86, 0xa2, 0x14, + 0x05, 0xe8, 0x0b, 0x7a, 0x50, 0xee, 0x70, 0x99, 0xab, 0xa7, 0x9a, 0xe5, 0x5a, 0x10, 0x90, 0x9b, + 0xc0, 0xb4, 0x6b, 0x2e, 0x94, 0x22, 0xd0, 0xea, 0x62, 0x71, 0x0d, 0x99, 0x15, 0x36, 0x5d, 0x1a, + 0x33, 0x08, 0x9c, 0xad, 0x82, 0xae, 0x86, 0x54, 0x6d, 0xad, 0x07, 0x5b, 0xa1, 0x08, 0xb7, 0xba, + 0x50, 0xe2, 0x9b, 0xef, 0xc7, 0x09, 0xd9, 0xa5, 0x65, 0xd2, 0xd5, 0xf0, 0x86, 0xe0, 0x82, 0x15, + 0x3f, 0xb4, 0x01, 0x23, 0xec, 0x82, 0x47, 0x3c, 0x3b, 0x56, 0xc6, 0x3d, 0x66, 0xde, 0x68, 0x4c, + 0x0d, 0x10, 0xf6, 0x37, 0xc6, 0x82, 0x17, 0xba, 0x22, 0x6f, 0x00, 0xc7, 0xeb, 0xc1, 0xad, 0x98, + 0xb0, 0x1b, 0xc0, 0xb5, 0xe5, 0x8f, 0xa5, 0x57, 0x7a, 0x39, 0x3c, 0x37, 0x33, 0x93, 0x51, 0x92, + 0xda, 0x21, 0xe2, 0xbf, 0x4c, 0xf8, 0x34, 0x0b, 0x65, 0x1a, 0x6a, 0xa6, 0x87, 0x4a, 0x07, 0xfb, + 0xb6, 0xc9, 0x0c, 0x67, 0xb9, 0x3f, 0xc2, 0x35, 0x70, 0xce, 0x87, 0x99, 0xec, 0x94, 0x1c, 0xe0, + 0x8a, 0xfb, 0x67, 0x43, 0x30, 0x65, 0x0a, 0x06, 0x5a, 0x84, 0xda, 0x2e, 0x4b, 0xc7, 0x94, 0x26, + 0x81, 0x51, 0xf2, 0x7f, 0x5d, 0x22, 0x70, 0x4a, 0xc3, 0xd2, 0xe1, 0xb0, 0xe2, 0x5a, 0xa0, 0x4d, + 0x9a, 0x0e, 0x47, 0x61, 0xb0, 0x46, 0x45, 0x8d, 0xd6, 0xcd, 0x30, 0x4c, 0x94, 0xe2, 0x56, 0x32, + 0xb3, 0xcc, 0xa0, 0x58, 0x60, 0xa9, 0xc2, 0xbe, 0x4b, 0x3b, 0xe4, 0x9b, 0xae, 0x3e, 0xa5, 0xb0, + 0xaf, 0xea, 0x48, 0x6c, 0xd2, 0xd2, 0x05, 0x28, 0x8c, 0x99, 0x10, 0x0a, 0xd3, 0x38, 0x0d, 0x5c, + 0x6a, 0xf2, 0x0b, 0x4f, 0x12, 0x8f, 0x3e, 0x0f, 0x8f, 0xa9, 0xfb, 0x49, 0x98, 0xbb, 0x4e, 0x65, + 0x8d, 0x23, 0xc6, 0xce, 0xf6, 0xb1, 0x95, 0x7c, 0x32, 0xdc, 0xab, 0x3c, 0x7a, 0x03, 0xa6, 0x84, + 0x59, 0x2b, 0x39, 0x8e, 0x9a, 0xe7, 0xda, 0x57, 0x0d, 0x2c, 0xce, 0x50, 0xa3, 0x3a, 0xcc, 0x50, + 0x08, 0xb3, 0x28, 0x25, 0x07, 0x7e, 0xcf, 0x4a, 0xad, 0xcc, 0x57, 0x33, 0x78, 0xdc, 0x55, 0x02, + 0x2d, 0xc1, 0x34, 0xb7, 0x2d, 0xe8, 0xfe, 0x8d, 0x7d, 0x07, 0x11, 0x21, 0xa9, 0x26, 0xc1, 0x4d, + 0x13, 0x8d, 0xb3, 0xf4, 0xe8, 0x55, 0x98, 0x70, 0xa2, 0xd6, 0x8e, 0x97, 0x90, 0x56, 0xd2, 0x89, + 0xf8, 0xdd, 0x7a, 0x2d, 0x30, 0x60, 0x49, 0xc3, 0x61, 0x83, 0xd2, 0x7e, 0x17, 0x4e, 0xe6, 0x84, + 0x60, 0x53, 0xc1, 0x71, 0xda, 0x9e, 0xec, 0x53, 0x26, 0x04, 0x69, 0xa9, 0xb1, 0x2e, 0x7b, 0xa3, + 0x51, 0x51, 0xe9, 0x64, 0x3e, 0x63, 0x2d, 0x37, 0x9b, 0x92, 0xce, 0x35, 0x89, 0xc0, 0x29, 0x8d, + 0xfd, 0xdf, 0x6b, 0xa0, 0x39, 0x59, 0x4a, 0x04, 0x9e, 0xbc, 0x0a, 0x13, 0x32, 0xdd, 0xa0, 0x96, + 0xe6, 0x4b, 0x75, 0xf3, 0xb2, 0x86, 0xc3, 0x06, 0x25, 0x6d, 0x5b, 0x20, 0x5d, 0x46, 0xd9, 0x80, + 0x27, 0xe5, 0x4b, 0xc2, 0x29, 0x0d, 0xba, 0x00, 0x63, 0x31, 0xf1, 0xb7, 0xae, 0x79, 0xc1, 0x5d, + 0x21, 0xd8, 0x4a, 0x2b, 0x37, 0x05, 0x1c, 0x2b, 0x0a, 0xf4, 0x59, 0xa8, 0x76, 0x3c, 0x57, 0x88, + 0xf2, 0x82, 0xb4, 0x3b, 0x6f, 0xad, 0xd7, 0x8f, 0x0e, 0xe6, 0xe7, 0xf3, 0x73, 0x28, 0xd2, 0x4d, + 0x74, 0xbc, 0x40, 0x27, 0x1f, 0x2d, 0x9a, 0xe7, 0x3a, 0x1f, 0xe9, 0xd3, 0x75, 0x7e, 0x09, 0x40, + 0xf4, 0x59, 0x4a, 0x72, 0x35, 0xfd, 0x66, 0x97, 0x15, 0x06, 0x6b, 0x54, 0x74, 0x2b, 0xde, 0x8a, + 0x88, 0x23, 0x77, 0xac, 0x3c, 0x44, 0x78, 0xec, 0x41, 0xb7, 0xe2, 0x2b, 0x59, 0x56, 0xb8, 0x9b, + 0x3b, 0xda, 0x85, 0x13, 0x2e, 0x9d, 0x44, 0x46, 0x95, 0xb5, 0x7e, 0xa3, 0x92, 0x69, 0x75, 0xf5, + 0x2c, 0x1b, 0xdc, 0xcd, 0x19, 0x7d, 0x09, 0xe6, 0x24, 0xb0, 0xfb, 0xee, 0x21, 0x9b, 0x28, 0xd5, + 0xe5, 0xb3, 0x87, 0x07, 0xf3, 0x73, 0xf5, 0x9e, 0x54, 0xf8, 0x18, 0x0e, 0xe8, 0x6d, 0x18, 0x61, + 0xc7, 0x2c, 0xf1, 0xec, 0x38, 0x5b, 0xe7, 0x5e, 0x2a, 0xeb, 0x68, 0x5c, 0x60, 0x87, 0x35, 0x22, + 0x6e, 0x33, 0x3d, 0xb7, 0x62, 0x40, 0x2c, 0x78, 0xa2, 0x36, 0x8c, 0x3b, 0x41, 0x10, 0x26, 0x0e, + 0x37, 0xbf, 0x26, 0xca, 0x58, 0x90, 0x5a, 0x15, 0x4b, 0x69, 0x59, 0x5e, 0x8f, 0x0a, 0x06, 0xd3, + 0x30, 0x58, 0xaf, 0x02, 0x75, 0x60, 0x3a, 0xbc, 0x47, 0x55, 0xa5, 0x3c, 0x69, 0x88, 0x67, 0x27, + 0x8b, 0x12, 0x24, 0xa6, 0x1f, 0xe7, 0xa6, 0x51, 0x54, 0xd3, 0x60, 0x26, 0x4b, 0x9c, 0xad, 0x03, + 0x2d, 0x18, 0x5e, 0xe4, 0xa9, 0x34, 0x36, 0x39, 0xf5, 0x22, 0xeb, 0x4e, 0x63, 0x76, 0xbb, 0x95, + 0xc7, 0x23, 0x32, 0x4d, 0x30, 0x9d, 0xb9, 0xdd, 0x9a, 0xa2, 0xb0, 0x4e, 0x37, 0xf7, 0x29, 0x18, + 0xd7, 0x86, 0xbd, 0x9f, 0x20, 0xd8, 0xb9, 0x37, 0x60, 0x26, 0x3b, 0x9c, 0x7d, 0x05, 0xd1, 0xfe, + 0xcf, 0x0a, 0x4c, 0xe7, 0x1c, 0xe2, 0xdc, 0xf5, 0x58, 0x20, 0xb7, 0xa1, 0xf2, 0xae, 0x7a, 0x81, + 0x8b, 0x19, 0xc6, 0x54, 0x5c, 0x95, 0x12, 0x8a, 0x4b, 0x6a, 0xd1, 0x6a, 0x4f, 0x2d, 0x2a, 0x94, + 0xd5, 0xd0, 0x83, 0x2b, 0x2b, 0x73, 0x75, 0x18, 0x2e, 0xb5, 0x3a, 0x3c, 0x04, 0x05, 0x67, 0x2c, + 0x30, 0xa3, 0x25, 0x16, 0x98, 0x6f, 0x57, 0x60, 0x26, 0x0d, 0x17, 0x16, 0x99, 0x47, 0x07, 0x77, + 0x36, 0xb0, 0x61, 0x9c, 0x0d, 0x14, 0x25, 0x14, 0xcd, 0xb4, 0xab, 0xe7, 0x39, 0xc1, 0xdb, 0x99, + 0x73, 0x82, 0x97, 0xfa, 0xe4, 0x7b, 0xfc, 0x99, 0xc1, 0x77, 0x2a, 0x70, 0x3a, 0x5b, 0x64, 0xc5, + 0x77, 0xbc, 0xdd, 0x01, 0x8e, 0xd3, 0xe7, 0x8d, 0x71, 0x7a, 0xa5, 0xbf, 0xfe, 0xb0, 0xc6, 0xf5, + 0x1c, 0x2c, 0x27, 0x33, 0x58, 0x9f, 0x7a, 0x10, 0xe6, 0xc7, 0x8f, 0xd8, 0x4f, 0x2d, 0x78, 0x3c, + 0xb7, 0xdc, 0xc0, 0x3d, 0xa1, 0x6f, 0x99, 0x9e, 0xd0, 0x17, 0x1f, 0xa0, 0x6f, 0x3d, 0x5c, 0xa3, + 0x87, 0x95, 0x1e, 0x7d, 0x62, 0xde, 0xa2, 0x9b, 0x30, 0xee, 0xb4, 0x5a, 0x24, 0x8e, 0xaf, 0x87, + 0xae, 0xca, 0x86, 0xf3, 0x02, 0x5b, 0x45, 0x52, 0xf0, 0xd1, 0xc1, 0xfc, 0x5c, 0x96, 0x45, 0x8a, + 0xc6, 0x3a, 0x07, 0x33, 0xab, 0x55, 0x65, 0x40, 0x59, 0xad, 0x2e, 0x01, 0xec, 0xa9, 0x5d, 0x6a, + 0xd6, 0x09, 0xa5, 0xed, 0x5f, 0x35, 0x2a, 0xf4, 0x45, 0x66, 0xf5, 0xf1, 0xe8, 0x88, 0xa1, 0x22, + 0x47, 0x81, 0xf6, 0xf5, 0xf4, 0x38, 0x0b, 0x7e, 0x7d, 0x51, 0xb9, 0xeb, 0x14, 0x43, 0xfb, 0xfb, + 0x55, 0xf8, 0xb9, 0x63, 0x04, 0x0e, 0x2d, 0x99, 0x87, 0x9e, 0xcf, 0x67, 0x7d, 0x33, 0x73, 0xb9, + 0x85, 0x0d, 0x67, 0x4d, 0xe6, 0x4b, 0x55, 0x3e, 0xf0, 0x97, 0xfa, 0x96, 0xee, 0x49, 0xe3, 0xc1, + 0x8d, 0x97, 0x1f, 0x78, 0x4a, 0xfd, 0x6c, 0x7a, 0xbe, 0xbf, 0x6e, 0xc1, 0x47, 0x73, 0x3b, 0x65, + 0x04, 0x56, 0x2c, 0x42, 0xad, 0x45, 0x81, 0xda, 0xed, 0x93, 0xf4, 0xda, 0x97, 0x44, 0xe0, 0x94, + 0xc6, 0x88, 0x9f, 0xa8, 0x14, 0xc6, 0x4f, 0xfc, 0x07, 0x0b, 0x4e, 0x65, 0x1b, 0x31, 0x70, 0x7d, + 0xd3, 0x34, 0xf5, 0xcd, 0x42, 0x7f, 0x1f, 0xbe, 0x87, 0xaa, 0xf9, 0xf6, 0x24, 0x9c, 0xe9, 0x5a, + 0xa3, 0xf8, 0x18, 0xfe, 0x82, 0x05, 0x27, 0xb6, 0x99, 0x7d, 0xad, 0x5d, 0xf0, 0x11, 0xbd, 0x2a, + 0xb8, 0x15, 0x75, 0xec, 0xbd, 0x20, 0xbe, 0x5b, 0xe8, 0x22, 0xc1, 0xdd, 0x95, 0xa1, 0x6f, 0x58, + 0x70, 0xca, 0xb9, 0x17, 0x77, 0x65, 0xaf, 0x17, 0x42, 0xf4, 0x46, 0x81, 0x13, 0xab, 0x20, 0xef, + 0xfd, 0xf2, 0xec, 0xe1, 0xc1, 0xfc, 0xa9, 0x3c, 0x2a, 0x9c, 0x5b, 0x2b, 0x7a, 0x5b, 0xe4, 0xfe, + 0xa2, 0x06, 0x4f, 0xa9, 0xab, 0x6a, 0x79, 0xd7, 0x0d, 0xb8, 0x42, 0x92, 0x18, 0xac, 0x38, 0xa2, + 0xaf, 0x40, 0x6d, 0x5b, 0xde, 0xe9, 0x11, 0xea, 0xae, 0x60, 0x4d, 0xc9, 0xbd, 0x02, 0xc4, 0x83, + 0xda, 0x15, 0x0a, 0xa7, 0x4c, 0xd1, 0x15, 0xa8, 0x06, 0x5b, 0xb1, 0xb8, 0x37, 0x5b, 0x14, 0x3c, + 0x63, 0x86, 0x2a, 0xf1, 0x0b, 0x87, 0x37, 0xd6, 0x9a, 0x98, 0xb2, 0xa0, 0x9c, 0xa2, 0x4d, 0x57, + 0x78, 0x6f, 0x0b, 0x38, 0xe1, 0xe5, 0x7a, 0x37, 0x27, 0xbc, 0x5c, 0xc7, 0x94, 0x05, 0x8b, 0xd2, + 0x8b, 0x5b, 0xb1, 0x27, 0x5c, 0xb3, 0x05, 0x97, 0xaa, 0xbb, 0x2e, 0x61, 0xf0, 0x34, 0x70, 0x0c, + 0x8c, 0x39, 0x23, 0xb4, 0x01, 0x23, 0x2d, 0x96, 0xb0, 0x59, 0xec, 0x9c, 0x8b, 0xd2, 0xf8, 0x76, + 0x25, 0x77, 0xe6, 0x47, 0x48, 0x1c, 0x8e, 0x05, 0x2f, 0xc6, 0x95, 0xb4, 0x77, 0xb6, 0x62, 0xb1, + 0x39, 0x2e, 0xe2, 0xda, 0x95, 0x7a, 0x5b, 0x70, 0x65, 0x70, 0x2c, 0x78, 0xa1, 0x3a, 0x54, 0xb6, + 0x5a, 0x22, 0xf7, 0x62, 0x81, 0x4b, 0xd6, 0xbc, 0x3d, 0xba, 0x3c, 0x72, 0x78, 0x30, 0x5f, 0x59, + 0x5b, 0xc1, 0x95, 0xad, 0x16, 0x7a, 0x0b, 0x46, 0xb7, 0xf8, 0x7d, 0x40, 0x91, 0x67, 0xf1, 0x62, + 0xd1, 0xa5, 0xc5, 0xae, 0xcb, 0x83, 0xfc, 0xe2, 0x82, 0x40, 0x60, 0xc9, 0x0e, 0x7d, 0x09, 0x60, + 0x4b, 0xdd, 0x70, 0x14, 0x89, 0x16, 0x17, 0xfa, 0xbb, 0x11, 0x29, 0xf6, 0x8d, 0x0a, 0x8a, 0x35, + 0x8e, 0x54, 0xe6, 0x1d, 0x99, 0x73, 0x9e, 0x25, 0x59, 0x2c, 0x94, 0xf9, 0xdc, 0x14, 0xf5, 0x5c, + 0xe6, 0x15, 0x0a, 0xa7, 0x4c, 0x51, 0x07, 0x26, 0xf7, 0xe2, 0xf6, 0x0e, 0x91, 0x53, 0x9f, 0x65, + 0x5e, 0x1c, 0xbf, 0xf4, 0x7a, 0x41, 0x3a, 0x4d, 0x51, 0xc4, 0x8b, 0x92, 0x8e, 0xe3, 0x77, 0x69, + 0x30, 0x96, 0xcb, 0xe8, 0xb6, 0xce, 0x16, 0x9b, 0xb5, 0xd0, 0x4f, 0xf2, 0x4e, 0x27, 0xdc, 0xdc, + 0x4f, 0x88, 0xc8, 0xcc, 0x58, 0xf0, 0x49, 0xde, 0xe4, 0xc4, 0xdd, 0x9f, 0x44, 0x20, 0xb0, 0x64, + 0xa7, 0x86, 0x8c, 0x69, 0xe3, 0x99, 0xd2, 0x43, 0xd6, 0xd5, 0x87, 0x74, 0xc8, 0x98, 0xf6, 0x4d, + 0x99, 0x32, 0xad, 0xdb, 0xde, 0x09, 0x93, 0x30, 0xc8, 0xe8, 0xfe, 0x13, 0x65, 0xb4, 0x6e, 0x23, + 0xa7, 0x64, 0xb7, 0xd6, 0xcd, 0xa3, 0xc2, 0xb9, 0xb5, 0xda, 0x7f, 0x3c, 0xdc, 0xbd, 0xd8, 0x32, + 0x43, 0xf8, 0x57, 0xbb, 0xcf, 0x15, 0x3f, 0xdb, 0xff, 0x2e, 0xef, 0x21, 0x9e, 0x30, 0x7e, 0xc3, + 0x82, 0x33, 0xed, 0xdc, 0xc5, 0x54, 0x2c, 0x58, 0xfd, 0x6e, 0x16, 0xf9, 0x80, 0xa9, 0xb4, 0xa3, + 0xf9, 0x78, 0xdc, 0xa3, 0xce, 0xac, 0xf9, 0x59, 0xfd, 0xc0, 0xe6, 0xe7, 0x1d, 0x18, 0x63, 0x16, + 0x53, 0x9a, 0x03, 0xa3, 0xcf, 0xb4, 0x11, 0x6c, 0xe9, 0x5b, 0x11, 0x2c, 0xb0, 0x62, 0x46, 0x07, + 0xee, 0xc9, 0x6c, 0x27, 0x30, 0x61, 0x68, 0x91, 0x2f, 0x95, 0x7b, 0x35, 0xd6, 0xc4, 0x48, 0x3c, + 0xd9, 0x38, 0x8e, 0xf8, 0xa8, 0x88, 0x00, 0x1f, 0x5f, 0xd9, 0xa3, 0x34, 0x67, 0xff, 0xb9, 0x95, + 0x63, 0x7f, 0xf1, 0x0d, 0xc8, 0xeb, 0xe6, 0x06, 0xe4, 0x99, 0xec, 0x06, 0xa4, 0xcb, 0x51, 0x60, + 0xec, 0x3d, 0xca, 0x27, 0x0f, 0x2c, 0x9b, 0xa4, 0xc3, 0xf6, 0xe1, 0x5c, 0xd1, 0xe4, 0x66, 0x11, + 0x3c, 0xae, 0x3a, 0x0e, 0x4b, 0x23, 0x78, 0xdc, 0xf5, 0x3a, 0x66, 0x98, 0xb2, 0xb7, 0xbd, 0xed, + 0xff, 0x6d, 0x41, 0xb5, 0x11, 0xba, 0x03, 0x74, 0x7c, 0x5c, 0x36, 0x1c, 0x1f, 0x4f, 0x17, 0xbe, + 0xb4, 0xd3, 0xd3, 0xcd, 0x71, 0x33, 0xe3, 0xe6, 0xf8, 0x78, 0x31, 0xab, 0xe3, 0x9d, 0x1a, 0x3f, + 0xa8, 0x82, 0xfe, 0x56, 0x10, 0xfa, 0x83, 0x07, 0x09, 0xe5, 0xac, 0x96, 0x7b, 0x3e, 0x48, 0xd4, + 0xc1, 0x42, 0x7f, 0xe4, 0xf5, 0xae, 0x9f, 0xd9, 0x88, 0xce, 0x3b, 0xc4, 0xdb, 0xde, 0x49, 0x88, + 0x9b, 0xed, 0xd8, 0xa3, 0x8b, 0xe8, 0xfc, 0x6f, 0x16, 0x4c, 0x67, 0x6a, 0x47, 0x5f, 0xcd, 0xbb, + 0x27, 0xf2, 0x40, 0xce, 0x8c, 0x13, 0x85, 0xd7, 0x4a, 0x16, 0x00, 0x94, 0xf7, 0x59, 0xba, 0x1c, + 0x98, 0x05, 0xa6, 0xdc, 0xd3, 0x31, 0xd6, 0x28, 0xd0, 0xcb, 0x30, 0x9e, 0x84, 0xed, 0xd0, 0x0f, + 0xb7, 0xf7, 0xaf, 0x12, 0x99, 0x7d, 0x40, 0x79, 0xee, 0x37, 0x52, 0x14, 0xd6, 0xe9, 0xec, 0x1f, + 0x55, 0x21, 0xfb, 0xce, 0xd4, 0xff, 0x97, 0xd2, 0x9f, 0x1d, 0x29, 0xfd, 0x43, 0x0b, 0x66, 0x68, + 0xed, 0x2c, 0x6c, 0x43, 0x46, 0x5f, 0xaa, 0x3c, 0xdf, 0xd6, 0x31, 0x79, 0xbe, 0x9f, 0xa1, 0xba, + 0xce, 0x0d, 0x3b, 0x89, 0x70, 0x93, 0x68, 0x2a, 0x8c, 0x42, 0xb1, 0xc0, 0x0a, 0x3a, 0x12, 0x45, + 0xe2, 0x3a, 0x8a, 0x4e, 0x47, 0xa2, 0x08, 0x0b, 0xac, 0x4c, 0x03, 0x3e, 0x94, 0x9f, 0x06, 0x9c, + 0xe7, 0xef, 0x11, 0xe1, 0x02, 0xc2, 0x08, 0xd0, 0xf2, 0xf7, 0xc8, 0x38, 0x82, 0x94, 0xc6, 0xfe, + 0x4e, 0x15, 0x26, 0x1a, 0xa1, 0x9b, 0x06, 0x54, 0xbf, 0x64, 0x04, 0x54, 0x9f, 0xcb, 0x04, 0x54, + 0xcf, 0xe8, 0xb4, 0x0f, 0x27, 0x9e, 0x5a, 0xe4, 0x78, 0x62, 0x89, 0xea, 0x1f, 0x28, 0x96, 0xda, + 0xc8, 0xf1, 0xa4, 0xd8, 0x60, 0x93, 0xeb, 0x5f, 0x9e, 0x18, 0xea, 0x3f, 0xb7, 0x60, 0xaa, 0x11, + 0xba, 0x54, 0x38, 0xff, 0x32, 0x49, 0xa2, 0x9e, 0x19, 0x6a, 0xe4, 0x98, 0xcc, 0x50, 0xbf, 0x61, + 0xc1, 0x68, 0x23, 0x74, 0x07, 0xee, 0x3e, 0x5c, 0x33, 0xdd, 0x87, 0x1f, 0x2d, 0xd4, 0xb9, 0x3d, + 0x3c, 0x86, 0xdf, 0xaf, 0xc2, 0x24, 0x6d, 0x6f, 0xb8, 0x2d, 0xbf, 0x96, 0x31, 0x32, 0x56, 0x89, + 0x91, 0xa1, 0x26, 0x60, 0xe8, 0xfb, 0xe1, 0xbd, 0xec, 0x97, 0x5b, 0x63, 0x50, 0x2c, 0xb0, 0xe8, + 0x02, 0x8c, 0xb5, 0x23, 0xb2, 0xe7, 0x85, 0x9d, 0x38, 0x7b, 0xa9, 0xad, 0x21, 0xe0, 0x58, 0x51, + 0xa0, 0x97, 0x60, 0x22, 0xf6, 0x82, 0x16, 0x91, 0xc1, 0x04, 0x43, 0x2c, 0x98, 0x80, 0x27, 0xdd, + 0xd3, 0xe0, 0xd8, 0xa0, 0x42, 0xb7, 0xa0, 0xc6, 0xfe, 0xb3, 0xd9, 0xd3, 0x6f, 0x56, 0x72, 0x9e, + 0x75, 0x4a, 0x16, 0xc7, 0x29, 0x27, 0x74, 0x09, 0x20, 0x91, 0x41, 0x0f, 0xb1, 0xc8, 0x9e, 0xa1, + 0xac, 0x51, 0x15, 0x0e, 0x11, 0x63, 0x8d, 0x0a, 0x3d, 0x0f, 0xb5, 0xc4, 0xf1, 0xfc, 0x6b, 0x5e, + 0x40, 0x62, 0x11, 0x30, 0x22, 0xd2, 0xc6, 0x0a, 0x20, 0x4e, 0xf1, 0x74, 0x9d, 0x67, 0x97, 0x69, + 0xf9, 0x6b, 0x07, 0x63, 0x8c, 0x9a, 0xad, 0xf3, 0xd7, 0x14, 0x14, 0x6b, 0x14, 0xf6, 0x8b, 0x6c, + 0xbd, 0xee, 0x33, 0xda, 0xfe, 0x27, 0x15, 0x40, 0x0d, 0x16, 0x5c, 0x61, 0x3c, 0x08, 0xb1, 0x03, + 0x53, 0x31, 0xb9, 0xe6, 0x05, 0x9d, 0xfb, 0x82, 0x55, 0xb9, 0xcb, 0x0d, 0xcd, 0x55, 0xbd, 0x0c, + 0xbf, 0x43, 0x6a, 0xc2, 0x70, 0x86, 0x2f, 0x1d, 0x92, 0xa8, 0x13, 0x2c, 0xc5, 0xb7, 0x62, 0x12, + 0x89, 0x27, 0x1d, 0xd8, 0x90, 0x60, 0x09, 0xc4, 0x29, 0x9e, 0x0a, 0x00, 0xfb, 0x73, 0x23, 0x0c, + 0x70, 0x18, 0x26, 0x52, 0x64, 0x58, 0xa2, 0x6f, 0x0d, 0x8e, 0x0d, 0x2a, 0xb4, 0x06, 0x28, 0xee, + 0xb4, 0xdb, 0x3e, 0x3b, 0xc5, 0x72, 0xfc, 0xcb, 0x51, 0xd8, 0x69, 0xf3, 0xc8, 0x5a, 0x91, 0x23, + 0xbb, 0xd9, 0x85, 0xc5, 0x39, 0x25, 0xe8, 0x74, 0xdf, 0x8a, 0xd9, 0x6f, 0x71, 0x47, 0x96, 0x7b, + 0xd4, 0x9a, 0x0c, 0x84, 0x25, 0xce, 0xfe, 0x1a, 0x5b, 0x9e, 0x58, 0xb6, 0xfd, 0xa4, 0x13, 0x11, + 0x74, 0x17, 0x26, 0xdb, 0x6c, 0x09, 0x4a, 0xa2, 0xd0, 0xf7, 0x49, 0x54, 0xfc, 0x6e, 0x51, 0xcf, + 0xf0, 0x0e, 0x9e, 0x61, 0x5b, 0x67, 0x86, 0x4d, 0xde, 0xf6, 0x3f, 0x1c, 0x67, 0xba, 0x46, 0x1c, + 0x23, 0x8e, 0x8a, 0xe0, 0x4d, 0x61, 0x85, 0x7d, 0xac, 0xcc, 0x0b, 0x33, 0xa9, 0x1e, 0x17, 0xa1, + 0xa0, 0x58, 0x72, 0x41, 0x5f, 0x64, 0xa1, 0xc9, 0x7c, 0x8a, 0x97, 0x7f, 0xf6, 0x89, 0xd3, 0x1b, + 0x61, 0xc9, 0x82, 0x05, 0xd6, 0xd8, 0xa1, 0x6b, 0x30, 0x29, 0xd2, 0xb3, 0x0b, 0x87, 0x40, 0xd5, + 0xd8, 0x14, 0x4f, 0x62, 0x1d, 0x79, 0x94, 0x05, 0x60, 0xb3, 0x30, 0xda, 0x86, 0x27, 0xb5, 0xa7, + 0x5a, 0x72, 0x02, 0x91, 0xb8, 0xee, 0xf8, 0xe8, 0xe1, 0xc1, 0xfc, 0x93, 0x1b, 0xc7, 0x11, 0xe2, + 0xe3, 0xf9, 0xa0, 0x9b, 0x70, 0xda, 0x69, 0x25, 0xde, 0x1e, 0xa9, 0x13, 0xc7, 0xf5, 0xbd, 0x80, + 0x98, 0xd7, 0xa8, 0x1f, 0x3f, 0x3c, 0x98, 0x3f, 0xbd, 0x94, 0x47, 0x80, 0xf3, 0xcb, 0xa1, 0xd7, + 0xa1, 0xe6, 0x06, 0xb1, 0x18, 0x83, 0x11, 0xe3, 0x55, 0x9a, 0x5a, 0xfd, 0x46, 0x53, 0xf5, 0x3f, + 0xfd, 0x83, 0xd3, 0x02, 0xe8, 0x1d, 0xfe, 0x4c, 0xae, 0xda, 0x87, 0xf0, 0xd7, 0x90, 0x5e, 0x29, + 0xb5, 0xf3, 0x35, 0xae, 0x3d, 0x70, 0x5f, 0x99, 0x0a, 0xf5, 0x33, 0x6e, 0x44, 0x18, 0x55, 0xa0, + 0xcf, 0x01, 0x8a, 0x49, 0xb4, 0xe7, 0xb5, 0xc8, 0x52, 0x8b, 0xe5, 0x9d, 0x64, 0x47, 0x72, 0x63, + 0x46, 0xbc, 0x3b, 0x6a, 0x76, 0x51, 0xe0, 0x9c, 0x52, 0xe8, 0x0a, 0xd5, 0x3b, 0x3a, 0x54, 0x44, + 0x66, 0x4a, 0xa3, 0x6e, 0xb6, 0x4e, 0xda, 0x11, 0x69, 0x39, 0x09, 0x71, 0x4d, 0x8e, 0x38, 0x53, + 0x8e, 0xae, 0x2c, 0x2a, 0x8d, 0x36, 0x98, 0xf1, 0x84, 0xdd, 0xa9, 0xb4, 0xe9, 0x1e, 0x69, 0x27, + 0x8c, 0x93, 0x1b, 0x24, 0xb9, 0x17, 0x46, 0x77, 0x99, 0x8f, 0x7d, 0x4c, 0x4b, 0xe4, 0x95, 0xa2, + 0xb0, 0x4e, 0x47, 0x6d, 0x20, 0x76, 0xb8, 0xb3, 0x5e, 0x67, 0x9e, 0xf3, 0xb1, 0x74, 0xee, 0x5c, + 0xe1, 0x60, 0x2c, 0xf1, 0x92, 0x74, 0xbd, 0xb1, 0xc2, 0xbc, 0xe0, 0x19, 0xd2, 0xf5, 0xc6, 0x0a, + 0x96, 0x78, 0x14, 0x76, 0xbf, 0xfd, 0x33, 0x55, 0xe6, 0x44, 0xa2, 0x5b, 0x8f, 0x97, 0x7c, 0xfe, + 0xe7, 0x3e, 0xcc, 0xa8, 0xf7, 0x87, 0x78, 0x86, 0xc5, 0x78, 0x76, 0xba, 0xcc, 0x23, 0xbd, 0xb9, + 0x89, 0x1a, 0x55, 0x28, 0xee, 0x7a, 0x86, 0x27, 0xee, 0xaa, 0xc5, 0x48, 0x07, 0x30, 0x53, 0x98, + 0x1a, 0x7d, 0x11, 0x6a, 0x71, 0x67, 0xd3, 0x0d, 0x77, 0x1d, 0x2f, 0x60, 0xae, 0x6a, 0xfd, 0xc9, + 0x59, 0x89, 0xc0, 0x29, 0x0d, 0x6a, 0xc0, 0x98, 0x23, 0x5f, 0x5b, 0x46, 0x65, 0x2e, 0x10, 0xab, + 0x67, 0x96, 0x99, 0x1f, 0x53, 0xbd, 0xaf, 0xac, 0xb8, 0xcc, 0x7d, 0x06, 0x4e, 0x74, 0xcd, 0x92, + 0xbe, 0xa2, 0xd2, 0x7e, 0x3c, 0x04, 0x35, 0xe5, 0x1e, 0x42, 0x8b, 0xa6, 0x07, 0xf0, 0xf1, 0xac, + 0x07, 0x70, 0x8c, 0xae, 0xe8, 0xba, 0xd3, 0xef, 0x4b, 0x39, 0xaf, 0x58, 0x3e, 0x57, 0x28, 0x16, + 0xe5, 0x2f, 0x87, 0xf4, 0xf1, 0xc6, 0x67, 0xba, 0x51, 0x18, 0x3a, 0x76, 0xa3, 0x50, 0xf2, 0xa9, + 0x22, 0xba, 0x25, 0x68, 0x87, 0xee, 0x7a, 0x23, 0xfb, 0x1e, 0x47, 0x83, 0x02, 0x31, 0xc7, 0x31, + 0x63, 0x8e, 0xaa, 0x79, 0x66, 0xcc, 0x8d, 0x3e, 0x90, 0x31, 0x27, 0x8b, 0xe3, 0x94, 0x13, 0xda, + 0x83, 0x13, 0x2d, 0xf3, 0x71, 0x15, 0x75, 0xe1, 0xe3, 0x85, 0x3e, 0x1e, 0x37, 0xe9, 0x68, 0x89, + 0xe4, 0x57, 0xb2, 0xfc, 0x70, 0x77, 0x15, 0xe8, 0x35, 0x18, 0x7b, 0x27, 0x8c, 0x57, 0x7c, 0x27, + 0x8e, 0x85, 0xa6, 0x93, 0xc1, 0xf5, 0x63, 0x6f, 0xde, 0x6c, 0x32, 0xf8, 0x11, 0x7f, 0x55, 0x5c, + 0xfe, 0xc5, 0xaa, 0x80, 0xfd, 0x23, 0xee, 0x88, 0x12, 0x9b, 0x53, 0x12, 0x77, 0xfc, 0x41, 0xe6, + 0x95, 0xbe, 0x69, 0xec, 0x97, 0x1f, 0x82, 0x0b, 0xf4, 0x77, 0x2d, 0xe6, 0x02, 0xdd, 0x20, 0xbb, + 0x6d, 0xdf, 0x49, 0x06, 0x19, 0x27, 0xf8, 0x45, 0x18, 0x4b, 0x44, 0x2d, 0xe5, 0x92, 0x61, 0x6b, + 0xcd, 0x62, 0x2e, 0x61, 0xa5, 0x94, 0x24, 0x14, 0x2b, 0x86, 0xf6, 0x6f, 0xf3, 0xaf, 0x20, 0x31, + 0x03, 0xdf, 0xe5, 0xdd, 0x30, 0x77, 0x79, 0xcf, 0x96, 0xee, 0x49, 0xaf, 0xdd, 0x9e, 0xd9, 0x7e, + 0x66, 0x39, 0x7e, 0xf8, 0x3d, 0xf2, 0xf6, 0x75, 0x30, 0x9f, 0x9a, 0x41, 0xaf, 0xf3, 0x28, 0x5b, + 0xae, 0x48, 0x9f, 0xeb, 0x33, 0xc2, 0xd6, 0xfe, 0x5e, 0x05, 0x4e, 0xe5, 0x3d, 0x39, 0x8f, 0x5c, + 0x98, 0x68, 0x6b, 0xd6, 0x7c, 0xb9, 0x04, 0x0a, 0xba, 0xfd, 0x9f, 0xda, 0x50, 0x3a, 0x14, 0x1b, + 0x5c, 0xd1, 0x26, 0x4c, 0x90, 0x3d, 0xaf, 0xa5, 0x9c, 0x3c, 0x95, 0x3e, 0x35, 0x9b, 0xaa, 0x63, + 0x55, 0xe3, 0x82, 0x0d, 0x9e, 0x03, 0xc8, 0xd4, 0x6e, 0xff, 0x53, 0x0b, 0x1e, 0xeb, 0x91, 0x62, + 0x81, 0x56, 0x77, 0x8f, 0x79, 0x41, 0xc5, 0x3b, 0x46, 0xaa, 0x3a, 0xee, 0x1b, 0xc5, 0x02, 0x8b, + 0x36, 0x01, 0xb8, 0x6f, 0x93, 0xbd, 0xe9, 0x5a, 0x29, 0x13, 0x80, 0xd0, 0x75, 0xa1, 0x59, 0xbb, + 0xeb, 0xaa, 0x5e, 0x71, 0xd5, 0xb8, 0xda, 0xdf, 0xad, 0xc2, 0x30, 0x7f, 0x56, 0xb2, 0x01, 0xa3, + 0x3b, 0x3c, 0x91, 0x63, 0x7f, 0x79, 0x24, 0x53, 0x6b, 0x8d, 0x03, 0xb0, 0x64, 0x83, 0xae, 0xc3, + 0x49, 0x6a, 0x1a, 0x78, 0x8e, 0x5f, 0x27, 0xbe, 0xb3, 0x2f, 0xcd, 0x7f, 0x9e, 0xc4, 0x5b, 0xe6, + 0x9b, 0x3d, 0xb9, 0xde, 0x4d, 0x82, 0xf3, 0xca, 0xa1, 0x37, 0xba, 0xf2, 0x31, 0xf1, 0x04, 0x99, + 0xea, 0x8a, 0xd4, 0xf1, 0x39, 0x99, 0xd0, 0x6b, 0x30, 0xd9, 0xee, 0xda, 0xe8, 0x68, 0xef, 0x11, + 0x9a, 0x9b, 0x1b, 0x93, 0x16, 0xd5, 0x61, 0x26, 0xee, 0xb0, 0xe3, 0xe0, 0x8d, 0x9d, 0x88, 0xc4, + 0x3b, 0xa1, 0xef, 0x8a, 0x07, 0xb5, 0x94, 0x51, 0xd7, 0xcc, 0xe0, 0x71, 0x57, 0x09, 0xca, 0x65, + 0xcb, 0xf1, 0xfc, 0x4e, 0x44, 0x52, 0x2e, 0x23, 0x26, 0x97, 0xb5, 0x0c, 0x1e, 0x77, 0x95, 0xb0, + 0xff, 0xd4, 0x82, 0x93, 0x39, 0x31, 0x13, 0x3c, 0x8e, 0x6f, 0xdb, 0x8b, 0x13, 0x95, 0xaa, 0x59, + 0x8b, 0xe3, 0xe3, 0x70, 0xac, 0x28, 0xa8, 0x14, 0xf2, 0xdd, 0x6b, 0xf6, 0x2c, 0x52, 0x9c, 0x0a, + 0x0b, 0x6c, 0x7f, 0xd9, 0x95, 0xd4, 0xbb, 0xf8, 0x43, 0x3d, 0xdf, 0xc5, 0x7f, 0x0a, 0x86, 0xb7, + 0x95, 0xa7, 0x40, 0x33, 0x66, 0xb8, 0xaf, 0x80, 0xe3, 0xec, 0x6f, 0x55, 0x61, 0x3a, 0x13, 0x3b, + 0x45, 0x1b, 0x92, 0x79, 0xbe, 0x9f, 0xb9, 0x37, 0x56, 0x48, 0x7b, 0x27, 0xe7, 0x09, 0xff, 0x67, + 0xcc, 0x37, 0x7e, 0xd3, 0x36, 0x2f, 0xd7, 0x8d, 0x67, 0xcc, 0xca, 0xa6, 0x8f, 0x7f, 0x0a, 0x86, + 0xda, 0xa1, 0x7a, 0x8c, 0x52, 0x09, 0x3d, 0x5e, 0xae, 0x37, 0xc2, 0xd0, 0xc7, 0x0c, 0x89, 0x9e, + 0x16, 0xbd, 0xcf, 0xb8, 0x48, 0xb1, 0xe3, 0x86, 0xb1, 0x36, 0x04, 0xcf, 0xc2, 0xe8, 0x5d, 0xb2, + 0x1f, 0x79, 0xc1, 0x76, 0xd6, 0x41, 0x7c, 0x95, 0x83, 0xb1, 0xc4, 0x9b, 0x29, 0xe2, 0x47, 0x07, + 0x9c, 0x22, 0x7e, 0xac, 0x30, 0xf8, 0xf3, 0x37, 0x2d, 0x98, 0x66, 0x29, 0xee, 0xc4, 0xed, 0x53, + 0x2f, 0x0c, 0x06, 0xb8, 0x24, 0x3e, 0x05, 0xc3, 0x11, 0xad, 0x2c, 0x9b, 0xdd, 0x99, 0xb5, 0x00, + 0x73, 0x1c, 0x7a, 0x42, 0xbc, 0x93, 0x4e, 0x3f, 0xdf, 0x04, 0xcf, 0x96, 0x9b, 0x3e, 0x78, 0xce, + 0x2e, 0x15, 0x60, 0xd2, 0xf6, 0x3d, 0xde, 0xd8, 0xd4, 0x1f, 0xf4, 0x61, 0xb9, 0x54, 0x90, 0xdb, + 0xb8, 0x87, 0x75, 0xa9, 0x20, 0x9f, 0xf9, 0xf1, 0xc6, 0xe7, 0xff, 0xa8, 0xc0, 0xd9, 0xdc, 0x72, + 0xe9, 0xb1, 0xd2, 0x9a, 0x71, 0xac, 0x74, 0x29, 0x73, 0xac, 0x64, 0x1f, 0x5f, 0xfa, 0xe1, 0x1c, + 0x34, 0xe5, 0x9f, 0x00, 0x55, 0x1f, 0xd9, 0x09, 0xd0, 0x50, 0x59, 0x43, 0x61, 0xb8, 0xc0, 0x50, + 0xf8, 0xa9, 0x05, 0x8f, 0xe7, 0x0e, 0xd8, 0x87, 0xec, 0x0e, 0x47, 0x6e, 0x1b, 0x7b, 0x18, 0xce, + 0x7f, 0xbb, 0xda, 0xa3, 0x4f, 0xcc, 0x84, 0x3e, 0x4f, 0x35, 0x0e, 0x43, 0xc6, 0xc2, 0x00, 0x9a, + 0xe0, 0xda, 0x86, 0xc3, 0xb0, 0xc2, 0xa2, 0x58, 0xbb, 0x03, 0xc1, 0x1b, 0xb9, 0xfa, 0x80, 0x93, + 0x69, 0xc1, 0x74, 0xde, 0xe9, 0x17, 0x68, 0x33, 0x77, 0x23, 0xd0, 0x1d, 0x6d, 0x4b, 0x54, 0x7d, + 0x90, 0x2d, 0xd1, 0x44, 0xfe, 0x76, 0x08, 0x2d, 0xc1, 0xf4, 0xae, 0x17, 0xb0, 0xf7, 0xd2, 0x4c, + 0x0b, 0x44, 0x5d, 0x3b, 0xbb, 0x6e, 0xa2, 0x71, 0x96, 0x7e, 0xee, 0x35, 0x98, 0x7c, 0x70, 0xff, + 0xca, 0xfb, 0x55, 0xf8, 0xb9, 0x63, 0x14, 0x02, 0x5f, 0x09, 0x8c, 0xef, 0xa2, 0xad, 0x04, 0x5d, + 0xdf, 0xa6, 0x01, 0xa7, 0xb6, 0x3a, 0xbe, 0xbf, 0xcf, 0x02, 0x32, 0x88, 0x2b, 0x29, 0x84, 0x75, + 0xa7, 0x5e, 0x32, 0x5d, 0xcb, 0xa1, 0xc1, 0xb9, 0x25, 0xd1, 0xe7, 0x00, 0x85, 0x9b, 0x2c, 0xe9, + 0xa3, 0x9b, 0x5e, 0x11, 0x66, 0x9f, 0xa0, 0x9a, 0x4e, 0xd4, 0x9b, 0x5d, 0x14, 0x38, 0xa7, 0x14, + 0xb5, 0xf5, 0xd8, 0x23, 0xa8, 0xaa, 0x59, 0x19, 0x5b, 0x0f, 0xeb, 0x48, 0x6c, 0xd2, 0xa2, 0xcb, + 0x70, 0xc2, 0xd9, 0x73, 0x3c, 0x9e, 0xde, 0x45, 0x32, 0xe0, 0xc6, 0x9e, 0xf2, 0x61, 0x2c, 0x65, + 0x09, 0x70, 0x77, 0x19, 0xd4, 0x36, 0x5c, 0x52, 0x3c, 0xbd, 0xf3, 0xeb, 0x0f, 0x20, 0xc1, 0xa5, + 0x9d, 0x54, 0xf6, 0x9f, 0x58, 0x74, 0xb9, 0xcb, 0x79, 0x62, 0xcc, 0x78, 0x8d, 0x5b, 0xbb, 0x19, + 0xd2, 0xfd, 0x1a, 0x37, 0xf3, 0xff, 0x9a, 0xb4, 0x5c, 0x34, 0xe2, 0x34, 0x9a, 0xd3, 0xb0, 0x2c, + 0xc5, 0x75, 0x28, 0x45, 0x81, 0xee, 0xc0, 0xa8, 0xeb, 0xed, 0x79, 0x71, 0x18, 0x95, 0x78, 0x05, + 0xb7, 0x2b, 0x42, 0x30, 0xd5, 0x95, 0x75, 0xce, 0x04, 0x4b, 0x6e, 0xf6, 0xdf, 0xa9, 0xc0, 0xa4, + 0xac, 0xef, 0xcd, 0x4e, 0xc8, 0x74, 0xd8, 0xa0, 0x16, 0xf1, 0x37, 0x8d, 0x45, 0x7c, 0xb1, 0xdc, + 0x9d, 0x30, 0xd6, 0xa8, 0x9e, 0x8b, 0xf7, 0xe7, 0x33, 0x8b, 0xf7, 0xc5, 0x7e, 0x98, 0x1e, 0xbf, + 0x68, 0xff, 0x3b, 0x0b, 0x4e, 0x18, 0xf4, 0x1f, 0x96, 0x0c, 0xc3, 0x79, 0x7d, 0xe9, 0xb1, 0x6a, + 0x7c, 0xb7, 0x92, 0xe9, 0x03, 0x5b, 0x2d, 0xbe, 0x06, 0x43, 0x3b, 0x4e, 0xe4, 0x96, 0xcb, 0x6e, + 0xd6, 0x55, 0x7c, 0xe1, 0x8a, 0x13, 0xb9, 0x5c, 0xe7, 0x5f, 0x50, 0x8f, 0xa0, 0x38, 0x91, 0x5b, + 0x18, 0xd8, 0xcc, 0x2a, 0x45, 0xaf, 0xc2, 0x48, 0xdc, 0x0a, 0xdb, 0x2a, 0x98, 0xec, 0x1c, 0x7f, + 0x20, 0x85, 0x42, 0x8e, 0x0e, 0xe6, 0x91, 0x59, 0x1d, 0x05, 0x63, 0x41, 0x3f, 0x47, 0xa0, 0xa6, + 0xaa, 0x1e, 0x60, 0x08, 0xed, 0xfb, 0x55, 0x38, 0x99, 0x23, 0x27, 0xe8, 0xe7, 0x8d, 0x51, 0x7b, + 0xad, 0x6f, 0x41, 0xfb, 0x80, 0xe3, 0xf6, 0xf3, 0x6c, 0x1f, 0xe4, 0x0a, 0xd9, 0x78, 0x80, 0xea, + 0x6f, 0xc5, 0x24, 0x5b, 0x3d, 0x05, 0x15, 0x57, 0x4f, 0xab, 0x7d, 0x44, 0x83, 0x4f, 0xab, 0x51, + 0xed, 0x1c, 0xe0, 0x37, 0x7e, 0x6f, 0x08, 0x4e, 0xe5, 0x5d, 0x3a, 0x45, 0xbf, 0x64, 0x65, 0x12, + 0x94, 0xbf, 0xd1, 0xff, 0xcd, 0x55, 0x9e, 0xb5, 0x5c, 0xa4, 0x64, 0x58, 0x30, 0x53, 0x96, 0x17, + 0x8e, 0xb6, 0xa8, 0x9d, 0x5d, 0x46, 0x88, 0x78, 0xa2, 0x79, 0xa9, 0x0f, 0x3e, 0xfb, 0x00, 0x4d, + 0x11, 0xb9, 0xea, 0xe3, 0xcc, 0x65, 0x04, 0x09, 0x2e, 0xbe, 0x8c, 0x20, 0xdb, 0x30, 0xb7, 0x0d, + 0xe3, 0x5a, 0xbf, 0x06, 0x28, 0x02, 0x1e, 0x5d, 0x90, 0xb4, 0x56, 0x0f, 0x50, 0x0c, 0xfe, 0x9e, + 0x05, 0x99, 0x88, 0x11, 0xe5, 0x6c, 0xb1, 0x7a, 0x3a, 0x5b, 0xce, 0xc1, 0x50, 0x14, 0xfa, 0x24, + 0x9b, 0x3c, 0x1b, 0x87, 0x3e, 0xc1, 0x0c, 0xa3, 0x5e, 0x42, 0xac, 0xf6, 0x7a, 0x09, 0x91, 0xee, + 0xc2, 0x7d, 0xb2, 0x47, 0xa4, 0xeb, 0x43, 0x29, 0xef, 0x6b, 0x14, 0x88, 0x39, 0xce, 0xfe, 0xfd, + 0x2a, 0x8c, 0x70, 0xff, 0xc2, 0x00, 0xd7, 0xe4, 0x86, 0xd8, 0xea, 0x97, 0xba, 0x04, 0xca, 0x5b, + 0xb3, 0x50, 0x77, 0x12, 0x87, 0x0b, 0x94, 0xea, 0x5b, 0xea, 0x1e, 0x40, 0x0b, 0x46, 0xef, 0xe7, + 0x32, 0x3b, 0x59, 0xe0, 0x3c, 0xb4, 0xb1, 0xd8, 0x01, 0x88, 0xd9, 0xab, 0x5b, 0x94, 0x87, 0x48, + 0x41, 0xf7, 0x52, 0xa9, 0x76, 0x34, 0x55, 0x31, 0xde, 0x9a, 0x34, 0xf7, 0x95, 0x42, 0x60, 0x8d, + 0xf7, 0xdc, 0x2b, 0x50, 0x53, 0xc4, 0x45, 0x66, 0xfe, 0x84, 0x2e, 0x92, 0x7f, 0x05, 0xa6, 0x33, + 0x75, 0xf5, 0xb5, 0x4b, 0xf8, 0xa1, 0x05, 0x27, 0xba, 0x9e, 0x6f, 0x45, 0xef, 0x59, 0x70, 0xca, + 0xcf, 0x71, 0x2c, 0x15, 0x47, 0xec, 0xf4, 0x74, 0x49, 0xa9, 0x2d, 0x42, 0x1e, 0x16, 0xe7, 0xd6, + 0x26, 0x93, 0x6a, 0x56, 0xf2, 0x93, 0x6a, 0xda, 0xdf, 0xb3, 0x40, 0x7c, 0xb2, 0x81, 0x9b, 0x3f, + 0xeb, 0xa6, 0xf9, 0xf3, 0xb1, 0x32, 0x32, 0xd0, 0xc3, 0xee, 0xf9, 0x8f, 0x16, 0x20, 0x4e, 0x90, + 0x7d, 0x7a, 0x8f, 0x7b, 0xe9, 0x34, 0x6b, 0x3d, 0x15, 0x1a, 0x85, 0xc1, 0x1a, 0x55, 0x9f, 0xf9, + 0xd5, 0xd5, 0x93, 0x55, 0xe5, 0x5e, 0xab, 0xaf, 0x96, 0x78, 0xad, 0xfe, 0x77, 0xab, 0x90, 0x0d, + 0xaa, 0x40, 0x5f, 0x81, 0x89, 0x96, 0xd3, 0x76, 0x36, 0x3d, 0xdf, 0x4b, 0x3c, 0x12, 0x97, 0x3b, + 0x27, 0x5a, 0xd1, 0x4a, 0x08, 0x3f, 0xaf, 0x06, 0xc1, 0x06, 0x47, 0xb4, 0x00, 0xd0, 0x8e, 0xbc, + 0x3d, 0xcf, 0x27, 0xdb, 0xcc, 0xe8, 0x60, 0x71, 0x95, 0xfc, 0xd0, 0x43, 0x42, 0xb1, 0x46, 0x91, + 0x13, 0xc3, 0x57, 0x7d, 0x14, 0x31, 0x7c, 0x43, 0x7d, 0xc6, 0xf0, 0x0d, 0x97, 0x8a, 0xe1, 0xc3, + 0x70, 0x46, 0xba, 0x67, 0xe9, 0xff, 0x35, 0xcf, 0x27, 0x3c, 0x85, 0x9e, 0x88, 0xbc, 0x9c, 0x3b, + 0x3c, 0x98, 0x3f, 0x83, 0x73, 0x29, 0x70, 0x8f, 0x92, 0x76, 0x07, 0x4e, 0x36, 0x49, 0xe4, 0xb1, + 0x0c, 0x47, 0x6e, 0x3a, 0xfd, 0xbe, 0x04, 0xb5, 0x28, 0x33, 0xf3, 0xfb, 0xbc, 0x04, 0xa7, 0xe5, + 0xc9, 0x90, 0x33, 0x3d, 0x65, 0x69, 0xff, 0xf5, 0x0a, 0x8c, 0x8a, 0xe0, 0xa5, 0x01, 0xae, 0x22, + 0x57, 0x8d, 0x9d, 0xdd, 0xb3, 0x45, 0x33, 0x97, 0x35, 0xa7, 0xe7, 0x9e, 0xae, 0x99, 0xd9, 0xd3, + 0x3d, 0x5f, 0x8e, 0xdd, 0xf1, 0xbb, 0xb9, 0xdf, 0xa9, 0xc0, 0x94, 0x19, 0xc4, 0x35, 0xc0, 0xe1, + 0x78, 0x0b, 0x46, 0x63, 0x11, 0xd9, 0x54, 0x29, 0x13, 0xd6, 0x91, 0xfd, 0xa4, 0xe9, 0xcb, 0xf7, + 0x22, 0x96, 0x49, 0xb2, 0xcb, 0x0d, 0x9e, 0xaa, 0x3e, 0x8a, 0xe0, 0x29, 0xfb, 0xdf, 0x33, 0x95, + 0xaa, 0x0f, 0xe0, 0xc0, 0x17, 0x84, 0x37, 0x4d, 0xd5, 0x7b, 0xa1, 0x94, 0x1c, 0x88, 0xc6, 0xf5, + 0x58, 0x18, 0xfe, 0xb5, 0x05, 0xe3, 0x82, 0x70, 0xe0, 0xcd, 0xff, 0x9c, 0xd9, 0xfc, 0xa7, 0x4b, + 0x35, 0xbf, 0x47, 0xbb, 0xff, 0x41, 0x45, 0xb5, 0xbb, 0x21, 0x1e, 0x23, 0x2d, 0xcc, 0xa6, 0x38, + 0xd6, 0x8e, 0xc2, 0x24, 0x6c, 0x85, 0xbe, 0x58, 0xdc, 0x9f, 0x48, 0x83, 0xdd, 0x39, 0xfc, 0x48, + 0xfb, 0x8d, 0x15, 0x35, 0x8b, 0xe3, 0x0e, 0xa3, 0x44, 0x2c, 0x4e, 0x79, 0x4f, 0xa1, 0x6e, 0xca, + 0xa7, 0xa6, 0x29, 0x4c, 0xdc, 0x11, 0xe9, 0xf7, 0x89, 0xd5, 0x34, 0x7a, 0x5d, 0x71, 0xc2, 0x1a, + 0x57, 0x19, 0x52, 0xc9, 0x6a, 0x18, 0x36, 0x5d, 0xa7, 0x37, 0x04, 0x1c, 0x2b, 0x0a, 0xfb, 0x15, + 0xa6, 0x5d, 0xd9, 0xf0, 0xf4, 0x17, 0x92, 0xfe, 0x2b, 0x23, 0x6a, 0x60, 0x99, 0x6f, 0xe4, 0x06, + 0x0c, 0xd3, 0x2e, 0xca, 0xed, 0x5f, 0x39, 0x55, 0x46, 0x9b, 0xa0, 0x87, 0x90, 0x45, 0x49, 0x8c, + 0x39, 0x1b, 0x44, 0xba, 0xfc, 0xed, 0xaf, 0x94, 0xd6, 0x8e, 0x7d, 0x78, 0xd8, 0x59, 0x82, 0x1a, + 0x96, 0x97, 0x63, 0xbd, 0x91, 0xcd, 0x80, 0xb9, 0x22, 0x11, 0x38, 0xa5, 0x41, 0x8b, 0xc2, 0x4a, + 0x37, 0x5f, 0xaa, 0x95, 0x56, 0xba, 0x1c, 0x12, 0xcd, 0x4c, 0xbf, 0x08, 0xe3, 0x2a, 0x07, 0x78, + 0x83, 0xa7, 0x72, 0xae, 0x71, 0xcb, 0x65, 0x35, 0x05, 0x63, 0x9d, 0x06, 0xad, 0xc3, 0x49, 0x57, + 0x45, 0xd0, 0x36, 0x3a, 0x9b, 0xbe, 0xd7, 0xa2, 0x45, 0xf9, 0xed, 0x95, 0xc7, 0x0e, 0x0f, 0xe6, + 0x4f, 0xd6, 0xbb, 0xd1, 0x38, 0xaf, 0x0c, 0xda, 0x80, 0xe9, 0x98, 0xe7, 0x3a, 0x97, 0x61, 0x92, + 0x22, 0x45, 0xdc, 0x73, 0xd2, 0xd1, 0xdf, 0x34, 0xd1, 0x47, 0x0c, 0xc4, 0x35, 0x82, 0x0c, 0xac, + 0xcc, 0xb2, 0x40, 0x6f, 0xc0, 0x94, 0xaf, 0x3f, 0xd7, 0xd4, 0x10, 0x81, 0xc4, 0x2a, 0xfc, 0xc1, + 0x78, 0xcc, 0xa9, 0x81, 0x33, 0xd4, 0xe8, 0x2d, 0x98, 0xd5, 0x21, 0xe2, 0xfe, 0xbc, 0x13, 0x6c, + 0x93, 0x58, 0x24, 0x59, 0x7e, 0xe2, 0xf0, 0x60, 0x7e, 0xf6, 0x5a, 0x0f, 0x1a, 0xdc, 0xb3, 0x34, + 0x7a, 0x15, 0x26, 0xe4, 0x48, 0x6a, 0x41, 0xc5, 0x69, 0xe0, 0x8d, 0x86, 0xc3, 0x06, 0xe5, 0x07, + 0x3b, 0xcf, 0xf8, 0x1a, 0x2d, 0xac, 0x2d, 0xa7, 0xe8, 0xab, 0x30, 0xa1, 0xb7, 0x51, 0xe8, 0xc8, + 0x4f, 0x94, 0x7f, 0x02, 0x4b, 0x2c, 0xcb, 0xaa, 0xe5, 0x3a, 0x0e, 0x1b, 0xbc, 0xed, 0x9b, 0x30, + 0xd2, 0xdc, 0x8f, 0x5b, 0x89, 0xff, 0xb0, 0x1e, 0x29, 0x6e, 0xc1, 0x74, 0xe6, 0x35, 0x5f, 0xf5, + 0x2c, 0xb4, 0xf5, 0xb0, 0x9e, 0x85, 0xb6, 0xbf, 0x6e, 0xc1, 0xf0, 0x86, 0xe3, 0x15, 0x3f, 0x4f, + 0x50, 0xa6, 0xc9, 0xe8, 0x65, 0x18, 0x21, 0x5b, 0x5b, 0xa4, 0x25, 0x9f, 0x99, 0x7e, 0x52, 0x9a, + 0x33, 0xab, 0x0c, 0x4a, 0xa7, 0x26, 0xab, 0x8c, 0xff, 0xc5, 0x82, 0xd8, 0xfe, 0x4f, 0x16, 0xc0, + 0x46, 0xe8, 0xcb, 0xa3, 0x9a, 0x82, 0x96, 0x2c, 0x77, 0x3d, 0x94, 0xf0, 0x4c, 0xce, 0x43, 0x09, + 0x28, 0x65, 0x98, 0xf3, 0x4c, 0x82, 0xea, 0x4d, 0xb5, 0x54, 0x6f, 0x86, 0xfa, 0xe9, 0xcd, 0x37, + 0x2d, 0x10, 0x11, 0x33, 0x25, 0x24, 0xc1, 0x95, 0xc9, 0xcd, 0x8d, 0xcc, 0x18, 0xcf, 0x95, 0xb9, + 0x7c, 0x22, 0xf2, 0x61, 0x28, 0xd9, 0x34, 0xb2, 0x60, 0x18, 0x5c, 0xe9, 0x16, 0x7e, 0x9c, 0xa3, + 0xaf, 0x33, 0xdb, 0xb1, 0xb8, 0x5d, 0x7d, 0x65, 0x00, 0x63, 0xb9, 0xbf, 0x29, 0x63, 0x95, 0x0b, + 0x4a, 0xcf, 0xfd, 0x2d, 0x11, 0x38, 0xa5, 0x41, 0xcf, 0xc2, 0x68, 0xdc, 0xd9, 0x64, 0xe4, 0x99, + 0xf0, 0x99, 0x26, 0x07, 0x63, 0x89, 0xb7, 0x7f, 0x11, 0x81, 0xd1, 0x35, 0x23, 0xef, 0x94, 0xf5, + 0xd0, 0xf3, 0x4e, 0xbd, 0x0d, 0x63, 0x64, 0xb7, 0x9d, 0xec, 0xd7, 0xbd, 0xa8, 0x5c, 0xf6, 0xbf, + 0x55, 0x41, 0xdd, 0xcd, 0x5d, 0x62, 0xb0, 0xe2, 0xd8, 0x23, 0x8b, 0x58, 0xf5, 0x43, 0x91, 0x45, + 0x6c, 0xe8, 0x2f, 0x24, 0x8b, 0xd8, 0x5b, 0x30, 0xba, 0xed, 0x25, 0x98, 0xb4, 0x43, 0x71, 0xdf, + 0xb0, 0xe0, 0x0c, 0xec, 0x32, 0x27, 0xee, 0x4e, 0x0d, 0x24, 0x10, 0x58, 0xb2, 0x43, 0x1b, 0x30, + 0xc2, 0xf7, 0x1d, 0x22, 0x31, 0xd7, 0x27, 0xca, 0x78, 0x64, 0xba, 0x73, 0x54, 0x89, 0x18, 0x29, + 0xc1, 0x4b, 0x66, 0x0d, 0x1b, 0xfd, 0xe0, 0x59, 0xc3, 0x54, 0xae, 0xaf, 0xb1, 0x87, 0x95, 0xeb, + 0xcb, 0xc8, 0x99, 0x56, 0x1b, 0x44, 0xce, 0xb4, 0x6f, 0x5a, 0x70, 0xba, 0x9d, 0x97, 0x6f, 0x50, + 0x64, 0xed, 0xfa, 0xcc, 0x03, 0xe4, 0x5f, 0x34, 0xaa, 0x66, 0x77, 0xc0, 0x72, 0xc9, 0x70, 0x7e, + 0xc5, 0x32, 0xf9, 0xda, 0xf8, 0x07, 0x4f, 0xbe, 0x36, 0xe8, 0xf4, 0x5e, 0x69, 0x2a, 0xb6, 0xc9, + 0x81, 0xa4, 0x62, 0x9b, 0x7a, 0x88, 0xa9, 0xd8, 0xb4, 0x24, 0x6a, 0xd3, 0x0f, 0x37, 0x89, 0xda, + 0x0e, 0x8c, 0xbb, 0xe1, 0xbd, 0xe0, 0x9e, 0x13, 0xb9, 0x4b, 0x8d, 0x75, 0x91, 0xb3, 0xab, 0x20, + 0x45, 0x44, 0x3d, 0x2d, 0x60, 0xd4, 0xc0, 0x5d, 0x8f, 0x29, 0x12, 0xeb, 0xac, 0x45, 0x3a, 0xb9, + 0x13, 0x1f, 0x30, 0x9d, 0x9c, 0x91, 0x94, 0x0d, 0x0d, 0x22, 0x29, 0xdb, 0x57, 0xd8, 0x8d, 0xf1, + 0x2d, 0x6f, 0xfb, 0xba, 0xd3, 0x9e, 0x3d, 0x59, 0xa6, 0x86, 0x15, 0x49, 0xde, 0x5d, 0x83, 0x42, + 0xe1, 0x94, 0x69, 0x77, 0xda, 0xb7, 0x53, 0x8f, 0x3a, 0xed, 0xdb, 0xe9, 0x01, 0xa6, 0x7d, 0x3b, + 0xf3, 0x48, 0xd3, 0xbe, 0x3d, 0xf6, 0x17, 0x92, 0xf6, 0xed, 0xaf, 0xc2, 0xd9, 0xe3, 0x3f, 0x47, + 0x9a, 0x52, 0xb8, 0x91, 0xba, 0x0c, 0x32, 0x29, 0x85, 0x99, 0xa9, 0xa3, 0x51, 0x95, 0xce, 0x3e, + 0xf5, 0x3d, 0x0b, 0x1e, 0xeb, 0x91, 0xa6, 0xa5, 0xf4, 0xdd, 0x85, 0x36, 0x4c, 0xb7, 0xcd, 0xa2, + 0xa5, 0xef, 0x17, 0x19, 0x69, 0x61, 0x54, 0x6c, 0x5c, 0x06, 0x81, 0xb3, 0xec, 0x97, 0x3f, 0xf6, + 0xe3, 0xf7, 0xcf, 0x7e, 0xe4, 0x27, 0xef, 0x9f, 0xfd, 0xc8, 0x1f, 0xbd, 0x7f, 0xf6, 0x23, 0xbf, + 0x70, 0x78, 0xd6, 0xfa, 0xf1, 0xe1, 0x59, 0xeb, 0x27, 0x87, 0x67, 0xad, 0x3f, 0x3d, 0x3c, 0x6b, + 0x7d, 0xf3, 0xcf, 0xce, 0x7e, 0xe4, 0x0b, 0x95, 0xbd, 0x8b, 0xff, 0x2f, 0x00, 0x00, 0xff, 0xff, + 0xe9, 0x83, 0x6c, 0x69, 0x8f, 0xb5, 0x00, 0x00, } diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/generated.proto b/staging/src/k8s.io/client-go/pkg/api/v1/generated.proto index 10098cf7b38..ec09b757329 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/generated.proto +++ b/staging/src/k8s.io/client-go/pkg/api/v1/generated.proto @@ -2517,6 +2517,10 @@ message PodSpec { // If not specified, the pod will not have a domainname at all. // +optional optional string subdomain = 17; + + // If specified, the pod's scheduling constraints + // +optional + optional Affinity affinity = 18; } // PodStatus represents information about the status of a pod. Status may trail the actual @@ -2560,6 +2564,12 @@ message PodStatus { // More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses // +optional repeated ContainerStatus containerStatuses = 8; + + // The Quality of Service (QOS) classification assigned to the pod based on resource requirements + // See PodQOSClass type for available QOS classes + // More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md + // +optional + optional string qosClass = 9; } // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/types.generated.go b/staging/src/k8s.io/client-go/pkg/api/v1/types.generated.go index 6f8bc68bc9f..b000073cc90 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/types.generated.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/types.generated.go @@ -27518,7 +27518,7 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2023 := !z.EncBinary() yy2arr2023 := z.EncBasicHandle().StructToArray - var yyq2023 [17]bool + var yyq2023 [18]bool _, _, _ = yysep2023, yyq2023, yy2arr2023 const yyr2023 bool = false yyq2023[0] = len(x.Volumes) != 0 @@ -27537,9 +27537,10 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { yyq2023[14] = len(x.ImagePullSecrets) != 0 yyq2023[15] = x.Hostname != "" yyq2023[16] = x.Subdomain != "" + yyq2023[17] = x.Affinity != nil var yynn2023 int if yyr2023 || yy2arr2023 { - r.EncodeArrayStart(17) + r.EncodeArrayStart(18) } else { yynn2023 = 1 for _, b := range yyq2023 { @@ -27999,6 +28000,29 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr2023 || yy2arr2023 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2023[17] { + if x.Affinity == nil { + r.EncodeNil() + } else { + x.Affinity.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq2023[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("affinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Affinity == nil { + r.EncodeNil() + } else { + x.Affinity.CodecEncodeSelf(e) + } + } + } if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -28012,25 +28036,25 @@ func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2073 := z.DecBinary() - _ = yym2073 + yym2074 := z.DecBinary() + _ = yym2074 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2074 := r.ContainerType() - if yyct2074 == codecSelferValueTypeMap1234 { - yyl2074 := r.ReadMapStart() - if yyl2074 == 0 { + yyct2075 := r.ContainerType() + if yyct2075 == codecSelferValueTypeMap1234 { + yyl2075 := r.ReadMapStart() + if yyl2075 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2074, d) + x.codecDecodeSelfFromMap(yyl2075, d) } - } else if yyct2074 == codecSelferValueTypeArray1234 { - yyl2074 := r.ReadArrayStart() - if yyl2074 == 0 { + } else if yyct2075 == codecSelferValueTypeArray1234 { + yyl2075 := r.ReadArrayStart() + if yyl2075 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2074, d) + x.codecDecodeSelfFromArray(yyl2075, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28042,12 +28066,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2075Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2075Slc - var yyhl2075 bool = l >= 0 - for yyj2075 := 0; ; yyj2075++ { - if yyhl2075 { - if yyj2075 >= l { + var yys2076Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2076Slc + var yyhl2076 bool = l >= 0 + for yyj2076 := 0; ; yyj2076++ { + if yyhl2076 { + if yyj2076 >= l { break } } else { @@ -28056,32 +28080,32 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2075Slc = r.DecodeBytes(yys2075Slc, true, true) - yys2075 := string(yys2075Slc) + yys2076Slc = r.DecodeBytes(yys2076Slc, true, true) + yys2076 := string(yys2076Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2075 { + switch yys2076 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv2076 := &x.Volumes - yym2077 := z.DecBinary() - _ = yym2077 + yyv2077 := &x.Volumes + yym2078 := z.DecBinary() + _ = yym2078 if false { } else { - h.decSliceVolume((*[]Volume)(yyv2076), d) + h.decSliceVolume((*[]Volume)(yyv2077), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv2078 := &x.Containers - yym2079 := z.DecBinary() - _ = yym2079 + yyv2079 := &x.Containers + yym2080 := z.DecBinary() + _ = yym2080 if false { } else { - h.decSliceContainer((*[]Container)(yyv2078), d) + h.decSliceContainer((*[]Container)(yyv2079), d) } } case "restartPolicy": @@ -28099,8 +28123,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym2082 := z.DecBinary() - _ = yym2082 + yym2083 := z.DecBinary() + _ = yym2083 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -28115,8 +28139,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym2084 := z.DecBinary() - _ = yym2084 + yym2085 := z.DecBinary() + _ = yym2085 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -28132,12 +28156,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv2086 := &x.NodeSelector - yym2087 := z.DecBinary() - _ = yym2087 + yyv2087 := &x.NodeSelector + yym2088 := z.DecBinary() + _ = yym2088 if false { } else { - z.F.DecMapStringStringX(yyv2086, false, d) + z.F.DecMapStringStringX(yyv2087, false, d) } } case "serviceAccountName": @@ -28191,12 +28215,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2095 := &x.ImagePullSecrets - yym2096 := z.DecBinary() - _ = yym2096 + yyv2096 := &x.ImagePullSecrets + yym2097 := z.DecBinary() + _ = yym2097 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2095), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2096), d) } } case "hostname": @@ -28211,10 +28235,21 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Subdomain = string(r.DecodeString()) } + case "affinity": + if r.TryDecodeAsNil() { + if x.Affinity != nil { + x.Affinity = nil + } + } else { + if x.Affinity == nil { + x.Affinity = new(Affinity) + } + x.Affinity.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys2075) - } // end switch yys2075 - } // end for yyj2075 + z.DecStructFieldNotFound(-1, yys2076) + } // end switch yys2076 + } // end for yyj2076 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28222,16 +28257,16 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2099 int - var yyb2099 bool - var yyhl2099 bool = l >= 0 - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + var yyj2101 int + var yyb2101 bool + var yyhl2101 bool = l >= 0 + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28239,21 +28274,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv2100 := &x.Volumes - yym2101 := z.DecBinary() - _ = yym2101 + yyv2102 := &x.Volumes + yym2103 := z.DecBinary() + _ = yym2103 if false { } else { - h.decSliceVolume((*[]Volume)(yyv2100), d) + h.decSliceVolume((*[]Volume)(yyv2102), d) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28261,21 +28296,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv2102 := &x.Containers - yym2103 := z.DecBinary() - _ = yym2103 + yyv2104 := &x.Containers + yym2105 := z.DecBinary() + _ = yym2105 if false { } else { - h.decSliceContainer((*[]Container)(yyv2102), d) + h.decSliceContainer((*[]Container)(yyv2104), d) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28285,13 +28320,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28304,20 +28339,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym2106 := z.DecBinary() - _ = yym2106 + yym2108 := z.DecBinary() + _ = yym2108 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28330,20 +28365,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym2108 := z.DecBinary() - _ = yym2108 + yym2110 := z.DecBinary() + _ = yym2110 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28353,13 +28388,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28367,21 +28402,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv2110 := &x.NodeSelector - yym2111 := z.DecBinary() - _ = yym2111 + yyv2112 := &x.NodeSelector + yym2113 := z.DecBinary() + _ = yym2113 if false { } else { - z.F.DecMapStringStringX(yyv2110, false, d) + z.F.DecMapStringStringX(yyv2112, false, d) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28391,13 +28426,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceAccountName = string(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28407,13 +28442,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DeprecatedServiceAccount = string(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28423,13 +28458,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.NodeName = string(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28439,13 +28474,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28455,13 +28490,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPID = bool(r.DecodeBool()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28471,13 +28506,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIPC = bool(r.DecodeBool()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28492,13 +28527,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28506,21 +28541,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2119 := &x.ImagePullSecrets - yym2120 := z.DecBinary() - _ = yym2120 + yyv2121 := &x.ImagePullSecrets + yym2122 := z.DecBinary() + _ = yym2122 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2119), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2121), d) } } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28530,13 +28565,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l } else { - yyb2099 = r.CheckBreak() + yyb2101 = r.CheckBreak() } - if yyb2099 { + if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28546,18 +28581,39 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Subdomain = string(r.DecodeString()) } - for { - yyj2099++ - if yyhl2099 { - yyb2099 = yyj2099 > l - } else { - yyb2099 = r.CheckBreak() + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l + } else { + yyb2101 = r.CheckBreak() + } + if yyb2101 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Affinity != nil { + x.Affinity = nil } - if yyb2099 { + } else { + if x.Affinity == nil { + x.Affinity = new(Affinity) + } + x.Affinity.CodecDecodeSelf(d) + } + for { + yyj2101++ + if yyhl2101 { + yyb2101 = yyj2101 > l + } else { + yyb2101 = r.CheckBreak() + } + if yyb2101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2099-1, "") + z.DecStructFieldNotFound(yyj2101-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28569,37 +28625,37 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2123 := z.EncBinary() - _ = yym2123 + yym2126 := z.EncBinary() + _ = yym2126 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2127 := !z.EncBinary() + yy2arr2127 := z.EncBasicHandle().StructToArray + var yyq2127 [5]bool + _, _, _ = yysep2127, yyq2127, yy2arr2127 + const yyr2127 bool = false + yyq2127[0] = x.SELinuxOptions != nil + yyq2127[1] = x.RunAsUser != nil + yyq2127[2] = x.RunAsNonRoot != nil + yyq2127[3] = len(x.SupplementalGroups) != 0 + yyq2127[4] = x.FSGroup != nil + var yynn2127 int + if yyr2127 || yy2arr2127 { r.EncodeArrayStart(5) } else { - yynn2124 = 0 - for _, b := range yyq2124 { + yynn2127 = 0 + for _, b := range yyq2127 { if b { - yynn2124++ + yynn2127++ } } - r.EncodeMapStart(yynn2124) - yynn2124 = 0 + r.EncodeMapStart(yynn2127) + yynn2127 = 0 } - if yyr2124 || yy2arr2124 { + if yyr2127 || yy2arr2127 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2124[0] { + if yyq2127[0] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -28609,7 +28665,7 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2124[0] { + if yyq2127[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -28620,84 +28676,84 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2124 || yy2arr2124 { + if yyr2127 || yy2arr2127 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2124[1] { + if yyq2127[1] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy2127 := *x.RunAsUser - yym2128 := z.EncBinary() - _ = yym2128 + yy2130 := *x.RunAsUser + yym2131 := z.EncBinary() + _ = yym2131 if false { } else { - r.EncodeInt(int64(yy2127)) + r.EncodeInt(int64(yy2130)) } } } else { r.EncodeNil() } } else { - if yyq2124[1] { + if yyq2127[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy2129 := *x.RunAsUser - yym2130 := z.EncBinary() - _ = yym2130 - if false { - } else { - r.EncodeInt(int64(yy2129)) - } - } - } - } - if yyr2124 || yy2arr2124 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2124[2] { - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy2132 := *x.RunAsNonRoot + yy2132 := *x.RunAsUser yym2133 := z.EncBinary() _ = yym2133 if false { } else { - r.EncodeBool(bool(yy2132)) + r.EncodeInt(int64(yy2132)) + } + } + } + } + if yyr2127 || yy2arr2127 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2127[2] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy2135 := *x.RunAsNonRoot + yym2136 := z.EncBinary() + _ = yym2136 + if false { + } else { + r.EncodeBool(bool(yy2135)) } } } else { r.EncodeNil() } } else { - if yyq2124[2] { + if yyq2127[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2134 := *x.RunAsNonRoot - yym2135 := z.EncBinary() - _ = yym2135 + yy2137 := *x.RunAsNonRoot + yym2138 := z.EncBinary() + _ = yym2138 if false { } else { - r.EncodeBool(bool(yy2134)) + r.EncodeBool(bool(yy2137)) } } } } - if yyr2124 || yy2arr2124 { + if yyr2127 || yy2arr2127 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2124[3] { + if yyq2127[3] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2137 := z.EncBinary() - _ = yym2137 + yym2140 := z.EncBinary() + _ = yym2140 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -28707,15 +28763,15 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2124[3] { + if yyq2127[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2138 := z.EncBinary() - _ = yym2138 + yym2141 := z.EncBinary() + _ = yym2141 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -28723,42 +28779,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2124 || yy2arr2124 { + if yyr2127 || yy2arr2127 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2124[4] { + if yyq2127[4] { if x.FSGroup == nil { r.EncodeNil() } else { - yy2140 := *x.FSGroup - yym2141 := z.EncBinary() - _ = yym2141 + yy2143 := *x.FSGroup + yym2144 := z.EncBinary() + _ = yym2144 if false { } else { - r.EncodeInt(int64(yy2140)) + r.EncodeInt(int64(yy2143)) } } } else { r.EncodeNil() } } else { - if yyq2124[4] { + if yyq2127[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { - yy2142 := *x.FSGroup - yym2143 := z.EncBinary() - _ = yym2143 + yy2145 := *x.FSGroup + yym2146 := z.EncBinary() + _ = yym2146 if false { } else { - r.EncodeInt(int64(yy2142)) + r.EncodeInt(int64(yy2145)) } } } } - if yyr2124 || yy2arr2124 { + if yyr2127 || yy2arr2127 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28771,25 +28827,25 @@ func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2144 := z.DecBinary() - _ = yym2144 + yym2147 := z.DecBinary() + _ = yym2147 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2145 := r.ContainerType() - if yyct2145 == codecSelferValueTypeMap1234 { - yyl2145 := r.ReadMapStart() - if yyl2145 == 0 { + yyct2148 := r.ContainerType() + if yyct2148 == codecSelferValueTypeMap1234 { + yyl2148 := r.ReadMapStart() + if yyl2148 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2145, d) + x.codecDecodeSelfFromMap(yyl2148, d) } - } else if yyct2145 == codecSelferValueTypeArray1234 { - yyl2145 := r.ReadArrayStart() - if yyl2145 == 0 { + } else if yyct2148 == codecSelferValueTypeArray1234 { + yyl2148 := r.ReadArrayStart() + if yyl2148 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2145, d) + x.codecDecodeSelfFromArray(yyl2148, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28801,12 +28857,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2146Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2146Slc - var yyhl2146 bool = l >= 0 - for yyj2146 := 0; ; yyj2146++ { - if yyhl2146 { - if yyj2146 >= l { + var yys2149Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2149Slc + var yyhl2149 bool = l >= 0 + for yyj2149 := 0; ; yyj2149++ { + if yyhl2149 { + if yyj2149 >= l { break } } else { @@ -28815,10 +28871,10 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2146Slc = r.DecodeBytes(yys2146Slc, true, true) - yys2146 := string(yys2146Slc) + yys2149Slc = r.DecodeBytes(yys2149Slc, true, true) + yys2149 := string(yys2149Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2146 { + switch yys2149 { case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { @@ -28839,8 +28895,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2149 := z.DecBinary() - _ = yym2149 + yym2152 := z.DecBinary() + _ = yym2152 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -28855,8 +28911,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2151 := z.DecBinary() - _ = yym2151 + yym2154 := z.DecBinary() + _ = yym2154 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -28866,12 +28922,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2152 := &x.SupplementalGroups - yym2153 := z.DecBinary() - _ = yym2153 + yyv2155 := &x.SupplementalGroups + yym2156 := z.DecBinary() + _ = yym2156 if false { } else { - z.F.DecSliceInt64X(yyv2152, false, d) + z.F.DecSliceInt64X(yyv2155, false, d) } } case "fsGroup": @@ -28883,17 +28939,17 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2155 := z.DecBinary() - _ = yym2155 + yym2158 := z.DecBinary() + _ = yym2158 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys2146) - } // end switch yys2146 - } // end for yyj2146 + z.DecStructFieldNotFound(-1, yys2149) + } // end switch yys2149 + } // end for yyj2149 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28901,16 +28957,16 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2156 int - var yyb2156 bool - var yyhl2156 bool = l >= 0 - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + var yyj2159 int + var yyb2159 bool + var yyhl2159 bool = l >= 0 + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28925,13 +28981,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28944,20 +29000,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2159 := z.DecBinary() - _ = yym2159 + yym2162 := z.DecBinary() + _ = yym2162 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28970,20 +29026,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2161 := z.DecBinary() - _ = yym2161 + yym2164 := z.DecBinary() + _ = yym2164 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28991,21 +29047,21 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2162 := &x.SupplementalGroups - yym2163 := z.DecBinary() - _ = yym2163 + yyv2165 := &x.SupplementalGroups + yym2166 := z.DecBinary() + _ = yym2166 if false { } else { - z.F.DecSliceInt64X(yyv2162, false, d) + z.F.DecSliceInt64X(yyv2165, false, d) } } - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29018,29 +29074,55 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2165 := z.DecBinary() - _ = yym2165 + yym2168 := z.DecBinary() + _ = yym2168 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj2156++ - if yyhl2156 { - yyb2156 = yyj2156 > l + yyj2159++ + if yyhl2159 { + yyb2159 = yyj2159 > l } else { - yyb2156 = r.CheckBreak() + yyb2159 = r.CheckBreak() } - if yyb2156 { + if yyb2159 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2156-1, "") + z.DecStructFieldNotFound(yyj2159-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x PodQOSClass) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2169 := z.EncBinary() + _ = yym2169 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PodQOSClass) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2170 := z.DecBinary() + _ = yym2170 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -29048,60 +29130,61 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2166 := z.EncBinary() - _ = yym2166 + yym2171 := z.EncBinary() + _ = yym2171 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.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) + yysep2172 := !z.EncBinary() + yy2arr2172 := z.EncBasicHandle().StructToArray + var yyq2172 [9]bool + _, _, _ = yysep2172, yyq2172, yy2arr2172 + const yyr2172 bool = false + yyq2172[0] = x.Phase != "" + yyq2172[1] = len(x.Conditions) != 0 + yyq2172[2] = x.Message != "" + yyq2172[3] = x.Reason != "" + yyq2172[4] = x.HostIP != "" + yyq2172[5] = x.PodIP != "" + yyq2172[6] = x.StartTime != nil + yyq2172[7] = len(x.ContainerStatuses) != 0 + yyq2172[8] = x.QOSClass != "" + var yynn2172 int + if yyr2172 || yy2arr2172 { + r.EncodeArrayStart(9) } else { - yynn2167 = 0 - for _, b := range yyq2167 { + yynn2172 = 0 + for _, b := range yyq2172 { if b { - yynn2167++ + yynn2172++ } } - r.EncodeMapStart(yynn2167) - yynn2167 = 0 + r.EncodeMapStart(yynn2172) + yynn2172 = 0 } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[0] { + if yyq2172[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2167[0] { + if yyq2172[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[1] { + if yyq2172[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym2170 := z.EncBinary() - _ = yym2170 + yym2175 := z.EncBinary() + _ = yym2175 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -29111,15 +29194,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2167[1] { + if yyq2172[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2171 := z.EncBinary() - _ = yym2171 + yym2176 := z.EncBinary() + _ = yym2176 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -29127,11 +29210,11 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[2] { - yym2173 := z.EncBinary() - _ = yym2173 + if yyq2172[2] { + yym2178 := z.EncBinary() + _ = yym2178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -29140,74 +29223,74 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2167[2] { + if yyq2172[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2174 := z.EncBinary() - _ = yym2174 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr2167 || yy2arr2167 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[3] { - yym2176 := z.EncBinary() - _ = yym2176 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2167[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2177 := z.EncBinary() - _ = yym2177 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr2167 || yy2arr2167 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[4] { yym2179 := z.EncBinary() _ = yym2179 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2172 || yy2arr2172 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2172[3] { + yym2181 := z.EncBinary() + _ = yym2181 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2167[4] { + if yyq2172[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2180 := z.EncBinary() - _ = yym2180 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) - } - } - } - if yyr2167 || yy2arr2167 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[5] { yym2182 := z.EncBinary() _ = yym2182 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2172 || yy2arr2172 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2172[4] { + yym2184 := z.EncBinary() + _ = yym2184 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2172[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2185 := z.EncBinary() + _ = yym2185 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) + } + } + } + if yyr2172 || yy2arr2172 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2172[5] { + yym2187 := z.EncBinary() + _ = yym2187 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } @@ -29215,31 +29298,31 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2167[5] { + if yyq2172[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2183 := z.EncBinary() - _ = yym2183 + yym2188 := z.EncBinary() + _ = yym2188 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[6] { + if yyq2172[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym2185 := z.EncBinary() - _ = yym2185 + yym2190 := z.EncBinary() + _ = yym2190 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2185 { + } else if yym2190 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2185 && z.IsJSONHandle() { + } else if !yym2190 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -29249,20 +29332,20 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2167[6] { + if yyq2172[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym2186 := z.EncBinary() - _ = yym2186 + yym2191 := z.EncBinary() + _ = yym2191 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2186 { + } else if yym2191 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2186 && z.IsJSONHandle() { + } else if !yym2191 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -29270,14 +29353,14 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[7] { + if yyq2172[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2188 := z.EncBinary() - _ = yym2188 + yym2193 := z.EncBinary() + _ = yym2193 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -29287,15 +29370,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2167[7] { + if yyq2172[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2189 := z.EncBinary() - _ = yym2189 + yym2194 := z.EncBinary() + _ = yym2194 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -29303,7 +29386,22 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2167 || yy2arr2167 { + if yyr2172 || yy2arr2172 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2172[8] { + x.QOSClass.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2172[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("qosClass")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.QOSClass.CodecEncodeSelf(e) + } + } + if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29316,25 +29414,25 @@ func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2190 := z.DecBinary() - _ = yym2190 + yym2196 := z.DecBinary() + _ = yym2196 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2191 := r.ContainerType() - if yyct2191 == codecSelferValueTypeMap1234 { - yyl2191 := r.ReadMapStart() - if yyl2191 == 0 { + yyct2197 := r.ContainerType() + if yyct2197 == codecSelferValueTypeMap1234 { + yyl2197 := r.ReadMapStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2191, d) + x.codecDecodeSelfFromMap(yyl2197, d) } - } else if yyct2191 == codecSelferValueTypeArray1234 { - yyl2191 := r.ReadArrayStart() - if yyl2191 == 0 { + } else if yyct2197 == codecSelferValueTypeArray1234 { + yyl2197 := r.ReadArrayStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2191, d) + x.codecDecodeSelfFromArray(yyl2197, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29346,12 +29444,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2192Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2192Slc - var yyhl2192 bool = l >= 0 - for yyj2192 := 0; ; yyj2192++ { - if yyhl2192 { - if yyj2192 >= l { + var yys2198Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2198Slc + var yyhl2198 bool = l >= 0 + for yyj2198 := 0; ; yyj2198++ { + if yyhl2198 { + if yyj2198 >= l { break } } else { @@ -29360,10 +29458,10 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2192Slc = r.DecodeBytes(yys2192Slc, true, true) - yys2192 := string(yys2192Slc) + yys2198Slc = r.DecodeBytes(yys2198Slc, true, true) + yys2198 := string(yys2198Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2192 { + switch yys2198 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -29374,12 +29472,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2194 := &x.Conditions - yym2195 := z.DecBinary() - _ = yym2195 + yyv2200 := &x.Conditions + yym2201 := z.DecBinary() + _ = yym2201 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2194), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2200), d) } } case "message": @@ -29415,13 +29513,13 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_v1.Time) } - yym2201 := z.DecBinary() - _ = yym2201 + yym2207 := z.DecBinary() + _ = yym2207 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2201 { + } else if yym2207 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2201 && z.IsJSONHandle() { + } else if !yym2207 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -29431,18 +29529,24 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2202 := &x.ContainerStatuses - yym2203 := z.DecBinary() - _ = yym2203 + yyv2208 := &x.ContainerStatuses + yym2209 := z.DecBinary() + _ = yym2209 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2202), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2208), d) } } + case "qosClass": + if r.TryDecodeAsNil() { + x.QOSClass = "" + } else { + x.QOSClass = PodQOSClass(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys2192) - } // end switch yys2192 - } // end for yyj2192 + z.DecStructFieldNotFound(-1, yys2198) + } // end switch yys2198 + } // end for yyj2198 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29450,16 +29554,16 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2204 int - var yyb2204 bool - var yyhl2204 bool = l >= 0 - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + var yyj2211 int + var yyb2211 bool + var yyhl2211 bool = l >= 0 + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29469,13 +29573,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = PodPhase(r.DecodeString()) } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29483,21 +29587,21 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2206 := &x.Conditions - yym2207 := z.DecBinary() - _ = yym2207 + yyv2213 := &x.Conditions + yym2214 := z.DecBinary() + _ = yym2214 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2206), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2213), d) } } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29507,13 +29611,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29523,13 +29627,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29539,13 +29643,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIP = string(r.DecodeString()) } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29555,13 +29659,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodIP = string(r.DecodeString()) } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29574,25 +29678,25 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_v1.Time) } - yym2213 := z.DecBinary() - _ = yym2213 + yym2220 := z.DecBinary() + _ = yym2220 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2213 { + } else if yym2220 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2213 && z.IsJSONHandle() { + } else if !yym2220 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29600,26 +29704,42 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2214 := &x.ContainerStatuses - yym2215 := z.DecBinary() - _ = yym2215 + yyv2221 := &x.ContainerStatuses + yym2222 := z.DecBinary() + _ = yym2222 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2214), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2221), d) } } + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l + } else { + yyb2211 = r.CheckBreak() + } + if yyb2211 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.QOSClass = "" + } else { + x.QOSClass = PodQOSClass(r.DecodeString()) + } for { - yyj2204++ - if yyhl2204 { - yyb2204 = yyj2204 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2204 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2204 { + if yyb2211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2204-1, "") + z.DecStructFieldNotFound(yyj2211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29631,38 +29751,38 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2216 := z.EncBinary() - _ = yym2216 + yym2224 := z.EncBinary() + _ = yym2224 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 { + yysep2225 := !z.EncBinary() + yy2arr2225 := z.EncBasicHandle().StructToArray + var yyq2225 [4]bool + _, _, _ = yysep2225, yyq2225, yy2arr2225 + const yyr2225 bool = false + yyq2225[0] = x.Kind != "" + yyq2225[1] = x.APIVersion != "" + yyq2225[2] = true + yyq2225[3] = true + var yynn2225 int + if yyr2225 || yy2arr2225 { r.EncodeArrayStart(4) } else { - yynn2217 = 0 - for _, b := range yyq2217 { + yynn2225 = 0 + for _, b := range yyq2225 { if b { - yynn2217++ + yynn2225++ } } - r.EncodeMapStart(yynn2217) - yynn2217 = 0 + r.EncodeMapStart(yynn2225) + yynn2225 = 0 } - if yyr2217 || yy2arr2217 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2217[0] { - yym2219 := z.EncBinary() - _ = yym2219 + if yyq2225[0] { + yym2227 := z.EncBinary() + _ = yym2227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29671,23 +29791,23 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2217[0] { + if yyq2225[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2220 := z.EncBinary() - _ = yym2220 + yym2228 := z.EncBinary() + _ = yym2228 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2217 || yy2arr2217 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2217[1] { - yym2222 := z.EncBinary() - _ = yym2222 + if yyq2225[1] { + yym2230 := z.EncBinary() + _ = yym2230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29696,53 +29816,53 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2217[1] { + if yyq2225[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2223 := z.EncBinary() - _ = yym2223 + yym2231 := z.EncBinary() + _ = yym2231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2217 || yy2arr2217 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2217[2] { - yy2225 := &x.ObjectMeta - yy2225.CodecEncodeSelf(e) + if yyq2225[2] { + yy2233 := &x.ObjectMeta + yy2233.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2217[2] { + if yyq2225[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2226 := &x.ObjectMeta - yy2226.CodecEncodeSelf(e) + yy2234 := &x.ObjectMeta + yy2234.CodecEncodeSelf(e) } } - if yyr2217 || yy2arr2217 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2217[3] { - yy2228 := &x.Status - yy2228.CodecEncodeSelf(e) + if yyq2225[3] { + yy2236 := &x.Status + yy2236.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2217[3] { + if yyq2225[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2229 := &x.Status - yy2229.CodecEncodeSelf(e) + yy2237 := &x.Status + yy2237.CodecEncodeSelf(e) } } - if yyr2217 || yy2arr2217 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29755,25 +29875,25 @@ func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2230 := z.DecBinary() - _ = yym2230 + yym2238 := z.DecBinary() + _ = yym2238 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2231 := r.ContainerType() - if yyct2231 == codecSelferValueTypeMap1234 { - yyl2231 := r.ReadMapStart() - if yyl2231 == 0 { + yyct2239 := r.ContainerType() + if yyct2239 == codecSelferValueTypeMap1234 { + yyl2239 := r.ReadMapStart() + if yyl2239 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2231, d) + x.codecDecodeSelfFromMap(yyl2239, d) } - } else if yyct2231 == codecSelferValueTypeArray1234 { - yyl2231 := r.ReadArrayStart() - if yyl2231 == 0 { + } else if yyct2239 == codecSelferValueTypeArray1234 { + yyl2239 := r.ReadArrayStart() + if yyl2239 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2231, d) + x.codecDecodeSelfFromArray(yyl2239, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29785,12 +29905,12 @@ 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 { + var yys2240Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2240Slc + var yyhl2240 bool = l >= 0 + for yyj2240 := 0; ; yyj2240++ { + if yyhl2240 { + if yyj2240 >= l { break } } else { @@ -29799,10 +29919,10 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2232Slc = r.DecodeBytes(yys2232Slc, true, true) - yys2232 := string(yys2232Slc) + yys2240Slc = r.DecodeBytes(yys2240Slc, true, true) + yys2240 := string(yys2240Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2232 { + switch yys2240 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29819,20 +29939,20 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2235 := &x.ObjectMeta - yyv2235.CodecDecodeSelf(d) + yyv2243 := &x.ObjectMeta + yyv2243.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2236 := &x.Status - yyv2236.CodecDecodeSelf(d) + yyv2244 := &x.Status + yyv2244.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2232) - } // end switch yys2232 - } // end for yyj2232 + z.DecStructFieldNotFound(-1, yys2240) + } // end switch yys2240 + } // end for yyj2240 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29840,16 +29960,16 @@ 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 + var yyj2245 int + var yyb2245 bool + var yyhl2245 bool = l >= 0 + yyj2245++ + if yyhl2245 { + yyb2245 = yyj2245 > l } else { - yyb2237 = r.CheckBreak() + yyb2245 = r.CheckBreak() } - if yyb2237 { + if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29859,13 +29979,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2245++ + if yyhl2245 { + yyb2245 = yyj2245 > l } else { - yyb2237 = r.CheckBreak() + yyb2245 = r.CheckBreak() } - if yyb2237 { + if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29875,13 +29995,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2245++ + if yyhl2245 { + yyb2245 = yyj2245 > l } else { - yyb2237 = r.CheckBreak() + yyb2245 = r.CheckBreak() } - if yyb2237 { + if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29889,16 +30009,16 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2240 := &x.ObjectMeta - yyv2240.CodecDecodeSelf(d) + yyv2248 := &x.ObjectMeta + yyv2248.CodecDecodeSelf(d) } - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2245++ + if yyhl2245 { + yyb2245 = yyj2245 > l } else { - yyb2237 = r.CheckBreak() + yyb2245 = r.CheckBreak() } - if yyb2237 { + if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29906,21 +30026,21 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2241 := &x.Status - yyv2241.CodecDecodeSelf(d) + yyv2249 := &x.Status + yyv2249.CodecDecodeSelf(d) } for { - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2245++ + if yyhl2245 { + yyb2245 = yyj2245 > l } else { - yyb2237 = r.CheckBreak() + yyb2245 = r.CheckBreak() } - if yyb2237 { + if yyb2245 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2237-1, "") + z.DecStructFieldNotFound(yyj2245-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29932,39 +30052,39 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2242 := z.EncBinary() - _ = yym2242 + yym2250 := z.EncBinary() + _ = yym2250 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2251 := !z.EncBinary() + yy2arr2251 := z.EncBasicHandle().StructToArray + var yyq2251 [5]bool + _, _, _ = yysep2251, yyq2251, yy2arr2251 + const yyr2251 bool = false + yyq2251[0] = x.Kind != "" + yyq2251[1] = x.APIVersion != "" + yyq2251[2] = true + yyq2251[3] = true + yyq2251[4] = true + var yynn2251 int + if yyr2251 || yy2arr2251 { r.EncodeArrayStart(5) } else { - yynn2243 = 0 - for _, b := range yyq2243 { + yynn2251 = 0 + for _, b := range yyq2251 { if b { - yynn2243++ + yynn2251++ } } - r.EncodeMapStart(yynn2243) - yynn2243 = 0 + r.EncodeMapStart(yynn2251) + yynn2251 = 0 } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2243[0] { - yym2245 := z.EncBinary() - _ = yym2245 + if yyq2251[0] { + yym2253 := z.EncBinary() + _ = yym2253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29973,23 +30093,23 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2243[0] { + if yyq2251[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2246 := z.EncBinary() - _ = yym2246 + yym2254 := z.EncBinary() + _ = yym2254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2243[1] { - yym2248 := z.EncBinary() - _ = yym2248 + if yyq2251[1] { + yym2256 := z.EncBinary() + _ = yym2256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29998,70 +30118,70 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2243[1] { + if yyq2251[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2249 := z.EncBinary() - _ = yym2249 + yym2257 := z.EncBinary() + _ = yym2257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2243[2] { - yy2251 := &x.ObjectMeta - yy2251.CodecEncodeSelf(e) + if yyq2251[2] { + yy2259 := &x.ObjectMeta + yy2259.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2243[2] { + if yyq2251[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2252 := &x.ObjectMeta - yy2252.CodecEncodeSelf(e) + yy2260 := &x.ObjectMeta + yy2260.CodecEncodeSelf(e) } } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2243[3] { - yy2254 := &x.Spec - yy2254.CodecEncodeSelf(e) + if yyq2251[3] { + yy2262 := &x.Spec + yy2262.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2243[3] { + if yyq2251[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2255 := &x.Spec - yy2255.CodecEncodeSelf(e) + yy2263 := &x.Spec + yy2263.CodecEncodeSelf(e) } } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2243[4] { - yy2257 := &x.Status - yy2257.CodecEncodeSelf(e) + if yyq2251[4] { + yy2265 := &x.Status + yy2265.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2243[4] { + if yyq2251[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2258 := &x.Status - yy2258.CodecEncodeSelf(e) + yy2266 := &x.Status + yy2266.CodecEncodeSelf(e) } } - if yyr2243 || yy2arr2243 { + if yyr2251 || yy2arr2251 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30074,25 +30194,25 @@ func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2259 := z.DecBinary() - _ = yym2259 + yym2267 := z.DecBinary() + _ = yym2267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2260 := r.ContainerType() - if yyct2260 == codecSelferValueTypeMap1234 { - yyl2260 := r.ReadMapStart() - if yyl2260 == 0 { + yyct2268 := r.ContainerType() + if yyct2268 == codecSelferValueTypeMap1234 { + yyl2268 := r.ReadMapStart() + if yyl2268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2260, d) + x.codecDecodeSelfFromMap(yyl2268, d) } - } else if yyct2260 == codecSelferValueTypeArray1234 { - yyl2260 := r.ReadArrayStart() - if yyl2260 == 0 { + } else if yyct2268 == codecSelferValueTypeArray1234 { + yyl2268 := r.ReadArrayStart() + if yyl2268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2260, d) + x.codecDecodeSelfFromArray(yyl2268, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30104,12 +30224,12 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2261Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2261Slc - var yyhl2261 bool = l >= 0 - for yyj2261 := 0; ; yyj2261++ { - if yyhl2261 { - if yyj2261 >= l { + var yys2269Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2269Slc + var yyhl2269 bool = l >= 0 + for yyj2269 := 0; ; yyj2269++ { + if yyhl2269 { + if yyj2269 >= l { break } } else { @@ -30118,10 +30238,10 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2261Slc = r.DecodeBytes(yys2261Slc, true, true) - yys2261 := string(yys2261Slc) + yys2269Slc = r.DecodeBytes(yys2269Slc, true, true) + yys2269 := string(yys2269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2261 { + switch yys2269 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30138,27 +30258,27 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2264 := &x.ObjectMeta - yyv2264.CodecDecodeSelf(d) + yyv2272 := &x.ObjectMeta + yyv2272.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2265 := &x.Spec - yyv2265.CodecDecodeSelf(d) + yyv2273 := &x.Spec + yyv2273.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2266 := &x.Status - yyv2266.CodecDecodeSelf(d) + yyv2274 := &x.Status + yyv2274.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2261) - } // end switch yys2261 - } // end for yyj2261 + z.DecStructFieldNotFound(-1, yys2269) + } // end switch yys2269 + } // end for yyj2269 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30166,16 +30286,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2267 int - var yyb2267 bool - var yyhl2267 bool = l >= 0 - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + var yyj2275 int + var yyb2275 bool + var yyhl2275 bool = l >= 0 + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30185,13 +30305,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30201,13 +30321,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30215,16 +30335,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2270 := &x.ObjectMeta - yyv2270.CodecDecodeSelf(d) + yyv2278 := &x.ObjectMeta + yyv2278.CodecDecodeSelf(d) } - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30232,16 +30352,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2271 := &x.Spec - yyv2271.CodecDecodeSelf(d) + yyv2279 := &x.Spec + yyv2279.CodecDecodeSelf(d) } - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30249,21 +30369,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2272 := &x.Status - yyv2272.CodecDecodeSelf(d) + yyv2280 := &x.Status + yyv2280.CodecDecodeSelf(d) } for { - yyj2267++ - if yyhl2267 { - yyb2267 = yyj2267 > l + yyj2275++ + if yyhl2275 { + yyb2275 = yyj2275 > l } else { - yyb2267 = r.CheckBreak() + yyb2275 = r.CheckBreak() } - if yyb2267 { + if yyb2275 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2267-1, "") + z.DecStructFieldNotFound(yyj2275-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30275,37 +30395,37 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2273 := z.EncBinary() - _ = yym2273 + yym2281 := z.EncBinary() + _ = yym2281 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2282 := !z.EncBinary() + yy2arr2282 := z.EncBasicHandle().StructToArray + var yyq2282 [4]bool + _, _, _ = yysep2282, yyq2282, yy2arr2282 + const yyr2282 bool = false + yyq2282[0] = x.Kind != "" + yyq2282[1] = x.APIVersion != "" + yyq2282[2] = true + var yynn2282 int + if yyr2282 || yy2arr2282 { r.EncodeArrayStart(4) } else { - yynn2274 = 1 - for _, b := range yyq2274 { + yynn2282 = 1 + for _, b := range yyq2282 { if b { - yynn2274++ + yynn2282++ } } - r.EncodeMapStart(yynn2274) - yynn2274 = 0 + r.EncodeMapStart(yynn2282) + yynn2282 = 0 } - if yyr2274 || yy2arr2274 { + if yyr2282 || yy2arr2282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2274[0] { - yym2276 := z.EncBinary() - _ = yym2276 + if yyq2282[0] { + yym2284 := z.EncBinary() + _ = yym2284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30314,23 +30434,23 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2274[0] { + if yyq2282[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2277 := z.EncBinary() - _ = yym2277 + yym2285 := z.EncBinary() + _ = yym2285 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2274 || yy2arr2274 { + if yyr2282 || yy2arr2282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2274[1] { - yym2279 := z.EncBinary() - _ = yym2279 + if yyq2282[1] { + yym2287 := z.EncBinary() + _ = yym2287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30339,54 +30459,54 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2274[1] { + if yyq2282[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2280 := z.EncBinary() - _ = yym2280 + yym2288 := z.EncBinary() + _ = yym2288 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2274 || yy2arr2274 { + if yyr2282 || yy2arr2282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2274[2] { - yy2282 := &x.ListMeta - yym2283 := z.EncBinary() - _ = yym2283 + if yyq2282[2] { + yy2290 := &x.ListMeta + yym2291 := z.EncBinary() + _ = yym2291 if false { - } else if z.HasExtensions() && z.EncExt(yy2282) { + } else if z.HasExtensions() && z.EncExt(yy2290) { } else { - z.EncFallback(yy2282) + z.EncFallback(yy2290) } } else { r.EncodeNil() } } else { - if yyq2274[2] { + if yyq2282[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2284 := &x.ListMeta - yym2285 := z.EncBinary() - _ = yym2285 + yy2292 := &x.ListMeta + yym2293 := z.EncBinary() + _ = yym2293 if false { - } else if z.HasExtensions() && z.EncExt(yy2284) { + } else if z.HasExtensions() && z.EncExt(yy2292) { } else { - z.EncFallback(yy2284) + z.EncFallback(yy2292) } } } - if yyr2274 || yy2arr2274 { + if yyr2282 || yy2arr2282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2287 := z.EncBinary() - _ = yym2287 + yym2295 := z.EncBinary() + _ = yym2295 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) @@ -30399,15 +30519,15 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2288 := z.EncBinary() - _ = yym2288 + yym2296 := z.EncBinary() + _ = yym2296 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr2274 || yy2arr2274 { + if yyr2282 || yy2arr2282 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30420,25 +30540,25 @@ func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2289 := z.DecBinary() - _ = yym2289 + yym2297 := z.DecBinary() + _ = yym2297 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2290 := r.ContainerType() - if yyct2290 == codecSelferValueTypeMap1234 { - yyl2290 := r.ReadMapStart() - if yyl2290 == 0 { + yyct2298 := r.ContainerType() + if yyct2298 == codecSelferValueTypeMap1234 { + yyl2298 := r.ReadMapStart() + if yyl2298 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2290, d) + x.codecDecodeSelfFromMap(yyl2298, d) } - } else if yyct2290 == codecSelferValueTypeArray1234 { - yyl2290 := r.ReadArrayStart() - if yyl2290 == 0 { + } else if yyct2298 == codecSelferValueTypeArray1234 { + yyl2298 := r.ReadArrayStart() + if yyl2298 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2290, d) + x.codecDecodeSelfFromArray(yyl2298, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30450,12 +30570,12 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2291Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2291Slc - var yyhl2291 bool = l >= 0 - for yyj2291 := 0; ; yyj2291++ { - if yyhl2291 { - if yyj2291 >= l { + var yys2299Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2299Slc + var yyhl2299 bool = l >= 0 + for yyj2299 := 0; ; yyj2299++ { + if yyhl2299 { + if yyj2299 >= l { break } } else { @@ -30464,10 +30584,10 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2291Slc = r.DecodeBytes(yys2291Slc, true, true) - yys2291 := string(yys2291Slc) + yys2299Slc = r.DecodeBytes(yys2299Slc, true, true) + yys2299 := string(yys2299Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2291 { + switch yys2299 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30484,31 +30604,31 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2294 := &x.ListMeta - yym2295 := z.DecBinary() - _ = yym2295 + yyv2302 := &x.ListMeta + yym2303 := z.DecBinary() + _ = yym2303 if false { - } else if z.HasExtensions() && z.DecExt(yyv2294) { + } else if z.HasExtensions() && z.DecExt(yyv2302) { } else { - z.DecFallback(yyv2294, false) + z.DecFallback(yyv2302, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2296 := &x.Items - yym2297 := z.DecBinary() - _ = yym2297 + yyv2304 := &x.Items + yym2305 := z.DecBinary() + _ = yym2305 if false { } else { - h.decSlicePod((*[]Pod)(yyv2296), d) + h.decSlicePod((*[]Pod)(yyv2304), d) } } default: - z.DecStructFieldNotFound(-1, yys2291) - } // end switch yys2291 - } // end for yyj2291 + z.DecStructFieldNotFound(-1, yys2299) + } // end switch yys2299 + } // end for yyj2299 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30516,16 +30636,16 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2298 int - var yyb2298 bool - var yyhl2298 bool = l >= 0 - yyj2298++ - if yyhl2298 { - yyb2298 = yyj2298 > l + var yyj2306 int + var yyb2306 bool + var yyhl2306 bool = l >= 0 + yyj2306++ + if yyhl2306 { + yyb2306 = yyj2306 > l } else { - yyb2298 = r.CheckBreak() + yyb2306 = r.CheckBreak() } - if yyb2298 { + if yyb2306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30535,13 +30655,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2298++ - if yyhl2298 { - yyb2298 = yyj2298 > l + yyj2306++ + if yyhl2306 { + yyb2306 = yyj2306 > l } else { - yyb2298 = r.CheckBreak() + yyb2306 = r.CheckBreak() } - if yyb2298 { + if yyb2306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30551,13 +30671,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2298++ - if yyhl2298 { - yyb2298 = yyj2298 > l + yyj2306++ + if yyhl2306 { + yyb2306 = yyj2306 > l } else { - yyb2298 = r.CheckBreak() + yyb2306 = r.CheckBreak() } - if yyb2298 { + if yyb2306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30565,22 +30685,22 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2301 := &x.ListMeta - yym2302 := z.DecBinary() - _ = yym2302 + yyv2309 := &x.ListMeta + yym2310 := z.DecBinary() + _ = yym2310 if false { - } else if z.HasExtensions() && z.DecExt(yyv2301) { + } else if z.HasExtensions() && z.DecExt(yyv2309) { } else { - z.DecFallback(yyv2301, false) + z.DecFallback(yyv2309, false) } } - yyj2298++ - if yyhl2298 { - yyb2298 = yyj2298 > l + yyj2306++ + if yyhl2306 { + yyb2306 = yyj2306 > l } else { - yyb2298 = r.CheckBreak() + yyb2306 = r.CheckBreak() } - if yyb2298 { + if yyb2306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30588,26 +30708,26 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2303 := &x.Items - yym2304 := z.DecBinary() - _ = yym2304 + yyv2311 := &x.Items + yym2312 := z.DecBinary() + _ = yym2312 if false { } else { - h.decSlicePod((*[]Pod)(yyv2303), d) + h.decSlicePod((*[]Pod)(yyv2311), d) } } for { - yyj2298++ - if yyhl2298 { - yyb2298 = yyj2298 > l + yyj2306++ + if yyhl2306 { + yyb2306 = yyj2306 > l } else { - yyb2298 = r.CheckBreak() + yyb2306 = r.CheckBreak() } - if yyb2298 { + if yyb2306 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2298-1, "") + z.DecStructFieldNotFound(yyj2306-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30619,66 +30739,66 @@ func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2305 := z.EncBinary() - _ = yym2305 + yym2313 := z.EncBinary() + _ = yym2313 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2314 := !z.EncBinary() + yy2arr2314 := z.EncBasicHandle().StructToArray + var yyq2314 [2]bool + _, _, _ = yysep2314, yyq2314, yy2arr2314 + const yyr2314 bool = false + yyq2314[0] = true + yyq2314[1] = true + var yynn2314 int + if yyr2314 || yy2arr2314 { r.EncodeArrayStart(2) } else { - yynn2306 = 0 - for _, b := range yyq2306 { + yynn2314 = 0 + for _, b := range yyq2314 { if b { - yynn2306++ + yynn2314++ } } - r.EncodeMapStart(yynn2306) - yynn2306 = 0 + r.EncodeMapStart(yynn2314) + yynn2314 = 0 } - if yyr2306 || yy2arr2306 { + if yyr2314 || yy2arr2314 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2306[0] { - yy2308 := &x.ObjectMeta - yy2308.CodecEncodeSelf(e) + if yyq2314[0] { + yy2316 := &x.ObjectMeta + yy2316.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2306[0] { + if yyq2314[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2309 := &x.ObjectMeta - yy2309.CodecEncodeSelf(e) + yy2317 := &x.ObjectMeta + yy2317.CodecEncodeSelf(e) } } - if yyr2306 || yy2arr2306 { + if yyr2314 || yy2arr2314 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2306[1] { - yy2311 := &x.Spec - yy2311.CodecEncodeSelf(e) + if yyq2314[1] { + yy2319 := &x.Spec + yy2319.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2306[1] { + if yyq2314[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2312 := &x.Spec - yy2312.CodecEncodeSelf(e) + yy2320 := &x.Spec + yy2320.CodecEncodeSelf(e) } } - if yyr2306 || yy2arr2306 { + if yyr2314 || yy2arr2314 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30691,25 +30811,25 @@ func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2313 := z.DecBinary() - _ = yym2313 + yym2321 := z.DecBinary() + _ = yym2321 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2314 := r.ContainerType() - if yyct2314 == codecSelferValueTypeMap1234 { - yyl2314 := r.ReadMapStart() - if yyl2314 == 0 { + yyct2322 := r.ContainerType() + if yyct2322 == codecSelferValueTypeMap1234 { + yyl2322 := r.ReadMapStart() + if yyl2322 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2314, d) + x.codecDecodeSelfFromMap(yyl2322, d) } - } else if yyct2314 == codecSelferValueTypeArray1234 { - yyl2314 := r.ReadArrayStart() - if yyl2314 == 0 { + } else if yyct2322 == codecSelferValueTypeArray1234 { + yyl2322 := r.ReadArrayStart() + if yyl2322 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2314, d) + x.codecDecodeSelfFromArray(yyl2322, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30721,12 +30841,12 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2315Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2315Slc - var yyhl2315 bool = l >= 0 - for yyj2315 := 0; ; yyj2315++ { - if yyhl2315 { - if yyj2315 >= l { + 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 { @@ -30735,28 +30855,28 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2315Slc = r.DecodeBytes(yys2315Slc, true, true) - yys2315 := string(yys2315Slc) + yys2323Slc = r.DecodeBytes(yys2323Slc, true, true) + yys2323 := string(yys2323Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2315 { + switch yys2323 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2316 := &x.ObjectMeta - yyv2316.CodecDecodeSelf(d) + yyv2324 := &x.ObjectMeta + yyv2324.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2317 := &x.Spec - yyv2317.CodecDecodeSelf(d) + yyv2325 := &x.Spec + yyv2325.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2315) - } // end switch yys2315 - } // end for yyj2315 + z.DecStructFieldNotFound(-1, yys2323) + } // end switch yys2323 + } // end for yyj2323 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30764,16 +30884,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2318 int - var yyb2318 bool - var yyhl2318 bool = l >= 0 - yyj2318++ - if yyhl2318 { - yyb2318 = yyj2318 > l + var yyj2326 int + var yyb2326 bool + var yyhl2326 bool = l >= 0 + yyj2326++ + if yyhl2326 { + yyb2326 = yyj2326 > l } else { - yyb2318 = r.CheckBreak() + yyb2326 = r.CheckBreak() } - if yyb2318 { + if yyb2326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30781,16 +30901,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2319 := &x.ObjectMeta - yyv2319.CodecDecodeSelf(d) + yyv2327 := &x.ObjectMeta + yyv2327.CodecDecodeSelf(d) } - yyj2318++ - if yyhl2318 { - yyb2318 = yyj2318 > l + yyj2326++ + if yyhl2326 { + yyb2326 = yyj2326 > l } else { - yyb2318 = r.CheckBreak() + yyb2326 = r.CheckBreak() } - if yyb2318 { + if yyb2326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30798,21 +30918,21 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2320 := &x.Spec - yyv2320.CodecDecodeSelf(d) + yyv2328 := &x.Spec + yyv2328.CodecDecodeSelf(d) } for { - yyj2318++ - if yyhl2318 { - yyb2318 = yyj2318 > l + yyj2326++ + if yyhl2326 { + yyb2326 = yyj2326 > l } else { - yyb2318 = r.CheckBreak() + yyb2326 = r.CheckBreak() } - if yyb2318 { + if yyb2326 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2318-1, "") + z.DecStructFieldNotFound(yyj2326-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30824,38 +30944,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2321 := z.EncBinary() - _ = yym2321 + yym2329 := z.EncBinary() + _ = yym2329 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2330 := !z.EncBinary() + yy2arr2330 := z.EncBasicHandle().StructToArray + var yyq2330 [4]bool + _, _, _ = yysep2330, yyq2330, yy2arr2330 + const yyr2330 bool = false + yyq2330[0] = x.Kind != "" + yyq2330[1] = x.APIVersion != "" + yyq2330[2] = true + yyq2330[3] = true + var yynn2330 int + if yyr2330 || yy2arr2330 { r.EncodeArrayStart(4) } else { - yynn2322 = 0 - for _, b := range yyq2322 { + yynn2330 = 0 + for _, b := range yyq2330 { if b { - yynn2322++ + yynn2330++ } } - r.EncodeMapStart(yynn2322) - yynn2322 = 0 + r.EncodeMapStart(yynn2330) + yynn2330 = 0 } - if yyr2322 || yy2arr2322 { + if yyr2330 || yy2arr2330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2322[0] { - yym2324 := z.EncBinary() - _ = yym2324 + if yyq2330[0] { + yym2332 := z.EncBinary() + _ = yym2332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30864,23 +30984,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2322[0] { + if yyq2330[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2325 := z.EncBinary() - _ = yym2325 + yym2333 := z.EncBinary() + _ = yym2333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2322 || yy2arr2322 { + if yyr2330 || yy2arr2330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2322[1] { - yym2327 := z.EncBinary() - _ = yym2327 + if yyq2330[1] { + yym2335 := z.EncBinary() + _ = yym2335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30889,53 +31009,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2322[1] { + if yyq2330[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2328 := z.EncBinary() - _ = yym2328 + yym2336 := z.EncBinary() + _ = yym2336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2322 || yy2arr2322 { + if yyr2330 || yy2arr2330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2322[2] { - yy2330 := &x.ObjectMeta - yy2330.CodecEncodeSelf(e) + if yyq2330[2] { + yy2338 := &x.ObjectMeta + yy2338.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2322[2] { + if yyq2330[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2331 := &x.ObjectMeta - yy2331.CodecEncodeSelf(e) + yy2339 := &x.ObjectMeta + yy2339.CodecEncodeSelf(e) } } - if yyr2322 || yy2arr2322 { + if yyr2330 || yy2arr2330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2322[3] { - yy2333 := &x.Template - yy2333.CodecEncodeSelf(e) + if yyq2330[3] { + yy2341 := &x.Template + yy2341.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2322[3] { + if yyq2330[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2334 := &x.Template - yy2334.CodecEncodeSelf(e) + yy2342 := &x.Template + yy2342.CodecEncodeSelf(e) } } - if yyr2322 || yy2arr2322 { + if yyr2330 || yy2arr2330 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30948,25 +31068,25 @@ func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2335 := z.DecBinary() - _ = yym2335 + yym2343 := z.DecBinary() + _ = yym2343 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2336 := r.ContainerType() - if yyct2336 == codecSelferValueTypeMap1234 { - yyl2336 := r.ReadMapStart() - if yyl2336 == 0 { + yyct2344 := r.ContainerType() + if yyct2344 == codecSelferValueTypeMap1234 { + yyl2344 := r.ReadMapStart() + if yyl2344 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2336, d) + x.codecDecodeSelfFromMap(yyl2344, d) } - } else if yyct2336 == codecSelferValueTypeArray1234 { - yyl2336 := r.ReadArrayStart() - if yyl2336 == 0 { + } else if yyct2344 == codecSelferValueTypeArray1234 { + yyl2344 := r.ReadArrayStart() + if yyl2344 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2336, d) + x.codecDecodeSelfFromArray(yyl2344, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30978,12 +31098,12 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2337Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2337Slc - var yyhl2337 bool = l >= 0 - for yyj2337 := 0; ; yyj2337++ { - if yyhl2337 { - if yyj2337 >= l { + var yys2345Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2345Slc + var yyhl2345 bool = l >= 0 + for yyj2345 := 0; ; yyj2345++ { + if yyhl2345 { + if yyj2345 >= l { break } } else { @@ -30992,10 +31112,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2337Slc = r.DecodeBytes(yys2337Slc, true, true) - yys2337 := string(yys2337Slc) + yys2345Slc = r.DecodeBytes(yys2345Slc, true, true) + yys2345 := string(yys2345Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2337 { + switch yys2345 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -31012,20 +31132,20 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2340 := &x.ObjectMeta - yyv2340.CodecDecodeSelf(d) + yyv2348 := &x.ObjectMeta + yyv2348.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2341 := &x.Template - yyv2341.CodecDecodeSelf(d) + yyv2349 := &x.Template + yyv2349.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2337) - } // end switch yys2337 - } // end for yyj2337 + z.DecStructFieldNotFound(-1, yys2345) + } // end switch yys2345 + } // end for yyj2345 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31033,16 +31153,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2342 int - var yyb2342 bool - var yyhl2342 bool = l >= 0 - yyj2342++ - if yyhl2342 { - yyb2342 = yyj2342 > l + var yyj2350 int + var yyb2350 bool + var yyhl2350 bool = l >= 0 + yyj2350++ + if yyhl2350 { + yyb2350 = yyj2350 > l } else { - yyb2342 = r.CheckBreak() + yyb2350 = r.CheckBreak() } - if yyb2342 { + if yyb2350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31052,13 +31172,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2342++ - if yyhl2342 { - yyb2342 = yyj2342 > l + yyj2350++ + if yyhl2350 { + yyb2350 = yyj2350 > l } else { - yyb2342 = r.CheckBreak() + yyb2350 = r.CheckBreak() } - if yyb2342 { + if yyb2350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31068,13 +31188,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2342++ - if yyhl2342 { - yyb2342 = yyj2342 > l + yyj2350++ + if yyhl2350 { + yyb2350 = yyj2350 > l } else { - yyb2342 = r.CheckBreak() + yyb2350 = r.CheckBreak() } - if yyb2342 { + if yyb2350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31082,16 +31202,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2345 := &x.ObjectMeta - yyv2345.CodecDecodeSelf(d) + yyv2353 := &x.ObjectMeta + yyv2353.CodecDecodeSelf(d) } - yyj2342++ - if yyhl2342 { - yyb2342 = yyj2342 > l + yyj2350++ + if yyhl2350 { + yyb2350 = yyj2350 > l } else { - yyb2342 = r.CheckBreak() + yyb2350 = r.CheckBreak() } - if yyb2342 { + if yyb2350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31099,21 +31219,21 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2346 := &x.Template - yyv2346.CodecDecodeSelf(d) + yyv2354 := &x.Template + yyv2354.CodecDecodeSelf(d) } for { - yyj2342++ - if yyhl2342 { - yyb2342 = yyj2342 > l + yyj2350++ + if yyhl2350 { + yyb2350 = yyj2350 > l } else { - yyb2342 = r.CheckBreak() + yyb2350 = r.CheckBreak() } - if yyb2342 { + if yyb2350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2342-1, "") + z.DecStructFieldNotFound(yyj2350-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31125,37 +31245,37 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2347 := z.EncBinary() - _ = yym2347 + yym2355 := z.EncBinary() + _ = yym2355 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 - var yynn2348 int - if yyr2348 || yy2arr2348 { + yysep2356 := !z.EncBinary() + yy2arr2356 := z.EncBasicHandle().StructToArray + var yyq2356 [4]bool + _, _, _ = yysep2356, yyq2356, yy2arr2356 + const yyr2356 bool = false + yyq2356[0] = x.Kind != "" + yyq2356[1] = x.APIVersion != "" + yyq2356[2] = true + var yynn2356 int + if yyr2356 || yy2arr2356 { r.EncodeArrayStart(4) } else { - yynn2348 = 1 - for _, b := range yyq2348 { + yynn2356 = 1 + for _, b := range yyq2356 { if b { - yynn2348++ + yynn2356++ } } - r.EncodeMapStart(yynn2348) - yynn2348 = 0 + r.EncodeMapStart(yynn2356) + yynn2356 = 0 } - if yyr2348 || yy2arr2348 { + if yyr2356 || yy2arr2356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[0] { - yym2350 := z.EncBinary() - _ = yym2350 + if yyq2356[0] { + yym2358 := z.EncBinary() + _ = yym2358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -31164,23 +31284,23 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2348[0] { + if yyq2356[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2351 := z.EncBinary() - _ = yym2351 + yym2359 := z.EncBinary() + _ = yym2359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2348 || yy2arr2348 { + if yyr2356 || yy2arr2356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[1] { - yym2353 := z.EncBinary() - _ = yym2353 + if yyq2356[1] { + yym2361 := z.EncBinary() + _ = yym2361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -31189,54 +31309,54 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2348[1] { + if yyq2356[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2354 := z.EncBinary() - _ = yym2354 + yym2362 := z.EncBinary() + _ = yym2362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2348 || yy2arr2348 { + if yyr2356 || yy2arr2356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[2] { - yy2356 := &x.ListMeta - yym2357 := z.EncBinary() - _ = yym2357 + if yyq2356[2] { + yy2364 := &x.ListMeta + yym2365 := z.EncBinary() + _ = yym2365 if false { - } else if z.HasExtensions() && z.EncExt(yy2356) { + } else if z.HasExtensions() && z.EncExt(yy2364) { } else { - z.EncFallback(yy2356) + z.EncFallback(yy2364) } } else { r.EncodeNil() } } else { - if yyq2348[2] { + if yyq2356[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2358 := &x.ListMeta - yym2359 := z.EncBinary() - _ = yym2359 + yy2366 := &x.ListMeta + yym2367 := z.EncBinary() + _ = yym2367 if false { - } else if z.HasExtensions() && z.EncExt(yy2358) { + } else if z.HasExtensions() && z.EncExt(yy2366) { } else { - z.EncFallback(yy2358) + z.EncFallback(yy2366) } } } - if yyr2348 || yy2arr2348 { + if yyr2356 || yy2arr2356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2361 := z.EncBinary() - _ = yym2361 + yym2369 := z.EncBinary() + _ = yym2369 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) @@ -31249,15 +31369,15 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2362 := z.EncBinary() - _ = yym2362 + yym2370 := z.EncBinary() + _ = yym2370 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2348 || yy2arr2348 { + if yyr2356 || yy2arr2356 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31270,25 +31390,25 @@ func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2363 := z.DecBinary() - _ = yym2363 + yym2371 := z.DecBinary() + _ = yym2371 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2364 := r.ContainerType() - if yyct2364 == codecSelferValueTypeMap1234 { - yyl2364 := r.ReadMapStart() - if yyl2364 == 0 { + yyct2372 := r.ContainerType() + if yyct2372 == codecSelferValueTypeMap1234 { + yyl2372 := r.ReadMapStart() + if yyl2372 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2364, d) + x.codecDecodeSelfFromMap(yyl2372, d) } - } else if yyct2364 == codecSelferValueTypeArray1234 { - yyl2364 := r.ReadArrayStart() - if yyl2364 == 0 { + } else if yyct2372 == codecSelferValueTypeArray1234 { + yyl2372 := r.ReadArrayStart() + if yyl2372 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2364, d) + x.codecDecodeSelfFromArray(yyl2372, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31300,12 +31420,12 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2365Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2365Slc - var yyhl2365 bool = l >= 0 - for yyj2365 := 0; ; yyj2365++ { - if yyhl2365 { - if yyj2365 >= l { + var yys2373Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2373Slc + var yyhl2373 bool = l >= 0 + for yyj2373 := 0; ; yyj2373++ { + if yyhl2373 { + if yyj2373 >= l { break } } else { @@ -31314,10 +31434,10 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2365Slc = r.DecodeBytes(yys2365Slc, true, true) - yys2365 := string(yys2365Slc) + yys2373Slc = r.DecodeBytes(yys2373Slc, true, true) + yys2373 := string(yys2373Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2365 { + switch yys2373 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -31334,31 +31454,31 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2368 := &x.ListMeta - yym2369 := z.DecBinary() - _ = yym2369 + yyv2376 := &x.ListMeta + yym2377 := z.DecBinary() + _ = yym2377 if false { - } else if z.HasExtensions() && z.DecExt(yyv2368) { + } else if z.HasExtensions() && z.DecExt(yyv2376) { } else { - z.DecFallback(yyv2368, false) + z.DecFallback(yyv2376, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2370 := &x.Items - yym2371 := z.DecBinary() - _ = yym2371 + yyv2378 := &x.Items + yym2379 := z.DecBinary() + _ = yym2379 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2370), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2378), d) } } default: - z.DecStructFieldNotFound(-1, yys2365) - } // end switch yys2365 - } // end for yyj2365 + z.DecStructFieldNotFound(-1, yys2373) + } // end switch yys2373 + } // end for yyj2373 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31366,16 +31486,16 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2372 int - var yyb2372 bool - var yyhl2372 bool = l >= 0 - yyj2372++ - if yyhl2372 { - yyb2372 = yyj2372 > l + var yyj2380 int + var yyb2380 bool + var yyhl2380 bool = l >= 0 + yyj2380++ + if yyhl2380 { + yyb2380 = yyj2380 > l } else { - yyb2372 = r.CheckBreak() + yyb2380 = r.CheckBreak() } - if yyb2372 { + if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31385,13 +31505,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2372++ - if yyhl2372 { - yyb2372 = yyj2372 > l + yyj2380++ + if yyhl2380 { + yyb2380 = yyj2380 > l } else { - yyb2372 = r.CheckBreak() + yyb2380 = r.CheckBreak() } - if yyb2372 { + if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31401,13 +31521,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2372++ - if yyhl2372 { - yyb2372 = yyj2372 > l + yyj2380++ + if yyhl2380 { + yyb2380 = yyj2380 > l } else { - yyb2372 = r.CheckBreak() + yyb2380 = r.CheckBreak() } - if yyb2372 { + if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31415,22 +31535,22 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2375 := &x.ListMeta - yym2376 := z.DecBinary() - _ = yym2376 + yyv2383 := &x.ListMeta + yym2384 := z.DecBinary() + _ = yym2384 if false { - } else if z.HasExtensions() && z.DecExt(yyv2375) { + } else if z.HasExtensions() && z.DecExt(yyv2383) { } else { - z.DecFallback(yyv2375, false) + z.DecFallback(yyv2383, false) } } - yyj2372++ - if yyhl2372 { - yyb2372 = yyj2372 > l + yyj2380++ + if yyhl2380 { + yyb2380 = yyj2380 > l } else { - yyb2372 = r.CheckBreak() + yyb2380 = r.CheckBreak() } - if yyb2372 { + if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31438,26 +31558,26 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2377 := &x.Items - yym2378 := z.DecBinary() - _ = yym2378 + yyv2385 := &x.Items + yym2386 := z.DecBinary() + _ = yym2386 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2377), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2385), d) } } for { - yyj2372++ - if yyhl2372 { - yyb2372 = yyj2372 > l + yyj2380++ + if yyhl2380 { + yyb2380 = yyj2380 > l } else { - yyb2372 = r.CheckBreak() + yyb2380 = r.CheckBreak() } - if yyb2372 { + if yyb2380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2372-1, "") + z.DecStructFieldNotFound(yyj2380-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31469,73 +31589,73 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2379 := z.EncBinary() - _ = yym2379 + yym2387 := z.EncBinary() + _ = yym2387 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2388 := !z.EncBinary() + yy2arr2388 := z.EncBasicHandle().StructToArray + var yyq2388 [4]bool + _, _, _ = yysep2388, yyq2388, yy2arr2388 + const yyr2388 bool = false + yyq2388[0] = x.Replicas != nil + yyq2388[1] = x.MinReadySeconds != 0 + yyq2388[2] = len(x.Selector) != 0 + yyq2388[3] = x.Template != nil + var yynn2388 int + if yyr2388 || yy2arr2388 { r.EncodeArrayStart(4) } else { - yynn2380 = 0 - for _, b := range yyq2380 { + yynn2388 = 0 + for _, b := range yyq2388 { if b { - yynn2380++ + yynn2388++ } } - r.EncodeMapStart(yynn2380) - yynn2380 = 0 + r.EncodeMapStart(yynn2388) + yynn2388 = 0 } - if yyr2380 || yy2arr2380 { + if yyr2388 || yy2arr2388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2380[0] { + if yyq2388[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy2382 := *x.Replicas - yym2383 := z.EncBinary() - _ = yym2383 + yy2390 := *x.Replicas + yym2391 := z.EncBinary() + _ = yym2391 if false { } else { - r.EncodeInt(int64(yy2382)) + r.EncodeInt(int64(yy2390)) } } } else { r.EncodeNil() } } else { - if yyq2380[0] { + if yyq2388[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy2384 := *x.Replicas - yym2385 := z.EncBinary() - _ = yym2385 + yy2392 := *x.Replicas + yym2393 := z.EncBinary() + _ = yym2393 if false { } else { - r.EncodeInt(int64(yy2384)) + r.EncodeInt(int64(yy2392)) } } } } - if yyr2380 || yy2arr2380 { + if yyr2388 || yy2arr2388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2380[1] { - yym2387 := z.EncBinary() - _ = yym2387 + if yyq2388[1] { + yym2395 := z.EncBinary() + _ = yym2395 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -31544,26 +31664,26 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2380[1] { + if yyq2388[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2388 := z.EncBinary() - _ = yym2388 + yym2396 := z.EncBinary() + _ = yym2396 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } } - if yyr2380 || yy2arr2380 { + if yyr2388 || yy2arr2388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2380[2] { + if yyq2388[2] { if x.Selector == nil { r.EncodeNil() } else { - yym2390 := z.EncBinary() - _ = yym2390 + yym2398 := z.EncBinary() + _ = yym2398 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31573,15 +31693,15 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2380[2] { + if yyq2388[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym2391 := z.EncBinary() - _ = yym2391 + yym2399 := z.EncBinary() + _ = yym2399 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31589,9 +31709,9 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2380 || yy2arr2380 { + if yyr2388 || yy2arr2388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2380[3] { + if yyq2388[3] { if x.Template == nil { r.EncodeNil() } else { @@ -31601,7 +31721,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2380[3] { + if yyq2388[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -31612,7 +31732,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2380 || yy2arr2380 { + if yyr2388 || yy2arr2388 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31625,25 +31745,25 @@ func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2393 := z.DecBinary() - _ = yym2393 + yym2401 := z.DecBinary() + _ = yym2401 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2394 := r.ContainerType() - if yyct2394 == codecSelferValueTypeMap1234 { - yyl2394 := r.ReadMapStart() - if yyl2394 == 0 { + yyct2402 := r.ContainerType() + if yyct2402 == codecSelferValueTypeMap1234 { + yyl2402 := r.ReadMapStart() + if yyl2402 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2394, d) + x.codecDecodeSelfFromMap(yyl2402, d) } - } else if yyct2394 == codecSelferValueTypeArray1234 { - yyl2394 := r.ReadArrayStart() - if yyl2394 == 0 { + } else if yyct2402 == codecSelferValueTypeArray1234 { + yyl2402 := r.ReadArrayStart() + if yyl2402 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2394, d) + x.codecDecodeSelfFromArray(yyl2402, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31655,12 +31775,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2395Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2395Slc - var yyhl2395 bool = l >= 0 - for yyj2395 := 0; ; yyj2395++ { - if yyhl2395 { - if yyj2395 >= l { + var yys2403Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2403Slc + var yyhl2403 bool = l >= 0 + for yyj2403 := 0; ; yyj2403++ { + if yyhl2403 { + if yyj2403 >= l { break } } else { @@ -31669,10 +31789,10 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2395Slc = r.DecodeBytes(yys2395Slc, true, true) - yys2395 := string(yys2395Slc) + yys2403Slc = r.DecodeBytes(yys2403Slc, true, true) + yys2403 := string(yys2403Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2395 { + switch yys2403 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -31682,8 +31802,8 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Replicas == nil { x.Replicas = new(int32) } - yym2397 := z.DecBinary() - _ = yym2397 + yym2405 := z.DecBinary() + _ = yym2405 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -31699,12 +31819,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2399 := &x.Selector - yym2400 := z.DecBinary() - _ = yym2400 + yyv2407 := &x.Selector + yym2408 := z.DecBinary() + _ = yym2408 if false { } else { - z.F.DecMapStringStringX(yyv2399, false, d) + z.F.DecMapStringStringX(yyv2407, false, d) } } case "template": @@ -31719,9 +31839,9 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.Template.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2395) - } // end switch yys2395 - } // end for yyj2395 + z.DecStructFieldNotFound(-1, yys2403) + } // end switch yys2403 + } // end for yyj2403 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31729,16 +31849,16 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2402 int - var yyb2402 bool - var yyhl2402 bool = l >= 0 - yyj2402++ - if yyhl2402 { - yyb2402 = yyj2402 > l + var yyj2410 int + var yyb2410 bool + var yyhl2410 bool = l >= 0 + yyj2410++ + if yyhl2410 { + yyb2410 = yyj2410 > l } else { - yyb2402 = r.CheckBreak() + yyb2410 = r.CheckBreak() } - if yyb2402 { + if yyb2410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31751,20 +31871,20 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Replicas == nil { x.Replicas = new(int32) } - yym2404 := z.DecBinary() - _ = yym2404 + yym2412 := z.DecBinary() + _ = yym2412 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj2402++ - if yyhl2402 { - yyb2402 = yyj2402 > l + yyj2410++ + if yyhl2410 { + yyb2410 = yyj2410 > l } else { - yyb2402 = r.CheckBreak() + yyb2410 = r.CheckBreak() } - if yyb2402 { + if yyb2410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31774,13 +31894,13 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj2402++ - if yyhl2402 { - yyb2402 = yyj2402 > l + yyj2410++ + if yyhl2410 { + yyb2410 = yyj2410 > l } else { - yyb2402 = r.CheckBreak() + yyb2410 = r.CheckBreak() } - if yyb2402 { + if yyb2410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31788,21 +31908,21 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2406 := &x.Selector - yym2407 := z.DecBinary() - _ = yym2407 + yyv2414 := &x.Selector + yym2415 := z.DecBinary() + _ = yym2415 if false { } else { - z.F.DecMapStringStringX(yyv2406, false, d) + z.F.DecMapStringStringX(yyv2414, false, d) } } - yyj2402++ - if yyhl2402 { - yyb2402 = yyj2402 > l + yyj2410++ + if yyhl2410 { + yyb2410 = yyj2410 > l } else { - yyb2402 = r.CheckBreak() + yyb2410 = r.CheckBreak() } - if yyb2402 { + if yyb2410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31818,17 +31938,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj2402++ - if yyhl2402 { - yyb2402 = yyj2402 > l + yyj2410++ + if yyhl2410 { + yyb2410 = yyj2410 > l } else { - yyb2402 = r.CheckBreak() + yyb2410 = r.CheckBreak() } - if yyb2402 { + if yyb2410 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2402-1, "") + z.DecStructFieldNotFound(yyj2410-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31840,38 +31960,38 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2409 := z.EncBinary() - _ = yym2409 + yym2417 := z.EncBinary() + _ = yym2417 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2418 := !z.EncBinary() + yy2arr2418 := z.EncBasicHandle().StructToArray + var yyq2418 [6]bool + _, _, _ = yysep2418, yyq2418, yy2arr2418 + const yyr2418 bool = false + yyq2418[1] = x.FullyLabeledReplicas != 0 + yyq2418[2] = x.ReadyReplicas != 0 + yyq2418[3] = x.AvailableReplicas != 0 + yyq2418[4] = x.ObservedGeneration != 0 + yyq2418[5] = len(x.Conditions) != 0 + var yynn2418 int + if yyr2418 || yy2arr2418 { r.EncodeArrayStart(6) } else { - yynn2410 = 1 - for _, b := range yyq2410 { + yynn2418 = 1 + for _, b := range yyq2418 { if b { - yynn2410++ + yynn2418++ } } - r.EncodeMapStart(yynn2410) - yynn2410 = 0 + r.EncodeMapStart(yynn2418) + yynn2418 = 0 } - if yyr2410 || yy2arr2410 { + if yyr2418 || yy2arr2418 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2412 := z.EncBinary() - _ = yym2412 + yym2420 := z.EncBinary() + _ = yym2420 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -31880,18 +32000,18 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2413 := z.EncBinary() - _ = yym2413 + yym2421 := z.EncBinary() + _ = yym2421 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2410 || yy2arr2410 { + if yyr2418 || yy2arr2418 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2410[1] { - yym2415 := z.EncBinary() - _ = yym2415 + if yyq2418[1] { + yym2423 := z.EncBinary() + _ = yym2423 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -31900,74 +32020,74 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2410[1] { + if yyq2418[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2416 := z.EncBinary() - _ = yym2416 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } - } - if yyr2410 || yy2arr2410 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2410[2] { - yym2418 := z.EncBinary() - _ = yym2418 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2410[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2419 := z.EncBinary() - _ = yym2419 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } - } - if yyr2410 || yy2arr2410 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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.FullyLabeledReplicas)) + } + } + } + if yyr2418 || yy2arr2418 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2418[2] { + yym2426 := z.EncBinary() + _ = yym2426 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2418[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2427 := z.EncBinary() + _ = yym2427 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr2418 || yy2arr2418 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2418[3] { + yym2429 := z.EncBinary() + _ = yym2429 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2418[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2430 := z.EncBinary() + _ = yym2430 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr2418 || yy2arr2418 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2418[4] { + yym2432 := z.EncBinary() + _ = yym2432 + if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } @@ -31975,26 +32095,26 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2410[4] { + if yyq2418[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2425 := z.EncBinary() - _ = yym2425 + yym2433 := z.EncBinary() + _ = yym2433 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2410 || yy2arr2410 { + if yyr2418 || yy2arr2418 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2410[5] { + if yyq2418[5] { if x.Conditions == nil { r.EncodeNil() } else { - yym2427 := z.EncBinary() - _ = yym2427 + yym2435 := z.EncBinary() + _ = yym2435 if false { } else { h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) @@ -32004,15 +32124,15 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2410[5] { + if yyq2418[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 + yym2436 := z.EncBinary() + _ = yym2436 if false { } else { h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) @@ -32020,7 +32140,7 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2410 || yy2arr2410 { + if yyr2418 || yy2arr2418 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32033,25 +32153,25 @@ func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2429 := z.DecBinary() - _ = yym2429 + yym2437 := z.DecBinary() + _ = yym2437 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2430 := r.ContainerType() - if yyct2430 == codecSelferValueTypeMap1234 { - yyl2430 := r.ReadMapStart() - if yyl2430 == 0 { + yyct2438 := r.ContainerType() + if yyct2438 == codecSelferValueTypeMap1234 { + yyl2438 := r.ReadMapStart() + if yyl2438 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2430, d) + x.codecDecodeSelfFromMap(yyl2438, d) } - } else if yyct2430 == codecSelferValueTypeArray1234 { - yyl2430 := r.ReadArrayStart() - if yyl2430 == 0 { + } else if yyct2438 == codecSelferValueTypeArray1234 { + yyl2438 := r.ReadArrayStart() + if yyl2438 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2430, d) + x.codecDecodeSelfFromArray(yyl2438, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32063,12 +32183,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2431Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2431Slc - var yyhl2431 bool = l >= 0 - for yyj2431 := 0; ; yyj2431++ { - if yyhl2431 { - if yyj2431 >= l { + var yys2439Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2439Slc + var yyhl2439 bool = l >= 0 + for yyj2439 := 0; ; yyj2439++ { + if yyhl2439 { + if yyj2439 >= l { break } } else { @@ -32077,10 +32197,10 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2431Slc = r.DecodeBytes(yys2431Slc, true, true) - yys2431 := string(yys2431Slc) + yys2439Slc = r.DecodeBytes(yys2439Slc, true, true) + yys2439 := string(yys2439Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2431 { + switch yys2439 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -32115,18 +32235,18 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2437 := &x.Conditions - yym2438 := z.DecBinary() - _ = yym2438 + yyv2445 := &x.Conditions + yym2446 := z.DecBinary() + _ = yym2446 if false { } else { - h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2437), d) + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2445), d) } } default: - z.DecStructFieldNotFound(-1, yys2431) - } // end switch yys2431 - } // end for yyj2431 + z.DecStructFieldNotFound(-1, yys2439) + } // end switch yys2439 + } // end for yyj2439 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32134,16 +32254,16 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2439 int - var yyb2439 bool - var yyhl2439 bool = l >= 0 - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + var yyj2447 int + var yyb2447 bool + var yyhl2447 bool = l >= 0 + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32153,13 +32273,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32169,13 +32289,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32185,13 +32305,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32201,13 +32321,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32217,13 +32337,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32231,26 +32351,26 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2445 := &x.Conditions - yym2446 := z.DecBinary() - _ = yym2446 + yyv2453 := &x.Conditions + yym2454 := z.DecBinary() + _ = yym2454 if false { } else { - h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2445), d) + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2453), d) } } for { - yyj2439++ - if yyhl2439 { - yyb2439 = yyj2439 > l + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l } else { - yyb2439 = r.CheckBreak() + yyb2447 = r.CheckBreak() } - if yyb2439 { + if yyb2447 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2439-1, "") + z.DecStructFieldNotFound(yyj2447-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32259,8 +32379,8 @@ func (x ReplicationControllerConditionType) CodecEncodeSelf(e *codec1978.Encoder var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2447 := z.EncBinary() - _ = yym2447 + yym2455 := z.EncBinary() + _ = yym2455 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -32272,8 +32392,8 @@ func (x *ReplicationControllerConditionType) CodecDecodeSelf(d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2448 := z.DecBinary() - _ = yym2448 + yym2456 := z.DecBinary() + _ = yym2456 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -32288,33 +32408,33 @@ func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2449 := z.EncBinary() - _ = yym2449 + yym2457 := z.EncBinary() + _ = yym2457 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2458 := !z.EncBinary() + yy2arr2458 := z.EncBasicHandle().StructToArray + var yyq2458 [5]bool + _, _, _ = yysep2458, yyq2458, yy2arr2458 + const yyr2458 bool = false + yyq2458[2] = true + yyq2458[3] = x.Reason != "" + yyq2458[4] = x.Message != "" + var yynn2458 int + if yyr2458 || yy2arr2458 { r.EncodeArrayStart(5) } else { - yynn2450 = 2 - for _, b := range yyq2450 { + yynn2458 = 2 + for _, b := range yyq2458 { if b { - yynn2450++ + yynn2458++ } } - r.EncodeMapStart(yynn2450) - yynn2450 = 0 + r.EncodeMapStart(yynn2458) + yynn2458 = 0 } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -32323,7 +32443,7 @@ func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -32332,48 +32452,48 @@ func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2450[2] { - yy2454 := &x.LastTransitionTime - yym2455 := z.EncBinary() - _ = yym2455 + if yyq2458[2] { + yy2462 := &x.LastTransitionTime + yym2463 := z.EncBinary() + _ = yym2463 if false { - } else if z.HasExtensions() && z.EncExt(yy2454) { - } else if yym2455 { - z.EncBinaryMarshal(yy2454) - } else if !yym2455 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2454) + } else if z.HasExtensions() && z.EncExt(yy2462) { + } else if yym2463 { + z.EncBinaryMarshal(yy2462) + } else if !yym2463 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2462) } else { - z.EncFallback(yy2454) + z.EncFallback(yy2462) } } else { r.EncodeNil() } } else { - if yyq2450[2] { + if yyq2458[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2456 := &x.LastTransitionTime - yym2457 := z.EncBinary() - _ = yym2457 + yy2464 := &x.LastTransitionTime + yym2465 := z.EncBinary() + _ = yym2465 if false { - } else if z.HasExtensions() && z.EncExt(yy2456) { - } else if yym2457 { - z.EncBinaryMarshal(yy2456) - } else if !yym2457 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2456) + } else if z.HasExtensions() && z.EncExt(yy2464) { + } else if yym2465 { + z.EncBinaryMarshal(yy2464) + } else if !yym2465 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2464) } else { - z.EncFallback(yy2456) + z.EncFallback(yy2464) } } } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2450[3] { - yym2459 := z.EncBinary() - _ = yym2459 + if yyq2458[3] { + yym2467 := z.EncBinary() + _ = yym2467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -32382,23 +32502,23 @@ func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2450[3] { + if yyq2458[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2460 := z.EncBinary() - _ = yym2460 + yym2468 := z.EncBinary() + _ = yym2468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2450[4] { - yym2462 := z.EncBinary() - _ = yym2462 + if yyq2458[4] { + yym2470 := z.EncBinary() + _ = yym2470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -32407,19 +32527,19 @@ func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2450[4] { + if yyq2458[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2463 := z.EncBinary() - _ = yym2463 + yym2471 := z.EncBinary() + _ = yym2471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2450 || yy2arr2450 { + if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32432,25 +32552,25 @@ func (x *ReplicationControllerCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2464 := z.DecBinary() - _ = yym2464 + yym2472 := z.DecBinary() + _ = yym2472 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2465 := r.ContainerType() - if yyct2465 == codecSelferValueTypeMap1234 { - yyl2465 := r.ReadMapStart() - if yyl2465 == 0 { + yyct2473 := r.ContainerType() + if yyct2473 == codecSelferValueTypeMap1234 { + yyl2473 := r.ReadMapStart() + if yyl2473 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2465, d) + x.codecDecodeSelfFromMap(yyl2473, d) } - } else if yyct2465 == codecSelferValueTypeArray1234 { - yyl2465 := r.ReadArrayStart() - if yyl2465 == 0 { + } else if yyct2473 == codecSelferValueTypeArray1234 { + yyl2473 := r.ReadArrayStart() + if yyl2473 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2465, d) + x.codecDecodeSelfFromArray(yyl2473, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32462,12 +32582,12 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2466Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2466Slc - var yyhl2466 bool = l >= 0 - for yyj2466 := 0; ; yyj2466++ { - if yyhl2466 { - if yyj2466 >= l { + var yys2474Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2474Slc + var yyhl2474 bool = l >= 0 + for yyj2474 := 0; ; yyj2474++ { + if yyhl2474 { + if yyj2474 >= l { break } } else { @@ -32476,10 +32596,10 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2466Slc = r.DecodeBytes(yys2466Slc, true, true) - yys2466 := string(yys2466Slc) + yys2474Slc = r.DecodeBytes(yys2474Slc, true, true) + yys2474 := string(yys2474Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2466 { + switch yys2474 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -32496,17 +32616,17 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1 if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_v1.Time{} } else { - yyv2469 := &x.LastTransitionTime - yym2470 := z.DecBinary() - _ = yym2470 + yyv2477 := &x.LastTransitionTime + yym2478 := z.DecBinary() + _ = yym2478 if false { - } else if z.HasExtensions() && z.DecExt(yyv2469) { - } else if yym2470 { - z.DecBinaryUnmarshal(yyv2469) - } else if !yym2470 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2469) + } else if z.HasExtensions() && z.DecExt(yyv2477) { + } else if yym2478 { + z.DecBinaryUnmarshal(yyv2477) + } else if !yym2478 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2477) } else { - z.DecFallback(yyv2469, false) + z.DecFallback(yyv2477, false) } } case "reason": @@ -32522,9 +32642,9 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1 x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2466) - } // end switch yys2466 - } // end for yyj2466 + z.DecStructFieldNotFound(-1, yys2474) + } // end switch yys2474 + } // end for yyj2474 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32532,16 +32652,16 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2473 int - var yyb2473 bool - var yyhl2473 bool = l >= 0 - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + var yyj2481 int + var yyb2481 bool + var yyhl2481 bool = l >= 0 + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32551,13 +32671,13 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code } else { x.Type = ReplicationControllerConditionType(r.DecodeString()) } - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32567,13 +32687,13 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32581,26 +32701,26 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_v1.Time{} } else { - yyv2476 := &x.LastTransitionTime - yym2477 := z.DecBinary() - _ = yym2477 + yyv2484 := &x.LastTransitionTime + yym2485 := z.DecBinary() + _ = yym2485 if false { - } else if z.HasExtensions() && z.DecExt(yyv2476) { - } else if yym2477 { - z.DecBinaryUnmarshal(yyv2476) - } else if !yym2477 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2476) + } else if z.HasExtensions() && z.DecExt(yyv2484) { + } else if yym2485 { + z.DecBinaryUnmarshal(yyv2484) + } else if !yym2485 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2484) } else { - z.DecFallback(yyv2476, false) + z.DecFallback(yyv2484, false) } } - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32610,13 +32730,13 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code } else { x.Reason = string(r.DecodeString()) } - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32627,17 +32747,17 @@ func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *code x.Message = string(r.DecodeString()) } for { - yyj2473++ - if yyhl2473 { - yyb2473 = yyj2473 > l + yyj2481++ + if yyhl2481 { + yyb2481 = yyj2481 > l } else { - yyb2473 = r.CheckBreak() + yyb2481 = r.CheckBreak() } - if yyb2473 { + if yyb2481 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2473-1, "") + z.DecStructFieldNotFound(yyj2481-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32649,39 +32769,39 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2480 := z.EncBinary() - _ = yym2480 + yym2488 := z.EncBinary() + _ = yym2488 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 { + yysep2489 := !z.EncBinary() + yy2arr2489 := z.EncBasicHandle().StructToArray + var yyq2489 [5]bool + _, _, _ = yysep2489, yyq2489, yy2arr2489 + const yyr2489 bool = false + yyq2489[0] = x.Kind != "" + yyq2489[1] = x.APIVersion != "" + yyq2489[2] = true + yyq2489[3] = true + yyq2489[4] = true + var yynn2489 int + if yyr2489 || yy2arr2489 { r.EncodeArrayStart(5) } else { - yynn2481 = 0 - for _, b := range yyq2481 { + yynn2489 = 0 + for _, b := range yyq2489 { if b { - yynn2481++ + yynn2489++ } } - r.EncodeMapStart(yynn2481) - yynn2481 = 0 + r.EncodeMapStart(yynn2489) + yynn2489 = 0 } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2481[0] { - yym2483 := z.EncBinary() - _ = yym2483 + if yyq2489[0] { + yym2491 := z.EncBinary() + _ = yym2491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32690,23 +32810,23 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2481[0] { + if yyq2489[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2484 := z.EncBinary() - _ = yym2484 + yym2492 := z.EncBinary() + _ = yym2492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2481[1] { - yym2486 := z.EncBinary() - _ = yym2486 + if yyq2489[1] { + yym2494 := z.EncBinary() + _ = yym2494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32715,70 +32835,70 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2481[1] { + if yyq2489[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2487 := z.EncBinary() - _ = yym2487 + yym2495 := z.EncBinary() + _ = yym2495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2481[2] { - yy2489 := &x.ObjectMeta - yy2489.CodecEncodeSelf(e) + if yyq2489[2] { + yy2497 := &x.ObjectMeta + yy2497.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2481[2] { + if yyq2489[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2490 := &x.ObjectMeta - yy2490.CodecEncodeSelf(e) + yy2498 := &x.ObjectMeta + yy2498.CodecEncodeSelf(e) } } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2481[3] { - yy2492 := &x.Spec - yy2492.CodecEncodeSelf(e) + if yyq2489[3] { + yy2500 := &x.Spec + yy2500.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2481[3] { + if yyq2489[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2493 := &x.Spec - yy2493.CodecEncodeSelf(e) + yy2501 := &x.Spec + yy2501.CodecEncodeSelf(e) } } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2481[4] { - yy2495 := &x.Status - yy2495.CodecEncodeSelf(e) + if yyq2489[4] { + yy2503 := &x.Status + yy2503.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2481[4] { + if yyq2489[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2496 := &x.Status - yy2496.CodecEncodeSelf(e) + yy2504 := &x.Status + yy2504.CodecEncodeSelf(e) } } - if yyr2481 || yy2arr2481 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32791,25 +32911,25 @@ func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2497 := z.DecBinary() - _ = yym2497 + yym2505 := z.DecBinary() + _ = yym2505 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2498 := r.ContainerType() - if yyct2498 == codecSelferValueTypeMap1234 { - yyl2498 := r.ReadMapStart() - if yyl2498 == 0 { + yyct2506 := r.ContainerType() + if yyct2506 == codecSelferValueTypeMap1234 { + yyl2506 := r.ReadMapStart() + if yyl2506 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2498, d) + x.codecDecodeSelfFromMap(yyl2506, d) } - } else if yyct2498 == codecSelferValueTypeArray1234 { - yyl2498 := r.ReadArrayStart() - if yyl2498 == 0 { + } else if yyct2506 == codecSelferValueTypeArray1234 { + yyl2506 := r.ReadArrayStart() + if yyl2506 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2498, d) + x.codecDecodeSelfFromArray(yyl2506, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32821,12 +32941,12 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod 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 { + var yys2507Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2507Slc + var yyhl2507 bool = l >= 0 + for yyj2507 := 0; ; yyj2507++ { + if yyhl2507 { + if yyj2507 >= l { break } } else { @@ -32835,10 +32955,10 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2499Slc = r.DecodeBytes(yys2499Slc, true, true) - yys2499 := string(yys2499Slc) + yys2507Slc = r.DecodeBytes(yys2507Slc, true, true) + yys2507 := string(yys2507Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2499 { + switch yys2507 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -32855,27 +32975,27 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2502 := &x.ObjectMeta - yyv2502.CodecDecodeSelf(d) + yyv2510 := &x.ObjectMeta + yyv2510.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { - yyv2503 := &x.Spec - yyv2503.CodecDecodeSelf(d) + yyv2511 := &x.Spec + yyv2511.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { - yyv2504 := &x.Status - yyv2504.CodecDecodeSelf(d) + yyv2512 := &x.Status + yyv2512.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2499) - } // end switch yys2499 - } // end for yyj2499 + z.DecStructFieldNotFound(-1, yys2507) + } // end switch yys2507 + } // end for yyj2507 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32883,16 +33003,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec 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 + var yyj2513 int + var yyb2513 bool + var yyhl2513 bool = l >= 0 + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32902,13 +33022,13 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj2505++ - if yyhl2505 { - yyb2505 = yyj2505 > l + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32918,13 +33038,13 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj2505++ - if yyhl2505 { - yyb2505 = yyj2505 > l + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32932,16 +33052,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2508 := &x.ObjectMeta - yyv2508.CodecDecodeSelf(d) + yyv2516 := &x.ObjectMeta + yyv2516.CodecDecodeSelf(d) } - yyj2505++ - if yyhl2505 { - yyb2505 = yyj2505 > l + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32949,16 +33069,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { - yyv2509 := &x.Spec - yyv2509.CodecDecodeSelf(d) + yyv2517 := &x.Spec + yyv2517.CodecDecodeSelf(d) } - yyj2505++ - if yyhl2505 { - yyb2505 = yyj2505 > l + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32966,21 +33086,21 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { - yyv2510 := &x.Status - yyv2510.CodecDecodeSelf(d) + yyv2518 := &x.Status + yyv2518.CodecDecodeSelf(d) } for { - yyj2505++ - if yyhl2505 { - yyb2505 = yyj2505 > l + yyj2513++ + if yyhl2513 { + yyb2513 = yyj2513 > l } else { - yyb2505 = r.CheckBreak() + yyb2513 = r.CheckBreak() } - if yyb2505 { + if yyb2513 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2505-1, "") + z.DecStructFieldNotFound(yyj2513-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32992,37 +33112,37 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2511 := z.EncBinary() - _ = yym2511 + yym2519 := z.EncBinary() + _ = yym2519 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 { + yysep2520 := !z.EncBinary() + yy2arr2520 := z.EncBasicHandle().StructToArray + var yyq2520 [4]bool + _, _, _ = yysep2520, yyq2520, yy2arr2520 + const yyr2520 bool = false + yyq2520[0] = x.Kind != "" + yyq2520[1] = x.APIVersion != "" + yyq2520[2] = true + var yynn2520 int + if yyr2520 || yy2arr2520 { r.EncodeArrayStart(4) } else { - yynn2512 = 1 - for _, b := range yyq2512 { + yynn2520 = 1 + for _, b := range yyq2520 { if b { - yynn2512++ + yynn2520++ } } - r.EncodeMapStart(yynn2512) - yynn2512 = 0 + r.EncodeMapStart(yynn2520) + yynn2520 = 0 } - if yyr2512 || yy2arr2512 { + if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2512[0] { - yym2514 := z.EncBinary() - _ = yym2514 + if yyq2520[0] { + yym2522 := z.EncBinary() + _ = yym2522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33031,23 +33151,23 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2512[0] { + if yyq2520[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2515 := z.EncBinary() - _ = yym2515 + yym2523 := z.EncBinary() + _ = yym2523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2512 || yy2arr2512 { + if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2512[1] { - yym2517 := z.EncBinary() - _ = yym2517 + if yyq2520[1] { + yym2525 := z.EncBinary() + _ = yym2525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33056,54 +33176,54 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2512[1] { + if yyq2520[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2518 := z.EncBinary() - _ = yym2518 + yym2526 := z.EncBinary() + _ = yym2526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2512 || yy2arr2512 { + if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2512[2] { - yy2520 := &x.ListMeta - yym2521 := z.EncBinary() - _ = yym2521 + if yyq2520[2] { + yy2528 := &x.ListMeta + yym2529 := z.EncBinary() + _ = yym2529 if false { - } else if z.HasExtensions() && z.EncExt(yy2520) { + } else if z.HasExtensions() && z.EncExt(yy2528) { } else { - z.EncFallback(yy2520) + z.EncFallback(yy2528) } } else { r.EncodeNil() } } else { - if yyq2512[2] { + if yyq2520[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2522 := &x.ListMeta - yym2523 := z.EncBinary() - _ = yym2523 + yy2530 := &x.ListMeta + yym2531 := z.EncBinary() + _ = yym2531 if false { - } else if z.HasExtensions() && z.EncExt(yy2522) { + } else if z.HasExtensions() && z.EncExt(yy2530) { } else { - z.EncFallback(yy2522) + z.EncFallback(yy2530) } } } - if yyr2512 || yy2arr2512 { + if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2525 := z.EncBinary() - _ = yym2525 + yym2533 := z.EncBinary() + _ = yym2533 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) @@ -33116,15 +33236,15 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2526 := z.EncBinary() - _ = yym2526 + yym2534 := z.EncBinary() + _ = yym2534 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } - if yyr2512 || yy2arr2512 { + if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33137,25 +33257,25 @@ func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2527 := z.DecBinary() - _ = yym2527 + yym2535 := z.DecBinary() + _ = yym2535 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2528 := r.ContainerType() - if yyct2528 == codecSelferValueTypeMap1234 { - yyl2528 := r.ReadMapStart() - if yyl2528 == 0 { + yyct2536 := r.ContainerType() + if yyct2536 == codecSelferValueTypeMap1234 { + yyl2536 := r.ReadMapStart() + if yyl2536 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2528, d) + x.codecDecodeSelfFromMap(yyl2536, d) } - } else if yyct2528 == codecSelferValueTypeArray1234 { - yyl2528 := r.ReadArrayStart() - if yyl2528 == 0 { + } else if yyct2536 == codecSelferValueTypeArray1234 { + yyl2536 := r.ReadArrayStart() + if yyl2536 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2528, d) + x.codecDecodeSelfFromArray(yyl2536, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33167,12 +33287,12 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D 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 { + var yys2537Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2537Slc + var yyhl2537 bool = l >= 0 + for yyj2537 := 0; ; yyj2537++ { + if yyhl2537 { + if yyj2537 >= l { break } } else { @@ -33181,10 +33301,10 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2529Slc = r.DecodeBytes(yys2529Slc, true, true) - yys2529 := string(yys2529Slc) + yys2537Slc = r.DecodeBytes(yys2537Slc, true, true) + yys2537 := string(yys2537Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2529 { + switch yys2537 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33201,31 +33321,31 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2532 := &x.ListMeta - yym2533 := z.DecBinary() - _ = yym2533 + yyv2540 := &x.ListMeta + yym2541 := z.DecBinary() + _ = yym2541 if false { - } else if z.HasExtensions() && z.DecExt(yyv2532) { + } else if z.HasExtensions() && z.DecExt(yyv2540) { } else { - z.DecFallback(yyv2532, false) + z.DecFallback(yyv2540, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2534 := &x.Items - yym2535 := z.DecBinary() - _ = yym2535 + yyv2542 := &x.Items + yym2543 := z.DecBinary() + _ = yym2543 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2534), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2542), d) } } default: - z.DecStructFieldNotFound(-1, yys2529) - } // end switch yys2529 - } // end for yyj2529 + z.DecStructFieldNotFound(-1, yys2537) + } // end switch yys2537 + } // end for yyj2537 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33233,16 +33353,16 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 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 + var yyj2544 int + var yyb2544 bool + var yyhl2544 bool = l >= 0 + yyj2544++ + if yyhl2544 { + yyb2544 = yyj2544 > l } else { - yyb2536 = r.CheckBreak() + yyb2544 = r.CheckBreak() } - if yyb2536 { + if yyb2544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33252,13 +33372,13 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj2536++ - if yyhl2536 { - yyb2536 = yyj2536 > l + yyj2544++ + if yyhl2544 { + yyb2544 = yyj2544 > l } else { - yyb2536 = r.CheckBreak() + yyb2544 = r.CheckBreak() } - if yyb2536 { + if yyb2544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33268,13 +33388,13 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj2536++ - if yyhl2536 { - yyb2536 = yyj2536 > l + yyj2544++ + if yyhl2544 { + yyb2544 = yyj2544 > l } else { - yyb2536 = r.CheckBreak() + yyb2544 = r.CheckBreak() } - if yyb2536 { + if yyb2544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33282,22 +33402,22 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2539 := &x.ListMeta - yym2540 := z.DecBinary() - _ = yym2540 + yyv2547 := &x.ListMeta + yym2548 := z.DecBinary() + _ = yym2548 if false { - } else if z.HasExtensions() && z.DecExt(yyv2539) { + } else if z.HasExtensions() && z.DecExt(yyv2547) { } else { - z.DecFallback(yyv2539, false) + z.DecFallback(yyv2547, false) } } - yyj2536++ - if yyhl2536 { - yyb2536 = yyj2536 > l + yyj2544++ + if yyhl2544 { + yyb2544 = yyj2544 > l } else { - yyb2536 = r.CheckBreak() + yyb2544 = r.CheckBreak() } - if yyb2536 { + if yyb2544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33305,26 +33425,26 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2541 := &x.Items - yym2542 := z.DecBinary() - _ = yym2542 + yyv2549 := &x.Items + yym2550 := z.DecBinary() + _ = yym2550 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2541), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2549), d) } } for { - yyj2536++ - if yyhl2536 { - yyb2536 = yyj2536 > l + yyj2544++ + if yyhl2544 { + yyb2544 = yyj2544 > l } else { - yyb2536 = r.CheckBreak() + yyb2544 = r.CheckBreak() } - if yyb2536 { + if yyb2544 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2536-1, "") + z.DecStructFieldNotFound(yyj2544-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33333,8 +33453,8 @@ func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2543 := z.EncBinary() - _ = yym2543 + yym2551 := z.EncBinary() + _ = yym2551 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -33346,8 +33466,8 @@ func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2544 := z.DecBinary() - _ = yym2544 + yym2552 := z.DecBinary() + _ = yym2552 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -33359,8 +33479,8 @@ func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2545 := z.EncBinary() - _ = yym2545 + yym2553 := z.EncBinary() + _ = yym2553 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -33372,8 +33492,8 @@ func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2546 := z.DecBinary() - _ = yym2546 + yym2554 := z.DecBinary() + _ = yym2554 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -33388,48 +33508,48 @@ func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2547 := z.EncBinary() - _ = yym2547 + yym2555 := z.EncBinary() + _ = yym2555 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 { + yysep2556 := !z.EncBinary() + yy2arr2556 := z.EncBasicHandle().StructToArray + var yyq2556 [1]bool + _, _, _ = yysep2556, yyq2556, yy2arr2556 + const yyr2556 bool = false + yyq2556[0] = true + var yynn2556 int + if yyr2556 || yy2arr2556 { r.EncodeArrayStart(1) } else { - yynn2548 = 0 - for _, b := range yyq2548 { + yynn2556 = 0 + for _, b := range yyq2556 { if b { - yynn2548++ + yynn2556++ } } - r.EncodeMapStart(yynn2548) - yynn2548 = 0 + r.EncodeMapStart(yynn2556) + yynn2556 = 0 } - if yyr2548 || yy2arr2548 { + if yyr2556 || yy2arr2556 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2548[0] { - yy2550 := &x.LoadBalancer - yy2550.CodecEncodeSelf(e) + if yyq2556[0] { + yy2558 := &x.LoadBalancer + yy2558.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2548[0] { + if yyq2556[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2551 := &x.LoadBalancer - yy2551.CodecEncodeSelf(e) + yy2559 := &x.LoadBalancer + yy2559.CodecEncodeSelf(e) } } - if yyr2548 || yy2arr2548 { + if yyr2556 || yy2arr2556 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33442,25 +33562,25 @@ func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2552 := z.DecBinary() - _ = yym2552 + yym2560 := z.DecBinary() + _ = yym2560 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2553 := r.ContainerType() - if yyct2553 == codecSelferValueTypeMap1234 { - yyl2553 := r.ReadMapStart() - if yyl2553 == 0 { + yyct2561 := r.ContainerType() + if yyct2561 == codecSelferValueTypeMap1234 { + yyl2561 := r.ReadMapStart() + if yyl2561 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2553, d) + x.codecDecodeSelfFromMap(yyl2561, d) } - } else if yyct2553 == codecSelferValueTypeArray1234 { - yyl2553 := r.ReadArrayStart() - if yyl2553 == 0 { + } else if yyct2561 == codecSelferValueTypeArray1234 { + yyl2561 := r.ReadArrayStart() + if yyl2561 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2553, d) + x.codecDecodeSelfFromArray(yyl2561, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33472,12 +33592,12 @@ 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 { + var yys2562Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2562Slc + var yyhl2562 bool = l >= 0 + for yyj2562 := 0; ; yyj2562++ { + if yyhl2562 { + if yyj2562 >= l { break } } else { @@ -33486,21 +33606,21 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2554Slc = r.DecodeBytes(yys2554Slc, true, true) - yys2554 := string(yys2554Slc) + yys2562Slc = r.DecodeBytes(yys2562Slc, true, true) + yys2562 := string(yys2562Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2554 { + switch yys2562 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv2555 := &x.LoadBalancer - yyv2555.CodecDecodeSelf(d) + yyv2563 := &x.LoadBalancer + yyv2563.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2554) - } // end switch yys2554 - } // end for yyj2554 + z.DecStructFieldNotFound(-1, yys2562) + } // end switch yys2562 + } // end for yyj2562 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33508,16 +33628,16 @@ 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 + var yyj2564 int + var yyb2564 bool + var yyhl2564 bool = l >= 0 + yyj2564++ + if yyhl2564 { + yyb2564 = yyj2564 > l } else { - yyb2556 = r.CheckBreak() + yyb2564 = r.CheckBreak() } - if yyb2556 { + if yyb2564 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33525,21 +33645,21 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv2557 := &x.LoadBalancer - yyv2557.CodecDecodeSelf(d) + yyv2565 := &x.LoadBalancer + yyv2565.CodecDecodeSelf(d) } for { - yyj2556++ - if yyhl2556 { - yyb2556 = yyj2556 > l + yyj2564++ + if yyhl2564 { + yyb2564 = yyj2564 > l } else { - yyb2556 = r.CheckBreak() + yyb2564 = r.CheckBreak() } - if yyb2556 { + if yyb2564 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2556-1, "") + z.DecStructFieldNotFound(yyj2564-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33551,38 +33671,38 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2558 := z.EncBinary() - _ = yym2558 + yym2566 := z.EncBinary() + _ = yym2566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2567 := !z.EncBinary() + yy2arr2567 := z.EncBasicHandle().StructToArray + var yyq2567 [1]bool + _, _, _ = yysep2567, yyq2567, yy2arr2567 + const yyr2567 bool = false + yyq2567[0] = len(x.Ingress) != 0 + var yynn2567 int + if yyr2567 || yy2arr2567 { r.EncodeArrayStart(1) } else { - yynn2559 = 0 - for _, b := range yyq2559 { + yynn2567 = 0 + for _, b := range yyq2567 { if b { - yynn2559++ + yynn2567++ } } - r.EncodeMapStart(yynn2559) - yynn2559 = 0 + r.EncodeMapStart(yynn2567) + yynn2567 = 0 } - if yyr2559 || yy2arr2559 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2559[0] { + if yyq2567[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym2561 := z.EncBinary() - _ = yym2561 + yym2569 := z.EncBinary() + _ = yym2569 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -33592,15 +33712,15 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2559[0] { + if yyq2567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym2562 := z.EncBinary() - _ = yym2562 + yym2570 := z.EncBinary() + _ = yym2570 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -33608,7 +33728,7 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2559 || yy2arr2559 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33621,25 +33741,25 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2563 := z.DecBinary() - _ = yym2563 + yym2571 := z.DecBinary() + _ = yym2571 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2564 := r.ContainerType() - if yyct2564 == codecSelferValueTypeMap1234 { - yyl2564 := r.ReadMapStart() - if yyl2564 == 0 { + yyct2572 := r.ContainerType() + if yyct2572 == codecSelferValueTypeMap1234 { + yyl2572 := r.ReadMapStart() + if yyl2572 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2564, d) + x.codecDecodeSelfFromMap(yyl2572, d) } - } else if yyct2564 == codecSelferValueTypeArray1234 { - yyl2564 := r.ReadArrayStart() - if yyl2564 == 0 { + } else if yyct2572 == codecSelferValueTypeArray1234 { + yyl2572 := r.ReadArrayStart() + if yyl2572 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2564, d) + x.codecDecodeSelfFromArray(yyl2572, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33651,12 +33771,12 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2565Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2565Slc - var yyhl2565 bool = l >= 0 - for yyj2565 := 0; ; yyj2565++ { - if yyhl2565 { - if yyj2565 >= l { + var yys2573Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2573Slc + var yyhl2573 bool = l >= 0 + for yyj2573 := 0; ; yyj2573++ { + if yyhl2573 { + if yyj2573 >= l { break } } else { @@ -33665,26 +33785,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2565Slc = r.DecodeBytes(yys2565Slc, true, true) - yys2565 := string(yys2565Slc) + yys2573Slc = r.DecodeBytes(yys2573Slc, true, true) + yys2573 := string(yys2573Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2565 { + switch yys2573 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2566 := &x.Ingress - yym2567 := z.DecBinary() - _ = yym2567 + yyv2574 := &x.Ingress + yym2575 := z.DecBinary() + _ = yym2575 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2566), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2574), d) } } default: - z.DecStructFieldNotFound(-1, yys2565) - } // end switch yys2565 - } // end for yyj2565 + z.DecStructFieldNotFound(-1, yys2573) + } // end switch yys2573 + } // end for yyj2573 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33692,16 +33812,16 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2568 int - var yyb2568 bool - var yyhl2568 bool = l >= 0 - yyj2568++ - if yyhl2568 { - yyb2568 = yyj2568 > l + var yyj2576 int + var yyb2576 bool + var yyhl2576 bool = l >= 0 + yyj2576++ + if yyhl2576 { + yyb2576 = yyj2576 > l } else { - yyb2568 = r.CheckBreak() + yyb2576 = r.CheckBreak() } - if yyb2568 { + if yyb2576 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33709,26 +33829,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2569 := &x.Ingress - yym2570 := z.DecBinary() - _ = yym2570 + yyv2577 := &x.Ingress + yym2578 := z.DecBinary() + _ = yym2578 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2569), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2577), d) } } for { - yyj2568++ - if yyhl2568 { - yyb2568 = yyj2568 > l + yyj2576++ + if yyhl2576 { + yyb2576 = yyj2576 > l } else { - yyb2568 = r.CheckBreak() + yyb2576 = r.CheckBreak() } - if yyb2568 { + if yyb2576 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2568-1, "") + z.DecStructFieldNotFound(yyj2576-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33740,36 +33860,36 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2571 := z.EncBinary() - _ = yym2571 + yym2579 := z.EncBinary() + _ = yym2579 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2580 := !z.EncBinary() + yy2arr2580 := z.EncBasicHandle().StructToArray + var yyq2580 [2]bool + _, _, _ = yysep2580, yyq2580, yy2arr2580 + const yyr2580 bool = false + yyq2580[0] = x.IP != "" + yyq2580[1] = x.Hostname != "" + var yynn2580 int + if yyr2580 || yy2arr2580 { r.EncodeArrayStart(2) } else { - yynn2572 = 0 - for _, b := range yyq2572 { + yynn2580 = 0 + for _, b := range yyq2580 { if b { - yynn2572++ + yynn2580++ } } - r.EncodeMapStart(yynn2572) - yynn2572 = 0 + r.EncodeMapStart(yynn2580) + yynn2580 = 0 } - if yyr2572 || yy2arr2572 { + if yyr2580 || yy2arr2580 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2572[0] { - yym2574 := z.EncBinary() - _ = yym2574 + if yyq2580[0] { + yym2582 := z.EncBinary() + _ = yym2582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -33778,23 +33898,23 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2572[0] { + if yyq2580[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2575 := z.EncBinary() - _ = yym2575 + yym2583 := z.EncBinary() + _ = yym2583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2572 || yy2arr2572 { + if yyr2580 || yy2arr2580 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2572[1] { - yym2577 := z.EncBinary() - _ = yym2577 + if yyq2580[1] { + yym2585 := z.EncBinary() + _ = yym2585 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -33803,19 +33923,19 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2572[1] { + if yyq2580[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2578 := z.EncBinary() - _ = yym2578 + yym2586 := z.EncBinary() + _ = yym2586 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2572 || yy2arr2572 { + if yyr2580 || yy2arr2580 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33828,25 +33948,25 @@ func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2579 := z.DecBinary() - _ = yym2579 + yym2587 := z.DecBinary() + _ = yym2587 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2580 := r.ContainerType() - if yyct2580 == codecSelferValueTypeMap1234 { - yyl2580 := r.ReadMapStart() - if yyl2580 == 0 { + yyct2588 := r.ContainerType() + if yyct2588 == codecSelferValueTypeMap1234 { + yyl2588 := r.ReadMapStart() + if yyl2588 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2580, d) + x.codecDecodeSelfFromMap(yyl2588, d) } - } else if yyct2580 == codecSelferValueTypeArray1234 { - yyl2580 := r.ReadArrayStart() - if yyl2580 == 0 { + } else if yyct2588 == codecSelferValueTypeArray1234 { + yyl2588 := r.ReadArrayStart() + if yyl2588 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2580, d) + x.codecDecodeSelfFromArray(yyl2588, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33858,12 +33978,12 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2581Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2581Slc - var yyhl2581 bool = l >= 0 - for yyj2581 := 0; ; yyj2581++ { - if yyhl2581 { - if yyj2581 >= l { + var yys2589Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2589Slc + var yyhl2589 bool = l >= 0 + for yyj2589 := 0; ; yyj2589++ { + if yyhl2589 { + if yyj2589 >= l { break } } else { @@ -33872,10 +33992,10 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2581Slc = r.DecodeBytes(yys2581Slc, true, true) - yys2581 := string(yys2581Slc) + yys2589Slc = r.DecodeBytes(yys2589Slc, true, true) + yys2589 := string(yys2589Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2581 { + switch yys2589 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -33889,9 +34009,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Hostname = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2581) - } // end switch yys2581 - } // end for yyj2581 + z.DecStructFieldNotFound(-1, yys2589) + } // end switch yys2589 + } // end for yyj2589 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33899,16 +34019,16 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2584 int - var yyb2584 bool - var yyhl2584 bool = l >= 0 - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + var yyj2592 int + var yyb2592 bool + var yyhl2592 bool = l >= 0 + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2584 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2584 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33918,13 +34038,13 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.IP = string(r.DecodeString()) } - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2584 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2584 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33935,17 +34055,17 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Hostname = string(r.DecodeString()) } for { - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2584 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2584 { + if yyb2592 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2584-1, "") + z.DecStructFieldNotFound(yyj2592-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33957,47 +34077,47 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2587 := z.EncBinary() - _ = yym2587 + yym2595 := z.EncBinary() + _ = yym2595 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2588 := !z.EncBinary() - yy2arr2588 := z.EncBasicHandle().StructToArray - var yyq2588 [10]bool - _, _, _ = yysep2588, yyq2588, yy2arr2588 - const yyr2588 bool = false - yyq2588[0] = len(x.Ports) != 0 - 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 { + yysep2596 := !z.EncBinary() + yy2arr2596 := z.EncBasicHandle().StructToArray + var yyq2596 [10]bool + _, _, _ = yysep2596, yyq2596, yy2arr2596 + const yyr2596 bool = false + yyq2596[0] = len(x.Ports) != 0 + yyq2596[1] = len(x.Selector) != 0 + yyq2596[2] = x.ClusterIP != "" + yyq2596[3] = x.Type != "" + yyq2596[4] = len(x.ExternalIPs) != 0 + yyq2596[5] = len(x.DeprecatedPublicIPs) != 0 + yyq2596[6] = x.SessionAffinity != "" + yyq2596[7] = x.LoadBalancerIP != "" + yyq2596[8] = len(x.LoadBalancerSourceRanges) != 0 + yyq2596[9] = x.ExternalName != "" + var yynn2596 int + if yyr2596 || yy2arr2596 { r.EncodeArrayStart(10) } else { - yynn2588 = 0 - for _, b := range yyq2588 { + yynn2596 = 0 + for _, b := range yyq2596 { if b { - yynn2588++ + yynn2596++ } } - r.EncodeMapStart(yynn2588) - yynn2588 = 0 + r.EncodeMapStart(yynn2596) + yynn2596 = 0 } - if yyr2588 || yy2arr2588 { + if yyr2596 || yy2arr2596 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[0] { + if yyq2596[0] { if x.Ports == nil { r.EncodeNil() } else { - yym2590 := z.EncBinary() - _ = yym2590 + yym2598 := z.EncBinary() + _ = yym2598 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -34007,15 +34127,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2588[0] { + if yyq2596[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym2591 := z.EncBinary() - _ = yym2591 + yym2599 := z.EncBinary() + _ = yym2599 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -34023,223 +34143,223 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2588 || yy2arr2588 { + if yyr2596 || yy2arr2596 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[1] { + if yyq2596[1] { if x.Selector == nil { r.EncodeNil() - } else { - yym2593 := z.EncBinary() - _ = yym2593 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2588[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2594 := z.EncBinary() - _ = yym2594 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[2] { - yym2596 := z.EncBinary() - _ = yym2596 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2588[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2597 := z.EncBinary() - _ = yym2597 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) - } - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[3] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2588[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[4] { - if x.ExternalIPs == nil { - r.EncodeNil() - } else { - yym2600 := z.EncBinary() - _ = yym2600 - if false { - } else { - z.F.EncSliceStringV(x.ExternalIPs, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2588[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ExternalIPs == nil { - r.EncodeNil() } else { yym2601 := z.EncBinary() _ = yym2601 if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2596[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym2602 := z.EncBinary() + _ = yym2602 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[2] { + yym2604 := z.EncBinary() + _ = yym2604 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2596[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2605 := z.EncBinary() + _ = yym2605 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) + } + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[3] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2596[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[4] { + if x.ExternalIPs == nil { + r.EncodeNil() + } else { + yym2608 := z.EncBinary() + _ = yym2608 + if false { + } else { + z.F.EncSliceStringV(x.ExternalIPs, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2596[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ExternalIPs == nil { + r.EncodeNil() + } else { + yym2609 := z.EncBinary() + _ = yym2609 + if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } - if yyr2588 || yy2arr2588 { + if yyr2596 || yy2arr2596 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[5] { + if yyq2596[5] { if x.DeprecatedPublicIPs == nil { r.EncodeNil() - } else { - yym2603 := z.EncBinary() - _ = yym2603 - if false { - } else { - z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2588[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deprecatedPublicIPs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DeprecatedPublicIPs == nil { - r.EncodeNil() - } else { - yym2604 := z.EncBinary() - _ = yym2604 - if false { - } else { - z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) - } - } - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[6] { - x.SessionAffinity.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2588[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.SessionAffinity.CodecEncodeSelf(e) - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[7] { - yym2607 := z.EncBinary() - _ = yym2607 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2588[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2608 := z.EncBinary() - _ = yym2608 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) - } - } - } - if yyr2588 || yy2arr2588 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[8] { - if x.LoadBalancerSourceRanges == nil { - r.EncodeNil() - } else { - yym2610 := z.EncBinary() - _ = yym2610 - if false { - } else { - z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2588[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LoadBalancerSourceRanges == nil { - r.EncodeNil() } else { yym2611 := z.EncBinary() _ = yym2611 if false { + } else { + z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2596[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deprecatedPublicIPs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeprecatedPublicIPs == nil { + r.EncodeNil() + } else { + yym2612 := z.EncBinary() + _ = yym2612 + if false { + } else { + z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) + } + } + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[6] { + x.SessionAffinity.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2596[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.SessionAffinity.CodecEncodeSelf(e) + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[7] { + yym2615 := z.EncBinary() + _ = yym2615 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2596[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2616 := z.EncBinary() + _ = yym2616 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) + } + } + } + if yyr2596 || yy2arr2596 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2596[8] { + if x.LoadBalancerSourceRanges == nil { + r.EncodeNil() + } else { + yym2618 := z.EncBinary() + _ = yym2618 + if false { + } else { + z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2596[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.LoadBalancerSourceRanges == nil { + r.EncodeNil() + } else { + yym2619 := z.EncBinary() + _ = yym2619 + if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } } - if yyr2588 || yy2arr2588 { + if yyr2596 || yy2arr2596 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2588[9] { - yym2613 := z.EncBinary() - _ = yym2613 + if yyq2596[9] { + yym2621 := z.EncBinary() + _ = yym2621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) @@ -34248,19 +34368,19 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2588[9] { + if yyq2596[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2614 := z.EncBinary() - _ = yym2614 + yym2622 := z.EncBinary() + _ = yym2622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) } } } - if yyr2588 || yy2arr2588 { + if yyr2596 || yy2arr2596 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34273,25 +34393,25 @@ func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2615 := z.DecBinary() - _ = yym2615 + yym2623 := z.DecBinary() + _ = yym2623 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2616 := r.ContainerType() - if yyct2616 == codecSelferValueTypeMap1234 { - yyl2616 := r.ReadMapStart() - if yyl2616 == 0 { + yyct2624 := r.ContainerType() + if yyct2624 == codecSelferValueTypeMap1234 { + yyl2624 := r.ReadMapStart() + if yyl2624 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2616, d) + x.codecDecodeSelfFromMap(yyl2624, d) } - } else if yyct2616 == codecSelferValueTypeArray1234 { - yyl2616 := r.ReadArrayStart() - if yyl2616 == 0 { + } else if yyct2624 == codecSelferValueTypeArray1234 { + yyl2624 := r.ReadArrayStart() + if yyl2624 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2616, d) + x.codecDecodeSelfFromArray(yyl2624, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34303,12 +34423,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2617Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2617Slc - var yyhl2617 bool = l >= 0 - for yyj2617 := 0; ; yyj2617++ { - if yyhl2617 { - if yyj2617 >= l { + var yys2625Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2625Slc + var yyhl2625 bool = l >= 0 + for yyj2625 := 0; ; yyj2625++ { + if yyhl2625 { + if yyj2625 >= l { break } } else { @@ -34317,32 +34437,32 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2617Slc = r.DecodeBytes(yys2617Slc, true, true) - yys2617 := string(yys2617Slc) + yys2625Slc = r.DecodeBytes(yys2625Slc, true, true) + yys2625 := string(yys2625Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2617 { + switch yys2625 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2618 := &x.Ports - yym2619 := z.DecBinary() - _ = yym2619 + yyv2626 := &x.Ports + yym2627 := z.DecBinary() + _ = yym2627 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2618), d) + h.decSliceServicePort((*[]ServicePort)(yyv2626), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2620 := &x.Selector - yym2621 := z.DecBinary() - _ = yym2621 + yyv2628 := &x.Selector + yym2629 := z.DecBinary() + _ = yym2629 if false { } else { - z.F.DecMapStringStringX(yyv2620, false, d) + z.F.DecMapStringStringX(yyv2628, false, d) } } case "clusterIP": @@ -34361,24 +34481,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2624 := &x.ExternalIPs - yym2625 := z.DecBinary() - _ = yym2625 + yyv2632 := &x.ExternalIPs + yym2633 := z.DecBinary() + _ = yym2633 if false { } else { - z.F.DecSliceStringX(yyv2624, false, d) + z.F.DecSliceStringX(yyv2632, false, d) } } case "deprecatedPublicIPs": if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2626 := &x.DeprecatedPublicIPs - yym2627 := z.DecBinary() - _ = yym2627 + yyv2634 := &x.DeprecatedPublicIPs + yym2635 := z.DecBinary() + _ = yym2635 if false { } else { - z.F.DecSliceStringX(yyv2626, false, d) + z.F.DecSliceStringX(yyv2634, false, d) } } case "sessionAffinity": @@ -34397,12 +34517,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2630 := &x.LoadBalancerSourceRanges - yym2631 := z.DecBinary() - _ = yym2631 + yyv2638 := &x.LoadBalancerSourceRanges + yym2639 := z.DecBinary() + _ = yym2639 if false { } else { - z.F.DecSliceStringX(yyv2630, false, d) + z.F.DecSliceStringX(yyv2638, false, d) } } case "externalName": @@ -34412,9 +34532,9 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ExternalName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2617) - } // end switch yys2617 - } // end for yyj2617 + z.DecStructFieldNotFound(-1, yys2625) + } // end switch yys2625 + } // end for yyj2625 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34422,16 +34542,16 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2633 int - var yyb2633 bool - var yyhl2633 bool = l >= 0 - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + var yyj2641 int + var yyb2641 bool + var yyhl2641 bool = l >= 0 + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34439,21 +34559,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2634 := &x.Ports - yym2635 := z.DecBinary() - _ = yym2635 + yyv2642 := &x.Ports + yym2643 := z.DecBinary() + _ = yym2643 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2634), d) + h.decSliceServicePort((*[]ServicePort)(yyv2642), d) } } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34461,21 +34581,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2636 := &x.Selector - yym2637 := z.DecBinary() - _ = yym2637 + yyv2644 := &x.Selector + yym2645 := z.DecBinary() + _ = yym2645 if false { } else { - z.F.DecMapStringStringX(yyv2636, false, d) + z.F.DecMapStringStringX(yyv2644, false, d) } } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34485,13 +34605,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34501,13 +34621,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = ServiceType(r.DecodeString()) } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34515,21 +34635,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2640 := &x.ExternalIPs - yym2641 := z.DecBinary() - _ = yym2641 + yyv2648 := &x.ExternalIPs + yym2649 := z.DecBinary() + _ = yym2649 if false { } else { - z.F.DecSliceStringX(yyv2640, false, d) + z.F.DecSliceStringX(yyv2648, false, d) } } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34537,21 +34657,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2642 := &x.DeprecatedPublicIPs - yym2643 := z.DecBinary() - _ = yym2643 + yyv2650 := &x.DeprecatedPublicIPs + yym2651 := z.DecBinary() + _ = yym2651 if false { } else { - z.F.DecSliceStringX(yyv2642, false, d) + z.F.DecSliceStringX(yyv2650, false, d) } } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34561,13 +34681,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34577,13 +34697,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LoadBalancerIP = string(r.DecodeString()) } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34591,21 +34711,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2646 := &x.LoadBalancerSourceRanges - yym2647 := z.DecBinary() - _ = yym2647 + yyv2654 := &x.LoadBalancerSourceRanges + yym2655 := z.DecBinary() + _ = yym2655 if false { } else { - z.F.DecSliceStringX(yyv2646, false, d) + z.F.DecSliceStringX(yyv2654, false, d) } } - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34616,17 +34736,17 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ExternalName = string(r.DecodeString()) } for { - yyj2633++ - if yyhl2633 { - yyb2633 = yyj2633 > l + yyj2641++ + if yyhl2641 { + yyb2641 = yyj2641 > l } else { - yyb2633 = r.CheckBreak() + yyb2641 = r.CheckBreak() } - if yyb2633 { + if yyb2641 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2633-1, "") + z.DecStructFieldNotFound(yyj2641-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34638,38 +34758,38 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2649 := z.EncBinary() - _ = yym2649 + yym2657 := z.EncBinary() + _ = yym2657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2658 := !z.EncBinary() + yy2arr2658 := z.EncBasicHandle().StructToArray + var yyq2658 [5]bool + _, _, _ = yysep2658, yyq2658, yy2arr2658 + const yyr2658 bool = false + yyq2658[0] = x.Name != "" + yyq2658[1] = x.Protocol != "" + yyq2658[3] = true + yyq2658[4] = x.NodePort != 0 + var yynn2658 int + if yyr2658 || yy2arr2658 { r.EncodeArrayStart(5) } else { - yynn2650 = 1 - for _, b := range yyq2650 { + yynn2658 = 1 + for _, b := range yyq2658 { if b { - yynn2650++ + yynn2658++ } } - r.EncodeMapStart(yynn2650) - yynn2650 = 0 + r.EncodeMapStart(yynn2658) + yynn2658 = 0 } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2650[0] { - yym2652 := z.EncBinary() - _ = yym2652 + if yyq2658[0] { + yym2660 := z.EncBinary() + _ = yym2660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34678,37 +34798,37 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2650[0] { + if yyq2658[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2653 := z.EncBinary() - _ = yym2653 + yym2661 := z.EncBinary() + _ = yym2661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2650[1] { + if yyq2658[1] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2650[1] { + if yyq2658[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2656 := z.EncBinary() - _ = yym2656 + yym2664 := z.EncBinary() + _ = yym2664 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34717,51 +34837,51 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2657 := z.EncBinary() - _ = yym2657 + yym2665 := z.EncBinary() + _ = yym2665 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2650[3] { - yy2659 := &x.TargetPort - yym2660 := z.EncBinary() - _ = yym2660 + if yyq2658[3] { + yy2667 := &x.TargetPort + yym2668 := z.EncBinary() + _ = yym2668 if false { - } else if z.HasExtensions() && z.EncExt(yy2659) { - } else if !yym2660 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2659) + } else if z.HasExtensions() && z.EncExt(yy2667) { + } else if !yym2668 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2667) } else { - z.EncFallback(yy2659) + z.EncFallback(yy2667) } } else { r.EncodeNil() } } else { - if yyq2650[3] { + if yyq2658[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2661 := &x.TargetPort - yym2662 := z.EncBinary() - _ = yym2662 + yy2669 := &x.TargetPort + yym2670 := z.EncBinary() + _ = yym2670 if false { - } else if z.HasExtensions() && z.EncExt(yy2661) { - } else if !yym2662 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2661) + } else if z.HasExtensions() && z.EncExt(yy2669) { + } else if !yym2670 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2669) } else { - z.EncFallback(yy2661) + z.EncFallback(yy2669) } } } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2650[4] { - yym2664 := z.EncBinary() - _ = yym2664 + if yyq2658[4] { + yym2672 := z.EncBinary() + _ = yym2672 if false { } else { r.EncodeInt(int64(x.NodePort)) @@ -34770,19 +34890,19 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2650[4] { + if yyq2658[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2665 := z.EncBinary() - _ = yym2665 + yym2673 := z.EncBinary() + _ = yym2673 if false { } else { r.EncodeInt(int64(x.NodePort)) } } } - if yyr2650 || yy2arr2650 { + if yyr2658 || yy2arr2658 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34795,25 +34915,25 @@ func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2666 := z.DecBinary() - _ = yym2666 + yym2674 := z.DecBinary() + _ = yym2674 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2667 := r.ContainerType() - if yyct2667 == codecSelferValueTypeMap1234 { - yyl2667 := r.ReadMapStart() - if yyl2667 == 0 { + yyct2675 := r.ContainerType() + if yyct2675 == codecSelferValueTypeMap1234 { + yyl2675 := r.ReadMapStart() + if yyl2675 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2667, d) + x.codecDecodeSelfFromMap(yyl2675, d) } - } else if yyct2667 == codecSelferValueTypeArray1234 { - yyl2667 := r.ReadArrayStart() - if yyl2667 == 0 { + } else if yyct2675 == codecSelferValueTypeArray1234 { + yyl2675 := r.ReadArrayStart() + if yyl2675 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2667, d) + x.codecDecodeSelfFromArray(yyl2675, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34825,12 +34945,12 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2668Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2668Slc - var yyhl2668 bool = l >= 0 - for yyj2668 := 0; ; yyj2668++ { - if yyhl2668 { - if yyj2668 >= l { + var yys2676Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2676Slc + var yyhl2676 bool = l >= 0 + for yyj2676 := 0; ; yyj2676++ { + if yyhl2676 { + if yyj2676 >= l { break } } else { @@ -34839,10 +34959,10 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2668Slc = r.DecodeBytes(yys2668Slc, true, true) - yys2668 := string(yys2668Slc) + yys2676Slc = r.DecodeBytes(yys2676Slc, true, true) + yys2676 := string(yys2676Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2668 { + switch yys2676 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -34865,15 +34985,15 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2672 := &x.TargetPort - yym2673 := z.DecBinary() - _ = yym2673 + yyv2680 := &x.TargetPort + yym2681 := z.DecBinary() + _ = yym2681 if false { - } else if z.HasExtensions() && z.DecExt(yyv2672) { - } else if !yym2673 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2672) + } else if z.HasExtensions() && z.DecExt(yyv2680) { + } else if !yym2681 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2680) } else { - z.DecFallback(yyv2672, false) + z.DecFallback(yyv2680, false) } } case "nodePort": @@ -34883,9 +35003,9 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2668) - } // end switch yys2668 - } // end for yyj2668 + z.DecStructFieldNotFound(-1, yys2676) + } // end switch yys2676 + } // end for yyj2676 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34893,16 +35013,16 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2675 int - var yyb2675 bool - var yyhl2675 bool = l >= 0 - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + var yyj2683 int + var yyb2683 bool + var yyhl2683 bool = l >= 0 + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34912,13 +35032,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34928,13 +35048,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34944,13 +35064,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34958,24 +35078,24 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2679 := &x.TargetPort - yym2680 := z.DecBinary() - _ = yym2680 + yyv2687 := &x.TargetPort + yym2688 := z.DecBinary() + _ = yym2688 if false { - } else if z.HasExtensions() && z.DecExt(yyv2679) { - } else if !yym2680 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2679) + } else if z.HasExtensions() && z.DecExt(yyv2687) { + } else if !yym2688 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2687) } else { - z.DecFallback(yyv2679, false) + z.DecFallback(yyv2687, false) } } - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34986,17 +35106,17 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } for { - yyj2675++ - if yyhl2675 { - yyb2675 = yyj2675 > l + yyj2683++ + if yyhl2683 { + yyb2683 = yyj2683 > l } else { - yyb2675 = r.CheckBreak() + yyb2683 = r.CheckBreak() } - if yyb2675 { + if yyb2683 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2675-1, "") + z.DecStructFieldNotFound(yyj2683-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35008,39 +35128,39 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2682 := z.EncBinary() - _ = yym2682 + yym2690 := z.EncBinary() + _ = yym2690 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2691 := !z.EncBinary() + yy2arr2691 := z.EncBasicHandle().StructToArray + var yyq2691 [5]bool + _, _, _ = yysep2691, yyq2691, yy2arr2691 + const yyr2691 bool = false + yyq2691[0] = x.Kind != "" + yyq2691[1] = x.APIVersion != "" + yyq2691[2] = true + yyq2691[3] = true + yyq2691[4] = true + var yynn2691 int + if yyr2691 || yy2arr2691 { r.EncodeArrayStart(5) } else { - yynn2683 = 0 - for _, b := range yyq2683 { + yynn2691 = 0 + for _, b := range yyq2691 { if b { - yynn2683++ + yynn2691++ } } - r.EncodeMapStart(yynn2683) - yynn2683 = 0 + r.EncodeMapStart(yynn2691) + yynn2691 = 0 } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2683[0] { - yym2685 := z.EncBinary() - _ = yym2685 + if yyq2691[0] { + yym2693 := z.EncBinary() + _ = yym2693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35049,23 +35169,23 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2683[0] { + if yyq2691[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2686 := z.EncBinary() - _ = yym2686 + yym2694 := z.EncBinary() + _ = yym2694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2683[1] { - yym2688 := z.EncBinary() - _ = yym2688 + if yyq2691[1] { + yym2696 := z.EncBinary() + _ = yym2696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35074,70 +35194,70 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2683[1] { + if yyq2691[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2689 := z.EncBinary() - _ = yym2689 + yym2697 := z.EncBinary() + _ = yym2697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2683[2] { - yy2691 := &x.ObjectMeta - yy2691.CodecEncodeSelf(e) + if yyq2691[2] { + yy2699 := &x.ObjectMeta + yy2699.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2683[2] { + if yyq2691[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2692 := &x.ObjectMeta - yy2692.CodecEncodeSelf(e) + yy2700 := &x.ObjectMeta + yy2700.CodecEncodeSelf(e) } } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2683[3] { - yy2694 := &x.Spec - yy2694.CodecEncodeSelf(e) + if yyq2691[3] { + yy2702 := &x.Spec + yy2702.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2683[3] { + if yyq2691[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2695 := &x.Spec - yy2695.CodecEncodeSelf(e) + yy2703 := &x.Spec + yy2703.CodecEncodeSelf(e) } } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2683[4] { - yy2697 := &x.Status - yy2697.CodecEncodeSelf(e) + if yyq2691[4] { + yy2705 := &x.Status + yy2705.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2683[4] { + if yyq2691[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2698 := &x.Status - yy2698.CodecEncodeSelf(e) + yy2706 := &x.Status + yy2706.CodecEncodeSelf(e) } } - if yyr2683 || yy2arr2683 { + if yyr2691 || yy2arr2691 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35150,25 +35270,25 @@ func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2699 := z.DecBinary() - _ = yym2699 + yym2707 := z.DecBinary() + _ = yym2707 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2700 := r.ContainerType() - if yyct2700 == codecSelferValueTypeMap1234 { - yyl2700 := r.ReadMapStart() - if yyl2700 == 0 { + yyct2708 := r.ContainerType() + if yyct2708 == codecSelferValueTypeMap1234 { + yyl2708 := r.ReadMapStart() + if yyl2708 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2700, d) + x.codecDecodeSelfFromMap(yyl2708, d) } - } else if yyct2700 == codecSelferValueTypeArray1234 { - yyl2700 := r.ReadArrayStart() - if yyl2700 == 0 { + } else if yyct2708 == codecSelferValueTypeArray1234 { + yyl2708 := r.ReadArrayStart() + if yyl2708 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2700, d) + x.codecDecodeSelfFromArray(yyl2708, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35180,12 +35300,12 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2701Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2701Slc - var yyhl2701 bool = l >= 0 - for yyj2701 := 0; ; yyj2701++ { - if yyhl2701 { - if yyj2701 >= l { + var yys2709Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2709Slc + var yyhl2709 bool = l >= 0 + for yyj2709 := 0; ; yyj2709++ { + if yyhl2709 { + if yyj2709 >= l { break } } else { @@ -35194,10 +35314,10 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2701Slc = r.DecodeBytes(yys2701Slc, true, true) - yys2701 := string(yys2701Slc) + yys2709Slc = r.DecodeBytes(yys2709Slc, true, true) + yys2709 := string(yys2709Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2701 { + switch yys2709 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35214,27 +35334,27 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2704 := &x.ObjectMeta - yyv2704.CodecDecodeSelf(d) + yyv2712 := &x.ObjectMeta + yyv2712.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2705 := &x.Spec - yyv2705.CodecDecodeSelf(d) + yyv2713 := &x.Spec + yyv2713.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2706 := &x.Status - yyv2706.CodecDecodeSelf(d) + yyv2714 := &x.Status + yyv2714.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2701) - } // end switch yys2701 - } // end for yyj2701 + z.DecStructFieldNotFound(-1, yys2709) + } // end switch yys2709 + } // end for yyj2709 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35242,16 +35362,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2707 int - var yyb2707 bool - var yyhl2707 bool = l >= 0 - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + var yyj2715 int + var yyb2715 bool + var yyhl2715 bool = l >= 0 + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35261,13 +35381,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35277,13 +35397,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35291,16 +35411,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2710 := &x.ObjectMeta - yyv2710.CodecDecodeSelf(d) + yyv2718 := &x.ObjectMeta + yyv2718.CodecDecodeSelf(d) } - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35308,16 +35428,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2711 := &x.Spec - yyv2711.CodecDecodeSelf(d) + yyv2719 := &x.Spec + yyv2719.CodecDecodeSelf(d) } - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35325,21 +35445,21 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2712 := &x.Status - yyv2712.CodecDecodeSelf(d) + yyv2720 := &x.Status + yyv2720.CodecDecodeSelf(d) } for { - yyj2707++ - if yyhl2707 { - yyb2707 = yyj2707 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2707 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2707 { + if yyb2715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2707-1, "") + z.DecStructFieldNotFound(yyj2715-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35351,37 +35471,37 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2713 := z.EncBinary() - _ = yym2713 + yym2721 := z.EncBinary() + _ = yym2721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2722 := !z.EncBinary() + yy2arr2722 := z.EncBasicHandle().StructToArray + var yyq2722 [4]bool + _, _, _ = yysep2722, yyq2722, yy2arr2722 + const yyr2722 bool = false + yyq2722[0] = x.Kind != "" + yyq2722[1] = x.APIVersion != "" + yyq2722[2] = true + var yynn2722 int + if yyr2722 || yy2arr2722 { r.EncodeArrayStart(4) } else { - yynn2714 = 1 - for _, b := range yyq2714 { + yynn2722 = 1 + for _, b := range yyq2722 { if b { - yynn2714++ + yynn2722++ } } - r.EncodeMapStart(yynn2714) - yynn2714 = 0 + r.EncodeMapStart(yynn2722) + yynn2722 = 0 } - if yyr2714 || yy2arr2714 { + if yyr2722 || yy2arr2722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2714[0] { - yym2716 := z.EncBinary() - _ = yym2716 + if yyq2722[0] { + yym2724 := z.EncBinary() + _ = yym2724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35390,23 +35510,23 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2714[0] { + if yyq2722[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2717 := z.EncBinary() - _ = yym2717 + yym2725 := z.EncBinary() + _ = yym2725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2714 || yy2arr2714 { + if yyr2722 || yy2arr2722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2714[1] { - yym2719 := z.EncBinary() - _ = yym2719 + if yyq2722[1] { + yym2727 := z.EncBinary() + _ = yym2727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35415,54 +35535,54 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2714[1] { + if yyq2722[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2720 := z.EncBinary() - _ = yym2720 + yym2728 := z.EncBinary() + _ = yym2728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2714 || yy2arr2714 { + if yyr2722 || yy2arr2722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2714[2] { - yy2722 := &x.ListMeta - yym2723 := z.EncBinary() - _ = yym2723 + if yyq2722[2] { + yy2730 := &x.ListMeta + yym2731 := z.EncBinary() + _ = yym2731 if false { - } else if z.HasExtensions() && z.EncExt(yy2722) { + } else if z.HasExtensions() && z.EncExt(yy2730) { } else { - z.EncFallback(yy2722) + z.EncFallback(yy2730) } } else { r.EncodeNil() } } else { - if yyq2714[2] { + if yyq2722[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2724 := &x.ListMeta - yym2725 := z.EncBinary() - _ = yym2725 + yy2732 := &x.ListMeta + yym2733 := z.EncBinary() + _ = yym2733 if false { - } else if z.HasExtensions() && z.EncExt(yy2724) { + } else if z.HasExtensions() && z.EncExt(yy2732) { } else { - z.EncFallback(yy2724) + z.EncFallback(yy2732) } } } - if yyr2714 || yy2arr2714 { + if yyr2722 || yy2arr2722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2727 := z.EncBinary() - _ = yym2727 + yym2735 := z.EncBinary() + _ = yym2735 if false { } else { h.encSliceService(([]Service)(x.Items), e) @@ -35475,15 +35595,15 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2728 := z.EncBinary() - _ = yym2728 + yym2736 := z.EncBinary() + _ = yym2736 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } - if yyr2714 || yy2arr2714 { + if yyr2722 || yy2arr2722 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35496,25 +35616,25 @@ func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2729 := z.DecBinary() - _ = yym2729 + yym2737 := z.DecBinary() + _ = yym2737 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2730 := r.ContainerType() - if yyct2730 == codecSelferValueTypeMap1234 { - yyl2730 := r.ReadMapStart() - if yyl2730 == 0 { + yyct2738 := r.ContainerType() + if yyct2738 == codecSelferValueTypeMap1234 { + yyl2738 := r.ReadMapStart() + if yyl2738 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2730, d) + x.codecDecodeSelfFromMap(yyl2738, d) } - } else if yyct2730 == codecSelferValueTypeArray1234 { - yyl2730 := r.ReadArrayStart() - if yyl2730 == 0 { + } else if yyct2738 == codecSelferValueTypeArray1234 { + yyl2738 := r.ReadArrayStart() + if yyl2738 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2730, d) + x.codecDecodeSelfFromArray(yyl2738, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35526,12 +35646,12 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2731Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2731Slc - var yyhl2731 bool = l >= 0 - for yyj2731 := 0; ; yyj2731++ { - if yyhl2731 { - if yyj2731 >= l { + var yys2739Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2739Slc + var yyhl2739 bool = l >= 0 + for yyj2739 := 0; ; yyj2739++ { + if yyhl2739 { + if yyj2739 >= l { break } } else { @@ -35540,10 +35660,10 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2731Slc = r.DecodeBytes(yys2731Slc, true, true) - yys2731 := string(yys2731Slc) + yys2739Slc = r.DecodeBytes(yys2739Slc, true, true) + yys2739 := string(yys2739Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2731 { + switch yys2739 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35560,31 +35680,31 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2734 := &x.ListMeta - yym2735 := z.DecBinary() - _ = yym2735 + yyv2742 := &x.ListMeta + yym2743 := z.DecBinary() + _ = yym2743 if false { - } else if z.HasExtensions() && z.DecExt(yyv2734) { + } else if z.HasExtensions() && z.DecExt(yyv2742) { } else { - z.DecFallback(yyv2734, false) + z.DecFallback(yyv2742, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2736 := &x.Items - yym2737 := z.DecBinary() - _ = yym2737 + yyv2744 := &x.Items + yym2745 := z.DecBinary() + _ = yym2745 if false { } else { - h.decSliceService((*[]Service)(yyv2736), d) + h.decSliceService((*[]Service)(yyv2744), d) } } default: - z.DecStructFieldNotFound(-1, yys2731) - } // end switch yys2731 - } // end for yyj2731 + z.DecStructFieldNotFound(-1, yys2739) + } // end switch yys2739 + } // end for yyj2739 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35592,16 +35712,16 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2738 int - var yyb2738 bool - var yyhl2738 bool = l >= 0 - yyj2738++ - if yyhl2738 { - yyb2738 = yyj2738 > l + var yyj2746 int + var yyb2746 bool + var yyhl2746 bool = l >= 0 + yyj2746++ + if yyhl2746 { + yyb2746 = yyj2746 > l } else { - yyb2738 = r.CheckBreak() + yyb2746 = r.CheckBreak() } - if yyb2738 { + if yyb2746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35611,13 +35731,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2738++ - if yyhl2738 { - yyb2738 = yyj2738 > l + yyj2746++ + if yyhl2746 { + yyb2746 = yyj2746 > l } else { - yyb2738 = r.CheckBreak() + yyb2746 = r.CheckBreak() } - if yyb2738 { + if yyb2746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35627,13 +35747,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2738++ - if yyhl2738 { - yyb2738 = yyj2738 > l + yyj2746++ + if yyhl2746 { + yyb2746 = yyj2746 > l } else { - yyb2738 = r.CheckBreak() + yyb2746 = r.CheckBreak() } - if yyb2738 { + if yyb2746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35641,22 +35761,22 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2741 := &x.ListMeta - yym2742 := z.DecBinary() - _ = yym2742 + yyv2749 := &x.ListMeta + yym2750 := z.DecBinary() + _ = yym2750 if false { - } else if z.HasExtensions() && z.DecExt(yyv2741) { + } else if z.HasExtensions() && z.DecExt(yyv2749) { } else { - z.DecFallback(yyv2741, false) + z.DecFallback(yyv2749, false) } } - yyj2738++ - if yyhl2738 { - yyb2738 = yyj2738 > l + yyj2746++ + if yyhl2746 { + yyb2746 = yyj2746 > l } else { - yyb2738 = r.CheckBreak() + yyb2746 = r.CheckBreak() } - if yyb2738 { + if yyb2746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35664,26 +35784,26 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2743 := &x.Items - yym2744 := z.DecBinary() - _ = yym2744 + yyv2751 := &x.Items + yym2752 := z.DecBinary() + _ = yym2752 if false { } else { - h.decSliceService((*[]Service)(yyv2743), d) + h.decSliceService((*[]Service)(yyv2751), d) } } for { - yyj2738++ - if yyhl2738 { - yyb2738 = yyj2738 > l + yyj2746++ + if yyhl2746 { + yyb2746 = yyj2746 > l } else { - yyb2738 = r.CheckBreak() + yyb2746 = r.CheckBreak() } - if yyb2738 { + if yyb2746 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2738-1, "") + z.DecStructFieldNotFound(yyj2746-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35695,39 +35815,39 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2745 := z.EncBinary() - _ = yym2745 + yym2753 := z.EncBinary() + _ = yym2753 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2754 := !z.EncBinary() + yy2arr2754 := z.EncBasicHandle().StructToArray + var yyq2754 [5]bool + _, _, _ = yysep2754, yyq2754, yy2arr2754 + const yyr2754 bool = false + yyq2754[0] = x.Kind != "" + yyq2754[1] = x.APIVersion != "" + yyq2754[2] = true + yyq2754[3] = len(x.Secrets) != 0 + yyq2754[4] = len(x.ImagePullSecrets) != 0 + var yynn2754 int + if yyr2754 || yy2arr2754 { r.EncodeArrayStart(5) } else { - yynn2746 = 0 - for _, b := range yyq2746 { + yynn2754 = 0 + for _, b := range yyq2754 { if b { - yynn2746++ + yynn2754++ } } - r.EncodeMapStart(yynn2746) - yynn2746 = 0 + r.EncodeMapStart(yynn2754) + yynn2754 = 0 } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[0] { - yym2748 := z.EncBinary() - _ = yym2748 + if yyq2754[0] { + yym2756 := z.EncBinary() + _ = yym2756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35736,23 +35856,23 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2746[0] { + if yyq2754[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2749 := z.EncBinary() - _ = yym2749 + yym2757 := z.EncBinary() + _ = yym2757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[1] { - yym2751 := z.EncBinary() - _ = yym2751 + if yyq2754[1] { + yym2759 := z.EncBinary() + _ = yym2759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35761,43 +35881,43 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2746[1] { + if yyq2754[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2752 := z.EncBinary() - _ = yym2752 + yym2760 := z.EncBinary() + _ = yym2760 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[2] { - yy2754 := &x.ObjectMeta - yy2754.CodecEncodeSelf(e) + if yyq2754[2] { + yy2762 := &x.ObjectMeta + yy2762.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2746[2] { + if yyq2754[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2755 := &x.ObjectMeta - yy2755.CodecEncodeSelf(e) + yy2763 := &x.ObjectMeta + yy2763.CodecEncodeSelf(e) } } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[3] { + if yyq2754[3] { if x.Secrets == nil { r.EncodeNil() } else { - yym2757 := z.EncBinary() - _ = yym2757 + yym2765 := z.EncBinary() + _ = yym2765 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -35807,15 +35927,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2746[3] { + if yyq2754[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { - yym2758 := z.EncBinary() - _ = yym2758 + yym2766 := z.EncBinary() + _ = yym2766 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -35823,14 +35943,14 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[4] { + if yyq2754[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2760 := z.EncBinary() - _ = yym2760 + yym2768 := z.EncBinary() + _ = yym2768 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -35840,15 +35960,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2746[4] { + if yyq2754[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2761 := z.EncBinary() - _ = yym2761 + yym2769 := z.EncBinary() + _ = yym2769 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -35856,7 +35976,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2746 || yy2arr2746 { + if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35869,25 +35989,25 @@ func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2762 := z.DecBinary() - _ = yym2762 + yym2770 := z.DecBinary() + _ = yym2770 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2763 := r.ContainerType() - if yyct2763 == codecSelferValueTypeMap1234 { - yyl2763 := r.ReadMapStart() - if yyl2763 == 0 { + yyct2771 := r.ContainerType() + if yyct2771 == codecSelferValueTypeMap1234 { + yyl2771 := r.ReadMapStart() + if yyl2771 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2763, d) + x.codecDecodeSelfFromMap(yyl2771, d) } - } else if yyct2763 == codecSelferValueTypeArray1234 { - yyl2763 := r.ReadArrayStart() - if yyl2763 == 0 { + } else if yyct2771 == codecSelferValueTypeArray1234 { + yyl2771 := r.ReadArrayStart() + if yyl2771 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2763, d) + x.codecDecodeSelfFromArray(yyl2771, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35899,12 +36019,12 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2764Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2764Slc - var yyhl2764 bool = l >= 0 - for yyj2764 := 0; ; yyj2764++ { - if yyhl2764 { - if yyj2764 >= l { + var yys2772Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2772Slc + var yyhl2772 bool = l >= 0 + for yyj2772 := 0; ; yyj2772++ { + if yyhl2772 { + if yyj2772 >= l { break } } else { @@ -35913,10 +36033,10 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2764Slc = r.DecodeBytes(yys2764Slc, true, true) - yys2764 := string(yys2764Slc) + yys2772Slc = r.DecodeBytes(yys2772Slc, true, true) + yys2772 := string(yys2772Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2764 { + switch yys2772 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35933,37 +36053,37 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2767 := &x.ObjectMeta - yyv2767.CodecDecodeSelf(d) + yyv2775 := &x.ObjectMeta + yyv2775.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2768 := &x.Secrets - yym2769 := z.DecBinary() - _ = yym2769 + yyv2776 := &x.Secrets + yym2777 := z.DecBinary() + _ = yym2777 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2768), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2776), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2770 := &x.ImagePullSecrets - yym2771 := z.DecBinary() - _ = yym2771 + yyv2778 := &x.ImagePullSecrets + yym2779 := z.DecBinary() + _ = yym2779 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2770), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2778), d) } } default: - z.DecStructFieldNotFound(-1, yys2764) - } // end switch yys2764 - } // end for yyj2764 + z.DecStructFieldNotFound(-1, yys2772) + } // end switch yys2772 + } // end for yyj2772 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35971,16 +36091,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2772 int - var yyb2772 bool - var yyhl2772 bool = l >= 0 - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + var yyj2780 int + var yyb2780 bool + var yyhl2780 bool = l >= 0 + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35990,13 +36110,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36006,13 +36126,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36020,16 +36140,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2775 := &x.ObjectMeta - yyv2775.CodecDecodeSelf(d) + yyv2783 := &x.ObjectMeta + yyv2783.CodecDecodeSelf(d) } - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36037,21 +36157,21 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2776 := &x.Secrets - yym2777 := z.DecBinary() - _ = yym2777 + yyv2784 := &x.Secrets + yym2785 := z.DecBinary() + _ = yym2785 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2776), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2784), d) } } - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36059,26 +36179,26 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2778 := &x.ImagePullSecrets - yym2779 := z.DecBinary() - _ = yym2779 + yyv2786 := &x.ImagePullSecrets + yym2787 := z.DecBinary() + _ = yym2787 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2778), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2786), d) } } for { - yyj2772++ - if yyhl2772 { - yyb2772 = yyj2772 > l + yyj2780++ + if yyhl2780 { + yyb2780 = yyj2780 > l } else { - yyb2772 = r.CheckBreak() + yyb2780 = r.CheckBreak() } - if yyb2772 { + if yyb2780 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2772-1, "") + z.DecStructFieldNotFound(yyj2780-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36090,37 +36210,37 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2780 := z.EncBinary() - _ = yym2780 + yym2788 := z.EncBinary() + _ = yym2788 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2789 := !z.EncBinary() + yy2arr2789 := z.EncBasicHandle().StructToArray + var yyq2789 [4]bool + _, _, _ = yysep2789, yyq2789, yy2arr2789 + const yyr2789 bool = false + yyq2789[0] = x.Kind != "" + yyq2789[1] = x.APIVersion != "" + yyq2789[2] = true + var yynn2789 int + if yyr2789 || yy2arr2789 { r.EncodeArrayStart(4) } else { - yynn2781 = 1 - for _, b := range yyq2781 { + yynn2789 = 1 + for _, b := range yyq2789 { if b { - yynn2781++ + yynn2789++ } } - r.EncodeMapStart(yynn2781) - yynn2781 = 0 + r.EncodeMapStart(yynn2789) + yynn2789 = 0 } - if yyr2781 || yy2arr2781 { + if yyr2789 || yy2arr2789 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2781[0] { - yym2783 := z.EncBinary() - _ = yym2783 + if yyq2789[0] { + yym2791 := z.EncBinary() + _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -36129,23 +36249,23 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2781[0] { + if yyq2789[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2784 := z.EncBinary() - _ = yym2784 + yym2792 := z.EncBinary() + _ = yym2792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2781 || yy2arr2781 { + if yyr2789 || yy2arr2789 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2781[1] { - yym2786 := z.EncBinary() - _ = yym2786 + if yyq2789[1] { + yym2794 := z.EncBinary() + _ = yym2794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -36154,54 +36274,54 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2781[1] { + if yyq2789[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2787 := z.EncBinary() - _ = yym2787 + yym2795 := z.EncBinary() + _ = yym2795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2781 || yy2arr2781 { + if yyr2789 || yy2arr2789 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2781[2] { - yy2789 := &x.ListMeta - yym2790 := z.EncBinary() - _ = yym2790 + if yyq2789[2] { + yy2797 := &x.ListMeta + yym2798 := z.EncBinary() + _ = yym2798 if false { - } else if z.HasExtensions() && z.EncExt(yy2789) { + } else if z.HasExtensions() && z.EncExt(yy2797) { } else { - z.EncFallback(yy2789) + z.EncFallback(yy2797) } } else { r.EncodeNil() } } else { - if yyq2781[2] { + if yyq2789[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2791 := &x.ListMeta - yym2792 := z.EncBinary() - _ = yym2792 + yy2799 := &x.ListMeta + yym2800 := z.EncBinary() + _ = yym2800 if false { - } else if z.HasExtensions() && z.EncExt(yy2791) { + } else if z.HasExtensions() && z.EncExt(yy2799) { } else { - z.EncFallback(yy2791) + z.EncFallback(yy2799) } } } - if yyr2781 || yy2arr2781 { + if yyr2789 || yy2arr2789 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2794 := z.EncBinary() - _ = yym2794 + yym2802 := z.EncBinary() + _ = yym2802 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) @@ -36214,15 +36334,15 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2795 := z.EncBinary() - _ = yym2795 + yym2803 := z.EncBinary() + _ = yym2803 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2781 || yy2arr2781 { + if yyr2789 || yy2arr2789 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36235,25 +36355,25 @@ func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2796 := z.DecBinary() - _ = yym2796 + yym2804 := z.DecBinary() + _ = yym2804 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2797 := r.ContainerType() - if yyct2797 == codecSelferValueTypeMap1234 { - yyl2797 := r.ReadMapStart() - if yyl2797 == 0 { + yyct2805 := r.ContainerType() + if yyct2805 == codecSelferValueTypeMap1234 { + yyl2805 := r.ReadMapStart() + if yyl2805 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2797, d) + x.codecDecodeSelfFromMap(yyl2805, d) } - } else if yyct2797 == codecSelferValueTypeArray1234 { - yyl2797 := r.ReadArrayStart() - if yyl2797 == 0 { + } else if yyct2805 == codecSelferValueTypeArray1234 { + yyl2805 := r.ReadArrayStart() + if yyl2805 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2797, d) + x.codecDecodeSelfFromArray(yyl2805, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36265,12 +36385,12 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2798Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2798Slc - var yyhl2798 bool = l >= 0 - for yyj2798 := 0; ; yyj2798++ { - if yyhl2798 { - if yyj2798 >= l { + var yys2806Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2806Slc + var yyhl2806 bool = l >= 0 + for yyj2806 := 0; ; yyj2806++ { + if yyhl2806 { + if yyj2806 >= l { break } } else { @@ -36279,10 +36399,10 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2798Slc = r.DecodeBytes(yys2798Slc, true, true) - yys2798 := string(yys2798Slc) + yys2806Slc = r.DecodeBytes(yys2806Slc, true, true) + yys2806 := string(yys2806Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2798 { + switch yys2806 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -36299,31 +36419,31 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2801 := &x.ListMeta - yym2802 := z.DecBinary() - _ = yym2802 + yyv2809 := &x.ListMeta + yym2810 := z.DecBinary() + _ = yym2810 if false { - } else if z.HasExtensions() && z.DecExt(yyv2801) { + } else if z.HasExtensions() && z.DecExt(yyv2809) { } else { - z.DecFallback(yyv2801, false) + z.DecFallback(yyv2809, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2803 := &x.Items - yym2804 := z.DecBinary() - _ = yym2804 + yyv2811 := &x.Items + yym2812 := z.DecBinary() + _ = yym2812 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2803), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2811), d) } } default: - z.DecStructFieldNotFound(-1, yys2798) - } // end switch yys2798 - } // end for yyj2798 + z.DecStructFieldNotFound(-1, yys2806) + } // end switch yys2806 + } // end for yyj2806 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36331,16 +36451,16 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2805 int - var yyb2805 bool - var yyhl2805 bool = l >= 0 - yyj2805++ - if yyhl2805 { - yyb2805 = yyj2805 > l + var yyj2813 int + var yyb2813 bool + var yyhl2813 bool = l >= 0 + yyj2813++ + if yyhl2813 { + yyb2813 = yyj2813 > l } else { - yyb2805 = r.CheckBreak() + yyb2813 = r.CheckBreak() } - if yyb2805 { + if yyb2813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36350,13 +36470,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj2805++ - if yyhl2805 { - yyb2805 = yyj2805 > l + yyj2813++ + if yyhl2813 { + yyb2813 = yyj2813 > l } else { - yyb2805 = r.CheckBreak() + yyb2813 = r.CheckBreak() } - if yyb2805 { + if yyb2813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36366,13 +36486,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj2805++ - if yyhl2805 { - yyb2805 = yyj2805 > l + yyj2813++ + if yyhl2813 { + yyb2813 = yyj2813 > l } else { - yyb2805 = r.CheckBreak() + yyb2813 = r.CheckBreak() } - if yyb2805 { + if yyb2813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36380,22 +36500,22 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2808 := &x.ListMeta - yym2809 := z.DecBinary() - _ = yym2809 + yyv2816 := &x.ListMeta + yym2817 := z.DecBinary() + _ = yym2817 if false { - } else if z.HasExtensions() && z.DecExt(yyv2808) { + } else if z.HasExtensions() && z.DecExt(yyv2816) { } else { - z.DecFallback(yyv2808, false) + z.DecFallback(yyv2816, false) } } - yyj2805++ - if yyhl2805 { - yyb2805 = yyj2805 > l + yyj2813++ + if yyhl2813 { + yyb2813 = yyj2813 > l } else { - yyb2805 = r.CheckBreak() + yyb2813 = r.CheckBreak() } - if yyb2805 { + if yyb2813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36403,26 +36523,26 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2810 := &x.Items - yym2811 := z.DecBinary() - _ = yym2811 + yyv2818 := &x.Items + yym2819 := z.DecBinary() + _ = yym2819 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2810), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2818), d) } } for { - yyj2805++ - if yyhl2805 { - yyb2805 = yyj2805 > l + yyj2813++ + if yyhl2813 { + yyb2813 = yyj2813 > l } else { - yyb2805 = r.CheckBreak() + yyb2813 = r.CheckBreak() } - if yyb2805 { + if yyb2813 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2805-1, "") + z.DecStructFieldNotFound(yyj2813-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36434,37 +36554,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2812 := z.EncBinary() - _ = yym2812 + yym2820 := z.EncBinary() + _ = yym2820 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2821 := !z.EncBinary() + yy2arr2821 := z.EncBasicHandle().StructToArray + var yyq2821 [4]bool + _, _, _ = yysep2821, yyq2821, yy2arr2821 + const yyr2821 bool = false + yyq2821[0] = x.Kind != "" + yyq2821[1] = x.APIVersion != "" + yyq2821[2] = true + var yynn2821 int + if yyr2821 || yy2arr2821 { r.EncodeArrayStart(4) } else { - yynn2813 = 1 - for _, b := range yyq2813 { + yynn2821 = 1 + for _, b := range yyq2821 { if b { - yynn2813++ + yynn2821++ } } - r.EncodeMapStart(yynn2813) - yynn2813 = 0 + r.EncodeMapStart(yynn2821) + yynn2821 = 0 } - if yyr2813 || yy2arr2813 { + if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2813[0] { - yym2815 := z.EncBinary() - _ = yym2815 + if yyq2821[0] { + yym2823 := z.EncBinary() + _ = yym2823 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -36473,23 +36593,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2813[0] { + if yyq2821[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2816 := z.EncBinary() - _ = yym2816 + yym2824 := z.EncBinary() + _ = yym2824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2813 || yy2arr2813 { + if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2813[1] { - yym2818 := z.EncBinary() - _ = yym2818 + if yyq2821[1] { + yym2826 := z.EncBinary() + _ = yym2826 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -36498,42 +36618,42 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2813[1] { + if yyq2821[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2819 := z.EncBinary() - _ = yym2819 + yym2827 := z.EncBinary() + _ = yym2827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2813 || yy2arr2813 { + if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2813[2] { - yy2821 := &x.ObjectMeta - yy2821.CodecEncodeSelf(e) + if yyq2821[2] { + yy2829 := &x.ObjectMeta + yy2829.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2813[2] { + if yyq2821[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2822 := &x.ObjectMeta - yy2822.CodecEncodeSelf(e) + yy2830 := &x.ObjectMeta + yy2830.CodecEncodeSelf(e) } } - if yyr2813 || yy2arr2813 { + if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { - yym2824 := z.EncBinary() - _ = yym2824 + yym2832 := z.EncBinary() + _ = yym2832 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) @@ -36546,15 +36666,15 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subsets == nil { r.EncodeNil() } else { - yym2825 := z.EncBinary() - _ = yym2825 + yym2833 := z.EncBinary() + _ = yym2833 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2813 || yy2arr2813 { + if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36567,25 +36687,25 @@ func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2826 := z.DecBinary() - _ = yym2826 + yym2834 := z.DecBinary() + _ = yym2834 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2827 := r.ContainerType() - if yyct2827 == codecSelferValueTypeMap1234 { - yyl2827 := r.ReadMapStart() - if yyl2827 == 0 { + yyct2835 := r.ContainerType() + if yyct2835 == codecSelferValueTypeMap1234 { + yyl2835 := r.ReadMapStart() + if yyl2835 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2827, d) + x.codecDecodeSelfFromMap(yyl2835, d) } - } else if yyct2827 == codecSelferValueTypeArray1234 { - yyl2827 := r.ReadArrayStart() - if yyl2827 == 0 { + } else if yyct2835 == codecSelferValueTypeArray1234 { + yyl2835 := r.ReadArrayStart() + if yyl2835 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2827, d) + x.codecDecodeSelfFromArray(yyl2835, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36597,12 +36717,12 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2828Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2828Slc - var yyhl2828 bool = l >= 0 - for yyj2828 := 0; ; yyj2828++ { - if yyhl2828 { - if yyj2828 >= l { + var yys2836Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2836Slc + var yyhl2836 bool = l >= 0 + for yyj2836 := 0; ; yyj2836++ { + if yyhl2836 { + if yyj2836 >= l { break } } else { @@ -36611,10 +36731,10 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2828Slc = r.DecodeBytes(yys2828Slc, true, true) - yys2828 := string(yys2828Slc) + yys2836Slc = r.DecodeBytes(yys2836Slc, true, true) + yys2836 := string(yys2836Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2828 { + switch yys2836 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -36631,25 +36751,25 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2831 := &x.ObjectMeta - yyv2831.CodecDecodeSelf(d) + yyv2839 := &x.ObjectMeta + yyv2839.CodecDecodeSelf(d) } case "subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2832 := &x.Subsets - yym2833 := z.DecBinary() - _ = yym2833 + yyv2840 := &x.Subsets + yym2841 := z.DecBinary() + _ = yym2841 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2832), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2840), d) } } default: - z.DecStructFieldNotFound(-1, yys2828) - } // end switch yys2828 - } // end for yyj2828 + z.DecStructFieldNotFound(-1, yys2836) + } // end switch yys2836 + } // end for yyj2836 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36657,16 +36777,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2834 int - var yyb2834 bool - var yyhl2834 bool = l >= 0 - yyj2834++ - if yyhl2834 { - yyb2834 = yyj2834 > l + var yyj2842 int + var yyb2842 bool + var yyhl2842 bool = l >= 0 + yyj2842++ + if yyhl2842 { + yyb2842 = yyj2842 > l } else { - yyb2834 = r.CheckBreak() + yyb2842 = r.CheckBreak() } - if yyb2834 { + if yyb2842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36676,13 +36796,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2834++ - if yyhl2834 { - yyb2834 = yyj2834 > l + yyj2842++ + if yyhl2842 { + yyb2842 = yyj2842 > l } else { - yyb2834 = r.CheckBreak() + yyb2842 = r.CheckBreak() } - if yyb2834 { + if yyb2842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36692,13 +36812,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2834++ - if yyhl2834 { - yyb2834 = yyj2834 > l + yyj2842++ + if yyhl2842 { + yyb2842 = yyj2842 > l } else { - yyb2834 = r.CheckBreak() + yyb2842 = r.CheckBreak() } - if yyb2834 { + if yyb2842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36706,16 +36826,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2837 := &x.ObjectMeta - yyv2837.CodecDecodeSelf(d) + yyv2845 := &x.ObjectMeta + yyv2845.CodecDecodeSelf(d) } - yyj2834++ - if yyhl2834 { - yyb2834 = yyj2834 > l + yyj2842++ + if yyhl2842 { + yyb2842 = yyj2842 > l } else { - yyb2834 = r.CheckBreak() + yyb2842 = r.CheckBreak() } - if yyb2834 { + if yyb2842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36723,26 +36843,26 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2838 := &x.Subsets - yym2839 := z.DecBinary() - _ = yym2839 + yyv2846 := &x.Subsets + yym2847 := z.DecBinary() + _ = yym2847 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2838), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2846), d) } } for { - yyj2834++ - if yyhl2834 { - yyb2834 = yyj2834 > l + yyj2842++ + if yyhl2842 { + yyb2842 = yyj2842 > l } else { - yyb2834 = r.CheckBreak() + yyb2842 = r.CheckBreak() } - if yyb2834 { + if yyb2842 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2834-1, "") + z.DecStructFieldNotFound(yyj2842-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36754,40 +36874,40 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2840 := z.EncBinary() - _ = yym2840 + yym2848 := z.EncBinary() + _ = yym2848 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2849 := !z.EncBinary() + yy2arr2849 := z.EncBasicHandle().StructToArray + var yyq2849 [3]bool + _, _, _ = yysep2849, yyq2849, yy2arr2849 + const yyr2849 bool = false + yyq2849[0] = len(x.Addresses) != 0 + yyq2849[1] = len(x.NotReadyAddresses) != 0 + yyq2849[2] = len(x.Ports) != 0 + var yynn2849 int + if yyr2849 || yy2arr2849 { r.EncodeArrayStart(3) } else { - yynn2841 = 0 - for _, b := range yyq2841 { + yynn2849 = 0 + for _, b := range yyq2849 { if b { - yynn2841++ + yynn2849++ } } - r.EncodeMapStart(yynn2841) - yynn2841 = 0 + r.EncodeMapStart(yynn2849) + yynn2849 = 0 } - if yyr2841 || yy2arr2841 { + if yyr2849 || yy2arr2849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2841[0] { + if yyq2849[0] { if x.Addresses == nil { r.EncodeNil() } else { - yym2843 := z.EncBinary() - _ = yym2843 + yym2851 := z.EncBinary() + _ = yym2851 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -36797,15 +36917,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2841[0] { + if yyq2849[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2844 := z.EncBinary() - _ = yym2844 + yym2852 := z.EncBinary() + _ = yym2852 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -36813,14 +36933,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2841 || yy2arr2841 { + if yyr2849 || yy2arr2849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2841[1] { + if yyq2849[1] { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2846 := z.EncBinary() - _ = yym2846 + yym2854 := z.EncBinary() + _ = yym2854 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -36830,15 +36950,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2841[1] { + if yyq2849[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("notReadyAddresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2847 := z.EncBinary() - _ = yym2847 + yym2855 := z.EncBinary() + _ = yym2855 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -36846,14 +36966,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2841 || yy2arr2841 { + if yyr2849 || yy2arr2849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2841[2] { + if yyq2849[2] { if x.Ports == nil { r.EncodeNil() } else { - yym2849 := z.EncBinary() - _ = yym2849 + yym2857 := z.EncBinary() + _ = yym2857 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -36863,15 +36983,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2841[2] { + if yyq2849[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym2850 := z.EncBinary() - _ = yym2850 + yym2858 := z.EncBinary() + _ = yym2858 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -36879,7 +36999,7 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2841 || yy2arr2841 { + if yyr2849 || yy2arr2849 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36892,25 +37012,25 @@ func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2851 := z.DecBinary() - _ = yym2851 + yym2859 := z.DecBinary() + _ = yym2859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2852 := r.ContainerType() - if yyct2852 == codecSelferValueTypeMap1234 { - yyl2852 := r.ReadMapStart() - if yyl2852 == 0 { + yyct2860 := r.ContainerType() + if yyct2860 == codecSelferValueTypeMap1234 { + yyl2860 := r.ReadMapStart() + if yyl2860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2852, d) + x.codecDecodeSelfFromMap(yyl2860, d) } - } else if yyct2852 == codecSelferValueTypeArray1234 { - yyl2852 := r.ReadArrayStart() - if yyl2852 == 0 { + } else if yyct2860 == codecSelferValueTypeArray1234 { + yyl2860 := r.ReadArrayStart() + if yyl2860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2852, d) + x.codecDecodeSelfFromArray(yyl2860, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36922,12 +37042,12 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2853Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2853Slc - var yyhl2853 bool = l >= 0 - for yyj2853 := 0; ; yyj2853++ { - if yyhl2853 { - if yyj2853 >= l { + var yys2861Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2861Slc + var yyhl2861 bool = l >= 0 + for yyj2861 := 0; ; yyj2861++ { + if yyhl2861 { + if yyj2861 >= l { break } } else { @@ -36936,50 +37056,50 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2853Slc = r.DecodeBytes(yys2853Slc, true, true) - yys2853 := string(yys2853Slc) + yys2861Slc = r.DecodeBytes(yys2861Slc, true, true) + yys2861 := string(yys2861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2853 { + switch yys2861 { case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2854 := &x.Addresses - yym2855 := z.DecBinary() - _ = yym2855 + yyv2862 := &x.Addresses + yym2863 := z.DecBinary() + _ = yym2863 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2854), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2862), d) } } case "notReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2856 := &x.NotReadyAddresses - yym2857 := z.DecBinary() - _ = yym2857 + yyv2864 := &x.NotReadyAddresses + yym2865 := z.DecBinary() + _ = yym2865 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2856), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2864), d) } } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2858 := &x.Ports - yym2859 := z.DecBinary() - _ = yym2859 + yyv2866 := &x.Ports + yym2867 := z.DecBinary() + _ = yym2867 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2858), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2866), d) } } default: - z.DecStructFieldNotFound(-1, yys2853) - } // end switch yys2853 - } // end for yyj2853 + z.DecStructFieldNotFound(-1, yys2861) + } // end switch yys2861 + } // end for yyj2861 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36987,16 +37107,16 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2860 int - var yyb2860 bool - var yyhl2860 bool = l >= 0 - yyj2860++ - if yyhl2860 { - yyb2860 = yyj2860 > l + var yyj2868 int + var yyb2868 bool + var yyhl2868 bool = l >= 0 + yyj2868++ + if yyhl2868 { + yyb2868 = yyj2868 > l } else { - yyb2860 = r.CheckBreak() + yyb2868 = r.CheckBreak() } - if yyb2860 { + if yyb2868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37004,21 +37124,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2861 := &x.Addresses - yym2862 := z.DecBinary() - _ = yym2862 + yyv2869 := &x.Addresses + yym2870 := z.DecBinary() + _ = yym2870 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2861), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2869), d) } } - yyj2860++ - if yyhl2860 { - yyb2860 = yyj2860 > l + yyj2868++ + if yyhl2868 { + yyb2868 = yyj2868 > l } else { - yyb2860 = r.CheckBreak() + yyb2868 = r.CheckBreak() } - if yyb2860 { + if yyb2868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37026,21 +37146,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2863 := &x.NotReadyAddresses - yym2864 := z.DecBinary() - _ = yym2864 + yyv2871 := &x.NotReadyAddresses + yym2872 := z.DecBinary() + _ = yym2872 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2863), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2871), d) } } - yyj2860++ - if yyhl2860 { - yyb2860 = yyj2860 > l + yyj2868++ + if yyhl2868 { + yyb2868 = yyj2868 > l } else { - yyb2860 = r.CheckBreak() + yyb2868 = r.CheckBreak() } - if yyb2860 { + if yyb2868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37048,26 +37168,26 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2865 := &x.Ports - yym2866 := z.DecBinary() - _ = yym2866 + yyv2873 := &x.Ports + yym2874 := z.DecBinary() + _ = yym2874 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2865), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2873), d) } } for { - yyj2860++ - if yyhl2860 { - yyb2860 = yyj2860 > l + yyj2868++ + if yyhl2868 { + yyb2868 = yyj2868 > l } else { - yyb2860 = r.CheckBreak() + yyb2868 = r.CheckBreak() } - if yyb2860 { + if yyb2868 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2860-1, "") + z.DecStructFieldNotFound(yyj2868-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37079,36 +37199,36 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2867 := z.EncBinary() - _ = yym2867 + yym2875 := z.EncBinary() + _ = yym2875 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2876 := !z.EncBinary() + yy2arr2876 := z.EncBasicHandle().StructToArray + var yyq2876 [4]bool + _, _, _ = yysep2876, yyq2876, yy2arr2876 + const yyr2876 bool = false + yyq2876[1] = x.Hostname != "" + yyq2876[2] = x.NodeName != nil + yyq2876[3] = x.TargetRef != nil + var yynn2876 int + if yyr2876 || yy2arr2876 { r.EncodeArrayStart(4) } else { - yynn2868 = 1 - for _, b := range yyq2868 { + yynn2876 = 1 + for _, b := range yyq2876 { if b { - yynn2868++ + yynn2876++ } } - r.EncodeMapStart(yynn2868) - yynn2868 = 0 + r.EncodeMapStart(yynn2876) + yynn2876 = 0 } - if yyr2868 || yy2arr2868 { + if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2870 := z.EncBinary() - _ = yym2870 + yym2878 := z.EncBinary() + _ = yym2878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -37117,18 +37237,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2871 := z.EncBinary() - _ = yym2871 + yym2879 := z.EncBinary() + _ = yym2879 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2868 || yy2arr2868 { + if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2868[1] { - yym2873 := z.EncBinary() - _ = yym2873 + if yyq2876[1] { + yym2881 := z.EncBinary() + _ = yym2881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -37137,56 +37257,56 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2868[1] { + if yyq2876[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2874 := z.EncBinary() - _ = yym2874 + yym2882 := z.EncBinary() + _ = yym2882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2868 || yy2arr2868 { + if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2868[2] { + if yyq2876[2] { if x.NodeName == nil { r.EncodeNil() } else { - yy2876 := *x.NodeName - yym2877 := z.EncBinary() - _ = yym2877 + yy2884 := *x.NodeName + yym2885 := z.EncBinary() + _ = yym2885 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2876)) + r.EncodeString(codecSelferC_UTF81234, string(yy2884)) } } } else { r.EncodeNil() } } else { - if yyq2868[2] { + if yyq2876[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeName == nil { r.EncodeNil() } else { - yy2878 := *x.NodeName - yym2879 := z.EncBinary() - _ = yym2879 + yy2886 := *x.NodeName + yym2887 := z.EncBinary() + _ = yym2887 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2878)) + r.EncodeString(codecSelferC_UTF81234, string(yy2886)) } } } } - if yyr2868 || yy2arr2868 { + if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2868[3] { + if yyq2876[3] { if x.TargetRef == nil { r.EncodeNil() } else { @@ -37196,7 +37316,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2868[3] { + if yyq2876[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -37207,7 +37327,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2868 || yy2arr2868 { + if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37220,25 +37340,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2881 := z.DecBinary() - _ = yym2881 + yym2889 := z.DecBinary() + _ = yym2889 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2882 := r.ContainerType() - if yyct2882 == codecSelferValueTypeMap1234 { - yyl2882 := r.ReadMapStart() - if yyl2882 == 0 { + yyct2890 := r.ContainerType() + if yyct2890 == codecSelferValueTypeMap1234 { + yyl2890 := r.ReadMapStart() + if yyl2890 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2882, d) + x.codecDecodeSelfFromMap(yyl2890, d) } - } else if yyct2882 == codecSelferValueTypeArray1234 { - yyl2882 := r.ReadArrayStart() - if yyl2882 == 0 { + } else if yyct2890 == codecSelferValueTypeArray1234 { + yyl2890 := r.ReadArrayStart() + if yyl2890 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2882, d) + x.codecDecodeSelfFromArray(yyl2890, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37250,12 +37370,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2883Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2883Slc - var yyhl2883 bool = l >= 0 - for yyj2883 := 0; ; yyj2883++ { - if yyhl2883 { - if yyj2883 >= l { + var yys2891Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2891Slc + var yyhl2891 bool = l >= 0 + for yyj2891 := 0; ; yyj2891++ { + if yyhl2891 { + if yyj2891 >= l { break } } else { @@ -37264,10 +37384,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2883Slc = r.DecodeBytes(yys2883Slc, true, true) - yys2883 := string(yys2883Slc) + yys2891Slc = r.DecodeBytes(yys2891Slc, true, true) + yys2891 := string(yys2891Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2883 { + switch yys2891 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -37289,8 +37409,8 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.NodeName == nil { x.NodeName = new(string) } - yym2887 := z.DecBinary() - _ = yym2887 + yym2895 := z.DecBinary() + _ = yym2895 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() @@ -37308,9 +37428,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2883) - } // end switch yys2883 - } // end for yyj2883 + z.DecStructFieldNotFound(-1, yys2891) + } // end switch yys2891 + } // end for yyj2891 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37318,16 +37438,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2889 int - var yyb2889 bool - var yyhl2889 bool = l >= 0 - yyj2889++ - if yyhl2889 { - yyb2889 = yyj2889 > l + var yyj2897 int + var yyb2897 bool + var yyhl2897 bool = l >= 0 + yyj2897++ + if yyhl2897 { + yyb2897 = yyj2897 > l } else { - yyb2889 = r.CheckBreak() + yyb2897 = r.CheckBreak() } - if yyb2889 { + if yyb2897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37337,13 +37457,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj2889++ - if yyhl2889 { - yyb2889 = yyj2889 > l + yyj2897++ + if yyhl2897 { + yyb2897 = yyj2897 > l } else { - yyb2889 = r.CheckBreak() + yyb2897 = r.CheckBreak() } - if yyb2889 { + if yyb2897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37353,13 +37473,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj2889++ - if yyhl2889 { - yyb2889 = yyj2889 > l + yyj2897++ + if yyhl2897 { + yyb2897 = yyj2897 > l } else { - yyb2889 = r.CheckBreak() + yyb2897 = r.CheckBreak() } - if yyb2889 { + if yyb2897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37372,20 +37492,20 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.NodeName == nil { x.NodeName = new(string) } - yym2893 := z.DecBinary() - _ = yym2893 + yym2901 := z.DecBinary() + _ = yym2901 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } - yyj2889++ - if yyhl2889 { - yyb2889 = yyj2889 > l + yyj2897++ + if yyhl2897 { + yyb2897 = yyj2897 > l } else { - yyb2889 = r.CheckBreak() + yyb2897 = r.CheckBreak() } - if yyb2889 { + if yyb2897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37401,17 +37521,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj2889++ - if yyhl2889 { - yyb2889 = yyj2889 > l + yyj2897++ + if yyhl2897 { + yyb2897 = yyj2897 > l } else { - yyb2889 = r.CheckBreak() + yyb2897 = r.CheckBreak() } - if yyb2889 { + if yyb2897 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2889-1, "") + z.DecStructFieldNotFound(yyj2897-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37423,36 +37543,36 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2895 := z.EncBinary() - _ = yym2895 + yym2903 := z.EncBinary() + _ = yym2903 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2904 := !z.EncBinary() + yy2arr2904 := z.EncBasicHandle().StructToArray + var yyq2904 [3]bool + _, _, _ = yysep2904, yyq2904, yy2arr2904 + const yyr2904 bool = false + yyq2904[0] = x.Name != "" + yyq2904[2] = x.Protocol != "" + var yynn2904 int + if yyr2904 || yy2arr2904 { r.EncodeArrayStart(3) } else { - yynn2896 = 1 - for _, b := range yyq2896 { + yynn2904 = 1 + for _, b := range yyq2904 { if b { - yynn2896++ + yynn2904++ } } - r.EncodeMapStart(yynn2896) - yynn2896 = 0 + r.EncodeMapStart(yynn2904) + yynn2904 = 0 } - if yyr2896 || yy2arr2896 { + if yyr2904 || yy2arr2904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2896[0] { - yym2898 := z.EncBinary() - _ = yym2898 + if yyq2904[0] { + yym2906 := z.EncBinary() + _ = yym2906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -37461,22 +37581,22 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2896[0] { + if yyq2904[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2899 := z.EncBinary() - _ = yym2899 + yym2907 := z.EncBinary() + _ = yym2907 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2896 || yy2arr2896 { + if yyr2904 || yy2arr2904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2901 := z.EncBinary() - _ = yym2901 + yym2909 := z.EncBinary() + _ = yym2909 if false { } else { r.EncodeInt(int64(x.Port)) @@ -37485,29 +37605,29 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2902 := z.EncBinary() - _ = yym2902 + yym2910 := z.EncBinary() + _ = yym2910 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2896 || yy2arr2896 { + if yyr2904 || yy2arr2904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2896[2] { + if yyq2904[2] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2896[2] { + if yyq2904[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2896 || yy2arr2896 { + if yyr2904 || yy2arr2904 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37520,25 +37640,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2904 := z.DecBinary() - _ = yym2904 + yym2912 := z.DecBinary() + _ = yym2912 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2905 := r.ContainerType() - if yyct2905 == codecSelferValueTypeMap1234 { - yyl2905 := r.ReadMapStart() - if yyl2905 == 0 { + yyct2913 := r.ContainerType() + if yyct2913 == codecSelferValueTypeMap1234 { + yyl2913 := r.ReadMapStart() + if yyl2913 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2905, d) + x.codecDecodeSelfFromMap(yyl2913, d) } - } else if yyct2905 == codecSelferValueTypeArray1234 { - yyl2905 := r.ReadArrayStart() - if yyl2905 == 0 { + } else if yyct2913 == codecSelferValueTypeArray1234 { + yyl2913 := r.ReadArrayStart() + if yyl2913 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2905, d) + x.codecDecodeSelfFromArray(yyl2913, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37550,12 +37670,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2906Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2906Slc - var yyhl2906 bool = l >= 0 - for yyj2906 := 0; ; yyj2906++ { - if yyhl2906 { - if yyj2906 >= l { + var yys2914Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2914Slc + var yyhl2914 bool = l >= 0 + for yyj2914 := 0; ; yyj2914++ { + if yyhl2914 { + if yyj2914 >= l { break } } else { @@ -37564,10 +37684,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2906Slc = r.DecodeBytes(yys2906Slc, true, true) - yys2906 := string(yys2906Slc) + yys2914Slc = r.DecodeBytes(yys2914Slc, true, true) + yys2914 := string(yys2914Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2906 { + switch yys2914 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -37587,9 +37707,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2906) - } // end switch yys2906 - } // end for yyj2906 + z.DecStructFieldNotFound(-1, yys2914) + } // end switch yys2914 + } // end for yyj2914 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37597,16 +37717,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2910 int - var yyb2910 bool - var yyhl2910 bool = l >= 0 - yyj2910++ - if yyhl2910 { - yyb2910 = yyj2910 > l + var yyj2918 int + var yyb2918 bool + var yyhl2918 bool = l >= 0 + yyj2918++ + if yyhl2918 { + yyb2918 = yyj2918 > l } else { - yyb2910 = r.CheckBreak() + yyb2918 = r.CheckBreak() } - if yyb2910 { + if yyb2918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37616,13 +37736,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2910++ - if yyhl2910 { - yyb2910 = yyj2910 > l + yyj2918++ + if yyhl2918 { + yyb2918 = yyj2918 > l } else { - yyb2910 = r.CheckBreak() + yyb2918 = r.CheckBreak() } - if yyb2910 { + if yyb2918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37632,13 +37752,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2910++ - if yyhl2910 { - yyb2910 = yyj2910 > l + yyj2918++ + if yyhl2918 { + yyb2918 = yyj2918 > l } else { - yyb2910 = r.CheckBreak() + yyb2918 = r.CheckBreak() } - if yyb2910 { + if yyb2918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37649,17 +37769,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj2910++ - if yyhl2910 { - yyb2910 = yyj2910 > l + yyj2918++ + if yyhl2918 { + yyb2918 = yyj2918 > l } else { - yyb2910 = r.CheckBreak() + yyb2918 = r.CheckBreak() } - if yyb2910 { + if yyb2918 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2910-1, "") + z.DecStructFieldNotFound(yyj2918-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37671,37 +37791,37 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2914 := z.EncBinary() - _ = yym2914 + yym2922 := z.EncBinary() + _ = yym2922 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2923 := !z.EncBinary() + yy2arr2923 := z.EncBasicHandle().StructToArray + var yyq2923 [4]bool + _, _, _ = yysep2923, yyq2923, yy2arr2923 + const yyr2923 bool = false + yyq2923[0] = x.Kind != "" + yyq2923[1] = x.APIVersion != "" + yyq2923[2] = true + var yynn2923 int + if yyr2923 || yy2arr2923 { r.EncodeArrayStart(4) } else { - yynn2915 = 1 - for _, b := range yyq2915 { + yynn2923 = 1 + for _, b := range yyq2923 { if b { - yynn2915++ + yynn2923++ } } - r.EncodeMapStart(yynn2915) - yynn2915 = 0 + r.EncodeMapStart(yynn2923) + yynn2923 = 0 } - if yyr2915 || yy2arr2915 { + if yyr2923 || yy2arr2923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2915[0] { - yym2917 := z.EncBinary() - _ = yym2917 + if yyq2923[0] { + yym2925 := z.EncBinary() + _ = yym2925 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -37710,23 +37830,23 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2915[0] { + if yyq2923[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2918 := z.EncBinary() - _ = yym2918 + yym2926 := z.EncBinary() + _ = yym2926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2915 || yy2arr2915 { + if yyr2923 || yy2arr2923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2915[1] { - yym2920 := z.EncBinary() - _ = yym2920 + if yyq2923[1] { + yym2928 := z.EncBinary() + _ = yym2928 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -37735,54 +37855,54 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2915[1] { + if yyq2923[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2921 := z.EncBinary() - _ = yym2921 + yym2929 := z.EncBinary() + _ = yym2929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2915 || yy2arr2915 { + if yyr2923 || yy2arr2923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2915[2] { - yy2923 := &x.ListMeta - yym2924 := z.EncBinary() - _ = yym2924 + if yyq2923[2] { + yy2931 := &x.ListMeta + yym2932 := z.EncBinary() + _ = yym2932 if false { - } else if z.HasExtensions() && z.EncExt(yy2923) { + } else if z.HasExtensions() && z.EncExt(yy2931) { } else { - z.EncFallback(yy2923) + z.EncFallback(yy2931) } } else { r.EncodeNil() } } else { - if yyq2915[2] { + if yyq2923[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2925 := &x.ListMeta - yym2926 := z.EncBinary() - _ = yym2926 + yy2933 := &x.ListMeta + yym2934 := z.EncBinary() + _ = yym2934 if false { - } else if z.HasExtensions() && z.EncExt(yy2925) { + } else if z.HasExtensions() && z.EncExt(yy2933) { } else { - z.EncFallback(yy2925) + z.EncFallback(yy2933) } } } - if yyr2915 || yy2arr2915 { + if yyr2923 || yy2arr2923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2928 := z.EncBinary() - _ = yym2928 + yym2936 := z.EncBinary() + _ = yym2936 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) @@ -37795,15 +37915,15 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2929 := z.EncBinary() - _ = yym2929 + yym2937 := z.EncBinary() + _ = yym2937 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2915 || yy2arr2915 { + if yyr2923 || yy2arr2923 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37816,25 +37936,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2930 := z.DecBinary() - _ = yym2930 + yym2938 := z.DecBinary() + _ = yym2938 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2931 := r.ContainerType() - if yyct2931 == codecSelferValueTypeMap1234 { - yyl2931 := r.ReadMapStart() - if yyl2931 == 0 { + yyct2939 := r.ContainerType() + if yyct2939 == codecSelferValueTypeMap1234 { + yyl2939 := r.ReadMapStart() + if yyl2939 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2931, d) + x.codecDecodeSelfFromMap(yyl2939, d) } - } else if yyct2931 == codecSelferValueTypeArray1234 { - yyl2931 := r.ReadArrayStart() - if yyl2931 == 0 { + } else if yyct2939 == codecSelferValueTypeArray1234 { + yyl2939 := r.ReadArrayStart() + if yyl2939 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2931, d) + x.codecDecodeSelfFromArray(yyl2939, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37846,12 +37966,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2932Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2932Slc - var yyhl2932 bool = l >= 0 - for yyj2932 := 0; ; yyj2932++ { - if yyhl2932 { - if yyj2932 >= l { + var yys2940Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2940Slc + var yyhl2940 bool = l >= 0 + for yyj2940 := 0; ; yyj2940++ { + if yyhl2940 { + if yyj2940 >= l { break } } else { @@ -37860,10 +37980,10 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2932Slc = r.DecodeBytes(yys2932Slc, true, true) - yys2932 := string(yys2932Slc) + yys2940Slc = r.DecodeBytes(yys2940Slc, true, true) + yys2940 := string(yys2940Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2932 { + switch yys2940 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -37880,31 +38000,31 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2935 := &x.ListMeta - yym2936 := z.DecBinary() - _ = yym2936 + yyv2943 := &x.ListMeta + yym2944 := z.DecBinary() + _ = yym2944 if false { - } else if z.HasExtensions() && z.DecExt(yyv2935) { + } else if z.HasExtensions() && z.DecExt(yyv2943) { } else { - z.DecFallback(yyv2935, false) + z.DecFallback(yyv2943, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2937 := &x.Items - yym2938 := z.DecBinary() - _ = yym2938 + yyv2945 := &x.Items + yym2946 := z.DecBinary() + _ = yym2946 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2937), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2945), d) } } default: - z.DecStructFieldNotFound(-1, yys2932) - } // end switch yys2932 - } // end for yyj2932 + z.DecStructFieldNotFound(-1, yys2940) + } // end switch yys2940 + } // end for yyj2940 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37912,16 +38032,16 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2939 int - var yyb2939 bool - var yyhl2939 bool = l >= 0 - yyj2939++ - if yyhl2939 { - yyb2939 = yyj2939 > l + var yyj2947 int + var yyb2947 bool + var yyhl2947 bool = l >= 0 + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l } else { - yyb2939 = r.CheckBreak() + yyb2947 = r.CheckBreak() } - if yyb2939 { + if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37931,13 +38051,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2939++ - if yyhl2939 { - yyb2939 = yyj2939 > l + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l } else { - yyb2939 = r.CheckBreak() + yyb2947 = r.CheckBreak() } - if yyb2939 { + if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37947,13 +38067,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2939++ - if yyhl2939 { - yyb2939 = yyj2939 > l + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l } else { - yyb2939 = r.CheckBreak() + yyb2947 = r.CheckBreak() } - if yyb2939 { + if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37961,22 +38081,22 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv2942 := &x.ListMeta - yym2943 := z.DecBinary() - _ = yym2943 + yyv2950 := &x.ListMeta + yym2951 := z.DecBinary() + _ = yym2951 if false { - } else if z.HasExtensions() && z.DecExt(yyv2942) { + } else if z.HasExtensions() && z.DecExt(yyv2950) { } else { - z.DecFallback(yyv2942, false) + z.DecFallback(yyv2950, false) } } - yyj2939++ - if yyhl2939 { - yyb2939 = yyj2939 > l + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l } else { - yyb2939 = r.CheckBreak() + yyb2947 = r.CheckBreak() } - if yyb2939 { + if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37984,26 +38104,26 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2944 := &x.Items - yym2945 := z.DecBinary() - _ = yym2945 + yyv2952 := &x.Items + yym2953 := z.DecBinary() + _ = yym2953 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2944), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2952), d) } } for { - yyj2939++ - if yyhl2939 { - yyb2939 = yyj2939 > l + yyj2947++ + if yyhl2947 { + yyb2947 = yyj2947 > l } else { - yyb2939 = r.CheckBreak() + yyb2947 = r.CheckBreak() } - if yyb2939 { + if yyb2947 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2939-1, "") + z.DecStructFieldNotFound(yyj2947-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38015,38 +38135,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2946 := z.EncBinary() - _ = yym2946 + yym2954 := z.EncBinary() + _ = yym2954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2955 := !z.EncBinary() + yy2arr2955 := z.EncBasicHandle().StructToArray + var yyq2955 [4]bool + _, _, _ = yysep2955, yyq2955, yy2arr2955 + const yyr2955 bool = false + yyq2955[0] = x.PodCIDR != "" + yyq2955[1] = x.ExternalID != "" + yyq2955[2] = x.ProviderID != "" + yyq2955[3] = x.Unschedulable != false + var yynn2955 int + if yyr2955 || yy2arr2955 { r.EncodeArrayStart(4) } else { - yynn2947 = 0 - for _, b := range yyq2947 { + yynn2955 = 0 + for _, b := range yyq2955 { if b { - yynn2947++ + yynn2955++ } } - r.EncodeMapStart(yynn2947) - yynn2947 = 0 + r.EncodeMapStart(yynn2955) + yynn2955 = 0 } - if yyr2947 || yy2arr2947 { + if yyr2955 || yy2arr2955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2947[0] { - yym2949 := z.EncBinary() - _ = yym2949 + if yyq2955[0] { + yym2957 := z.EncBinary() + _ = yym2957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -38055,23 +38175,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2947[0] { + if yyq2955[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2950 := z.EncBinary() - _ = yym2950 + yym2958 := z.EncBinary() + _ = yym2958 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2947 || yy2arr2947 { + if yyr2955 || yy2arr2955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2947[1] { - yym2952 := z.EncBinary() - _ = yym2952 + if yyq2955[1] { + yym2960 := z.EncBinary() + _ = yym2960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -38080,23 +38200,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2947[1] { + if yyq2955[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2953 := z.EncBinary() - _ = yym2953 + yym2961 := z.EncBinary() + _ = yym2961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2947 || yy2arr2947 { + if yyr2955 || yy2arr2955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2947[2] { - yym2955 := z.EncBinary() - _ = yym2955 + if yyq2955[2] { + yym2963 := z.EncBinary() + _ = yym2963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -38105,23 +38225,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2947[2] { + if yyq2955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2956 := z.EncBinary() - _ = yym2956 + yym2964 := z.EncBinary() + _ = yym2964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2947 || yy2arr2947 { + if yyr2955 || yy2arr2955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2947[3] { - yym2958 := z.EncBinary() - _ = yym2958 + if yyq2955[3] { + yym2966 := z.EncBinary() + _ = yym2966 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -38130,19 +38250,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2947[3] { + if yyq2955[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2959 := z.EncBinary() - _ = yym2959 + yym2967 := z.EncBinary() + _ = yym2967 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2947 || yy2arr2947 { + if yyr2955 || yy2arr2955 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38155,25 +38275,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2960 := z.DecBinary() - _ = yym2960 + yym2968 := z.DecBinary() + _ = yym2968 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2961 := r.ContainerType() - if yyct2961 == codecSelferValueTypeMap1234 { - yyl2961 := r.ReadMapStart() - if yyl2961 == 0 { + yyct2969 := r.ContainerType() + if yyct2969 == codecSelferValueTypeMap1234 { + yyl2969 := r.ReadMapStart() + if yyl2969 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2961, d) + x.codecDecodeSelfFromMap(yyl2969, d) } - } else if yyct2961 == codecSelferValueTypeArray1234 { - yyl2961 := r.ReadArrayStart() - if yyl2961 == 0 { + } else if yyct2969 == codecSelferValueTypeArray1234 { + yyl2969 := r.ReadArrayStart() + if yyl2969 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2961, d) + x.codecDecodeSelfFromArray(yyl2969, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38185,12 +38305,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2962Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2962Slc - var yyhl2962 bool = l >= 0 - for yyj2962 := 0; ; yyj2962++ { - if yyhl2962 { - if yyj2962 >= l { + var yys2970Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2970Slc + var yyhl2970 bool = l >= 0 + for yyj2970 := 0; ; yyj2970++ { + if yyhl2970 { + if yyj2970 >= l { break } } else { @@ -38199,10 +38319,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2962Slc = r.DecodeBytes(yys2962Slc, true, true) - yys2962 := string(yys2962Slc) + yys2970Slc = r.DecodeBytes(yys2970Slc, true, true) + yys2970 := string(yys2970Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2962 { + switch yys2970 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -38228,9 +38348,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys2962) - } // end switch yys2962 - } // end for yyj2962 + z.DecStructFieldNotFound(-1, yys2970) + } // end switch yys2970 + } // end for yyj2970 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38238,16 +38358,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2967 int - var yyb2967 bool - var yyhl2967 bool = l >= 0 - yyj2967++ - if yyhl2967 { - yyb2967 = yyj2967 > l + var yyj2975 int + var yyb2975 bool + var yyhl2975 bool = l >= 0 + yyj2975++ + if yyhl2975 { + yyb2975 = yyj2975 > l } else { - yyb2967 = r.CheckBreak() + yyb2975 = r.CheckBreak() } - if yyb2967 { + if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38257,13 +38377,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj2967++ - if yyhl2967 { - yyb2967 = yyj2967 > l + yyj2975++ + if yyhl2975 { + yyb2975 = yyj2975 > l } else { - yyb2967 = r.CheckBreak() + yyb2975 = r.CheckBreak() } - if yyb2967 { + if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38273,13 +38393,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj2967++ - if yyhl2967 { - yyb2967 = yyj2967 > l + yyj2975++ + if yyhl2975 { + yyb2975 = yyj2975 > l } else { - yyb2967 = r.CheckBreak() + yyb2975 = r.CheckBreak() } - if yyb2967 { + if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38289,13 +38409,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj2967++ - if yyhl2967 { - yyb2967 = yyj2967 > l + yyj2975++ + if yyhl2975 { + yyb2975 = yyj2975 > l } else { - yyb2967 = r.CheckBreak() + yyb2975 = r.CheckBreak() } - if yyb2967 { + if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38306,17 +38426,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj2967++ - if yyhl2967 { - yyb2967 = yyj2967 > l + yyj2975++ + if yyhl2975 { + yyb2975 = yyj2975 > l } else { - yyb2967 = r.CheckBreak() + yyb2975 = r.CheckBreak() } - if yyb2967 { + if yyb2975 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2967-1, "") + z.DecStructFieldNotFound(yyj2975-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38328,33 +38448,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2972 := z.EncBinary() - _ = yym2972 + yym2980 := z.EncBinary() + _ = yym2980 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2973 := !z.EncBinary() - yy2arr2973 := z.EncBasicHandle().StructToArray - var yyq2973 [1]bool - _, _, _ = yysep2973, yyq2973, yy2arr2973 - const yyr2973 bool = false - var yynn2973 int - if yyr2973 || yy2arr2973 { + yysep2981 := !z.EncBinary() + yy2arr2981 := z.EncBasicHandle().StructToArray + var yyq2981 [1]bool + _, _, _ = yysep2981, yyq2981, yy2arr2981 + const yyr2981 bool = false + var yynn2981 int + if yyr2981 || yy2arr2981 { r.EncodeArrayStart(1) } else { - yynn2973 = 1 - for _, b := range yyq2973 { + yynn2981 = 1 + for _, b := range yyq2981 { if b { - yynn2973++ + yynn2981++ } } - r.EncodeMapStart(yynn2973) - yynn2973 = 0 + r.EncodeMapStart(yynn2981) + yynn2981 = 0 } - if yyr2973 || yy2arr2973 { + if yyr2981 || yy2arr2981 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2975 := z.EncBinary() - _ = yym2975 + yym2983 := z.EncBinary() + _ = yym2983 if false { } else { r.EncodeInt(int64(x.Port)) @@ -38363,14 +38483,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2976 := z.EncBinary() - _ = yym2976 + yym2984 := z.EncBinary() + _ = yym2984 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2973 || yy2arr2973 { + if yyr2981 || yy2arr2981 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38383,25 +38503,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2977 := z.DecBinary() - _ = yym2977 + yym2985 := z.DecBinary() + _ = yym2985 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2978 := r.ContainerType() - if yyct2978 == codecSelferValueTypeMap1234 { - yyl2978 := r.ReadMapStart() - if yyl2978 == 0 { + yyct2986 := r.ContainerType() + if yyct2986 == codecSelferValueTypeMap1234 { + yyl2986 := r.ReadMapStart() + if yyl2986 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2978, d) + x.codecDecodeSelfFromMap(yyl2986, d) } - } else if yyct2978 == codecSelferValueTypeArray1234 { - yyl2978 := r.ReadArrayStart() - if yyl2978 == 0 { + } else if yyct2986 == codecSelferValueTypeArray1234 { + yyl2986 := r.ReadArrayStart() + if yyl2986 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2978, d) + x.codecDecodeSelfFromArray(yyl2986, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38413,12 +38533,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2979Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2979Slc - var yyhl2979 bool = l >= 0 - for yyj2979 := 0; ; yyj2979++ { - if yyhl2979 { - if yyj2979 >= l { + var yys2987Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2987Slc + var yyhl2987 bool = l >= 0 + for yyj2987 := 0; ; yyj2987++ { + if yyhl2987 { + if yyj2987 >= l { break } } else { @@ -38427,10 +38547,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2979Slc = r.DecodeBytes(yys2979Slc, true, true) - yys2979 := string(yys2979Slc) + yys2987Slc = r.DecodeBytes(yys2987Slc, true, true) + yys2987 := string(yys2987Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2979 { + switch yys2987 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -38438,9 +38558,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2979) - } // end switch yys2979 - } // end for yyj2979 + z.DecStructFieldNotFound(-1, yys2987) + } // end switch yys2987 + } // end for yyj2987 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38448,16 +38568,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2981 int - var yyb2981 bool - var yyhl2981 bool = l >= 0 - yyj2981++ - if yyhl2981 { - yyb2981 = yyj2981 > l + var yyj2989 int + var yyb2989 bool + var yyhl2989 bool = l >= 0 + yyj2989++ + if yyhl2989 { + yyb2989 = yyj2989 > l } else { - yyb2981 = r.CheckBreak() + yyb2989 = r.CheckBreak() } - if yyb2981 { + if yyb2989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38468,17 +38588,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj2981++ - if yyhl2981 { - yyb2981 = yyj2981 > l + yyj2989++ + if yyhl2989 { + yyb2989 = yyj2989 > l } else { - yyb2981 = r.CheckBreak() + yyb2989 = r.CheckBreak() } - if yyb2981 { + if yyb2989 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2981-1, "") + z.DecStructFieldNotFound(yyj2989-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38490,48 +38610,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2983 := z.EncBinary() - _ = yym2983 + yym2991 := z.EncBinary() + _ = yym2991 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2992 := !z.EncBinary() + yy2arr2992 := z.EncBasicHandle().StructToArray + var yyq2992 [1]bool + _, _, _ = yysep2992, yyq2992, yy2arr2992 + const yyr2992 bool = false + yyq2992[0] = true + var yynn2992 int + if yyr2992 || yy2arr2992 { r.EncodeArrayStart(1) } else { - yynn2984 = 0 - for _, b := range yyq2984 { + yynn2992 = 0 + for _, b := range yyq2992 { if b { - yynn2984++ + yynn2992++ } } - r.EncodeMapStart(yynn2984) - yynn2984 = 0 + r.EncodeMapStart(yynn2992) + yynn2992 = 0 } - if yyr2984 || yy2arr2984 { + if yyr2992 || yy2arr2992 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2984[0] { - yy2986 := &x.KubeletEndpoint - yy2986.CodecEncodeSelf(e) + if yyq2992[0] { + yy2994 := &x.KubeletEndpoint + yy2994.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2984[0] { + if yyq2992[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2987 := &x.KubeletEndpoint - yy2987.CodecEncodeSelf(e) + yy2995 := &x.KubeletEndpoint + yy2995.CodecEncodeSelf(e) } } - if yyr2984 || yy2arr2984 { + if yyr2992 || yy2arr2992 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38544,25 +38664,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2988 := z.DecBinary() - _ = yym2988 + yym2996 := z.DecBinary() + _ = yym2996 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2989 := r.ContainerType() - if yyct2989 == codecSelferValueTypeMap1234 { - yyl2989 := r.ReadMapStart() - if yyl2989 == 0 { + yyct2997 := r.ContainerType() + if yyct2997 == codecSelferValueTypeMap1234 { + yyl2997 := r.ReadMapStart() + if yyl2997 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2989, d) + x.codecDecodeSelfFromMap(yyl2997, d) } - } else if yyct2989 == codecSelferValueTypeArray1234 { - yyl2989 := r.ReadArrayStart() - if yyl2989 == 0 { + } else if yyct2997 == codecSelferValueTypeArray1234 { + yyl2997 := r.ReadArrayStart() + if yyl2997 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2989, d) + x.codecDecodeSelfFromArray(yyl2997, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38574,12 +38694,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2990Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2990Slc - var yyhl2990 bool = l >= 0 - for yyj2990 := 0; ; yyj2990++ { - if yyhl2990 { - if yyj2990 >= l { + var yys2998Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2998Slc + var yyhl2998 bool = l >= 0 + for yyj2998 := 0; ; yyj2998++ { + if yyhl2998 { + if yyj2998 >= l { break } } else { @@ -38588,21 +38708,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2990Slc = r.DecodeBytes(yys2990Slc, true, true) - yys2990 := string(yys2990Slc) + yys2998Slc = r.DecodeBytes(yys2998Slc, true, true) + yys2998 := string(yys2998Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2990 { + switch yys2998 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2991 := &x.KubeletEndpoint - yyv2991.CodecDecodeSelf(d) + yyv2999 := &x.KubeletEndpoint + yyv2999.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2990) - } // end switch yys2990 - } // end for yyj2990 + z.DecStructFieldNotFound(-1, yys2998) + } // end switch yys2998 + } // end for yyj2998 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38610,16 +38730,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2992 int - var yyb2992 bool - var yyhl2992 bool = l >= 0 - yyj2992++ - if yyhl2992 { - yyb2992 = yyj2992 > l + var yyj3000 int + var yyb3000 bool + var yyhl3000 bool = l >= 0 + yyj3000++ + if yyhl3000 { + yyb3000 = yyj3000 > l } else { - yyb2992 = r.CheckBreak() + yyb3000 = r.CheckBreak() } - if yyb2992 { + if yyb3000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38627,21 +38747,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2993 := &x.KubeletEndpoint - yyv2993.CodecDecodeSelf(d) + yyv3001 := &x.KubeletEndpoint + yyv3001.CodecDecodeSelf(d) } for { - yyj2992++ - if yyhl2992 { - yyb2992 = yyj2992 > l + yyj3000++ + if yyhl3000 { + yyb3000 = yyj3000 > l } else { - yyb2992 = r.CheckBreak() + yyb3000 = r.CheckBreak() } - if yyb2992 { + if yyb3000 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2992-1, "") + z.DecStructFieldNotFound(yyj3000-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38653,33 +38773,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2994 := z.EncBinary() - _ = yym2994 + yym3002 := z.EncBinary() + _ = yym3002 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2995 := !z.EncBinary() - yy2arr2995 := z.EncBasicHandle().StructToArray - var yyq2995 [10]bool - _, _, _ = yysep2995, yyq2995, yy2arr2995 - const yyr2995 bool = false - var yynn2995 int - if yyr2995 || yy2arr2995 { + yysep3003 := !z.EncBinary() + yy2arr3003 := z.EncBasicHandle().StructToArray + var yyq3003 [10]bool + _, _, _ = yysep3003, yyq3003, yy2arr3003 + const yyr3003 bool = false + var yynn3003 int + if yyr3003 || yy2arr3003 { r.EncodeArrayStart(10) } else { - yynn2995 = 10 - for _, b := range yyq2995 { + yynn3003 = 10 + for _, b := range yyq3003 { if b { - yynn2995++ + yynn3003++ } } - r.EncodeMapStart(yynn2995) - yynn2995 = 0 + r.EncodeMapStart(yynn3003) + yynn3003 = 0 } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2997 := z.EncBinary() - _ = yym2997 + yym3005 := z.EncBinary() + _ = yym3005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -38688,17 +38808,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2998 := z.EncBinary() - _ = yym2998 + yym3006 := z.EncBinary() + _ = yym3006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3000 := z.EncBinary() - _ = yym3000 + yym3008 := z.EncBinary() + _ = yym3008 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -38707,17 +38827,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3001 := z.EncBinary() - _ = yym3001 + yym3009 := z.EncBinary() + _ = yym3009 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3003 := z.EncBinary() - _ = yym3003 + yym3011 := z.EncBinary() + _ = yym3011 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -38726,17 +38846,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3004 := z.EncBinary() - _ = yym3004 + yym3012 := z.EncBinary() + _ = yym3012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3006 := z.EncBinary() - _ = yym3006 + yym3014 := z.EncBinary() + _ = yym3014 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -38745,17 +38865,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3007 := z.EncBinary() - _ = yym3007 + yym3015 := z.EncBinary() + _ = yym3015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3009 := z.EncBinary() - _ = yym3009 + yym3017 := z.EncBinary() + _ = yym3017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -38764,17 +38884,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3010 := z.EncBinary() - _ = yym3010 + yym3018 := z.EncBinary() + _ = yym3018 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3012 := z.EncBinary() - _ = yym3012 + yym3020 := z.EncBinary() + _ = yym3020 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -38783,17 +38903,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3013 := z.EncBinary() - _ = yym3013 + yym3021 := z.EncBinary() + _ = yym3021 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3015 := z.EncBinary() - _ = yym3015 + yym3023 := z.EncBinary() + _ = yym3023 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -38802,17 +38922,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3016 := z.EncBinary() - _ = yym3016 + yym3024 := z.EncBinary() + _ = yym3024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3018 := z.EncBinary() - _ = yym3018 + yym3026 := z.EncBinary() + _ = yym3026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -38821,17 +38941,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3019 := z.EncBinary() - _ = yym3019 + yym3027 := z.EncBinary() + _ = yym3027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3021 := z.EncBinary() - _ = yym3021 + yym3029 := z.EncBinary() + _ = yym3029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -38840,17 +38960,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3022 := z.EncBinary() - _ = yym3022 + yym3030 := z.EncBinary() + _ = yym3030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3024 := z.EncBinary() - _ = yym3024 + yym3032 := z.EncBinary() + _ = yym3032 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -38859,14 +38979,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3025 := z.EncBinary() - _ = yym3025 + yym3033 := z.EncBinary() + _ = yym3033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2995 || yy2arr2995 { + if yyr3003 || yy2arr3003 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38879,25 +38999,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3026 := z.DecBinary() - _ = yym3026 + yym3034 := z.DecBinary() + _ = yym3034 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3027 := r.ContainerType() - if yyct3027 == codecSelferValueTypeMap1234 { - yyl3027 := r.ReadMapStart() - if yyl3027 == 0 { + yyct3035 := r.ContainerType() + if yyct3035 == codecSelferValueTypeMap1234 { + yyl3035 := r.ReadMapStart() + if yyl3035 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3027, d) + x.codecDecodeSelfFromMap(yyl3035, d) } - } else if yyct3027 == codecSelferValueTypeArray1234 { - yyl3027 := r.ReadArrayStart() - if yyl3027 == 0 { + } else if yyct3035 == codecSelferValueTypeArray1234 { + yyl3035 := r.ReadArrayStart() + if yyl3035 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3027, d) + x.codecDecodeSelfFromArray(yyl3035, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38909,12 +39029,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3028Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3028Slc - var yyhl3028 bool = l >= 0 - for yyj3028 := 0; ; yyj3028++ { - if yyhl3028 { - if yyj3028 >= l { + var yys3036Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3036Slc + var yyhl3036 bool = l >= 0 + for yyj3036 := 0; ; yyj3036++ { + if yyhl3036 { + if yyj3036 >= l { break } } else { @@ -38923,10 +39043,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3028Slc = r.DecodeBytes(yys3028Slc, true, true) - yys3028 := string(yys3028Slc) + yys3036Slc = r.DecodeBytes(yys3036Slc, true, true) + yys3036 := string(yys3036Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3028 { + switch yys3036 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -38988,9 +39108,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3028) - } // end switch yys3028 - } // end for yyj3028 + z.DecStructFieldNotFound(-1, yys3036) + } // end switch yys3036 + } // end for yyj3036 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38998,16 +39118,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3039 int - var yyb3039 bool - var yyhl3039 bool = l >= 0 - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + var yyj3047 int + var yyb3047 bool + var yyhl3047 bool = l >= 0 + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39017,13 +39137,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39033,13 +39153,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39049,13 +39169,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39065,13 +39185,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39081,13 +39201,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39097,13 +39217,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39113,13 +39233,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39129,13 +39249,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39145,13 +39265,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39162,17 +39282,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj3039++ - if yyhl3039 { - yyb3039 = yyj3039 > l + yyj3047++ + if yyhl3047 { + yyb3047 = yyj3047 > l } else { - yyb3039 = r.CheckBreak() + yyb3047 = r.CheckBreak() } - if yyb3039 { + if yyb3047 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3039-1, "") + z.DecStructFieldNotFound(yyj3047-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39184,42 +39304,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3050 := z.EncBinary() - _ = yym3050 + yym3058 := z.EncBinary() + _ = yym3058 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3059 := !z.EncBinary() + yy2arr3059 := z.EncBasicHandle().StructToArray + var yyq3059 [10]bool + _, _, _ = yysep3059, yyq3059, yy2arr3059 + const yyr3059 bool = false + yyq3059[0] = len(x.Capacity) != 0 + yyq3059[1] = len(x.Allocatable) != 0 + yyq3059[2] = x.Phase != "" + yyq3059[3] = len(x.Conditions) != 0 + yyq3059[4] = len(x.Addresses) != 0 + yyq3059[5] = true + yyq3059[6] = true + yyq3059[7] = len(x.Images) != 0 + yyq3059[8] = len(x.VolumesInUse) != 0 + yyq3059[9] = len(x.VolumesAttached) != 0 + var yynn3059 int + if yyr3059 || yy2arr3059 { r.EncodeArrayStart(10) } else { - yynn3051 = 0 - for _, b := range yyq3051 { + yynn3059 = 0 + for _, b := range yyq3059 { if b { - yynn3051++ + yynn3059++ } } - r.EncodeMapStart(yynn3051) - yynn3051 = 0 + r.EncodeMapStart(yynn3059) + yynn3059 = 0 } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[0] { + if yyq3059[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -39229,7 +39349,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[0] { + if yyq3059[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -39240,9 +39360,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[1] { + if yyq3059[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -39252,7 +39372,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[1] { + if yyq3059[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -39263,29 +39383,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[2] { + if yyq3059[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3051[2] { + if yyq3059[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[3] { + if yyq3059[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym3056 := z.EncBinary() - _ = yym3056 + yym3064 := z.EncBinary() + _ = yym3064 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -39295,15 +39415,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[3] { + if yyq3059[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym3057 := z.EncBinary() - _ = yym3057 + yym3065 := z.EncBinary() + _ = yym3065 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -39311,14 +39431,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[4] { + if yyq3059[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym3059 := z.EncBinary() - _ = yym3059 + yym3067 := z.EncBinary() + _ = yym3067 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -39328,15 +39448,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[4] { + if yyq3059[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym3060 := z.EncBinary() - _ = yym3060 + yym3068 := z.EncBinary() + _ = yym3068 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -39344,48 +39464,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[5] { - yy3062 := &x.DaemonEndpoints - yy3062.CodecEncodeSelf(e) + if yyq3059[5] { + yy3070 := &x.DaemonEndpoints + yy3070.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3051[5] { + if yyq3059[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3063 := &x.DaemonEndpoints - yy3063.CodecEncodeSelf(e) + yy3071 := &x.DaemonEndpoints + yy3071.CodecEncodeSelf(e) } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[6] { - yy3065 := &x.NodeInfo - yy3065.CodecEncodeSelf(e) + if yyq3059[6] { + yy3073 := &x.NodeInfo + yy3073.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3051[6] { + if yyq3059[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3066 := &x.NodeInfo - yy3066.CodecEncodeSelf(e) + yy3074 := &x.NodeInfo + yy3074.CodecEncodeSelf(e) } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[7] { + if yyq3059[7] { if x.Images == nil { r.EncodeNil() } else { - yym3068 := z.EncBinary() - _ = yym3068 + yym3076 := z.EncBinary() + _ = yym3076 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -39395,15 +39515,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[7] { + if yyq3059[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { - yym3069 := z.EncBinary() - _ = yym3069 + yym3077 := z.EncBinary() + _ = yym3077 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -39411,14 +39531,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[8] { + if yyq3059[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym3071 := z.EncBinary() - _ = yym3071 + yym3079 := z.EncBinary() + _ = yym3079 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -39428,15 +39548,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[8] { + if yyq3059[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { - yym3072 := z.EncBinary() - _ = yym3072 + yym3080 := z.EncBinary() + _ = yym3080 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -39444,14 +39564,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3051[9] { + if yyq3059[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym3074 := z.EncBinary() - _ = yym3074 + yym3082 := z.EncBinary() + _ = yym3082 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -39461,15 +39581,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3051[9] { + if yyq3059[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { - yym3075 := z.EncBinary() - _ = yym3075 + yym3083 := z.EncBinary() + _ = yym3083 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -39477,7 +39597,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3051 || yy2arr3051 { + if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39490,25 +39610,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3076 := z.DecBinary() - _ = yym3076 + yym3084 := z.DecBinary() + _ = yym3084 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3077 := r.ContainerType() - if yyct3077 == codecSelferValueTypeMap1234 { - yyl3077 := r.ReadMapStart() - if yyl3077 == 0 { + yyct3085 := r.ContainerType() + if yyct3085 == codecSelferValueTypeMap1234 { + yyl3085 := r.ReadMapStart() + if yyl3085 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3077, d) + x.codecDecodeSelfFromMap(yyl3085, d) } - } else if yyct3077 == codecSelferValueTypeArray1234 { - yyl3077 := r.ReadArrayStart() - if yyl3077 == 0 { + } else if yyct3085 == codecSelferValueTypeArray1234 { + yyl3085 := r.ReadArrayStart() + if yyl3085 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3077, d) + x.codecDecodeSelfFromArray(yyl3085, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39520,12 +39640,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3078Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3078Slc - var yyhl3078 bool = l >= 0 - for yyj3078 := 0; ; yyj3078++ { - if yyhl3078 { - if yyj3078 >= l { + var yys3086Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3086Slc + var yyhl3086 bool = l >= 0 + for yyj3086 := 0; ; yyj3086++ { + if yyhl3086 { + if yyj3086 >= l { break } } else { @@ -39534,23 +39654,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3078Slc = r.DecodeBytes(yys3078Slc, true, true) - yys3078 := string(yys3078Slc) + yys3086Slc = r.DecodeBytes(yys3086Slc, true, true) + yys3086 := string(yys3086Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3078 { + switch yys3086 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3079 := &x.Capacity - yyv3079.CodecDecodeSelf(d) + yyv3087 := &x.Capacity + yyv3087.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv3080 := &x.Allocatable - yyv3080.CodecDecodeSelf(d) + yyv3088 := &x.Allocatable + yyv3088.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -39562,80 +39682,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv3082 := &x.Conditions - yym3083 := z.DecBinary() - _ = yym3083 + yyv3090 := &x.Conditions + yym3091 := z.DecBinary() + _ = yym3091 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3082), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3090), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3084 := &x.Addresses - yym3085 := z.DecBinary() - _ = yym3085 + yyv3092 := &x.Addresses + yym3093 := z.DecBinary() + _ = yym3093 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3084), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3092), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3086 := &x.DaemonEndpoints - yyv3086.CodecDecodeSelf(d) + yyv3094 := &x.DaemonEndpoints + yyv3094.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3087 := &x.NodeInfo - yyv3087.CodecDecodeSelf(d) + yyv3095 := &x.NodeInfo + yyv3095.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3088 := &x.Images - yym3089 := z.DecBinary() - _ = yym3089 + yyv3096 := &x.Images + yym3097 := z.DecBinary() + _ = yym3097 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3088), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3096), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3090 := &x.VolumesInUse - yym3091 := z.DecBinary() - _ = yym3091 + yyv3098 := &x.VolumesInUse + yym3099 := z.DecBinary() + _ = yym3099 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3090), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3098), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3092 := &x.VolumesAttached - yym3093 := z.DecBinary() - _ = yym3093 + yyv3100 := &x.VolumesAttached + yym3101 := z.DecBinary() + _ = yym3101 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3092), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3100), d) } } default: - z.DecStructFieldNotFound(-1, yys3078) - } // end switch yys3078 - } // end for yyj3078 + z.DecStructFieldNotFound(-1, yys3086) + } // end switch yys3086 + } // end for yyj3086 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39643,16 +39763,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3094 int - var yyb3094 bool - var yyhl3094 bool = l >= 0 - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + var yyj3102 int + var yyb3102 bool + var yyhl3102 bool = l >= 0 + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39660,16 +39780,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3095 := &x.Capacity - yyv3095.CodecDecodeSelf(d) + yyv3103 := &x.Capacity + yyv3103.CodecDecodeSelf(d) } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39677,16 +39797,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv3096 := &x.Allocatable - yyv3096.CodecDecodeSelf(d) + yyv3104 := &x.Allocatable + yyv3104.CodecDecodeSelf(d) } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39696,13 +39816,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39710,21 +39830,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv3098 := &x.Conditions - yym3099 := z.DecBinary() - _ = yym3099 + yyv3106 := &x.Conditions + yym3107 := z.DecBinary() + _ = yym3107 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3098), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3106), d) } } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39732,21 +39852,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3100 := &x.Addresses - yym3101 := z.DecBinary() - _ = yym3101 + yyv3108 := &x.Addresses + yym3109 := z.DecBinary() + _ = yym3109 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3100), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3108), d) } } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39754,16 +39874,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3102 := &x.DaemonEndpoints - yyv3102.CodecDecodeSelf(d) + yyv3110 := &x.DaemonEndpoints + yyv3110.CodecDecodeSelf(d) } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39771,16 +39891,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3103 := &x.NodeInfo - yyv3103.CodecDecodeSelf(d) + yyv3111 := &x.NodeInfo + yyv3111.CodecDecodeSelf(d) } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39788,21 +39908,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3104 := &x.Images - yym3105 := z.DecBinary() - _ = yym3105 + yyv3112 := &x.Images + yym3113 := z.DecBinary() + _ = yym3113 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3104), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3112), d) } } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39810,21 +39930,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3106 := &x.VolumesInUse - yym3107 := z.DecBinary() - _ = yym3107 + yyv3114 := &x.VolumesInUse + yym3115 := z.DecBinary() + _ = yym3115 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3106), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3114), d) } } - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39832,26 +39952,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3108 := &x.VolumesAttached - yym3109 := z.DecBinary() - _ = yym3109 + yyv3116 := &x.VolumesAttached + yym3117 := z.DecBinary() + _ = yym3117 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3108), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3116), d) } } for { - yyj3094++ - if yyhl3094 { - yyb3094 = yyj3094 > l + yyj3102++ + if yyhl3102 { + yyb3102 = yyj3102 > l } else { - yyb3094 = r.CheckBreak() + yyb3102 = r.CheckBreak() } - if yyb3094 { + if yyb3102 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3094-1, "") + z.DecStructFieldNotFound(yyj3102-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39860,8 +39980,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3110 := z.EncBinary() - _ = yym3110 + yym3118 := z.EncBinary() + _ = yym3118 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39873,8 +39993,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3111 := z.DecBinary() - _ = yym3111 + yym3119 := z.DecBinary() + _ = yym3119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39889,30 +40009,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3112 := z.EncBinary() - _ = yym3112 + yym3120 := z.EncBinary() + _ = yym3120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3113 := !z.EncBinary() - yy2arr3113 := z.EncBasicHandle().StructToArray - var yyq3113 [2]bool - _, _, _ = yysep3113, yyq3113, yy2arr3113 - const yyr3113 bool = false - var yynn3113 int - if yyr3113 || yy2arr3113 { + yysep3121 := !z.EncBinary() + yy2arr3121 := z.EncBasicHandle().StructToArray + var yyq3121 [2]bool + _, _, _ = yysep3121, yyq3121, yy2arr3121 + const yyr3121 bool = false + var yynn3121 int + if yyr3121 || yy2arr3121 { r.EncodeArrayStart(2) } else { - yynn3113 = 2 - for _, b := range yyq3113 { + yynn3121 = 2 + for _, b := range yyq3121 { if b { - yynn3113++ + yynn3121++ } } - r.EncodeMapStart(yynn3113) - yynn3113 = 0 + r.EncodeMapStart(yynn3121) + yynn3121 = 0 } - if yyr3113 || yy2arr3113 { + if yyr3121 || yy2arr3121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -39921,10 +40041,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr3113 || yy2arr3113 { + if yyr3121 || yy2arr3121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3116 := z.EncBinary() - _ = yym3116 + yym3124 := z.EncBinary() + _ = yym3124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -39933,14 +40053,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3117 := z.EncBinary() - _ = yym3117 + yym3125 := z.EncBinary() + _ = yym3125 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr3113 || yy2arr3113 { + if yyr3121 || yy2arr3121 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39953,25 +40073,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3118 := z.DecBinary() - _ = yym3118 + yym3126 := z.DecBinary() + _ = yym3126 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3119 := r.ContainerType() - if yyct3119 == codecSelferValueTypeMap1234 { - yyl3119 := r.ReadMapStart() - if yyl3119 == 0 { + yyct3127 := r.ContainerType() + if yyct3127 == codecSelferValueTypeMap1234 { + yyl3127 := r.ReadMapStart() + if yyl3127 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3119, d) + x.codecDecodeSelfFromMap(yyl3127, d) } - } else if yyct3119 == codecSelferValueTypeArray1234 { - yyl3119 := r.ReadArrayStart() - if yyl3119 == 0 { + } else if yyct3127 == codecSelferValueTypeArray1234 { + yyl3127 := r.ReadArrayStart() + if yyl3127 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3119, d) + x.codecDecodeSelfFromArray(yyl3127, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39983,12 +40103,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3120Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3120Slc - var yyhl3120 bool = l >= 0 - for yyj3120 := 0; ; yyj3120++ { - if yyhl3120 { - if yyj3120 >= l { + var yys3128Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3128Slc + var yyhl3128 bool = l >= 0 + for yyj3128 := 0; ; yyj3128++ { + if yyhl3128 { + if yyj3128 >= l { break } } else { @@ -39997,10 +40117,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3120Slc = r.DecodeBytes(yys3120Slc, true, true) - yys3120 := string(yys3120Slc) + yys3128Slc = r.DecodeBytes(yys3128Slc, true, true) + yys3128 := string(yys3128Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3120 { + switch yys3128 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -40014,9 +40134,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3120) - } // end switch yys3120 - } // end for yyj3120 + z.DecStructFieldNotFound(-1, yys3128) + } // end switch yys3128 + } // end for yyj3128 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40024,16 +40144,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3123 int - var yyb3123 bool - var yyhl3123 bool = l >= 0 - yyj3123++ - if yyhl3123 { - yyb3123 = yyj3123 > l + var yyj3131 int + var yyb3131 bool + var yyhl3131 bool = l >= 0 + yyj3131++ + if yyhl3131 { + yyb3131 = yyj3131 > l } else { - yyb3123 = r.CheckBreak() + yyb3131 = r.CheckBreak() } - if yyb3123 { + if yyb3131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40043,13 +40163,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj3123++ - if yyhl3123 { - yyb3123 = yyj3123 > l + yyj3131++ + if yyhl3131 { + yyb3131 = yyj3131 > l } else { - yyb3123 = r.CheckBreak() + yyb3131 = r.CheckBreak() } - if yyb3123 { + if yyb3131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40060,17 +40180,17 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj3123++ - if yyhl3123 { - yyb3123 = yyj3123 > l + yyj3131++ + if yyhl3131 { + yyb3131 = yyj3131 > l } else { - yyb3123 = r.CheckBreak() + yyb3131 = r.CheckBreak() } - if yyb3123 { + if yyb3131 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3123-1, "") + z.DecStructFieldNotFound(yyj3131-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40082,38 +40202,38 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3126 := z.EncBinary() - _ = yym3126 + yym3134 := z.EncBinary() + _ = yym3134 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3135 := !z.EncBinary() + yy2arr3135 := z.EncBasicHandle().StructToArray + var yyq3135 [1]bool + _, _, _ = yysep3135, yyq3135, yy2arr3135 + const yyr3135 bool = false + yyq3135[0] = len(x.PreferAvoidPods) != 0 + var yynn3135 int + if yyr3135 || yy2arr3135 { r.EncodeArrayStart(1) } else { - yynn3127 = 0 - for _, b := range yyq3127 { + yynn3135 = 0 + for _, b := range yyq3135 { if b { - yynn3127++ + yynn3135++ } } - r.EncodeMapStart(yynn3127) - yynn3127 = 0 + r.EncodeMapStart(yynn3135) + yynn3135 = 0 } - if yyr3127 || yy2arr3127 { + if yyr3135 || yy2arr3135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3127[0] { + if yyq3135[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3129 := z.EncBinary() - _ = yym3129 + yym3137 := z.EncBinary() + _ = yym3137 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -40123,15 +40243,15 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3127[0] { + if yyq3135[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3130 := z.EncBinary() - _ = yym3130 + yym3138 := z.EncBinary() + _ = yym3138 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -40139,7 +40259,7 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3127 || yy2arr3127 { + if yyr3135 || yy2arr3135 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40152,25 +40272,25 @@ func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3131 := z.DecBinary() - _ = yym3131 + yym3139 := z.DecBinary() + _ = yym3139 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3132 := r.ContainerType() - if yyct3132 == codecSelferValueTypeMap1234 { - yyl3132 := r.ReadMapStart() - if yyl3132 == 0 { + yyct3140 := r.ContainerType() + if yyct3140 == codecSelferValueTypeMap1234 { + yyl3140 := r.ReadMapStart() + if yyl3140 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3132, d) + x.codecDecodeSelfFromMap(yyl3140, d) } - } else if yyct3132 == codecSelferValueTypeArray1234 { - yyl3132 := r.ReadArrayStart() - if yyl3132 == 0 { + } else if yyct3140 == codecSelferValueTypeArray1234 { + yyl3140 := r.ReadArrayStart() + if yyl3140 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3132, d) + x.codecDecodeSelfFromArray(yyl3140, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40182,12 +40302,12 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3133Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3133Slc - var yyhl3133 bool = l >= 0 - for yyj3133 := 0; ; yyj3133++ { - if yyhl3133 { - if yyj3133 >= l { + var yys3141Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3141Slc + var yyhl3141 bool = l >= 0 + for yyj3141 := 0; ; yyj3141++ { + if yyhl3141 { + if yyj3141 >= l { break } } else { @@ -40196,26 +40316,26 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3133Slc = r.DecodeBytes(yys3133Slc, true, true) - yys3133 := string(yys3133Slc) + yys3141Slc = r.DecodeBytes(yys3141Slc, true, true) + yys3141 := string(yys3141Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3133 { + switch yys3141 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3134 := &x.PreferAvoidPods - yym3135 := z.DecBinary() - _ = yym3135 + yyv3142 := &x.PreferAvoidPods + yym3143 := z.DecBinary() + _ = yym3143 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3134), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3142), d) } } default: - z.DecStructFieldNotFound(-1, yys3133) - } // end switch yys3133 - } // end for yyj3133 + z.DecStructFieldNotFound(-1, yys3141) + } // end switch yys3141 + } // end for yyj3141 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40223,16 +40343,16 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3136 int - var yyb3136 bool - var yyhl3136 bool = l >= 0 - yyj3136++ - if yyhl3136 { - yyb3136 = yyj3136 > l + var yyj3144 int + var yyb3144 bool + var yyhl3144 bool = l >= 0 + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l } else { - yyb3136 = r.CheckBreak() + yyb3144 = r.CheckBreak() } - if yyb3136 { + if yyb3144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40240,26 +40360,26 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3137 := &x.PreferAvoidPods - yym3138 := z.DecBinary() - _ = yym3138 + yyv3145 := &x.PreferAvoidPods + yym3146 := z.DecBinary() + _ = yym3146 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3137), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3145), d) } } for { - yyj3136++ - if yyhl3136 { - yyb3136 = yyj3136 > l + yyj3144++ + if yyhl3144 { + yyb3144 = yyj3144 > l } else { - yyb3136 = r.CheckBreak() + yyb3144 = r.CheckBreak() } - if yyb3136 { + if yyb3144 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3136-1, "") + z.DecStructFieldNotFound(yyj3144-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40271,85 +40391,85 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3139 := z.EncBinary() - _ = yym3139 + yym3147 := z.EncBinary() + _ = yym3147 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3148 := !z.EncBinary() + yy2arr3148 := z.EncBasicHandle().StructToArray + var yyq3148 [4]bool + _, _, _ = yysep3148, yyq3148, yy2arr3148 + const yyr3148 bool = false + yyq3148[1] = true + yyq3148[2] = x.Reason != "" + yyq3148[3] = x.Message != "" + var yynn3148 int + if yyr3148 || yy2arr3148 { r.EncodeArrayStart(4) } else { - yynn3140 = 1 - for _, b := range yyq3140 { + yynn3148 = 1 + for _, b := range yyq3148 { if b { - yynn3140++ + yynn3148++ } } - r.EncodeMapStart(yynn3140) - yynn3140 = 0 + r.EncodeMapStart(yynn3148) + yynn3148 = 0 } - if yyr3140 || yy2arr3140 { + if yyr3148 || yy2arr3148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3142 := &x.PodSignature - yy3142.CodecEncodeSelf(e) + yy3150 := &x.PodSignature + yy3150.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3143 := &x.PodSignature - yy3143.CodecEncodeSelf(e) + yy3151 := &x.PodSignature + yy3151.CodecEncodeSelf(e) } - if yyr3140 || yy2arr3140 { + if yyr3148 || yy2arr3148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3140[1] { - yy3145 := &x.EvictionTime - yym3146 := z.EncBinary() - _ = yym3146 + if yyq3148[1] { + yy3153 := &x.EvictionTime + yym3154 := z.EncBinary() + _ = yym3154 if false { - } else if z.HasExtensions() && z.EncExt(yy3145) { - } else if yym3146 { - z.EncBinaryMarshal(yy3145) - } else if !yym3146 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3145) + } else if z.HasExtensions() && z.EncExt(yy3153) { + } else if yym3154 { + z.EncBinaryMarshal(yy3153) + } else if !yym3154 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3153) } else { - z.EncFallback(yy3145) + z.EncFallback(yy3153) } } else { r.EncodeNil() } } else { - if yyq3140[1] { + if yyq3148[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3147 := &x.EvictionTime - yym3148 := z.EncBinary() - _ = yym3148 + yy3155 := &x.EvictionTime + yym3156 := z.EncBinary() + _ = yym3156 if false { - } else if z.HasExtensions() && z.EncExt(yy3147) { - } else if yym3148 { - z.EncBinaryMarshal(yy3147) - } else if !yym3148 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3147) + } else if z.HasExtensions() && z.EncExt(yy3155) { + } else if yym3156 { + z.EncBinaryMarshal(yy3155) + } else if !yym3156 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3155) } else { - z.EncFallback(yy3147) + z.EncFallback(yy3155) } } } - if yyr3140 || yy2arr3140 { + if yyr3148 || yy2arr3148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3140[2] { - yym3150 := z.EncBinary() - _ = yym3150 + if yyq3148[2] { + yym3158 := z.EncBinary() + _ = yym3158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -40358,23 +40478,23 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3140[2] { + if yyq3148[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3151 := z.EncBinary() - _ = yym3151 + yym3159 := z.EncBinary() + _ = yym3159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3140 || yy2arr3140 { + if yyr3148 || yy2arr3148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3140[3] { - yym3153 := z.EncBinary() - _ = yym3153 + if yyq3148[3] { + yym3161 := z.EncBinary() + _ = yym3161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -40383,19 +40503,19 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3140[3] { + if yyq3148[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3154 := z.EncBinary() - _ = yym3154 + yym3162 := z.EncBinary() + _ = yym3162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3140 || yy2arr3140 { + if yyr3148 || yy2arr3148 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40408,25 +40528,25 @@ func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3155 := z.DecBinary() - _ = yym3155 + yym3163 := z.DecBinary() + _ = yym3163 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3156 := r.ContainerType() - if yyct3156 == codecSelferValueTypeMap1234 { - yyl3156 := r.ReadMapStart() - if yyl3156 == 0 { + yyct3164 := r.ContainerType() + if yyct3164 == codecSelferValueTypeMap1234 { + yyl3164 := r.ReadMapStart() + if yyl3164 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3156, d) + x.codecDecodeSelfFromMap(yyl3164, d) } - } else if yyct3156 == codecSelferValueTypeArray1234 { - yyl3156 := r.ReadArrayStart() - if yyl3156 == 0 { + } else if yyct3164 == codecSelferValueTypeArray1234 { + yyl3164 := r.ReadArrayStart() + if yyl3164 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3156, d) + x.codecDecodeSelfFromArray(yyl3164, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40438,12 +40558,12 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3157Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3157Slc - var yyhl3157 bool = l >= 0 - for yyj3157 := 0; ; yyj3157++ { - if yyhl3157 { - if yyj3157 >= l { + var yys3165Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3165Slc + var yyhl3165 bool = l >= 0 + for yyj3165 := 0; ; yyj3165++ { + if yyhl3165 { + if yyj3165 >= l { break } } else { @@ -40452,32 +40572,32 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3157Slc = r.DecodeBytes(yys3157Slc, true, true) - yys3157 := string(yys3157Slc) + yys3165Slc = r.DecodeBytes(yys3165Slc, true, true) + yys3165 := string(yys3165Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3157 { + switch yys3165 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3158 := &x.PodSignature - yyv3158.CodecDecodeSelf(d) + yyv3166 := &x.PodSignature + yyv3166.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_v1.Time{} } else { - yyv3159 := &x.EvictionTime - yym3160 := z.DecBinary() - _ = yym3160 + yyv3167 := &x.EvictionTime + yym3168 := z.DecBinary() + _ = yym3168 if false { - } else if z.HasExtensions() && z.DecExt(yyv3159) { - } else if yym3160 { - z.DecBinaryUnmarshal(yyv3159) - } else if !yym3160 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3159) + } else if z.HasExtensions() && z.DecExt(yyv3167) { + } else if yym3168 { + z.DecBinaryUnmarshal(yyv3167) + } else if !yym3168 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3167) } else { - z.DecFallback(yyv3159, false) + z.DecFallback(yyv3167, false) } } case "reason": @@ -40493,9 +40613,9 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3157) - } // end switch yys3157 - } // end for yyj3157 + z.DecStructFieldNotFound(-1, yys3165) + } // end switch yys3165 + } // end for yyj3165 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40503,16 +40623,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3163 int - var yyb3163 bool - var yyhl3163 bool = l >= 0 - yyj3163++ - if yyhl3163 { - yyb3163 = yyj3163 > l + var yyj3171 int + var yyb3171 bool + var yyhl3171 bool = l >= 0 + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3163 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3163 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40520,16 +40640,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3164 := &x.PodSignature - yyv3164.CodecDecodeSelf(d) + yyv3172 := &x.PodSignature + yyv3172.CodecDecodeSelf(d) } - yyj3163++ - if yyhl3163 { - yyb3163 = yyj3163 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3163 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3163 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40537,26 +40657,26 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EvictionTime = pkg2_v1.Time{} } else { - yyv3165 := &x.EvictionTime - yym3166 := z.DecBinary() - _ = yym3166 + yyv3173 := &x.EvictionTime + yym3174 := z.DecBinary() + _ = yym3174 if false { - } else if z.HasExtensions() && z.DecExt(yyv3165) { - } else if yym3166 { - z.DecBinaryUnmarshal(yyv3165) - } else if !yym3166 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3165) + } else if z.HasExtensions() && z.DecExt(yyv3173) { + } else if yym3174 { + z.DecBinaryUnmarshal(yyv3173) + } else if !yym3174 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3173) } else { - z.DecFallback(yyv3165, false) + z.DecFallback(yyv3173, false) } } - yyj3163++ - if yyhl3163 { - yyb3163 = yyj3163 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3163 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3163 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40566,13 +40686,13 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Reason = string(r.DecodeString()) } - yyj3163++ - if yyhl3163 { - yyb3163 = yyj3163 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3163 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3163 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40583,17 +40703,17 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Message = string(r.DecodeString()) } for { - yyj3163++ - if yyhl3163 { - yyb3163 = yyj3163 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3163 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3163 { + if yyb3171 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3163-1, "") + z.DecStructFieldNotFound(yyj3171-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40605,38 +40725,38 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3169 := z.EncBinary() - _ = yym3169 + yym3177 := z.EncBinary() + _ = yym3177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3178 := !z.EncBinary() + yy2arr3178 := z.EncBasicHandle().StructToArray + var yyq3178 [1]bool + _, _, _ = yysep3178, yyq3178, yy2arr3178 + const yyr3178 bool = false + yyq3178[0] = x.PodController != nil + var yynn3178 int + if yyr3178 || yy2arr3178 { r.EncodeArrayStart(1) } else { - yynn3170 = 0 - for _, b := range yyq3170 { + yynn3178 = 0 + for _, b := range yyq3178 { if b { - yynn3170++ + yynn3178++ } } - r.EncodeMapStart(yynn3170) - yynn3170 = 0 + r.EncodeMapStart(yynn3178) + yynn3178 = 0 } - if yyr3170 || yy2arr3170 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3170[0] { + if yyq3178[0] { if x.PodController == nil { r.EncodeNil() } else { - yym3172 := z.EncBinary() - _ = yym3172 + yym3180 := z.EncBinary() + _ = yym3180 if false { } else if z.HasExtensions() && z.EncExt(x.PodController) { } else { @@ -40647,15 +40767,15 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3170[0] { + if yyq3178[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodController == nil { r.EncodeNil() } else { - yym3173 := z.EncBinary() - _ = yym3173 + yym3181 := z.EncBinary() + _ = yym3181 if false { } else if z.HasExtensions() && z.EncExt(x.PodController) { } else { @@ -40664,7 +40784,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3170 || yy2arr3170 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40677,25 +40797,25 @@ func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3174 := z.DecBinary() - _ = yym3174 + yym3182 := z.DecBinary() + _ = yym3182 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3175 := r.ContainerType() - if yyct3175 == codecSelferValueTypeMap1234 { - yyl3175 := r.ReadMapStart() - if yyl3175 == 0 { + yyct3183 := r.ContainerType() + if yyct3183 == codecSelferValueTypeMap1234 { + yyl3183 := r.ReadMapStart() + if yyl3183 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3175, d) + x.codecDecodeSelfFromMap(yyl3183, d) } - } else if yyct3175 == codecSelferValueTypeArray1234 { - yyl3175 := r.ReadArrayStart() - if yyl3175 == 0 { + } else if yyct3183 == codecSelferValueTypeArray1234 { + yyl3183 := r.ReadArrayStart() + if yyl3183 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3175, d) + x.codecDecodeSelfFromArray(yyl3183, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40707,12 +40827,12 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3176Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3176Slc - var yyhl3176 bool = l >= 0 - for yyj3176 := 0; ; yyj3176++ { - if yyhl3176 { - if yyj3176 >= l { + var yys3184Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3184Slc + var yyhl3184 bool = l >= 0 + for yyj3184 := 0; ; yyj3184++ { + if yyhl3184 { + if yyj3184 >= l { break } } else { @@ -40721,10 +40841,10 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3176Slc = r.DecodeBytes(yys3176Slc, true, true) - yys3176 := string(yys3176Slc) + yys3184Slc = r.DecodeBytes(yys3184Slc, true, true) + yys3184 := string(yys3184Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3176 { + switch yys3184 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { @@ -40734,8 +40854,8 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.PodController == nil { x.PodController = new(pkg2_v1.OwnerReference) } - yym3178 := z.DecBinary() - _ = yym3178 + yym3186 := z.DecBinary() + _ = yym3186 if false { } else if z.HasExtensions() && z.DecExt(x.PodController) { } else { @@ -40743,9 +40863,9 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3176) - } // end switch yys3176 - } // end for yyj3176 + z.DecStructFieldNotFound(-1, yys3184) + } // end switch yys3184 + } // end for yyj3184 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40753,16 +40873,16 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3179 int - var yyb3179 bool - var yyhl3179 bool = l >= 0 - yyj3179++ - if yyhl3179 { - yyb3179 = yyj3179 > l + var yyj3187 int + var yyb3187 bool + var yyhl3187 bool = l >= 0 + yyj3187++ + if yyhl3187 { + yyb3187 = yyj3187 > l } else { - yyb3179 = r.CheckBreak() + yyb3187 = r.CheckBreak() } - if yyb3179 { + if yyb3187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40775,8 +40895,8 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.PodController == nil { x.PodController = new(pkg2_v1.OwnerReference) } - yym3181 := z.DecBinary() - _ = yym3181 + yym3189 := z.DecBinary() + _ = yym3189 if false { } else if z.HasExtensions() && z.DecExt(x.PodController) { } else { @@ -40784,17 +40904,17 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj3179++ - if yyhl3179 { - yyb3179 = yyj3179 > l + yyj3187++ + if yyhl3187 { + yyb3187 = yyj3187 > l } else { - yyb3179 = r.CheckBreak() + yyb3187 = r.CheckBreak() } - if yyb3179 { + if yyb3187 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3179-1, "") + z.DecStructFieldNotFound(yyj3187-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40806,37 +40926,37 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3182 := z.EncBinary() - _ = yym3182 + yym3190 := z.EncBinary() + _ = yym3190 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3183 := !z.EncBinary() - yy2arr3183 := z.EncBasicHandle().StructToArray - var yyq3183 [2]bool - _, _, _ = yysep3183, yyq3183, yy2arr3183 - const yyr3183 bool = false - yyq3183[1] = x.SizeBytes != 0 - var yynn3183 int - if yyr3183 || yy2arr3183 { + yysep3191 := !z.EncBinary() + yy2arr3191 := z.EncBasicHandle().StructToArray + var yyq3191 [2]bool + _, _, _ = yysep3191, yyq3191, yy2arr3191 + const yyr3191 bool = false + yyq3191[1] = x.SizeBytes != 0 + var yynn3191 int + if yyr3191 || yy2arr3191 { r.EncodeArrayStart(2) } else { - yynn3183 = 1 - for _, b := range yyq3183 { + yynn3191 = 1 + for _, b := range yyq3191 { if b { - yynn3183++ + yynn3191++ } } - r.EncodeMapStart(yynn3183) - yynn3183 = 0 + r.EncodeMapStart(yynn3191) + yynn3191 = 0 } - if yyr3183 || yy2arr3183 { + if yyr3191 || yy2arr3191 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { - yym3185 := z.EncBinary() - _ = yym3185 + yym3193 := z.EncBinary() + _ = yym3193 if false { } else { z.F.EncSliceStringV(x.Names, false, e) @@ -40849,19 +40969,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x.Names == nil { r.EncodeNil() } else { - yym3186 := z.EncBinary() - _ = yym3186 + yym3194 := z.EncBinary() + _ = yym3194 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } - if yyr3183 || yy2arr3183 { + if yyr3191 || yy2arr3191 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3183[1] { - yym3188 := z.EncBinary() - _ = yym3188 + if yyq3191[1] { + yym3196 := z.EncBinary() + _ = yym3196 if false { } else { r.EncodeInt(int64(x.SizeBytes)) @@ -40870,19 +40990,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3183[1] { + if yyq3191[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3189 := z.EncBinary() - _ = yym3189 + yym3197 := z.EncBinary() + _ = yym3197 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } - if yyr3183 || yy2arr3183 { + if yyr3191 || yy2arr3191 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40895,25 +41015,25 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3190 := z.DecBinary() - _ = yym3190 + yym3198 := z.DecBinary() + _ = yym3198 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3191 := r.ContainerType() - if yyct3191 == codecSelferValueTypeMap1234 { - yyl3191 := r.ReadMapStart() - if yyl3191 == 0 { + yyct3199 := r.ContainerType() + if yyct3199 == codecSelferValueTypeMap1234 { + yyl3199 := r.ReadMapStart() + if yyl3199 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3191, d) + x.codecDecodeSelfFromMap(yyl3199, d) } - } else if yyct3191 == codecSelferValueTypeArray1234 { - yyl3191 := r.ReadArrayStart() - if yyl3191 == 0 { + } else if yyct3199 == codecSelferValueTypeArray1234 { + yyl3199 := r.ReadArrayStart() + if yyl3199 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3191, d) + x.codecDecodeSelfFromArray(yyl3199, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40925,12 +41045,12 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3192Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3192Slc - var yyhl3192 bool = l >= 0 - for yyj3192 := 0; ; yyj3192++ { - if yyhl3192 { - if yyj3192 >= l { + var yys3200Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3200Slc + var yyhl3200 bool = l >= 0 + for yyj3200 := 0; ; yyj3200++ { + if yyhl3200 { + if yyj3200 >= l { break } } else { @@ -40939,20 +41059,20 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3192Slc = r.DecodeBytes(yys3192Slc, true, true) - yys3192 := string(yys3192Slc) + yys3200Slc = r.DecodeBytes(yys3200Slc, true, true) + yys3200 := string(yys3200Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3192 { + switch yys3200 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3193 := &x.Names - yym3194 := z.DecBinary() - _ = yym3194 + yyv3201 := &x.Names + yym3202 := z.DecBinary() + _ = yym3202 if false { } else { - z.F.DecSliceStringX(yyv3193, false, d) + z.F.DecSliceStringX(yyv3201, false, d) } } case "sizeBytes": @@ -40962,9 +41082,9 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3192) - } // end switch yys3192 - } // end for yyj3192 + z.DecStructFieldNotFound(-1, yys3200) + } // end switch yys3200 + } // end for yyj3200 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40972,16 +41092,16 @@ func (x *ContainerImage) 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 yyj3204 int + var yyb3204 bool + var yyhl3204 bool = l >= 0 + yyj3204++ + if yyhl3204 { + yyb3204 = yyj3204 > l } else { - yyb3196 = r.CheckBreak() + yyb3204 = r.CheckBreak() } - if yyb3196 { + if yyb3204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40989,21 +41109,21 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3197 := &x.Names - yym3198 := z.DecBinary() - _ = yym3198 + yyv3205 := &x.Names + yym3206 := z.DecBinary() + _ = yym3206 if false { } else { - z.F.DecSliceStringX(yyv3197, false, d) + z.F.DecSliceStringX(yyv3205, false, d) } } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3204++ + if yyhl3204 { + yyb3204 = yyj3204 > l } else { - yyb3196 = r.CheckBreak() + yyb3204 = r.CheckBreak() } - if yyb3196 { + if yyb3204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41014,17 +41134,17 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } for { - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3204++ + if yyhl3204 { + yyb3204 = yyj3204 > l } else { - yyb3196 = r.CheckBreak() + yyb3204 = r.CheckBreak() } - if yyb3196 { + if yyb3204 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3196-1, "") + z.DecStructFieldNotFound(yyj3204-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41033,8 +41153,8 @@ func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3200 := z.EncBinary() - _ = yym3200 + yym3208 := z.EncBinary() + _ = yym3208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41046,8 +41166,8 @@ func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3201 := z.DecBinary() - _ = yym3201 + yym3209 := z.DecBinary() + _ = yym3209 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41059,8 +41179,8 @@ func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3202 := z.EncBinary() - _ = yym3202 + yym3210 := z.EncBinary() + _ = yym3210 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41072,8 +41192,8 @@ func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3203 := z.DecBinary() - _ = yym3203 + yym3211 := z.DecBinary() + _ = yym3211 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41088,34 +41208,34 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3204 := z.EncBinary() - _ = yym3204 + yym3212 := z.EncBinary() + _ = yym3212 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3205 := !z.EncBinary() - yy2arr3205 := z.EncBasicHandle().StructToArray - var yyq3205 [6]bool - _, _, _ = yysep3205, yyq3205, yy2arr3205 - const yyr3205 bool = false - yyq3205[2] = true - yyq3205[3] = true - yyq3205[4] = x.Reason != "" - yyq3205[5] = x.Message != "" - var yynn3205 int - if yyr3205 || yy2arr3205 { + yysep3213 := !z.EncBinary() + yy2arr3213 := z.EncBasicHandle().StructToArray + var yyq3213 [6]bool + _, _, _ = yysep3213, yyq3213, yy2arr3213 + const yyr3213 bool = false + yyq3213[2] = true + yyq3213[3] = true + yyq3213[4] = x.Reason != "" + yyq3213[5] = x.Message != "" + var yynn3213 int + if yyr3213 || yy2arr3213 { r.EncodeArrayStart(6) } else { - yynn3205 = 2 - for _, b := range yyq3205 { + yynn3213 = 2 + for _, b := range yyq3213 { if b { - yynn3205++ + yynn3213++ } } - r.EncodeMapStart(yynn3205) - yynn3205 = 0 + r.EncodeMapStart(yynn3213) + yynn3213 = 0 } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -41124,7 +41244,7 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -41133,85 +41253,85 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3205[2] { - yy3209 := &x.LastHeartbeatTime - yym3210 := z.EncBinary() - _ = yym3210 + if yyq3213[2] { + yy3217 := &x.LastHeartbeatTime + yym3218 := z.EncBinary() + _ = yym3218 if false { - } else if z.HasExtensions() && z.EncExt(yy3209) { - } else if yym3210 { - z.EncBinaryMarshal(yy3209) - } else if !yym3210 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3209) + } else if z.HasExtensions() && z.EncExt(yy3217) { + } else if yym3218 { + z.EncBinaryMarshal(yy3217) + } else if !yym3218 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3217) } else { - z.EncFallback(yy3209) + z.EncFallback(yy3217) } } else { r.EncodeNil() } } else { - if yyq3205[2] { + if yyq3213[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3211 := &x.LastHeartbeatTime - yym3212 := z.EncBinary() - _ = yym3212 + yy3219 := &x.LastHeartbeatTime + yym3220 := z.EncBinary() + _ = yym3220 if false { - } else if z.HasExtensions() && z.EncExt(yy3211) { - } else if yym3212 { - z.EncBinaryMarshal(yy3211) - } else if !yym3212 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3211) + } else if z.HasExtensions() && z.EncExt(yy3219) { + } else if yym3220 { + z.EncBinaryMarshal(yy3219) + } else if !yym3220 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3219) } else { - z.EncFallback(yy3211) + z.EncFallback(yy3219) } } } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3205[3] { - yy3214 := &x.LastTransitionTime - yym3215 := z.EncBinary() - _ = yym3215 + if yyq3213[3] { + yy3222 := &x.LastTransitionTime + yym3223 := z.EncBinary() + _ = yym3223 if false { - } else if z.HasExtensions() && z.EncExt(yy3214) { - } else if yym3215 { - z.EncBinaryMarshal(yy3214) - } else if !yym3215 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3214) + } else if z.HasExtensions() && z.EncExt(yy3222) { + } else if yym3223 { + z.EncBinaryMarshal(yy3222) + } else if !yym3223 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3222) } else { - z.EncFallback(yy3214) + z.EncFallback(yy3222) } } else { r.EncodeNil() } } else { - if yyq3205[3] { + if yyq3213[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3216 := &x.LastTransitionTime - yym3217 := z.EncBinary() - _ = yym3217 + yy3224 := &x.LastTransitionTime + yym3225 := z.EncBinary() + _ = yym3225 if false { - } else if z.HasExtensions() && z.EncExt(yy3216) { - } else if yym3217 { - z.EncBinaryMarshal(yy3216) - } else if !yym3217 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3216) + } else if z.HasExtensions() && z.EncExt(yy3224) { + } else if yym3225 { + z.EncBinaryMarshal(yy3224) + } else if !yym3225 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3224) } else { - z.EncFallback(yy3216) + z.EncFallback(yy3224) } } } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3205[4] { - yym3219 := z.EncBinary() - _ = yym3219 + if yyq3213[4] { + yym3227 := z.EncBinary() + _ = yym3227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -41220,23 +41340,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3205[4] { + if yyq3213[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3220 := z.EncBinary() - _ = yym3220 + yym3228 := z.EncBinary() + _ = yym3228 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3205[5] { - yym3222 := z.EncBinary() - _ = yym3222 + if yyq3213[5] { + yym3230 := z.EncBinary() + _ = yym3230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -41245,19 +41365,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3205[5] { + if yyq3213[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3223 := z.EncBinary() - _ = yym3223 + yym3231 := z.EncBinary() + _ = yym3231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3205 || yy2arr3205 { + if yyr3213 || yy2arr3213 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41270,25 +41390,25 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3224 := z.DecBinary() - _ = yym3224 + yym3232 := z.DecBinary() + _ = yym3232 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3225 := r.ContainerType() - if yyct3225 == codecSelferValueTypeMap1234 { - yyl3225 := r.ReadMapStart() - if yyl3225 == 0 { + yyct3233 := r.ContainerType() + if yyct3233 == codecSelferValueTypeMap1234 { + yyl3233 := r.ReadMapStart() + if yyl3233 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3225, d) + x.codecDecodeSelfFromMap(yyl3233, d) } - } else if yyct3225 == codecSelferValueTypeArray1234 { - yyl3225 := r.ReadArrayStart() - if yyl3225 == 0 { + } else if yyct3233 == codecSelferValueTypeArray1234 { + yyl3233 := r.ReadArrayStart() + if yyl3233 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3225, d) + x.codecDecodeSelfFromArray(yyl3233, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41300,12 +41420,12 @@ func (x *NodeCondition) 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 yys3234Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3234Slc + var yyhl3234 bool = l >= 0 + for yyj3234 := 0; ; yyj3234++ { + if yyhl3234 { + if yyj3234 >= l { break } } else { @@ -41314,10 +41434,10 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) - yys3226 := string(yys3226Slc) + yys3234Slc = r.DecodeBytes(yys3234Slc, true, true) + yys3234 := string(yys3234Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3226 { + switch yys3234 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -41334,34 +41454,34 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_v1.Time{} } else { - yyv3229 := &x.LastHeartbeatTime - yym3230 := z.DecBinary() - _ = yym3230 + yyv3237 := &x.LastHeartbeatTime + yym3238 := z.DecBinary() + _ = yym3238 if false { - } else if z.HasExtensions() && z.DecExt(yyv3229) { - } else if yym3230 { - z.DecBinaryUnmarshal(yyv3229) - } else if !yym3230 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3229) + } else if z.HasExtensions() && z.DecExt(yyv3237) { + } else if yym3238 { + z.DecBinaryUnmarshal(yyv3237) + } else if !yym3238 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3237) } else { - z.DecFallback(yyv3229, false) + z.DecFallback(yyv3237, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_v1.Time{} } else { - yyv3231 := &x.LastTransitionTime - yym3232 := z.DecBinary() - _ = yym3232 + yyv3239 := &x.LastTransitionTime + yym3240 := z.DecBinary() + _ = yym3240 if false { - } else if z.HasExtensions() && z.DecExt(yyv3231) { - } else if yym3232 { - z.DecBinaryUnmarshal(yyv3231) - } else if !yym3232 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3231) + } else if z.HasExtensions() && z.DecExt(yyv3239) { + } else if yym3240 { + z.DecBinaryUnmarshal(yyv3239) + } else if !yym3240 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3239) } else { - z.DecFallback(yyv3231, false) + z.DecFallback(yyv3239, false) } } case "reason": @@ -41377,9 +41497,9 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3226) - } // end switch yys3226 - } // end for yyj3226 + z.DecStructFieldNotFound(-1, yys3234) + } // end switch yys3234 + } // end for yyj3234 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41387,16 +41507,16 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3235 int - var yyb3235 bool - var yyhl3235 bool = l >= 0 - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + var yyj3243 int + var yyb3243 bool + var yyhl3243 bool = l >= 0 + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41406,13 +41526,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeConditionType(r.DecodeString()) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41422,13 +41542,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41436,26 +41556,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_v1.Time{} } else { - yyv3238 := &x.LastHeartbeatTime - yym3239 := z.DecBinary() - _ = yym3239 + yyv3246 := &x.LastHeartbeatTime + yym3247 := z.DecBinary() + _ = yym3247 if false { - } else if z.HasExtensions() && z.DecExt(yyv3238) { - } else if yym3239 { - z.DecBinaryUnmarshal(yyv3238) - } else if !yym3239 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3238) + } else if z.HasExtensions() && z.DecExt(yyv3246) { + } else if yym3247 { + z.DecBinaryUnmarshal(yyv3246) + } else if !yym3247 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3246) } else { - z.DecFallback(yyv3238, false) + z.DecFallback(yyv3246, false) } } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41463,26 +41583,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_v1.Time{} } else { - yyv3240 := &x.LastTransitionTime - yym3241 := z.DecBinary() - _ = yym3241 + yyv3248 := &x.LastTransitionTime + yym3249 := z.DecBinary() + _ = yym3249 if false { - } else if z.HasExtensions() && z.DecExt(yyv3240) { - } else if yym3241 { - z.DecBinaryUnmarshal(yyv3240) - } else if !yym3241 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3240) + } else if z.HasExtensions() && z.DecExt(yyv3248) { + } else if yym3249 { + z.DecBinaryUnmarshal(yyv3248) + } else if !yym3249 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3248) } else { - z.DecFallback(yyv3240, false) + z.DecFallback(yyv3248, false) } } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41492,13 +41612,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41509,17 +41629,17 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3243++ + if yyhl3243 { + yyb3243 = yyj3243 > l } else { - yyb3235 = r.CheckBreak() + yyb3243 = r.CheckBreak() } - if yyb3235 { + if yyb3243 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3235-1, "") + z.DecStructFieldNotFound(yyj3243-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41528,8 +41648,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3244 := z.EncBinary() - _ = yym3244 + yym3252 := z.EncBinary() + _ = yym3252 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41541,8 +41661,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3245 := z.DecBinary() - _ = yym3245 + yym3253 := z.DecBinary() + _ = yym3253 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41557,30 +41677,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3246 := z.EncBinary() - _ = yym3246 + yym3254 := z.EncBinary() + _ = yym3254 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3247 := !z.EncBinary() - yy2arr3247 := z.EncBasicHandle().StructToArray - var yyq3247 [2]bool - _, _, _ = yysep3247, yyq3247, yy2arr3247 - const yyr3247 bool = false - var yynn3247 int - if yyr3247 || yy2arr3247 { + yysep3255 := !z.EncBinary() + yy2arr3255 := z.EncBasicHandle().StructToArray + var yyq3255 [2]bool + _, _, _ = yysep3255, yyq3255, yy2arr3255 + const yyr3255 bool = false + var yynn3255 int + if yyr3255 || yy2arr3255 { r.EncodeArrayStart(2) } else { - yynn3247 = 2 - for _, b := range yyq3247 { + yynn3255 = 2 + for _, b := range yyq3255 { if b { - yynn3247++ + yynn3255++ } } - r.EncodeMapStart(yynn3247) - yynn3247 = 0 + r.EncodeMapStart(yynn3255) + yynn3255 = 0 } - if yyr3247 || yy2arr3247 { + if yyr3255 || yy2arr3255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -41589,10 +41709,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3247 || yy2arr3247 { + if yyr3255 || yy2arr3255 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3250 := z.EncBinary() - _ = yym3250 + yym3258 := z.EncBinary() + _ = yym3258 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -41601,14 +41721,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3251 := z.EncBinary() - _ = yym3251 + yym3259 := z.EncBinary() + _ = yym3259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr3247 || yy2arr3247 { + if yyr3255 || yy2arr3255 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41621,25 +41741,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3252 := z.DecBinary() - _ = yym3252 + yym3260 := z.DecBinary() + _ = yym3260 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3253 := r.ContainerType() - if yyct3253 == codecSelferValueTypeMap1234 { - yyl3253 := r.ReadMapStart() - if yyl3253 == 0 { + yyct3261 := r.ContainerType() + if yyct3261 == codecSelferValueTypeMap1234 { + yyl3261 := r.ReadMapStart() + if yyl3261 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3253, d) + x.codecDecodeSelfFromMap(yyl3261, d) } - } else if yyct3253 == codecSelferValueTypeArray1234 { - yyl3253 := r.ReadArrayStart() - if yyl3253 == 0 { + } else if yyct3261 == codecSelferValueTypeArray1234 { + yyl3261 := r.ReadArrayStart() + if yyl3261 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3253, d) + x.codecDecodeSelfFromArray(yyl3261, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41651,12 +41771,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3254Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3254Slc - var yyhl3254 bool = l >= 0 - for yyj3254 := 0; ; yyj3254++ { - if yyhl3254 { - if yyj3254 >= l { + var yys3262Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3262Slc + var yyhl3262 bool = l >= 0 + for yyj3262 := 0; ; yyj3262++ { + if yyhl3262 { + if yyj3262 >= l { break } } else { @@ -41665,10 +41785,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3254Slc = r.DecodeBytes(yys3254Slc, true, true) - yys3254 := string(yys3254Slc) + yys3262Slc = r.DecodeBytes(yys3262Slc, true, true) + yys3262 := string(yys3262Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3254 { + switch yys3262 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -41682,9 +41802,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3254) - } // end switch yys3254 - } // end for yyj3254 + z.DecStructFieldNotFound(-1, yys3262) + } // end switch yys3262 + } // end for yyj3262 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41692,16 +41812,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3257 int - var yyb3257 bool - var yyhl3257 bool = l >= 0 - yyj3257++ - if yyhl3257 { - yyb3257 = yyj3257 > l + var yyj3265 int + var yyb3265 bool + var yyhl3265 bool = l >= 0 + yyj3265++ + if yyhl3265 { + yyb3265 = yyj3265 > l } else { - yyb3257 = r.CheckBreak() + yyb3265 = r.CheckBreak() } - if yyb3257 { + if yyb3265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41711,13 +41831,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj3257++ - if yyhl3257 { - yyb3257 = yyj3257 > l + yyj3265++ + if yyhl3265 { + yyb3265 = yyj3265 > l } else { - yyb3257 = r.CheckBreak() + yyb3265 = r.CheckBreak() } - if yyb3257 { + if yyb3265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41728,17 +41848,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj3257++ - if yyhl3257 { - yyb3257 = yyj3257 > l + yyj3265++ + if yyhl3265 { + yyb3265 = yyj3265 > l } else { - yyb3257 = r.CheckBreak() + yyb3265 = r.CheckBreak() } - if yyb3257 { + if yyb3265 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3257-1, "") + z.DecStructFieldNotFound(yyj3265-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41747,8 +41867,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3260 := z.EncBinary() - _ = yym3260 + yym3268 := z.EncBinary() + _ = yym3268 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41760,8 +41880,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3261 := z.DecBinary() - _ = yym3261 + yym3269 := z.DecBinary() + _ = yym3269 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41776,8 +41896,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3262 := z.EncBinary() - _ = yym3262 + yym3270 := z.EncBinary() + _ = yym3270 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41790,8 +41910,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3263 := z.DecBinary() - _ = yym3263 + yym3271 := z.DecBinary() + _ = yym3271 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41806,39 +41926,39 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3264 := z.EncBinary() - _ = yym3264 + yym3272 := z.EncBinary() + _ = yym3272 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3265 := !z.EncBinary() - yy2arr3265 := z.EncBasicHandle().StructToArray - var yyq3265 [5]bool - _, _, _ = yysep3265, yyq3265, yy2arr3265 - const yyr3265 bool = false - yyq3265[0] = x.Kind != "" - yyq3265[1] = x.APIVersion != "" - yyq3265[2] = true - yyq3265[3] = true - yyq3265[4] = true - var yynn3265 int - if yyr3265 || yy2arr3265 { + yysep3273 := !z.EncBinary() + yy2arr3273 := z.EncBasicHandle().StructToArray + var yyq3273 [5]bool + _, _, _ = yysep3273, yyq3273, yy2arr3273 + const yyr3273 bool = false + yyq3273[0] = x.Kind != "" + yyq3273[1] = x.APIVersion != "" + yyq3273[2] = true + yyq3273[3] = true + yyq3273[4] = true + var yynn3273 int + if yyr3273 || yy2arr3273 { r.EncodeArrayStart(5) } else { - yynn3265 = 0 - for _, b := range yyq3265 { + yynn3273 = 0 + for _, b := range yyq3273 { if b { - yynn3265++ + yynn3273++ } } - r.EncodeMapStart(yynn3265) - yynn3265 = 0 + r.EncodeMapStart(yynn3273) + yynn3273 = 0 } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3265[0] { - yym3267 := z.EncBinary() - _ = yym3267 + if yyq3273[0] { + yym3275 := z.EncBinary() + _ = yym3275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41847,23 +41967,23 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3265[0] { + if yyq3273[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3268 := z.EncBinary() - _ = yym3268 + yym3276 := z.EncBinary() + _ = yym3276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3265[1] { - yym3270 := z.EncBinary() - _ = yym3270 + if yyq3273[1] { + yym3278 := z.EncBinary() + _ = yym3278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41872,70 +41992,70 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3265[1] { + if yyq3273[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3271 := z.EncBinary() - _ = yym3271 + yym3279 := z.EncBinary() + _ = yym3279 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3265[2] { - yy3273 := &x.ObjectMeta - yy3273.CodecEncodeSelf(e) + if yyq3273[2] { + yy3281 := &x.ObjectMeta + yy3281.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3265[2] { + if yyq3273[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3274 := &x.ObjectMeta - yy3274.CodecEncodeSelf(e) + yy3282 := &x.ObjectMeta + yy3282.CodecEncodeSelf(e) } } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3265[3] { - yy3276 := &x.Spec - yy3276.CodecEncodeSelf(e) + if yyq3273[3] { + yy3284 := &x.Spec + yy3284.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3265[3] { + if yyq3273[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3277 := &x.Spec - yy3277.CodecEncodeSelf(e) + yy3285 := &x.Spec + yy3285.CodecEncodeSelf(e) } } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3265[4] { - yy3279 := &x.Status - yy3279.CodecEncodeSelf(e) + if yyq3273[4] { + yy3287 := &x.Status + yy3287.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3265[4] { + if yyq3273[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3280 := &x.Status - yy3280.CodecEncodeSelf(e) + yy3288 := &x.Status + yy3288.CodecEncodeSelf(e) } } - if yyr3265 || yy2arr3265 { + if yyr3273 || yy2arr3273 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41948,25 +42068,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3281 := z.DecBinary() - _ = yym3281 + yym3289 := z.DecBinary() + _ = yym3289 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3282 := r.ContainerType() - if yyct3282 == codecSelferValueTypeMap1234 { - yyl3282 := r.ReadMapStart() - if yyl3282 == 0 { + yyct3290 := r.ContainerType() + if yyct3290 == codecSelferValueTypeMap1234 { + yyl3290 := r.ReadMapStart() + if yyl3290 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3282, d) + x.codecDecodeSelfFromMap(yyl3290, d) } - } else if yyct3282 == codecSelferValueTypeArray1234 { - yyl3282 := r.ReadArrayStart() - if yyl3282 == 0 { + } else if yyct3290 == codecSelferValueTypeArray1234 { + yyl3290 := r.ReadArrayStart() + if yyl3290 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3282, d) + x.codecDecodeSelfFromArray(yyl3290, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41978,12 +42098,12 @@ func (x *Node) 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 yys3291Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3291Slc + var yyhl3291 bool = l >= 0 + for yyj3291 := 0; ; yyj3291++ { + if yyhl3291 { + if yyj3291 >= l { break } } else { @@ -41992,10 +42112,10 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3283Slc = r.DecodeBytes(yys3283Slc, true, true) - yys3283 := string(yys3283Slc) + yys3291Slc = r.DecodeBytes(yys3291Slc, true, true) + yys3291 := string(yys3291Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3283 { + switch yys3291 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42012,27 +42132,27 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3286 := &x.ObjectMeta - yyv3286.CodecDecodeSelf(d) + yyv3294 := &x.ObjectMeta + yyv3294.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3287 := &x.Spec - yyv3287.CodecDecodeSelf(d) + yyv3295 := &x.Spec + yyv3295.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3288 := &x.Status - yyv3288.CodecDecodeSelf(d) + yyv3296 := &x.Status + yyv3296.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3283) - } // end switch yys3283 - } // end for yyj3283 + z.DecStructFieldNotFound(-1, yys3291) + } // end switch yys3291 + } // end for yyj3291 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42040,16 +42160,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3289 int - var yyb3289 bool - var yyhl3289 bool = l >= 0 - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + var yyj3297 int + var yyb3297 bool + var yyhl3297 bool = l >= 0 + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42059,13 +42179,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42075,13 +42195,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42089,16 +42209,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3292 := &x.ObjectMeta - yyv3292.CodecDecodeSelf(d) + yyv3300 := &x.ObjectMeta + yyv3300.CodecDecodeSelf(d) } - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42106,16 +42226,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3293 := &x.Spec - yyv3293.CodecDecodeSelf(d) + yyv3301 := &x.Spec + yyv3301.CodecDecodeSelf(d) } - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42123,21 +42243,21 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3294 := &x.Status - yyv3294.CodecDecodeSelf(d) + yyv3302 := &x.Status + yyv3302.CodecDecodeSelf(d) } for { - yyj3289++ - if yyhl3289 { - yyb3289 = yyj3289 > l + yyj3297++ + if yyhl3297 { + yyb3297 = yyj3297 > l } else { - yyb3289 = r.CheckBreak() + yyb3297 = r.CheckBreak() } - if yyb3289 { + if yyb3297 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3289-1, "") + z.DecStructFieldNotFound(yyj3297-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42149,37 +42269,37 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3295 := z.EncBinary() - _ = yym3295 + yym3303 := z.EncBinary() + _ = yym3303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3296 := !z.EncBinary() - yy2arr3296 := z.EncBasicHandle().StructToArray - var yyq3296 [4]bool - _, _, _ = yysep3296, yyq3296, yy2arr3296 - const yyr3296 bool = false - yyq3296[0] = x.Kind != "" - yyq3296[1] = x.APIVersion != "" - yyq3296[2] = true - var yynn3296 int - if yyr3296 || yy2arr3296 { + yysep3304 := !z.EncBinary() + yy2arr3304 := z.EncBasicHandle().StructToArray + var yyq3304 [4]bool + _, _, _ = yysep3304, yyq3304, yy2arr3304 + const yyr3304 bool = false + yyq3304[0] = x.Kind != "" + yyq3304[1] = x.APIVersion != "" + yyq3304[2] = true + var yynn3304 int + if yyr3304 || yy2arr3304 { r.EncodeArrayStart(4) } else { - yynn3296 = 1 - for _, b := range yyq3296 { + yynn3304 = 1 + for _, b := range yyq3304 { if b { - yynn3296++ + yynn3304++ } } - r.EncodeMapStart(yynn3296) - yynn3296 = 0 + r.EncodeMapStart(yynn3304) + yynn3304 = 0 } - if yyr3296 || yy2arr3296 { + if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[0] { - yym3298 := z.EncBinary() - _ = yym3298 + if yyq3304[0] { + yym3306 := z.EncBinary() + _ = yym3306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42188,23 +42308,23 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[0] { + if yyq3304[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3299 := z.EncBinary() - _ = yym3299 + yym3307 := z.EncBinary() + _ = yym3307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3296 || yy2arr3296 { + if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[1] { - yym3301 := z.EncBinary() - _ = yym3301 + if yyq3304[1] { + yym3309 := z.EncBinary() + _ = yym3309 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42213,54 +42333,54 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[1] { + if yyq3304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3302 := z.EncBinary() - _ = yym3302 + yym3310 := z.EncBinary() + _ = yym3310 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3296 || yy2arr3296 { + if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[2] { - yy3304 := &x.ListMeta - yym3305 := z.EncBinary() - _ = yym3305 + if yyq3304[2] { + yy3312 := &x.ListMeta + yym3313 := z.EncBinary() + _ = yym3313 if false { - } else if z.HasExtensions() && z.EncExt(yy3304) { + } else if z.HasExtensions() && z.EncExt(yy3312) { } else { - z.EncFallback(yy3304) + z.EncFallback(yy3312) } } else { r.EncodeNil() } } else { - if yyq3296[2] { + if yyq3304[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3306 := &x.ListMeta - yym3307 := z.EncBinary() - _ = yym3307 + yy3314 := &x.ListMeta + yym3315 := z.EncBinary() + _ = yym3315 if false { - } else if z.HasExtensions() && z.EncExt(yy3306) { + } else if z.HasExtensions() && z.EncExt(yy3314) { } else { - z.EncFallback(yy3306) + z.EncFallback(yy3314) } } } - if yyr3296 || yy2arr3296 { + if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3309 := z.EncBinary() - _ = yym3309 + yym3317 := z.EncBinary() + _ = yym3317 if false { } else { h.encSliceNode(([]Node)(x.Items), e) @@ -42273,15 +42393,15 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3310 := z.EncBinary() - _ = yym3310 + yym3318 := z.EncBinary() + _ = yym3318 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr3296 || yy2arr3296 { + if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42294,25 +42414,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3311 := z.DecBinary() - _ = yym3311 + yym3319 := z.DecBinary() + _ = yym3319 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3312 := r.ContainerType() - if yyct3312 == codecSelferValueTypeMap1234 { - yyl3312 := r.ReadMapStart() - if yyl3312 == 0 { + yyct3320 := r.ContainerType() + if yyct3320 == codecSelferValueTypeMap1234 { + yyl3320 := r.ReadMapStart() + if yyl3320 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3312, d) + x.codecDecodeSelfFromMap(yyl3320, d) } - } else if yyct3312 == codecSelferValueTypeArray1234 { - yyl3312 := r.ReadArrayStart() - if yyl3312 == 0 { + } else if yyct3320 == codecSelferValueTypeArray1234 { + yyl3320 := r.ReadArrayStart() + if yyl3320 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3312, d) + x.codecDecodeSelfFromArray(yyl3320, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42324,12 +42444,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3313Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3313Slc - var yyhl3313 bool = l >= 0 - for yyj3313 := 0; ; yyj3313++ { - if yyhl3313 { - if yyj3313 >= l { + var yys3321Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3321Slc + var yyhl3321 bool = l >= 0 + for yyj3321 := 0; ; yyj3321++ { + if yyhl3321 { + if yyj3321 >= l { break } } else { @@ -42338,10 +42458,10 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3313Slc = r.DecodeBytes(yys3313Slc, true, true) - yys3313 := string(yys3313Slc) + yys3321Slc = r.DecodeBytes(yys3321Slc, true, true) + yys3321 := string(yys3321Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3313 { + switch yys3321 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42358,31 +42478,31 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3316 := &x.ListMeta - yym3317 := z.DecBinary() - _ = yym3317 + yyv3324 := &x.ListMeta + yym3325 := z.DecBinary() + _ = yym3325 if false { - } else if z.HasExtensions() && z.DecExt(yyv3316) { + } else if z.HasExtensions() && z.DecExt(yyv3324) { } else { - z.DecFallback(yyv3316, false) + z.DecFallback(yyv3324, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3318 := &x.Items - yym3319 := z.DecBinary() - _ = yym3319 + yyv3326 := &x.Items + yym3327 := z.DecBinary() + _ = yym3327 if false { } else { - h.decSliceNode((*[]Node)(yyv3318), d) + h.decSliceNode((*[]Node)(yyv3326), d) } } default: - z.DecStructFieldNotFound(-1, yys3313) - } // end switch yys3313 - } // end for yyj3313 + z.DecStructFieldNotFound(-1, yys3321) + } // end switch yys3321 + } // end for yyj3321 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42390,16 +42510,16 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3320 int - var yyb3320 bool - var yyhl3320 bool = l >= 0 - yyj3320++ - if yyhl3320 { - yyb3320 = yyj3320 > l + var yyj3328 int + var yyb3328 bool + var yyhl3328 bool = l >= 0 + yyj3328++ + if yyhl3328 { + yyb3328 = yyj3328 > l } else { - yyb3320 = r.CheckBreak() + yyb3328 = r.CheckBreak() } - if yyb3320 { + if yyb3328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42409,13 +42529,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3320++ - if yyhl3320 { - yyb3320 = yyj3320 > l + yyj3328++ + if yyhl3328 { + yyb3328 = yyj3328 > l } else { - yyb3320 = r.CheckBreak() + yyb3328 = r.CheckBreak() } - if yyb3320 { + if yyb3328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42425,13 +42545,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3320++ - if yyhl3320 { - yyb3320 = yyj3320 > l + yyj3328++ + if yyhl3328 { + yyb3328 = yyj3328 > l } else { - yyb3320 = r.CheckBreak() + yyb3328 = r.CheckBreak() } - if yyb3320 { + if yyb3328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42439,22 +42559,22 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3323 := &x.ListMeta - yym3324 := z.DecBinary() - _ = yym3324 + yyv3331 := &x.ListMeta + yym3332 := z.DecBinary() + _ = yym3332 if false { - } else if z.HasExtensions() && z.DecExt(yyv3323) { + } else if z.HasExtensions() && z.DecExt(yyv3331) { } else { - z.DecFallback(yyv3323, false) + z.DecFallback(yyv3331, false) } } - yyj3320++ - if yyhl3320 { - yyb3320 = yyj3320 > l + yyj3328++ + if yyhl3328 { + yyb3328 = yyj3328 > l } else { - yyb3320 = r.CheckBreak() + yyb3328 = r.CheckBreak() } - if yyb3320 { + if yyb3328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42462,26 +42582,26 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3325 := &x.Items - yym3326 := z.DecBinary() - _ = yym3326 + yyv3333 := &x.Items + yym3334 := z.DecBinary() + _ = yym3334 if false { } else { - h.decSliceNode((*[]Node)(yyv3325), d) + h.decSliceNode((*[]Node)(yyv3333), d) } } for { - yyj3320++ - if yyhl3320 { - yyb3320 = yyj3320 > l + yyj3328++ + if yyhl3328 { + yyb3328 = yyj3328 > l } else { - yyb3320 = r.CheckBreak() + yyb3328 = r.CheckBreak() } - if yyb3320 { + if yyb3328 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3320-1, "") + z.DecStructFieldNotFound(yyj3328-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42490,8 +42610,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3327 := z.EncBinary() - _ = yym3327 + yym3335 := z.EncBinary() + _ = yym3335 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -42503,8 +42623,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3328 := z.DecBinary() - _ = yym3328 + yym3336 := z.DecBinary() + _ = yym3336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -42519,38 +42639,38 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3329 := z.EncBinary() - _ = yym3329 + yym3337 := z.EncBinary() + _ = yym3337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3330 := !z.EncBinary() - yy2arr3330 := z.EncBasicHandle().StructToArray - var yyq3330 [1]bool - _, _, _ = yysep3330, yyq3330, yy2arr3330 - const yyr3330 bool = false - yyq3330[0] = len(x.Finalizers) != 0 - var yynn3330 int - if yyr3330 || yy2arr3330 { + yysep3338 := !z.EncBinary() + yy2arr3338 := z.EncBasicHandle().StructToArray + var yyq3338 [1]bool + _, _, _ = yysep3338, yyq3338, yy2arr3338 + const yyr3338 bool = false + yyq3338[0] = len(x.Finalizers) != 0 + var yynn3338 int + if yyr3338 || yy2arr3338 { r.EncodeArrayStart(1) } else { - yynn3330 = 0 - for _, b := range yyq3330 { + yynn3338 = 0 + for _, b := range yyq3338 { if b { - yynn3330++ + yynn3338++ } } - r.EncodeMapStart(yynn3330) - yynn3330 = 0 + r.EncodeMapStart(yynn3338) + yynn3338 = 0 } - if yyr3330 || yy2arr3330 { + if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3330[0] { + if yyq3338[0] { if x.Finalizers == nil { r.EncodeNil() } else { - yym3332 := z.EncBinary() - _ = yym3332 + yym3340 := z.EncBinary() + _ = yym3340 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -42560,15 +42680,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3330[0] { + if yyq3338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym3333 := z.EncBinary() - _ = yym3333 + yym3341 := z.EncBinary() + _ = yym3341 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -42576,7 +42696,7 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3330 || yy2arr3330 { + if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42589,25 +42709,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3334 := z.DecBinary() - _ = yym3334 + yym3342 := z.DecBinary() + _ = yym3342 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3335 := r.ContainerType() - if yyct3335 == codecSelferValueTypeMap1234 { - yyl3335 := r.ReadMapStart() - if yyl3335 == 0 { + yyct3343 := r.ContainerType() + if yyct3343 == codecSelferValueTypeMap1234 { + yyl3343 := r.ReadMapStart() + if yyl3343 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3335, d) + x.codecDecodeSelfFromMap(yyl3343, d) } - } else if yyct3335 == codecSelferValueTypeArray1234 { - yyl3335 := r.ReadArrayStart() - if yyl3335 == 0 { + } else if yyct3343 == codecSelferValueTypeArray1234 { + yyl3343 := r.ReadArrayStart() + if yyl3343 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3335, d) + x.codecDecodeSelfFromArray(yyl3343, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42619,12 +42739,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3336Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3336Slc - var yyhl3336 bool = l >= 0 - for yyj3336 := 0; ; yyj3336++ { - if yyhl3336 { - if yyj3336 >= l { + var yys3344Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3344Slc + var yyhl3344 bool = l >= 0 + for yyj3344 := 0; ; yyj3344++ { + if yyhl3344 { + if yyj3344 >= l { break } } else { @@ -42633,26 +42753,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3336Slc = r.DecodeBytes(yys3336Slc, true, true) - yys3336 := string(yys3336Slc) + yys3344Slc = r.DecodeBytes(yys3344Slc, true, true) + yys3344 := string(yys3344Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3336 { + switch yys3344 { case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3337 := &x.Finalizers - yym3338 := z.DecBinary() - _ = yym3338 + yyv3345 := &x.Finalizers + yym3346 := z.DecBinary() + _ = yym3346 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3337), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3345), d) } } default: - z.DecStructFieldNotFound(-1, yys3336) - } // end switch yys3336 - } // end for yyj3336 + z.DecStructFieldNotFound(-1, yys3344) + } // end switch yys3344 + } // end for yyj3344 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42660,16 +42780,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3339 int - var yyb3339 bool - var yyhl3339 bool = l >= 0 - yyj3339++ - if yyhl3339 { - yyb3339 = yyj3339 > l + var yyj3347 int + var yyb3347 bool + var yyhl3347 bool = l >= 0 + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l } else { - yyb3339 = r.CheckBreak() + yyb3347 = r.CheckBreak() } - if yyb3339 { + if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42677,26 +42797,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3340 := &x.Finalizers - yym3341 := z.DecBinary() - _ = yym3341 + yyv3348 := &x.Finalizers + yym3349 := z.DecBinary() + _ = yym3349 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3340), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3348), d) } } for { - yyj3339++ - if yyhl3339 { - yyb3339 = yyj3339 > l + yyj3347++ + if yyhl3347 { + yyb3347 = yyj3347 > l } else { - yyb3339 = r.CheckBreak() + yyb3347 = r.CheckBreak() } - if yyb3339 { + if yyb3347 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3339-1, "") + z.DecStructFieldNotFound(yyj3347-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42708,46 +42828,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3342 := z.EncBinary() - _ = yym3342 + yym3350 := z.EncBinary() + _ = yym3350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3343 := !z.EncBinary() - yy2arr3343 := z.EncBasicHandle().StructToArray - var yyq3343 [1]bool - _, _, _ = yysep3343, yyq3343, yy2arr3343 - const yyr3343 bool = false - yyq3343[0] = x.Phase != "" - var yynn3343 int - if yyr3343 || yy2arr3343 { + yysep3351 := !z.EncBinary() + yy2arr3351 := z.EncBasicHandle().StructToArray + var yyq3351 [1]bool + _, _, _ = yysep3351, yyq3351, yy2arr3351 + const yyr3351 bool = false + yyq3351[0] = x.Phase != "" + var yynn3351 int + if yyr3351 || yy2arr3351 { r.EncodeArrayStart(1) } else { - yynn3343 = 0 - for _, b := range yyq3343 { + yynn3351 = 0 + for _, b := range yyq3351 { if b { - yynn3343++ + yynn3351++ } } - r.EncodeMapStart(yynn3343) - yynn3343 = 0 + r.EncodeMapStart(yynn3351) + yynn3351 = 0 } - if yyr3343 || yy2arr3343 { + if yyr3351 || yy2arr3351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3343[0] { + if yyq3351[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3343[0] { + if yyq3351[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3343 || yy2arr3343 { + if yyr3351 || yy2arr3351 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42760,25 +42880,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3345 := z.DecBinary() - _ = yym3345 + yym3353 := z.DecBinary() + _ = yym3353 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3346 := r.ContainerType() - if yyct3346 == codecSelferValueTypeMap1234 { - yyl3346 := r.ReadMapStart() - if yyl3346 == 0 { + yyct3354 := r.ContainerType() + if yyct3354 == codecSelferValueTypeMap1234 { + yyl3354 := r.ReadMapStart() + if yyl3354 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3346, d) + x.codecDecodeSelfFromMap(yyl3354, d) } - } else if yyct3346 == codecSelferValueTypeArray1234 { - yyl3346 := r.ReadArrayStart() - if yyl3346 == 0 { + } else if yyct3354 == codecSelferValueTypeArray1234 { + yyl3354 := r.ReadArrayStart() + if yyl3354 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3346, d) + x.codecDecodeSelfFromArray(yyl3354, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42790,12 +42910,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3347Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3347Slc - var yyhl3347 bool = l >= 0 - for yyj3347 := 0; ; yyj3347++ { - if yyhl3347 { - if yyj3347 >= l { + var yys3355Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3355Slc + var yyhl3355 bool = l >= 0 + for yyj3355 := 0; ; yyj3355++ { + if yyhl3355 { + if yyj3355 >= l { break } } else { @@ -42804,10 +42924,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3347Slc = r.DecodeBytes(yys3347Slc, true, true) - yys3347 := string(yys3347Slc) + yys3355Slc = r.DecodeBytes(yys3355Slc, true, true) + yys3355 := string(yys3355Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3347 { + switch yys3355 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -42815,9 +42935,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3347) - } // end switch yys3347 - } // end for yyj3347 + z.DecStructFieldNotFound(-1, yys3355) + } // end switch yys3355 + } // end for yyj3355 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42825,16 +42945,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3349 int - var yyb3349 bool - var yyhl3349 bool = l >= 0 - yyj3349++ - if yyhl3349 { - yyb3349 = yyj3349 > l + var yyj3357 int + var yyb3357 bool + var yyhl3357 bool = l >= 0 + yyj3357++ + if yyhl3357 { + yyb3357 = yyj3357 > l } else { - yyb3349 = r.CheckBreak() + yyb3357 = r.CheckBreak() } - if yyb3349 { + if yyb3357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42845,17 +42965,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj3349++ - if yyhl3349 { - yyb3349 = yyj3349 > l + yyj3357++ + if yyhl3357 { + yyb3357 = yyj3357 > l } else { - yyb3349 = r.CheckBreak() + yyb3357 = r.CheckBreak() } - if yyb3349 { + if yyb3357 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3349-1, "") + z.DecStructFieldNotFound(yyj3357-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42864,8 +42984,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3351 := z.EncBinary() - _ = yym3351 + yym3359 := z.EncBinary() + _ = yym3359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -42877,8 +42997,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3352 := z.DecBinary() - _ = yym3352 + yym3360 := z.DecBinary() + _ = yym3360 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -42893,39 +43013,39 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3353 := z.EncBinary() - _ = yym3353 + yym3361 := z.EncBinary() + _ = yym3361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3354 := !z.EncBinary() - yy2arr3354 := z.EncBasicHandle().StructToArray - var yyq3354 [5]bool - _, _, _ = yysep3354, yyq3354, yy2arr3354 - const yyr3354 bool = false - yyq3354[0] = x.Kind != "" - yyq3354[1] = x.APIVersion != "" - yyq3354[2] = true - yyq3354[3] = true - yyq3354[4] = true - var yynn3354 int - if yyr3354 || yy2arr3354 { + yysep3362 := !z.EncBinary() + yy2arr3362 := z.EncBasicHandle().StructToArray + var yyq3362 [5]bool + _, _, _ = yysep3362, yyq3362, yy2arr3362 + const yyr3362 bool = false + yyq3362[0] = x.Kind != "" + yyq3362[1] = x.APIVersion != "" + yyq3362[2] = true + yyq3362[3] = true + yyq3362[4] = true + var yynn3362 int + if yyr3362 || yy2arr3362 { r.EncodeArrayStart(5) } else { - yynn3354 = 0 - for _, b := range yyq3354 { + yynn3362 = 0 + for _, b := range yyq3362 { if b { - yynn3354++ + yynn3362++ } } - r.EncodeMapStart(yynn3354) - yynn3354 = 0 + r.EncodeMapStart(yynn3362) + yynn3362 = 0 } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3354[0] { - yym3356 := z.EncBinary() - _ = yym3356 + if yyq3362[0] { + yym3364 := z.EncBinary() + _ = yym3364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42934,23 +43054,23 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3354[0] { + if yyq3362[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3357 := z.EncBinary() - _ = yym3357 + yym3365 := z.EncBinary() + _ = yym3365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3354[1] { - yym3359 := z.EncBinary() - _ = yym3359 + if yyq3362[1] { + yym3367 := z.EncBinary() + _ = yym3367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42959,70 +43079,70 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3354[1] { + if yyq3362[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3360 := z.EncBinary() - _ = yym3360 + yym3368 := z.EncBinary() + _ = yym3368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3354[2] { - yy3362 := &x.ObjectMeta - yy3362.CodecEncodeSelf(e) + if yyq3362[2] { + yy3370 := &x.ObjectMeta + yy3370.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3354[2] { + if yyq3362[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3363 := &x.ObjectMeta - yy3363.CodecEncodeSelf(e) + yy3371 := &x.ObjectMeta + yy3371.CodecEncodeSelf(e) } } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3354[3] { - yy3365 := &x.Spec - yy3365.CodecEncodeSelf(e) + if yyq3362[3] { + yy3373 := &x.Spec + yy3373.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3354[3] { + if yyq3362[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3366 := &x.Spec - yy3366.CodecEncodeSelf(e) + yy3374 := &x.Spec + yy3374.CodecEncodeSelf(e) } } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3354[4] { - yy3368 := &x.Status - yy3368.CodecEncodeSelf(e) + if yyq3362[4] { + yy3376 := &x.Status + yy3376.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3354[4] { + if yyq3362[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3369 := &x.Status - yy3369.CodecEncodeSelf(e) + yy3377 := &x.Status + yy3377.CodecEncodeSelf(e) } } - if yyr3354 || yy2arr3354 { + if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43035,25 +43155,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3370 := z.DecBinary() - _ = yym3370 + yym3378 := z.DecBinary() + _ = yym3378 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3371 := r.ContainerType() - if yyct3371 == codecSelferValueTypeMap1234 { - yyl3371 := r.ReadMapStart() - if yyl3371 == 0 { + yyct3379 := r.ContainerType() + if yyct3379 == codecSelferValueTypeMap1234 { + yyl3379 := r.ReadMapStart() + if yyl3379 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3371, d) + x.codecDecodeSelfFromMap(yyl3379, d) } - } else if yyct3371 == codecSelferValueTypeArray1234 { - yyl3371 := r.ReadArrayStart() - if yyl3371 == 0 { + } else if yyct3379 == codecSelferValueTypeArray1234 { + yyl3379 := r.ReadArrayStart() + if yyl3379 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3371, d) + x.codecDecodeSelfFromArray(yyl3379, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43065,12 +43185,12 @@ func (x *Namespace) 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 yys3380Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3380Slc + var yyhl3380 bool = l >= 0 + for yyj3380 := 0; ; yyj3380++ { + if yyhl3380 { + if yyj3380 >= l { break } } else { @@ -43079,10 +43199,10 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3372Slc = r.DecodeBytes(yys3372Slc, true, true) - yys3372 := string(yys3372Slc) + yys3380Slc = r.DecodeBytes(yys3380Slc, true, true) + yys3380 := string(yys3380Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3372 { + switch yys3380 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43099,27 +43219,27 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3375 := &x.ObjectMeta - yyv3375.CodecDecodeSelf(d) + yyv3383 := &x.ObjectMeta + yyv3383.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3376 := &x.Spec - yyv3376.CodecDecodeSelf(d) + yyv3384 := &x.Spec + yyv3384.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3377 := &x.Status - yyv3377.CodecDecodeSelf(d) + yyv3385 := &x.Status + yyv3385.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3372) - } // end switch yys3372 - } // end for yyj3372 + z.DecStructFieldNotFound(-1, yys3380) + } // end switch yys3380 + } // end for yyj3380 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43127,16 +43247,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3378 int - var yyb3378 bool - var yyhl3378 bool = l >= 0 - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + var yyj3386 int + var yyb3386 bool + var yyhl3386 bool = l >= 0 + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43146,13 +43266,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43162,13 +43282,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43176,16 +43296,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3381 := &x.ObjectMeta - yyv3381.CodecDecodeSelf(d) + yyv3389 := &x.ObjectMeta + yyv3389.CodecDecodeSelf(d) } - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43193,16 +43313,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3382 := &x.Spec - yyv3382.CodecDecodeSelf(d) + yyv3390 := &x.Spec + yyv3390.CodecDecodeSelf(d) } - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43210,21 +43330,21 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3383 := &x.Status - yyv3383.CodecDecodeSelf(d) + yyv3391 := &x.Status + yyv3391.CodecDecodeSelf(d) } for { - yyj3378++ - if yyhl3378 { - yyb3378 = yyj3378 > l + yyj3386++ + if yyhl3386 { + yyb3386 = yyj3386 > l } else { - yyb3378 = r.CheckBreak() + yyb3386 = r.CheckBreak() } - if yyb3378 { + if yyb3386 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3378-1, "") + z.DecStructFieldNotFound(yyj3386-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43236,37 +43356,37 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3384 := z.EncBinary() - _ = yym3384 + yym3392 := z.EncBinary() + _ = yym3392 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3385 := !z.EncBinary() - yy2arr3385 := z.EncBasicHandle().StructToArray - var yyq3385 [4]bool - _, _, _ = yysep3385, yyq3385, yy2arr3385 - const yyr3385 bool = false - yyq3385[0] = x.Kind != "" - yyq3385[1] = x.APIVersion != "" - yyq3385[2] = true - var yynn3385 int - if yyr3385 || yy2arr3385 { + yysep3393 := !z.EncBinary() + yy2arr3393 := z.EncBasicHandle().StructToArray + var yyq3393 [4]bool + _, _, _ = yysep3393, yyq3393, yy2arr3393 + const yyr3393 bool = false + yyq3393[0] = x.Kind != "" + yyq3393[1] = x.APIVersion != "" + yyq3393[2] = true + var yynn3393 int + if yyr3393 || yy2arr3393 { r.EncodeArrayStart(4) } else { - yynn3385 = 1 - for _, b := range yyq3385 { + yynn3393 = 1 + for _, b := range yyq3393 { if b { - yynn3385++ + yynn3393++ } } - r.EncodeMapStart(yynn3385) - yynn3385 = 0 + r.EncodeMapStart(yynn3393) + yynn3393 = 0 } - if yyr3385 || yy2arr3385 { + if yyr3393 || yy2arr3393 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3385[0] { - yym3387 := z.EncBinary() - _ = yym3387 + if yyq3393[0] { + yym3395 := z.EncBinary() + _ = yym3395 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43275,23 +43395,23 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3385[0] { + if yyq3393[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3388 := z.EncBinary() - _ = yym3388 + yym3396 := z.EncBinary() + _ = yym3396 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3385 || yy2arr3385 { + if yyr3393 || yy2arr3393 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3385[1] { - yym3390 := z.EncBinary() - _ = yym3390 + if yyq3393[1] { + yym3398 := z.EncBinary() + _ = yym3398 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43300,54 +43420,54 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3385[1] { + if yyq3393[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3391 := z.EncBinary() - _ = yym3391 + yym3399 := z.EncBinary() + _ = yym3399 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3385 || yy2arr3385 { + if yyr3393 || yy2arr3393 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3385[2] { - yy3393 := &x.ListMeta - yym3394 := z.EncBinary() - _ = yym3394 + if yyq3393[2] { + yy3401 := &x.ListMeta + yym3402 := z.EncBinary() + _ = yym3402 if false { - } else if z.HasExtensions() && z.EncExt(yy3393) { + } else if z.HasExtensions() && z.EncExt(yy3401) { } else { - z.EncFallback(yy3393) + z.EncFallback(yy3401) } } else { r.EncodeNil() } } else { - if yyq3385[2] { + if yyq3393[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3395 := &x.ListMeta - yym3396 := z.EncBinary() - _ = yym3396 + yy3403 := &x.ListMeta + yym3404 := z.EncBinary() + _ = yym3404 if false { - } else if z.HasExtensions() && z.EncExt(yy3395) { + } else if z.HasExtensions() && z.EncExt(yy3403) { } else { - z.EncFallback(yy3395) + z.EncFallback(yy3403) } } } - if yyr3385 || yy2arr3385 { + if yyr3393 || yy2arr3393 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3398 := z.EncBinary() - _ = yym3398 + yym3406 := z.EncBinary() + _ = yym3406 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) @@ -43360,15 +43480,15 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3399 := z.EncBinary() - _ = yym3399 + yym3407 := z.EncBinary() + _ = yym3407 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr3385 || yy2arr3385 { + if yyr3393 || yy2arr3393 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43381,25 +43501,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3400 := z.DecBinary() - _ = yym3400 + yym3408 := z.DecBinary() + _ = yym3408 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3401 := r.ContainerType() - if yyct3401 == codecSelferValueTypeMap1234 { - yyl3401 := r.ReadMapStart() - if yyl3401 == 0 { + yyct3409 := r.ContainerType() + if yyct3409 == codecSelferValueTypeMap1234 { + yyl3409 := r.ReadMapStart() + if yyl3409 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3401, d) + x.codecDecodeSelfFromMap(yyl3409, d) } - } else if yyct3401 == codecSelferValueTypeArray1234 { - yyl3401 := r.ReadArrayStart() - if yyl3401 == 0 { + } else if yyct3409 == codecSelferValueTypeArray1234 { + yyl3409 := r.ReadArrayStart() + if yyl3409 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3401, d) + x.codecDecodeSelfFromArray(yyl3409, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43411,12 +43531,12 @@ func (x *NamespaceList) 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 yys3410Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3410Slc + var yyhl3410 bool = l >= 0 + for yyj3410 := 0; ; yyj3410++ { + if yyhl3410 { + if yyj3410 >= l { break } } else { @@ -43425,10 +43545,10 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3402Slc = r.DecodeBytes(yys3402Slc, true, true) - yys3402 := string(yys3402Slc) + yys3410Slc = r.DecodeBytes(yys3410Slc, true, true) + yys3410 := string(yys3410Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3402 { + switch yys3410 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43445,31 +43565,31 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3405 := &x.ListMeta - yym3406 := z.DecBinary() - _ = yym3406 + yyv3413 := &x.ListMeta + yym3414 := z.DecBinary() + _ = yym3414 if false { - } else if z.HasExtensions() && z.DecExt(yyv3405) { + } else if z.HasExtensions() && z.DecExt(yyv3413) { } else { - z.DecFallback(yyv3405, false) + z.DecFallback(yyv3413, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3407 := &x.Items - yym3408 := z.DecBinary() - _ = yym3408 + yyv3415 := &x.Items + yym3416 := z.DecBinary() + _ = yym3416 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3407), d) + h.decSliceNamespace((*[]Namespace)(yyv3415), d) } } default: - z.DecStructFieldNotFound(-1, yys3402) - } // end switch yys3402 - } // end for yyj3402 + z.DecStructFieldNotFound(-1, yys3410) + } // end switch yys3410 + } // end for yyj3410 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43477,16 +43597,16 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3409 int - var yyb3409 bool - var yyhl3409 bool = l >= 0 - yyj3409++ - if yyhl3409 { - yyb3409 = yyj3409 > l + var yyj3417 int + var yyb3417 bool + var yyhl3417 bool = l >= 0 + yyj3417++ + if yyhl3417 { + yyb3417 = yyj3417 > l } else { - yyb3409 = r.CheckBreak() + yyb3417 = r.CheckBreak() } - if yyb3409 { + if yyb3417 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43496,13 +43616,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3409++ - if yyhl3409 { - yyb3409 = yyj3409 > l + yyj3417++ + if yyhl3417 { + yyb3417 = yyj3417 > l } else { - yyb3409 = r.CheckBreak() + yyb3417 = r.CheckBreak() } - if yyb3409 { + if yyb3417 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43512,13 +43632,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3409++ - if yyhl3409 { - yyb3409 = yyj3409 > l + yyj3417++ + if yyhl3417 { + yyb3417 = yyj3417 > l } else { - yyb3409 = r.CheckBreak() + yyb3417 = r.CheckBreak() } - if yyb3409 { + if yyb3417 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43526,22 +43646,22 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3412 := &x.ListMeta - yym3413 := z.DecBinary() - _ = yym3413 + yyv3420 := &x.ListMeta + yym3421 := z.DecBinary() + _ = yym3421 if false { - } else if z.HasExtensions() && z.DecExt(yyv3412) { + } else if z.HasExtensions() && z.DecExt(yyv3420) { } else { - z.DecFallback(yyv3412, false) + z.DecFallback(yyv3420, false) } } - yyj3409++ - if yyhl3409 { - yyb3409 = yyj3409 > l + yyj3417++ + if yyhl3417 { + yyb3417 = yyj3417 > l } else { - yyb3409 = r.CheckBreak() + yyb3417 = r.CheckBreak() } - if yyb3409 { + if yyb3417 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43549,26 +43669,26 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3414 := &x.Items - yym3415 := z.DecBinary() - _ = yym3415 + yyv3422 := &x.Items + yym3423 := z.DecBinary() + _ = yym3423 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3414), d) + h.decSliceNamespace((*[]Namespace)(yyv3422), d) } } for { - yyj3409++ - if yyhl3409 { - yyb3409 = yyj3409 > l + yyj3417++ + if yyhl3417 { + yyb3417 = yyj3417 > l } else { - yyb3409 = r.CheckBreak() + yyb3417 = r.CheckBreak() } - if yyb3409 { + if yyb3417 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3409-1, "") + z.DecStructFieldNotFound(yyj3417-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43580,37 +43700,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3416 := z.EncBinary() - _ = yym3416 + yym3424 := z.EncBinary() + _ = yym3424 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3417 := !z.EncBinary() - yy2arr3417 := z.EncBasicHandle().StructToArray - var yyq3417 [4]bool - _, _, _ = yysep3417, yyq3417, yy2arr3417 - const yyr3417 bool = false - yyq3417[0] = x.Kind != "" - yyq3417[1] = x.APIVersion != "" - yyq3417[2] = true - var yynn3417 int - if yyr3417 || yy2arr3417 { + yysep3425 := !z.EncBinary() + yy2arr3425 := z.EncBasicHandle().StructToArray + var yyq3425 [4]bool + _, _, _ = yysep3425, yyq3425, yy2arr3425 + const yyr3425 bool = false + yyq3425[0] = x.Kind != "" + yyq3425[1] = x.APIVersion != "" + yyq3425[2] = true + var yynn3425 int + if yyr3425 || yy2arr3425 { r.EncodeArrayStart(4) } else { - yynn3417 = 1 - for _, b := range yyq3417 { + yynn3425 = 1 + for _, b := range yyq3425 { if b { - yynn3417++ + yynn3425++ } } - r.EncodeMapStart(yynn3417) - yynn3417 = 0 + r.EncodeMapStart(yynn3425) + yynn3425 = 0 } - if yyr3417 || yy2arr3417 { + if yyr3425 || yy2arr3425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3417[0] { - yym3419 := z.EncBinary() - _ = yym3419 + if yyq3425[0] { + yym3427 := z.EncBinary() + _ = yym3427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43619,23 +43739,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3417[0] { + if yyq3425[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3420 := z.EncBinary() - _ = yym3420 + yym3428 := z.EncBinary() + _ = yym3428 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3417 || yy2arr3417 { + if yyr3425 || yy2arr3425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3417[1] { - yym3422 := z.EncBinary() - _ = yym3422 + if yyq3425[1] { + yym3430 := z.EncBinary() + _ = yym3430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43644,47 +43764,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3417[1] { + if yyq3425[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3423 := z.EncBinary() - _ = yym3423 + yym3431 := z.EncBinary() + _ = yym3431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3417 || yy2arr3417 { + if yyr3425 || yy2arr3425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3417[2] { - yy3425 := &x.ObjectMeta - yy3425.CodecEncodeSelf(e) + if yyq3425[2] { + yy3433 := &x.ObjectMeta + yy3433.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3417[2] { + if yyq3425[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3426 := &x.ObjectMeta - yy3426.CodecEncodeSelf(e) + yy3434 := &x.ObjectMeta + yy3434.CodecEncodeSelf(e) } } - if yyr3417 || yy2arr3417 { + if yyr3425 || yy2arr3425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3428 := &x.Target - yy3428.CodecEncodeSelf(e) + yy3436 := &x.Target + yy3436.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3429 := &x.Target - yy3429.CodecEncodeSelf(e) + yy3437 := &x.Target + yy3437.CodecEncodeSelf(e) } - if yyr3417 || yy2arr3417 { + if yyr3425 || yy2arr3425 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43697,25 +43817,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3430 := z.DecBinary() - _ = yym3430 + yym3438 := z.DecBinary() + _ = yym3438 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3431 := r.ContainerType() - if yyct3431 == codecSelferValueTypeMap1234 { - yyl3431 := r.ReadMapStart() - if yyl3431 == 0 { + yyct3439 := r.ContainerType() + if yyct3439 == codecSelferValueTypeMap1234 { + yyl3439 := r.ReadMapStart() + if yyl3439 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3431, d) + x.codecDecodeSelfFromMap(yyl3439, d) } - } else if yyct3431 == codecSelferValueTypeArray1234 { - yyl3431 := r.ReadArrayStart() - if yyl3431 == 0 { + } else if yyct3439 == codecSelferValueTypeArray1234 { + yyl3439 := r.ReadArrayStart() + if yyl3439 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3431, d) + x.codecDecodeSelfFromArray(yyl3439, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43727,12 +43847,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3432Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3432Slc - var yyhl3432 bool = l >= 0 - for yyj3432 := 0; ; yyj3432++ { - if yyhl3432 { - if yyj3432 >= l { + var yys3440Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3440Slc + var yyhl3440 bool = l >= 0 + for yyj3440 := 0; ; yyj3440++ { + if yyhl3440 { + if yyj3440 >= l { break } } else { @@ -43741,10 +43861,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3432Slc = r.DecodeBytes(yys3432Slc, true, true) - yys3432 := string(yys3432Slc) + yys3440Slc = r.DecodeBytes(yys3440Slc, true, true) + yys3440 := string(yys3440Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3432 { + switch yys3440 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43761,20 +43881,20 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3435 := &x.ObjectMeta - yyv3435.CodecDecodeSelf(d) + yyv3443 := &x.ObjectMeta + yyv3443.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3436 := &x.Target - yyv3436.CodecDecodeSelf(d) + yyv3444 := &x.Target + yyv3444.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3432) - } // end switch yys3432 - } // end for yyj3432 + z.DecStructFieldNotFound(-1, yys3440) + } // end switch yys3440 + } // end for yyj3440 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43782,16 +43902,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3437 int - var yyb3437 bool - var yyhl3437 bool = l >= 0 - yyj3437++ - if yyhl3437 { - yyb3437 = yyj3437 > l + var yyj3445 int + var yyb3445 bool + var yyhl3445 bool = l >= 0 + yyj3445++ + if yyhl3445 { + yyb3445 = yyj3445 > l } else { - yyb3437 = r.CheckBreak() + yyb3445 = r.CheckBreak() } - if yyb3437 { + if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43801,13 +43921,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3437++ - if yyhl3437 { - yyb3437 = yyj3437 > l + yyj3445++ + if yyhl3445 { + yyb3445 = yyj3445 > l } else { - yyb3437 = r.CheckBreak() + yyb3445 = r.CheckBreak() } - if yyb3437 { + if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43817,13 +43937,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3437++ - if yyhl3437 { - yyb3437 = yyj3437 > l + yyj3445++ + if yyhl3445 { + yyb3445 = yyj3445 > l } else { - yyb3437 = r.CheckBreak() + yyb3445 = r.CheckBreak() } - if yyb3437 { + if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43831,16 +43951,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3440 := &x.ObjectMeta - yyv3440.CodecDecodeSelf(d) + yyv3448 := &x.ObjectMeta + yyv3448.CodecDecodeSelf(d) } - yyj3437++ - if yyhl3437 { - yyb3437 = yyj3437 > l + yyj3445++ + if yyhl3445 { + yyb3445 = yyj3445 > l } else { - yyb3437 = r.CheckBreak() + yyb3445 = r.CheckBreak() } - if yyb3437 { + if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43848,21 +43968,21 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3441 := &x.Target - yyv3441.CodecDecodeSelf(d) + yyv3449 := &x.Target + yyv3449.CodecDecodeSelf(d) } for { - yyj3437++ - if yyhl3437 { - yyb3437 = yyj3437 > l + yyj3445++ + if yyhl3445 { + yyb3445 = yyj3445 > l } else { - yyb3437 = r.CheckBreak() + yyb3445 = r.CheckBreak() } - if yyb3437 { + if yyb3445 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3437-1, "") + z.DecStructFieldNotFound(yyj3445-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43874,68 +43994,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3442 := z.EncBinary() - _ = yym3442 + yym3450 := z.EncBinary() + _ = yym3450 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3443 := !z.EncBinary() - yy2arr3443 := z.EncBasicHandle().StructToArray - var yyq3443 [1]bool - _, _, _ = yysep3443, yyq3443, yy2arr3443 - const yyr3443 bool = false - yyq3443[0] = x.UID != nil - var yynn3443 int - if yyr3443 || yy2arr3443 { + yysep3451 := !z.EncBinary() + yy2arr3451 := z.EncBasicHandle().StructToArray + var yyq3451 [1]bool + _, _, _ = yysep3451, yyq3451, yy2arr3451 + const yyr3451 bool = false + yyq3451[0] = x.UID != nil + var yynn3451 int + if yyr3451 || yy2arr3451 { r.EncodeArrayStart(1) } else { - yynn3443 = 0 - for _, b := range yyq3443 { + yynn3451 = 0 + for _, b := range yyq3451 { if b { - yynn3443++ + yynn3451++ } } - r.EncodeMapStart(yynn3443) - yynn3443 = 0 + r.EncodeMapStart(yynn3451) + yynn3451 = 0 } - if yyr3443 || yy2arr3443 { + if yyr3451 || yy2arr3451 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3443[0] { + if yyq3451[0] { if x.UID == nil { r.EncodeNil() } else { - yy3445 := *x.UID - yym3446 := z.EncBinary() - _ = yym3446 + yy3453 := *x.UID + yym3454 := z.EncBinary() + _ = yym3454 if false { - } else if z.HasExtensions() && z.EncExt(yy3445) { + } else if z.HasExtensions() && z.EncExt(yy3453) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3445)) + r.EncodeString(codecSelferC_UTF81234, string(yy3453)) } } } else { r.EncodeNil() } } else { - if yyq3443[0] { + if yyq3451[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { - yy3447 := *x.UID - yym3448 := z.EncBinary() - _ = yym3448 + yy3455 := *x.UID + yym3456 := z.EncBinary() + _ = yym3456 if false { - } else if z.HasExtensions() && z.EncExt(yy3447) { + } else if z.HasExtensions() && z.EncExt(yy3455) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3447)) + r.EncodeString(codecSelferC_UTF81234, string(yy3455)) } } } } - if yyr3443 || yy2arr3443 { + if yyr3451 || yy2arr3451 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43948,25 +44068,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3449 := z.DecBinary() - _ = yym3449 + yym3457 := z.DecBinary() + _ = yym3457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3450 := r.ContainerType() - if yyct3450 == codecSelferValueTypeMap1234 { - yyl3450 := r.ReadMapStart() - if yyl3450 == 0 { + yyct3458 := r.ContainerType() + if yyct3458 == codecSelferValueTypeMap1234 { + yyl3458 := r.ReadMapStart() + if yyl3458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3450, d) + x.codecDecodeSelfFromMap(yyl3458, d) } - } else if yyct3450 == codecSelferValueTypeArray1234 { - yyl3450 := r.ReadArrayStart() - if yyl3450 == 0 { + } else if yyct3458 == codecSelferValueTypeArray1234 { + yyl3458 := r.ReadArrayStart() + if yyl3458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3450, d) + x.codecDecodeSelfFromArray(yyl3458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43978,12 +44098,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3451Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3451Slc - var yyhl3451 bool = l >= 0 - for yyj3451 := 0; ; yyj3451++ { - if yyhl3451 { - if yyj3451 >= l { + var yys3459Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3459Slc + var yyhl3459 bool = l >= 0 + for yyj3459 := 0; ; yyj3459++ { + if yyhl3459 { + if yyj3459 >= l { break } } else { @@ -43992,10 +44112,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3451Slc = r.DecodeBytes(yys3451Slc, true, true) - yys3451 := string(yys3451Slc) + yys3459Slc = r.DecodeBytes(yys3459Slc, true, true) + yys3459 := string(yys3459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3451 { + switch yys3459 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -44005,8 +44125,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3453 := z.DecBinary() - _ = yym3453 + yym3461 := z.DecBinary() + _ = yym3461 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -44014,9 +44134,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3451) - } // end switch yys3451 - } // end for yyj3451 + z.DecStructFieldNotFound(-1, yys3459) + } // end switch yys3459 + } // end for yyj3459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44024,16 +44144,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3454 int - var yyb3454 bool - var yyhl3454 bool = l >= 0 - yyj3454++ - if yyhl3454 { - yyb3454 = yyj3454 > l + var yyj3462 int + var yyb3462 bool + var yyhl3462 bool = l >= 0 + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3454 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3454 { + if yyb3462 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44046,8 +44166,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3456 := z.DecBinary() - _ = yym3456 + yym3464 := z.DecBinary() + _ = yym3464 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -44055,17 +44175,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj3454++ - if yyhl3454 { - yyb3454 = yyj3454 > l + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3454 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3454 { + if yyb3462 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3454-1, "") + z.DecStructFieldNotFound(yyj3462-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44077,39 +44197,39 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3457 := z.EncBinary() - _ = yym3457 + yym3465 := z.EncBinary() + _ = yym3465 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3458 := !z.EncBinary() - yy2arr3458 := z.EncBasicHandle().StructToArray - var yyq3458 [5]bool - _, _, _ = yysep3458, yyq3458, yy2arr3458 - const yyr3458 bool = false - yyq3458[0] = x.Kind != "" - yyq3458[1] = x.APIVersion != "" - yyq3458[2] = x.GracePeriodSeconds != nil - yyq3458[3] = x.Preconditions != nil - yyq3458[4] = x.OrphanDependents != nil - var yynn3458 int - if yyr3458 || yy2arr3458 { + yysep3466 := !z.EncBinary() + yy2arr3466 := z.EncBasicHandle().StructToArray + var yyq3466 [5]bool + _, _, _ = yysep3466, yyq3466, yy2arr3466 + const yyr3466 bool = false + yyq3466[0] = x.Kind != "" + yyq3466[1] = x.APIVersion != "" + yyq3466[2] = x.GracePeriodSeconds != nil + yyq3466[3] = x.Preconditions != nil + yyq3466[4] = x.OrphanDependents != nil + var yynn3466 int + if yyr3466 || yy2arr3466 { r.EncodeArrayStart(5) } else { - yynn3458 = 0 - for _, b := range yyq3458 { + yynn3466 = 0 + for _, b := range yyq3466 { if b { - yynn3458++ + yynn3466++ } } - r.EncodeMapStart(yynn3458) - yynn3458 = 0 + r.EncodeMapStart(yynn3466) + yynn3466 = 0 } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3458[0] { - yym3460 := z.EncBinary() - _ = yym3460 + if yyq3466[0] { + yym3468 := z.EncBinary() + _ = yym3468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44118,23 +44238,23 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3458[0] { + if yyq3466[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3461 := z.EncBinary() - _ = yym3461 + yym3469 := z.EncBinary() + _ = yym3469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3458[1] { - yym3463 := z.EncBinary() - _ = yym3463 + if yyq3466[1] { + yym3471 := z.EncBinary() + _ = yym3471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44143,56 +44263,56 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3458[1] { + if yyq3466[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3464 := z.EncBinary() - _ = yym3464 + yym3472 := z.EncBinary() + _ = yym3472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3458[2] { + if yyq3466[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3466 := *x.GracePeriodSeconds - yym3467 := z.EncBinary() - _ = yym3467 + yy3474 := *x.GracePeriodSeconds + yym3475 := z.EncBinary() + _ = yym3475 if false { } else { - r.EncodeInt(int64(yy3466)) + r.EncodeInt(int64(yy3474)) } } } else { r.EncodeNil() } } else { - if yyq3458[2] { + if yyq3466[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3468 := *x.GracePeriodSeconds - yym3469 := z.EncBinary() - _ = yym3469 + yy3476 := *x.GracePeriodSeconds + yym3477 := z.EncBinary() + _ = yym3477 if false { } else { - r.EncodeInt(int64(yy3468)) + r.EncodeInt(int64(yy3476)) } } } } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3458[3] { + if yyq3466[3] { if x.Preconditions == nil { r.EncodeNil() } else { @@ -44202,7 +44322,7 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3458[3] { + if yyq3466[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -44213,42 +44333,42 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3458[4] { + if yyq3466[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3472 := *x.OrphanDependents - yym3473 := z.EncBinary() - _ = yym3473 + yy3480 := *x.OrphanDependents + yym3481 := z.EncBinary() + _ = yym3481 if false { } else { - r.EncodeBool(bool(yy3472)) + r.EncodeBool(bool(yy3480)) } } } else { r.EncodeNil() } } else { - if yyq3458[4] { + if yyq3466[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3474 := *x.OrphanDependents - yym3475 := z.EncBinary() - _ = yym3475 + yy3482 := *x.OrphanDependents + yym3483 := z.EncBinary() + _ = yym3483 if false { } else { - r.EncodeBool(bool(yy3474)) + r.EncodeBool(bool(yy3482)) } } } } - if yyr3458 || yy2arr3458 { + if yyr3466 || yy2arr3466 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44261,25 +44381,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3476 := z.DecBinary() - _ = yym3476 + yym3484 := z.DecBinary() + _ = yym3484 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3477 := r.ContainerType() - if yyct3477 == codecSelferValueTypeMap1234 { - yyl3477 := r.ReadMapStart() - if yyl3477 == 0 { + yyct3485 := r.ContainerType() + if yyct3485 == codecSelferValueTypeMap1234 { + yyl3485 := r.ReadMapStart() + if yyl3485 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3477, d) + x.codecDecodeSelfFromMap(yyl3485, d) } - } else if yyct3477 == codecSelferValueTypeArray1234 { - yyl3477 := r.ReadArrayStart() - if yyl3477 == 0 { + } else if yyct3485 == codecSelferValueTypeArray1234 { + yyl3485 := r.ReadArrayStart() + if yyl3485 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3477, d) + x.codecDecodeSelfFromArray(yyl3485, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44291,12 +44411,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3478Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3478Slc - var yyhl3478 bool = l >= 0 - for yyj3478 := 0; ; yyj3478++ { - if yyhl3478 { - if yyj3478 >= l { + var yys3486Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3486Slc + var yyhl3486 bool = l >= 0 + for yyj3486 := 0; ; yyj3486++ { + if yyhl3486 { + if yyj3486 >= l { break } } else { @@ -44305,10 +44425,10 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3478Slc = r.DecodeBytes(yys3478Slc, true, true) - yys3478 := string(yys3478Slc) + yys3486Slc = r.DecodeBytes(yys3486Slc, true, true) + yys3486 := string(yys3486Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3478 { + switch yys3486 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44330,8 +44450,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3482 := z.DecBinary() - _ = yym3482 + yym3490 := z.DecBinary() + _ = yym3490 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -44357,17 +44477,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3485 := z.DecBinary() - _ = yym3485 + yym3493 := z.DecBinary() + _ = yym3493 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3478) - } // end switch yys3478 - } // end for yyj3478 + z.DecStructFieldNotFound(-1, yys3486) + } // end switch yys3486 + } // end for yyj3486 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44375,16 +44495,16 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3486 int - var yyb3486 bool - var yyhl3486 bool = l >= 0 - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + var yyj3494 int + var yyb3494 bool + var yyhl3494 bool = l >= 0 + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44394,13 +44514,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44410,13 +44530,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44429,20 +44549,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3490 := z.DecBinary() - _ = yym3490 + yym3498 := z.DecBinary() + _ = yym3498 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44457,13 +44577,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44476,25 +44596,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3493 := z.DecBinary() - _ = yym3493 + yym3501 := z.DecBinary() + _ = yym3501 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { - yyj3486++ - if yyhl3486 { - yyb3486 = yyj3486 > l + yyj3494++ + if yyhl3494 { + yyb3494 = yyj3494 > l } else { - yyb3486 = r.CheckBreak() + yyb3494 = r.CheckBreak() } - if yyb3486 { + if yyb3494 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3486-1, "") + z.DecStructFieldNotFound(yyj3494-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44506,41 +44626,41 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3494 := z.EncBinary() - _ = yym3494 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3495 := !z.EncBinary() - yy2arr3495 := z.EncBasicHandle().StructToArray - var yyq3495 [7]bool - _, _, _ = yysep3495, yyq3495, yy2arr3495 - const yyr3495 bool = false - yyq3495[0] = x.Kind != "" - yyq3495[1] = x.APIVersion != "" - yyq3495[2] = x.LabelSelector != "" - yyq3495[3] = x.FieldSelector != "" - yyq3495[4] = x.Watch != false - yyq3495[5] = x.ResourceVersion != "" - yyq3495[6] = x.TimeoutSeconds != nil - var yynn3495 int - if yyr3495 || yy2arr3495 { + yysep3503 := !z.EncBinary() + yy2arr3503 := z.EncBasicHandle().StructToArray + var yyq3503 [7]bool + _, _, _ = yysep3503, yyq3503, yy2arr3503 + const yyr3503 bool = false + yyq3503[0] = x.Kind != "" + yyq3503[1] = x.APIVersion != "" + yyq3503[2] = x.LabelSelector != "" + yyq3503[3] = x.FieldSelector != "" + yyq3503[4] = x.Watch != false + yyq3503[5] = x.ResourceVersion != "" + yyq3503[6] = x.TimeoutSeconds != nil + var yynn3503 int + if yyr3503 || yy2arr3503 { r.EncodeArrayStart(7) } else { - yynn3495 = 0 - for _, b := range yyq3495 { + yynn3503 = 0 + for _, b := range yyq3503 { if b { - yynn3495++ + yynn3503++ } } - r.EncodeMapStart(yynn3495) - yynn3495 = 0 + r.EncodeMapStart(yynn3503) + yynn3503 = 0 } - if yyr3495 || yy2arr3495 { + if yyr3503 || yy2arr3503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[0] { - yym3497 := z.EncBinary() - _ = yym3497 + if yyq3503[0] { + yym3505 := z.EncBinary() + _ = yym3505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44549,74 +44669,74 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3495[0] { + if yyq3503[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3498 := z.EncBinary() - _ = yym3498 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3495 || yy2arr3495 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[1] { - yym3500 := z.EncBinary() - _ = yym3500 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3495[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3501 := z.EncBinary() - _ = yym3501 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3495 || yy2arr3495 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[2] { - yym3503 := z.EncBinary() - _ = yym3503 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3495[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3504 := z.EncBinary() - _ = yym3504 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) - } - } - } - if yyr3495 || yy2arr3495 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[3] { yym3506 := z.EncBinary() _ = yym3506 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3503 || yy2arr3503 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3503[1] { + yym3508 := z.EncBinary() + _ = yym3508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3503[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3509 := z.EncBinary() + _ = yym3509 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3503 || yy2arr3503 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3503[2] { + yym3511 := z.EncBinary() + _ = yym3511 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3503[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3512 := z.EncBinary() + _ = yym3512 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) + } + } + } + if yyr3503 || yy2arr3503 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3503[3] { + yym3514 := z.EncBinary() + _ = yym3514 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } @@ -44624,23 +44744,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3495[3] { + if yyq3503[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3507 := z.EncBinary() - _ = yym3507 + yym3515 := z.EncBinary() + _ = yym3515 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } } - if yyr3495 || yy2arr3495 { + if yyr3503 || yy2arr3503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[4] { - yym3509 := z.EncBinary() - _ = yym3509 + if yyq3503[4] { + yym3517 := z.EncBinary() + _ = yym3517 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -44649,23 +44769,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3495[4] { + if yyq3503[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3510 := z.EncBinary() - _ = yym3510 + yym3518 := z.EncBinary() + _ = yym3518 if false { } else { r.EncodeBool(bool(x.Watch)) } } } - if yyr3495 || yy2arr3495 { + if yyr3503 || yy2arr3503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[5] { - yym3512 := z.EncBinary() - _ = yym3512 + if yyq3503[5] { + yym3520 := z.EncBinary() + _ = yym3520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -44674,54 +44794,54 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3495[5] { + if yyq3503[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3513 := z.EncBinary() - _ = yym3513 + yym3521 := z.EncBinary() + _ = yym3521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3495 || yy2arr3495 { + if yyr3503 || yy2arr3503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3495[6] { + if yyq3503[6] { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3515 := *x.TimeoutSeconds - yym3516 := z.EncBinary() - _ = yym3516 + yy3523 := *x.TimeoutSeconds + yym3524 := z.EncBinary() + _ = yym3524 if false { } else { - r.EncodeInt(int64(yy3515)) + r.EncodeInt(int64(yy3523)) } } } else { r.EncodeNil() } } else { - if yyq3495[6] { + if yyq3503[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3517 := *x.TimeoutSeconds - yym3518 := z.EncBinary() - _ = yym3518 + yy3525 := *x.TimeoutSeconds + yym3526 := z.EncBinary() + _ = yym3526 if false { } else { - r.EncodeInt(int64(yy3517)) + r.EncodeInt(int64(yy3525)) } } } } - if yyr3495 || yy2arr3495 { + if yyr3503 || yy2arr3503 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44734,25 +44854,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3519 := z.DecBinary() - _ = yym3519 + yym3527 := z.DecBinary() + _ = yym3527 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3520 := r.ContainerType() - if yyct3520 == codecSelferValueTypeMap1234 { - yyl3520 := r.ReadMapStart() - if yyl3520 == 0 { + yyct3528 := r.ContainerType() + if yyct3528 == codecSelferValueTypeMap1234 { + yyl3528 := r.ReadMapStart() + if yyl3528 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3520, d) + x.codecDecodeSelfFromMap(yyl3528, d) } - } else if yyct3520 == codecSelferValueTypeArray1234 { - yyl3520 := r.ReadArrayStart() - if yyl3520 == 0 { + } else if yyct3528 == codecSelferValueTypeArray1234 { + yyl3528 := r.ReadArrayStart() + if yyl3528 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3520, d) + x.codecDecodeSelfFromArray(yyl3528, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44764,12 +44884,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3521Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3521Slc - var yyhl3521 bool = l >= 0 - for yyj3521 := 0; ; yyj3521++ { - if yyhl3521 { - if yyj3521 >= l { + var yys3529Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3529Slc + var yyhl3529 bool = l >= 0 + for yyj3529 := 0; ; yyj3529++ { + if yyhl3529 { + if yyj3529 >= l { break } } else { @@ -44778,10 +44898,10 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3521Slc = r.DecodeBytes(yys3521Slc, true, true) - yys3521 := string(yys3521Slc) + yys3529Slc = r.DecodeBytes(yys3529Slc, true, true) + yys3529 := string(yys3529Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3521 { + switch yys3529 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44827,17 +44947,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3529 := z.DecBinary() - _ = yym3529 + yym3537 := z.DecBinary() + _ = yym3537 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3521) - } // end switch yys3521 - } // end for yyj3521 + z.DecStructFieldNotFound(-1, yys3529) + } // end switch yys3529 + } // end for yyj3529 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44845,16 +44965,16 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3530 int - var yyb3530 bool - var yyhl3530 bool = l >= 0 - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + var yyj3538 int + var yyb3538 bool + var yyhl3538 bool = l >= 0 + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44864,13 +44984,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44880,13 +45000,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44896,13 +45016,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LabelSelector = string(r.DecodeString()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44912,13 +45032,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FieldSelector = string(r.DecodeString()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44928,13 +45048,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44944,13 +45064,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44963,25 +45083,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3538 := z.DecBinary() - _ = yym3538 + yym3546 := z.DecBinary() + _ = yym3546 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { - yyj3530++ - if yyhl3530 { - yyb3530 = yyj3530 > l + yyj3538++ + if yyhl3538 { + yyb3538 = yyj3538 > l } else { - yyb3530 = r.CheckBreak() + yyb3538 = r.CheckBreak() } - if yyb3530 { + if yyb3538 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3530-1, "") + z.DecStructFieldNotFound(yyj3538-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44993,44 +45113,44 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3539 := z.EncBinary() - _ = yym3539 + yym3547 := z.EncBinary() + _ = yym3547 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 != "" - yyq3540[2] = x.Container != "" - yyq3540[3] = x.Follow != false - yyq3540[4] = x.Previous != false - yyq3540[5] = x.SinceSeconds != nil - yyq3540[6] = x.SinceTime != nil - yyq3540[7] = x.Timestamps != false - yyq3540[8] = x.TailLines != nil - yyq3540[9] = x.LimitBytes != nil - var yynn3540 int - if yyr3540 || yy2arr3540 { + yysep3548 := !z.EncBinary() + yy2arr3548 := z.EncBasicHandle().StructToArray + var yyq3548 [10]bool + _, _, _ = yysep3548, yyq3548, yy2arr3548 + const yyr3548 bool = false + yyq3548[0] = x.Kind != "" + yyq3548[1] = x.APIVersion != "" + yyq3548[2] = x.Container != "" + yyq3548[3] = x.Follow != false + yyq3548[4] = x.Previous != false + yyq3548[5] = x.SinceSeconds != nil + yyq3548[6] = x.SinceTime != nil + yyq3548[7] = x.Timestamps != false + yyq3548[8] = x.TailLines != nil + yyq3548[9] = x.LimitBytes != nil + var yynn3548 int + if yyr3548 || yy2arr3548 { r.EncodeArrayStart(10) } else { - yynn3540 = 0 - for _, b := range yyq3540 { + yynn3548 = 0 + for _, b := range yyq3548 { if b { - yynn3540++ + yynn3548++ } } - r.EncodeMapStart(yynn3540) - yynn3540 = 0 + r.EncodeMapStart(yynn3548) + yynn3548 = 0 } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[0] { - yym3542 := z.EncBinary() - _ = yym3542 + if yyq3548[0] { + yym3550 := z.EncBinary() + _ = yym3550 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45039,99 +45159,99 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3540[0] { + if yyq3548[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3543 := z.EncBinary() - _ = yym3543 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3540 || yy2arr3540 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[1] { - yym3545 := z.EncBinary() - _ = yym3545 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3540[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3546 := z.EncBinary() - _ = yym3546 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3540 || yy2arr3540 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[2] { - yym3548 := z.EncBinary() - _ = yym3548 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3540[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("container")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3549 := z.EncBinary() - _ = yym3549 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Container)) - } - } - } - if yyr3540 || yy2arr3540 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[3] { yym3551 := z.EncBinary() _ = yym3551 if false { } else { - r.EncodeBool(bool(x.Follow)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3540[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("follow")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3552 := z.EncBinary() - _ = yym3552 - if false { - } else { - r.EncodeBool(bool(x.Follow)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[4] { + if yyq3548[1] { + yym3553 := z.EncBinary() + _ = yym3553 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3548[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3554 := z.EncBinary() _ = yym3554 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3548 || yy2arr3548 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3548[2] { + yym3556 := z.EncBinary() + _ = yym3556 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3548[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("container")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3557 := z.EncBinary() + _ = yym3557 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Container)) + } + } + } + if yyr3548 || yy2arr3548 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3548[3] { + yym3559 := z.EncBinary() + _ = yym3559 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3548[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("follow")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3560 := z.EncBinary() + _ = yym3560 + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + } + if yyr3548 || yy2arr3548 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3548[4] { + yym3562 := z.EncBinary() + _ = yym3562 + if false { } else { r.EncodeBool(bool(x.Previous)) } @@ -45139,66 +45259,66 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3540[4] { + if yyq3548[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3555 := z.EncBinary() - _ = yym3555 + yym3563 := z.EncBinary() + _ = yym3563 if false { } else { r.EncodeBool(bool(x.Previous)) } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[5] { + if yyq3548[5] { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3557 := *x.SinceSeconds - yym3558 := z.EncBinary() - _ = yym3558 + yy3565 := *x.SinceSeconds + yym3566 := z.EncBinary() + _ = yym3566 if false { } else { - r.EncodeInt(int64(yy3557)) + r.EncodeInt(int64(yy3565)) } } } else { r.EncodeNil() } } else { - if yyq3540[5] { + if yyq3548[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3559 := *x.SinceSeconds - yym3560 := z.EncBinary() - _ = yym3560 + yy3567 := *x.SinceSeconds + yym3568 := z.EncBinary() + _ = yym3568 if false { } else { - r.EncodeInt(int64(yy3559)) + r.EncodeInt(int64(yy3567)) } } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[6] { + if yyq3548[6] { if x.SinceTime == nil { r.EncodeNil() } else { - yym3562 := z.EncBinary() - _ = yym3562 + yym3570 := z.EncBinary() + _ = yym3570 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3562 { + } else if yym3570 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3562 && z.IsJSONHandle() { + } else if !yym3570 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -45208,20 +45328,20 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3540[6] { + if yyq3548[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym3563 := z.EncBinary() - _ = yym3563 + yym3571 := z.EncBinary() + _ = yym3571 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3563 { + } else if yym3571 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3563 && z.IsJSONHandle() { + } else if !yym3571 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -45229,11 +45349,11 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[7] { - yym3565 := z.EncBinary() - _ = yym3565 + if yyq3548[7] { + yym3573 := z.EncBinary() + _ = yym3573 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -45242,89 +45362,89 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3540[7] { + if yyq3548[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3566 := z.EncBinary() - _ = yym3566 + yym3574 := z.EncBinary() + _ = yym3574 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[8] { + if yyq3548[8] { if x.TailLines == nil { r.EncodeNil() } else { - yy3568 := *x.TailLines - yym3569 := z.EncBinary() - _ = yym3569 + yy3576 := *x.TailLines + yym3577 := z.EncBinary() + _ = yym3577 if false { } else { - r.EncodeInt(int64(yy3568)) + r.EncodeInt(int64(yy3576)) } } } else { r.EncodeNil() } } else { - if yyq3540[8] { + if yyq3548[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { - yy3570 := *x.TailLines - yym3571 := z.EncBinary() - _ = yym3571 + yy3578 := *x.TailLines + yym3579 := z.EncBinary() + _ = yym3579 if false { } else { - r.EncodeInt(int64(yy3570)) + r.EncodeInt(int64(yy3578)) } } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[9] { + if yyq3548[9] { if x.LimitBytes == nil { r.EncodeNil() } else { - yy3573 := *x.LimitBytes - yym3574 := z.EncBinary() - _ = yym3574 + yy3581 := *x.LimitBytes + yym3582 := z.EncBinary() + _ = yym3582 if false { } else { - r.EncodeInt(int64(yy3573)) + r.EncodeInt(int64(yy3581)) } } } else { r.EncodeNil() } } else { - if yyq3540[9] { + if yyq3548[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy3575 := *x.LimitBytes - yym3576 := z.EncBinary() - _ = yym3576 + yy3583 := *x.LimitBytes + yym3584 := z.EncBinary() + _ = yym3584 if false { } else { - r.EncodeInt(int64(yy3575)) + r.EncodeInt(int64(yy3583)) } } } } - if yyr3540 || yy2arr3540 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45337,25 +45457,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3577 := z.DecBinary() - _ = yym3577 + yym3585 := z.DecBinary() + _ = yym3585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3578 := r.ContainerType() - if yyct3578 == codecSelferValueTypeMap1234 { - yyl3578 := r.ReadMapStart() - if yyl3578 == 0 { + yyct3586 := r.ContainerType() + if yyct3586 == codecSelferValueTypeMap1234 { + yyl3586 := r.ReadMapStart() + if yyl3586 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3578, d) + x.codecDecodeSelfFromMap(yyl3586, d) } - } else if yyct3578 == codecSelferValueTypeArray1234 { - yyl3578 := r.ReadArrayStart() - if yyl3578 == 0 { + } else if yyct3586 == codecSelferValueTypeArray1234 { + yyl3586 := r.ReadArrayStart() + if yyl3586 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3578, d) + x.codecDecodeSelfFromArray(yyl3586, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45367,12 +45487,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 yys3587Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3587Slc + var yyhl3587 bool = l >= 0 + for yyj3587 := 0; ; yyj3587++ { + if yyhl3587 { + if yyj3587 >= l { break } } else { @@ -45381,10 +45501,10 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3579Slc = r.DecodeBytes(yys3579Slc, true, true) - yys3579 := string(yys3579Slc) + yys3587Slc = r.DecodeBytes(yys3587Slc, true, true) + yys3587 := string(yys3587Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3579 { + switch yys3587 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45424,8 +45544,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3586 := z.DecBinary() - _ = yym3586 + yym3594 := z.DecBinary() + _ = yym3594 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -45440,13 +45560,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_v1.Time) } - yym3588 := z.DecBinary() - _ = yym3588 + yym3596 := z.DecBinary() + _ = yym3596 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3588 { + } else if yym3596 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3588 && z.IsJSONHandle() { + } else if !yym3596 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -45467,8 +45587,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3591 := z.DecBinary() - _ = yym3591 + yym3599 := z.DecBinary() + _ = yym3599 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -45483,17 +45603,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3593 := z.DecBinary() - _ = yym3593 + yym3601 := z.DecBinary() + _ = yym3601 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3579) - } // end switch yys3579 - } // end for yyj3579 + z.DecStructFieldNotFound(-1, yys3587) + } // end switch yys3587 + } // end for yyj3587 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45501,16 +45621,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 yyj3602 int + var yyb3602 bool + var yyhl3602 bool = l >= 0 + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45520,13 +45640,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45536,13 +45656,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45552,13 +45672,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45568,13 +45688,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45584,13 +45704,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45603,20 +45723,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3601 := z.DecBinary() - _ = yym3601 + yym3609 := z.DecBinary() + _ = yym3609 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45629,25 +45749,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_v1.Time) } - yym3603 := z.DecBinary() - _ = yym3603 + yym3611 := z.DecBinary() + _ = yym3611 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3603 { + } else if yym3611 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3603 && z.IsJSONHandle() { + } else if !yym3611 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45657,13 +45777,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45676,20 +45796,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3606 := z.DecBinary() - _ = yym3606 + yym3614 := z.DecBinary() + _ = yym3614 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45702,25 +45822,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3608 := z.DecBinary() - _ = yym3608 + yym3616 := z.DecBinary() + _ = yym3616 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3602++ + if yyhl3602 { + yyb3602 = yyj3602 > l } else { - yyb3594 = r.CheckBreak() + yyb3602 = r.CheckBreak() } - if yyb3594 { + if yyb3602 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3594-1, "") + z.DecStructFieldNotFound(yyj3602-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45732,41 +45852,41 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3609 := z.EncBinary() - _ = yym3609 + yym3617 := z.EncBinary() + _ = yym3617 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 { + yysep3618 := !z.EncBinary() + yy2arr3618 := z.EncBasicHandle().StructToArray + var yyq3618 [7]bool + _, _, _ = yysep3618, yyq3618, yy2arr3618 + const yyr3618 bool = false + yyq3618[0] = x.Kind != "" + yyq3618[1] = x.APIVersion != "" + yyq3618[2] = x.Stdin != false + yyq3618[3] = x.Stdout != false + yyq3618[4] = x.Stderr != false + yyq3618[5] = x.TTY != false + yyq3618[6] = x.Container != "" + var yynn3618 int + if yyr3618 || yy2arr3618 { r.EncodeArrayStart(7) } else { - yynn3610 = 0 - for _, b := range yyq3610 { + yynn3618 = 0 + for _, b := range yyq3618 { if b { - yynn3610++ + yynn3618++ } } - r.EncodeMapStart(yynn3610) - yynn3610 = 0 + r.EncodeMapStart(yynn3618) + yynn3618 = 0 } - if yyr3610 || yy2arr3610 { + if yyr3618 || yy2arr3618 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[0] { - yym3612 := z.EncBinary() - _ = yym3612 + if yyq3618[0] { + yym3620 := z.EncBinary() + _ = yym3620 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45775,124 +45895,124 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3610[0] { + if yyq3618[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3613 := z.EncBinary() - _ = yym3613 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3610 || yy2arr3610 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[1] { - yym3615 := z.EncBinary() - _ = yym3615 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3610[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3616 := z.EncBinary() - _ = yym3616 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3610 || yy2arr3610 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[2] { - yym3618 := z.EncBinary() - _ = yym3618 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3610[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3619 := z.EncBinary() - _ = yym3619 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } - } - if yyr3610 || yy2arr3610 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[3] { yym3621 := z.EncBinary() _ = yym3621 if false { } else { - r.EncodeBool(bool(x.Stdout)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3610[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3622 := z.EncBinary() - _ = yym3622 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3610 || yy2arr3610 { + if yyr3618 || yy2arr3618 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[4] { + if yyq3618[1] { + yym3623 := z.EncBinary() + _ = yym3623 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3618[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3624 := z.EncBinary() _ = yym3624 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3618 || yy2arr3618 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3618[2] { + yym3626 := z.EncBinary() + _ = yym3626 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { - if yyq3610[4] { + if yyq3618[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stderr")) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3625 := z.EncBinary() - _ = yym3625 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } - } - if yyr3610 || yy2arr3610 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[5] { yym3627 := z.EncBinary() _ = yym3627 if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr3618 || yy2arr3618 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3618[3] { + yym3629 := z.EncBinary() + _ = yym3629 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3618[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3630 := z.EncBinary() + _ = yym3630 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + } + if yyr3618 || yy2arr3618 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3618[4] { + yym3632 := z.EncBinary() + _ = yym3632 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3618[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3633 := z.EncBinary() + _ = yym3633 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + } + if yyr3618 || yy2arr3618 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3618[5] { + yym3635 := z.EncBinary() + _ = yym3635 + if false { } else { r.EncodeBool(bool(x.TTY)) } @@ -45900,23 +46020,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3610[5] { + if yyq3618[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3628 := z.EncBinary() - _ = yym3628 + yym3636 := z.EncBinary() + _ = yym3636 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3610 || yy2arr3610 { + if yyr3618 || yy2arr3618 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[6] { - yym3630 := z.EncBinary() - _ = yym3630 + if yyq3618[6] { + yym3638 := z.EncBinary() + _ = yym3638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -45925,19 +46045,19 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3610[6] { + if yyq3618[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3631 := z.EncBinary() - _ = yym3631 + yym3639 := z.EncBinary() + _ = yym3639 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3610 || yy2arr3610 { + if yyr3618 || yy2arr3618 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45950,25 +46070,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3632 := z.DecBinary() - _ = yym3632 + yym3640 := z.DecBinary() + _ = yym3640 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3633 := r.ContainerType() - if yyct3633 == codecSelferValueTypeMap1234 { - yyl3633 := r.ReadMapStart() - if yyl3633 == 0 { + yyct3641 := r.ContainerType() + if yyct3641 == codecSelferValueTypeMap1234 { + yyl3641 := r.ReadMapStart() + if yyl3641 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3633, d) + x.codecDecodeSelfFromMap(yyl3641, d) } - } else if yyct3633 == codecSelferValueTypeArray1234 { - yyl3633 := r.ReadArrayStart() - if yyl3633 == 0 { + } else if yyct3641 == codecSelferValueTypeArray1234 { + yyl3641 := r.ReadArrayStart() + if yyl3641 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3633, d) + x.codecDecodeSelfFromArray(yyl3641, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45980,12 +46100,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 yys3642Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3642Slc + var yyhl3642 bool = l >= 0 + for yyj3642 := 0; ; yyj3642++ { + if yyhl3642 { + if yyj3642 >= l { break } } else { @@ -45994,10 +46114,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3634Slc = r.DecodeBytes(yys3634Slc, true, true) - yys3634 := string(yys3634Slc) + yys3642Slc = r.DecodeBytes(yys3642Slc, true, true) + yys3642 := string(yys3642Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3634 { + switch yys3642 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46041,9 +46161,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, yys3642) + } // end switch yys3642 + } // end for yyj3642 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46051,16 +46171,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 yyj3650 int + var yyb3650 bool + var yyhl3650 bool = l >= 0 + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46070,13 +46190,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46086,13 +46206,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46102,13 +46222,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46118,13 +46238,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46134,13 +46254,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46150,13 +46270,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46167,17 +46287,17 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Container = string(r.DecodeString()) } for { - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3650++ + if yyhl3650 { + yyb3650 = yyj3650 > l } else { - yyb3642 = r.CheckBreak() + yyb3650 = r.CheckBreak() } - if yyb3642 { + if yyb3650 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3642-1, "") + z.DecStructFieldNotFound(yyj3650-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46189,41 +46309,41 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3650 := z.EncBinary() - _ = yym3650 + yym3658 := z.EncBinary() + _ = yym3658 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 != "" - yyq3651[2] = x.Stdin != false - yyq3651[3] = x.Stdout != false - yyq3651[4] = x.Stderr != false - yyq3651[5] = x.TTY != false - yyq3651[6] = x.Container != "" - var yynn3651 int - if yyr3651 || yy2arr3651 { + yysep3659 := !z.EncBinary() + yy2arr3659 := z.EncBasicHandle().StructToArray + var yyq3659 [8]bool + _, _, _ = yysep3659, yyq3659, yy2arr3659 + const yyr3659 bool = false + yyq3659[0] = x.Kind != "" + yyq3659[1] = x.APIVersion != "" + yyq3659[2] = x.Stdin != false + yyq3659[3] = x.Stdout != false + yyq3659[4] = x.Stderr != false + yyq3659[5] = x.TTY != false + yyq3659[6] = x.Container != "" + var yynn3659 int + if yyr3659 || yy2arr3659 { r.EncodeArrayStart(8) } else { - yynn3651 = 1 - for _, b := range yyq3651 { + yynn3659 = 1 + for _, b := range yyq3659 { if b { - yynn3651++ + yynn3659++ } } - r.EncodeMapStart(yynn3651) - yynn3651 = 0 + r.EncodeMapStart(yynn3659) + yynn3659 = 0 } - if yyr3651 || yy2arr3651 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[0] { - yym3653 := z.EncBinary() - _ = yym3653 + if yyq3659[0] { + yym3661 := z.EncBinary() + _ = yym3661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46232,124 +46352,124 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3651[0] { + if yyq3659[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3654 := z.EncBinary() - _ = yym3654 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3651 || yy2arr3651 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[1] { - yym3656 := z.EncBinary() - _ = yym3656 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3651[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3657 := z.EncBinary() - _ = yym3657 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3651 || yy2arr3651 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[2] { - yym3659 := z.EncBinary() - _ = yym3659 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3651[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3660 := z.EncBinary() - _ = yym3660 - if false { - } else { - r.EncodeBool(bool(x.Stdin)) - } - } - } - if yyr3651 || yy2arr3651 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[3] { yym3662 := z.EncBinary() _ = yym3662 if false { } else { - r.EncodeBool(bool(x.Stdout)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq3651[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stdout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3663 := z.EncBinary() - _ = yym3663 - if false { - } else { - r.EncodeBool(bool(x.Stdout)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3651 || yy2arr3651 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[4] { + if yyq3659[1] { + yym3664 := z.EncBinary() + _ = yym3664 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3659[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3665 := z.EncBinary() _ = yym3665 if false { } else { - r.EncodeBool(bool(x.Stderr)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3659 || yy2arr3659 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3659[2] { + yym3667 := z.EncBinary() + _ = yym3667 + if false { + } else { + r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { - if yyq3651[4] { + if yyq3659[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("stderr")) + r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3666 := z.EncBinary() - _ = yym3666 - if false { - } else { - r.EncodeBool(bool(x.Stderr)) - } - } - } - if yyr3651 || yy2arr3651 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[5] { yym3668 := z.EncBinary() _ = yym3668 if false { + } else { + r.EncodeBool(bool(x.Stdin)) + } + } + } + if yyr3659 || yy2arr3659 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3659[3] { + yym3670 := z.EncBinary() + _ = yym3670 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3659[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stdout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3671 := z.EncBinary() + _ = yym3671 + if false { + } else { + r.EncodeBool(bool(x.Stdout)) + } + } + } + if yyr3659 || yy2arr3659 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3659[4] { + yym3673 := z.EncBinary() + _ = yym3673 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq3659[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("stderr")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3674 := z.EncBinary() + _ = yym3674 + if false { + } else { + r.EncodeBool(bool(x.Stderr)) + } + } + } + if yyr3659 || yy2arr3659 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3659[5] { + yym3676 := z.EncBinary() + _ = yym3676 + if false { } else { r.EncodeBool(bool(x.TTY)) } @@ -46357,23 +46477,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3651[5] { + if yyq3659[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3669 := z.EncBinary() - _ = yym3669 + yym3677 := z.EncBinary() + _ = yym3677 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3651 || yy2arr3651 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[6] { - yym3671 := z.EncBinary() - _ = yym3671 + if yyq3659[6] { + yym3679 := z.EncBinary() + _ = yym3679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -46382,25 +46502,25 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3651[6] { + if yyq3659[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3672 := z.EncBinary() - _ = yym3672 + yym3680 := z.EncBinary() + _ = yym3680 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3651 || yy2arr3651 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym3674 := z.EncBinary() - _ = yym3674 + yym3682 := z.EncBinary() + _ = yym3682 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -46413,15 +46533,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym3675 := z.EncBinary() - _ = yym3675 + yym3683 := z.EncBinary() + _ = yym3683 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr3651 || yy2arr3651 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46434,25 +46554,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3676 := z.DecBinary() - _ = yym3676 + yym3684 := z.DecBinary() + _ = yym3684 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3677 := r.ContainerType() - if yyct3677 == codecSelferValueTypeMap1234 { - yyl3677 := r.ReadMapStart() - if yyl3677 == 0 { + yyct3685 := r.ContainerType() + if yyct3685 == codecSelferValueTypeMap1234 { + yyl3685 := r.ReadMapStart() + if yyl3685 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3677, d) + x.codecDecodeSelfFromMap(yyl3685, d) } - } else if yyct3677 == codecSelferValueTypeArray1234 { - yyl3677 := r.ReadArrayStart() - if yyl3677 == 0 { + } else if yyct3685 == codecSelferValueTypeArray1234 { + yyl3685 := r.ReadArrayStart() + if yyl3685 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3677, d) + x.codecDecodeSelfFromArray(yyl3685, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46464,12 +46584,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 yys3686Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3686Slc + var yyhl3686 bool = l >= 0 + for yyj3686 := 0; ; yyj3686++ { + if yyhl3686 { + if yyj3686 >= l { break } } else { @@ -46478,10 +46598,10 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3678Slc = r.DecodeBytes(yys3678Slc, true, true) - yys3678 := string(yys3678Slc) + yys3686Slc = r.DecodeBytes(yys3686Slc, true, true) + yys3686 := string(yys3686Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3678 { + switch yys3686 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46528,18 +46648,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3686 := &x.Command - yym3687 := z.DecBinary() - _ = yym3687 + yyv3694 := &x.Command + yym3695 := z.DecBinary() + _ = yym3695 if false { } else { - z.F.DecSliceStringX(yyv3686, false, d) + z.F.DecSliceStringX(yyv3694, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3678) - } // end switch yys3678 - } // end for yyj3678 + z.DecStructFieldNotFound(-1, yys3686) + } // end switch yys3686 + } // end for yyj3686 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46547,16 +46667,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 yyj3696 int + var yyb3696 bool + var yyhl3696 bool = l >= 0 + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46566,13 +46686,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46582,13 +46702,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46598,13 +46718,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46614,13 +46734,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdout = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46630,13 +46750,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stderr = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46646,13 +46766,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TTY = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46662,13 +46782,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46676,26 +46796,26 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3696 := &x.Command - yym3697 := z.DecBinary() - _ = yym3697 + yyv3704 := &x.Command + yym3705 := z.DecBinary() + _ = yym3705 if false { } else { - z.F.DecSliceStringX(yyv3696, false, d) + z.F.DecSliceStringX(yyv3704, false, d) } } for { - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3688 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3688 { + if yyb3696 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3688-1, "") + z.DecStructFieldNotFound(yyj3696-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46707,37 +46827,37 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3698 := z.EncBinary() - _ = yym3698 + yym3706 := z.EncBinary() + _ = yym3706 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 != "" - yyq3699[2] = x.Path != "" - var yynn3699 int - if yyr3699 || yy2arr3699 { + yysep3707 := !z.EncBinary() + yy2arr3707 := z.EncBasicHandle().StructToArray + var yyq3707 [3]bool + _, _, _ = yysep3707, yyq3707, yy2arr3707 + const yyr3707 bool = false + yyq3707[0] = x.Kind != "" + yyq3707[1] = x.APIVersion != "" + yyq3707[2] = x.Path != "" + var yynn3707 int + if yyr3707 || yy2arr3707 { r.EncodeArrayStart(3) } else { - yynn3699 = 0 - for _, b := range yyq3699 { + yynn3707 = 0 + for _, b := range yyq3707 { if b { - yynn3699++ + yynn3707++ } } - r.EncodeMapStart(yynn3699) - yynn3699 = 0 + r.EncodeMapStart(yynn3707) + yynn3707 = 0 } - if yyr3699 || yy2arr3699 { + if yyr3707 || yy2arr3707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3699[0] { - yym3701 := z.EncBinary() - _ = yym3701 + if yyq3707[0] { + yym3709 := z.EncBinary() + _ = yym3709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46746,23 +46866,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3699[0] { + if yyq3707[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3702 := z.EncBinary() - _ = yym3702 + yym3710 := z.EncBinary() + _ = yym3710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3699 || yy2arr3699 { + if yyr3707 || yy2arr3707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3699[1] { - yym3704 := z.EncBinary() - _ = yym3704 + if yyq3707[1] { + yym3712 := z.EncBinary() + _ = yym3712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46771,23 +46891,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3699[1] { + if yyq3707[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3705 := z.EncBinary() - _ = yym3705 + yym3713 := z.EncBinary() + _ = yym3713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3699 || yy2arr3699 { + if yyr3707 || yy2arr3707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3699[2] { - yym3707 := z.EncBinary() - _ = yym3707 + if yyq3707[2] { + yym3715 := z.EncBinary() + _ = yym3715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -46796,19 +46916,19 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3699[2] { + if yyq3707[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3708 := z.EncBinary() - _ = yym3708 + yym3716 := z.EncBinary() + _ = yym3716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3699 || yy2arr3699 { + if yyr3707 || yy2arr3707 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46821,25 +46941,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3709 := z.DecBinary() - _ = yym3709 + yym3717 := z.DecBinary() + _ = yym3717 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3710 := r.ContainerType() - if yyct3710 == codecSelferValueTypeMap1234 { - yyl3710 := r.ReadMapStart() - if yyl3710 == 0 { + yyct3718 := r.ContainerType() + if yyct3718 == codecSelferValueTypeMap1234 { + yyl3718 := r.ReadMapStart() + if yyl3718 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3710, d) + x.codecDecodeSelfFromMap(yyl3718, d) } - } else if yyct3710 == codecSelferValueTypeArray1234 { - yyl3710 := r.ReadArrayStart() - if yyl3710 == 0 { + } else if yyct3718 == codecSelferValueTypeArray1234 { + yyl3718 := r.ReadArrayStart() + if yyl3718 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3710, d) + x.codecDecodeSelfFromArray(yyl3718, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46851,12 +46971,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 yys3719Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3719Slc + var yyhl3719 bool = l >= 0 + for yyj3719 := 0; ; yyj3719++ { + if yyhl3719 { + if yyj3719 >= l { break } } else { @@ -46865,10 +46985,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3711Slc = r.DecodeBytes(yys3711Slc, true, true) - yys3711 := string(yys3711Slc) + yys3719Slc = r.DecodeBytes(yys3719Slc, true, true) + yys3719 := string(yys3719Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3711 { + switch yys3719 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46888,9 +47008,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, yys3719) + } // end switch yys3719 + } // end for yyj3719 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46898,16 +47018,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 yyj3723 int + var yyb3723 bool + var yyhl3723 bool = l >= 0 + yyj3723++ + if yyhl3723 { + yyb3723 = yyj3723 > l } else { - yyb3715 = r.CheckBreak() + yyb3723 = r.CheckBreak() } - if yyb3715 { + if yyb3723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46917,13 +47037,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3723++ + if yyhl3723 { + yyb3723 = yyj3723 > l } else { - yyb3715 = r.CheckBreak() + yyb3723 = r.CheckBreak() } - if yyb3715 { + if yyb3723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46933,13 +47053,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3723++ + if yyhl3723 { + yyb3723 = yyj3723 > l } else { - yyb3715 = r.CheckBreak() + yyb3723 = r.CheckBreak() } - if yyb3715 { + if yyb3723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46950,17 +47070,17 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3723++ + if yyhl3723 { + yyb3723 = yyj3723 > l } else { - yyb3715 = r.CheckBreak() + yyb3723 = r.CheckBreak() } - if yyb3715 { + if yyb3723 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3715-1, "") + z.DecStructFieldNotFound(yyj3723-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46972,37 +47092,37 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3719 := z.EncBinary() - _ = yym3719 + yym3727 := z.EncBinary() + _ = yym3727 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 != "" - yyq3720[2] = x.Path != "" - var yynn3720 int - if yyr3720 || yy2arr3720 { + yysep3728 := !z.EncBinary() + yy2arr3728 := z.EncBasicHandle().StructToArray + var yyq3728 [3]bool + _, _, _ = yysep3728, yyq3728, yy2arr3728 + const yyr3728 bool = false + yyq3728[0] = x.Kind != "" + yyq3728[1] = x.APIVersion != "" + yyq3728[2] = x.Path != "" + var yynn3728 int + if yyr3728 || yy2arr3728 { r.EncodeArrayStart(3) } else { - yynn3720 = 0 - for _, b := range yyq3720 { + yynn3728 = 0 + for _, b := range yyq3728 { if b { - yynn3720++ + yynn3728++ } } - r.EncodeMapStart(yynn3720) - yynn3720 = 0 + r.EncodeMapStart(yynn3728) + yynn3728 = 0 } - if yyr3720 || yy2arr3720 { + if yyr3728 || yy2arr3728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3720[0] { - yym3722 := z.EncBinary() - _ = yym3722 + if yyq3728[0] { + yym3730 := z.EncBinary() + _ = yym3730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47011,23 +47131,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3720[0] { + if yyq3728[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3723 := z.EncBinary() - _ = yym3723 + yym3731 := z.EncBinary() + _ = yym3731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3720 || yy2arr3720 { + if yyr3728 || yy2arr3728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3720[1] { - yym3725 := z.EncBinary() - _ = yym3725 + if yyq3728[1] { + yym3733 := z.EncBinary() + _ = yym3733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47036,23 +47156,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3720[1] { + if yyq3728[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3726 := z.EncBinary() - _ = yym3726 + yym3734 := z.EncBinary() + _ = yym3734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3720 || yy2arr3720 { + if yyr3728 || yy2arr3728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3720[2] { - yym3728 := z.EncBinary() - _ = yym3728 + if yyq3728[2] { + yym3736 := z.EncBinary() + _ = yym3736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -47061,19 +47181,19 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3720[2] { + if yyq3728[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3729 := z.EncBinary() - _ = yym3729 + yym3737 := z.EncBinary() + _ = yym3737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3720 || yy2arr3720 { + if yyr3728 || yy2arr3728 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47086,25 +47206,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3730 := z.DecBinary() - _ = yym3730 + yym3738 := z.DecBinary() + _ = yym3738 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3731 := r.ContainerType() - if yyct3731 == codecSelferValueTypeMap1234 { - yyl3731 := r.ReadMapStart() - if yyl3731 == 0 { + yyct3739 := r.ContainerType() + if yyct3739 == codecSelferValueTypeMap1234 { + yyl3739 := r.ReadMapStart() + if yyl3739 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3731, d) + x.codecDecodeSelfFromMap(yyl3739, d) } - } else if yyct3731 == codecSelferValueTypeArray1234 { - yyl3731 := r.ReadArrayStart() - if yyl3731 == 0 { + } else if yyct3739 == codecSelferValueTypeArray1234 { + yyl3739 := r.ReadArrayStart() + if yyl3739 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3731, d) + x.codecDecodeSelfFromArray(yyl3739, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47116,12 +47236,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 yys3740Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3740Slc + var yyhl3740 bool = l >= 0 + for yyj3740 := 0; ; yyj3740++ { + if yyhl3740 { + if yyj3740 >= l { break } } else { @@ -47130,10 +47250,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3732Slc = r.DecodeBytes(yys3732Slc, true, true) - yys3732 := string(yys3732Slc) + yys3740Slc = r.DecodeBytes(yys3740Slc, true, true) + yys3740 := string(yys3740Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3732 { + switch yys3740 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47153,9 +47273,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, yys3740) + } // end switch yys3740 + } // end for yyj3740 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47163,16 +47283,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 yyj3744 int + var yyb3744 bool + var yyhl3744 bool = l >= 0 + yyj3744++ + if yyhl3744 { + yyb3744 = yyj3744 > l } else { - yyb3736 = r.CheckBreak() + yyb3744 = r.CheckBreak() } - if yyb3736 { + if yyb3744 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47182,13 +47302,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3744++ + if yyhl3744 { + yyb3744 = yyj3744 > l } else { - yyb3736 = r.CheckBreak() + yyb3744 = r.CheckBreak() } - if yyb3736 { + if yyb3744 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47198,13 +47318,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3744++ + if yyhl3744 { + yyb3744 = yyj3744 > l } else { - yyb3736 = r.CheckBreak() + yyb3744 = r.CheckBreak() } - if yyb3736 { + if yyb3744 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47215,17 +47335,17 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3744++ + if yyhl3744 { + yyb3744 = yyj3744 > l } else { - yyb3736 = r.CheckBreak() + yyb3744 = r.CheckBreak() } - if yyb3736 { + if yyb3744 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3736-1, "") + z.DecStructFieldNotFound(yyj3744-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47237,37 +47357,37 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3740 := z.EncBinary() - _ = yym3740 + yym3748 := z.EncBinary() + _ = yym3748 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 != "" - yyq3741[2] = x.Path != "" - var yynn3741 int - if yyr3741 || yy2arr3741 { + yysep3749 := !z.EncBinary() + yy2arr3749 := z.EncBasicHandle().StructToArray + var yyq3749 [3]bool + _, _, _ = yysep3749, yyq3749, yy2arr3749 + const yyr3749 bool = false + yyq3749[0] = x.Kind != "" + yyq3749[1] = x.APIVersion != "" + yyq3749[2] = x.Path != "" + var yynn3749 int + if yyr3749 || yy2arr3749 { r.EncodeArrayStart(3) } else { - yynn3741 = 0 - for _, b := range yyq3741 { + yynn3749 = 0 + for _, b := range yyq3749 { if b { - yynn3741++ + yynn3749++ } } - r.EncodeMapStart(yynn3741) - yynn3741 = 0 + r.EncodeMapStart(yynn3749) + yynn3749 = 0 } - if yyr3741 || yy2arr3741 { + if yyr3749 || yy2arr3749 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3741[0] { - yym3743 := z.EncBinary() - _ = yym3743 + if yyq3749[0] { + yym3751 := z.EncBinary() + _ = yym3751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47276,23 +47396,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3741[0] { + if yyq3749[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3744 := z.EncBinary() - _ = yym3744 + yym3752 := z.EncBinary() + _ = yym3752 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3741 || yy2arr3741 { + if yyr3749 || yy2arr3749 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3741[1] { - yym3746 := z.EncBinary() - _ = yym3746 + if yyq3749[1] { + yym3754 := z.EncBinary() + _ = yym3754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47301,23 +47421,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3741[1] { + if yyq3749[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3747 := z.EncBinary() - _ = yym3747 + yym3755 := z.EncBinary() + _ = yym3755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3741 || yy2arr3741 { + if yyr3749 || yy2arr3749 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3741[2] { - yym3749 := z.EncBinary() - _ = yym3749 + if yyq3749[2] { + yym3757 := z.EncBinary() + _ = yym3757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -47326,19 +47446,19 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3741[2] { + if yyq3749[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3750 := z.EncBinary() - _ = yym3750 + yym3758 := z.EncBinary() + _ = yym3758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3741 || yy2arr3741 { + if yyr3749 || yy2arr3749 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47351,25 +47471,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3751 := z.DecBinary() - _ = yym3751 + yym3759 := z.DecBinary() + _ = yym3759 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3752 := r.ContainerType() - if yyct3752 == codecSelferValueTypeMap1234 { - yyl3752 := r.ReadMapStart() - if yyl3752 == 0 { + yyct3760 := r.ContainerType() + if yyct3760 == codecSelferValueTypeMap1234 { + yyl3760 := r.ReadMapStart() + if yyl3760 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3752, d) + x.codecDecodeSelfFromMap(yyl3760, d) } - } else if yyct3752 == codecSelferValueTypeArray1234 { - yyl3752 := r.ReadArrayStart() - if yyl3752 == 0 { + } else if yyct3760 == codecSelferValueTypeArray1234 { + yyl3760 := r.ReadArrayStart() + if yyl3760 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3752, d) + x.codecDecodeSelfFromArray(yyl3760, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47381,12 +47501,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 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 { @@ -47395,10 +47515,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3753Slc = r.DecodeBytes(yys3753Slc, true, true) - yys3753 := string(yys3753Slc) + yys3761Slc = r.DecodeBytes(yys3761Slc, true, true) + yys3761 := string(yys3761Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3753 { + switch yys3761 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47418,9 +47538,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, yys3761) + } // end switch yys3761 + } // end for yyj3761 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47428,16 +47548,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 yyj3765 int + var yyb3765 bool + var yyhl3765 bool = l >= 0 + yyj3765++ + if yyhl3765 { + yyb3765 = yyj3765 > l } else { - yyb3757 = r.CheckBreak() + yyb3765 = r.CheckBreak() } - if yyb3757 { + if yyb3765 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47447,13 +47567,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3765++ + if yyhl3765 { + yyb3765 = yyj3765 > l } else { - yyb3757 = r.CheckBreak() + yyb3765 = r.CheckBreak() } - if yyb3757 { + if yyb3765 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47463,13 +47583,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3765++ + if yyhl3765 { + yyb3765 = yyj3765 > l } else { - yyb3757 = r.CheckBreak() + yyb3765 = r.CheckBreak() } - if yyb3757 { + if yyb3765 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47480,17 +47600,17 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Path = string(r.DecodeString()) } for { - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3765++ + if yyhl3765 { + yyb3765 = yyj3765 > l } else { - yyb3757 = r.CheckBreak() + yyb3765 = r.CheckBreak() } - if yyb3757 { + if yyb3765 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3757-1, "") + z.DecStructFieldNotFound(yyj3765-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47502,41 +47622,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3761 := z.EncBinary() - _ = yym3761 + yym3769 := z.EncBinary() + _ = yym3769 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3762 := !z.EncBinary() - yy2arr3762 := z.EncBasicHandle().StructToArray - var yyq3762 [7]bool - _, _, _ = yysep3762, yyq3762, yy2arr3762 - const yyr3762 bool = false - yyq3762[0] = x.Kind != "" - yyq3762[1] = x.Namespace != "" - yyq3762[2] = x.Name != "" - yyq3762[3] = x.UID != "" - yyq3762[4] = x.APIVersion != "" - yyq3762[5] = x.ResourceVersion != "" - yyq3762[6] = x.FieldPath != "" - var yynn3762 int - if yyr3762 || yy2arr3762 { + yysep3770 := !z.EncBinary() + yy2arr3770 := z.EncBasicHandle().StructToArray + var yyq3770 [7]bool + _, _, _ = yysep3770, yyq3770, yy2arr3770 + const yyr3770 bool = false + yyq3770[0] = x.Kind != "" + yyq3770[1] = x.Namespace != "" + yyq3770[2] = x.Name != "" + yyq3770[3] = x.UID != "" + yyq3770[4] = x.APIVersion != "" + yyq3770[5] = x.ResourceVersion != "" + yyq3770[6] = x.FieldPath != "" + var yynn3770 int + if yyr3770 || yy2arr3770 { r.EncodeArrayStart(7) } else { - yynn3762 = 0 - for _, b := range yyq3762 { + yynn3770 = 0 + for _, b := range yyq3770 { if b { - yynn3762++ + yynn3770++ } } - r.EncodeMapStart(yynn3762) - yynn3762 = 0 + r.EncodeMapStart(yynn3770) + yynn3770 = 0 } - if yyr3762 || yy2arr3762 { + if yyr3770 || yy2arr3770 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[0] { - yym3764 := z.EncBinary() - _ = yym3764 + if yyq3770[0] { + yym3772 := z.EncBinary() + _ = yym3772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47545,23 +47665,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3762[0] { + if yyq3770[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3765 := z.EncBinary() - _ = yym3765 + yym3773 := z.EncBinary() + _ = yym3773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3762 || yy2arr3762 { + if yyr3770 || yy2arr3770 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[1] { - yym3767 := z.EncBinary() - _ = yym3767 + if yyq3770[1] { + yym3775 := z.EncBinary() + _ = yym3775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -47570,126 +47690,126 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3762[1] { + if yyq3770[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3768 := z.EncBinary() - _ = yym3768 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr3762 || yy2arr3762 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[2] { - yym3770 := z.EncBinary() - _ = yym3770 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3762[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3771 := z.EncBinary() - _ = yym3771 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr3762 || yy2arr3762 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[3] { - yym3773 := z.EncBinary() - _ = yym3773 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3762[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3774 := z.EncBinary() - _ = yym3774 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr3762 || yy2arr3762 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[4] { yym3776 := z.EncBinary() _ = yym3776 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr3770 || yy2arr3770 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3770[2] { + yym3778 := z.EncBinary() + _ = yym3778 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3762[4] { + if yyq3770[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3777 := z.EncBinary() - _ = yym3777 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3762 || yy2arr3762 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[5] { yym3779 := z.EncBinary() _ = yym3779 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr3770 || yy2arr3770 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3770[3] { + yym3781 := z.EncBinary() + _ = yym3781 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3762[5] { + if yyq3770[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3780 := z.EncBinary() - _ = yym3780 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr3762 || yy2arr3762 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[6] { yym3782 := z.EncBinary() _ = yym3782 if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr3770 || yy2arr3770 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3770[4] { + yym3784 := z.EncBinary() + _ = yym3784 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3770[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3785 := z.EncBinary() + _ = yym3785 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3770 || yy2arr3770 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3770[5] { + yym3787 := z.EncBinary() + _ = yym3787 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3770[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3788 := z.EncBinary() + _ = yym3788 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr3770 || yy2arr3770 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3770[6] { + yym3790 := z.EncBinary() + _ = yym3790 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } @@ -47697,19 +47817,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3762[6] { + if yyq3770[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3783 := z.EncBinary() - _ = yym3783 + yym3791 := z.EncBinary() + _ = yym3791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr3762 || yy2arr3762 { + if yyr3770 || yy2arr3770 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47722,25 +47842,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3784 := z.DecBinary() - _ = yym3784 + yym3792 := z.DecBinary() + _ = yym3792 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3785 := r.ContainerType() - if yyct3785 == codecSelferValueTypeMap1234 { - yyl3785 := r.ReadMapStart() - if yyl3785 == 0 { + yyct3793 := r.ContainerType() + if yyct3793 == codecSelferValueTypeMap1234 { + yyl3793 := r.ReadMapStart() + if yyl3793 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3785, d) + x.codecDecodeSelfFromMap(yyl3793, d) } - } else if yyct3785 == codecSelferValueTypeArray1234 { - yyl3785 := r.ReadArrayStart() - if yyl3785 == 0 { + } else if yyct3793 == codecSelferValueTypeArray1234 { + yyl3793 := r.ReadArrayStart() + if yyl3793 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3785, d) + x.codecDecodeSelfFromArray(yyl3793, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47752,12 +47872,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3786Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3786Slc - var yyhl3786 bool = l >= 0 - for yyj3786 := 0; ; yyj3786++ { - if yyhl3786 { - if yyj3786 >= 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 { @@ -47766,10 +47886,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3786Slc = r.DecodeBytes(yys3786Slc, true, true) - yys3786 := string(yys3786Slc) + yys3794Slc = r.DecodeBytes(yys3794Slc, true, true) + yys3794 := string(yys3794Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3786 { + switch yys3794 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47813,9 +47933,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3786) - } // end switch yys3786 - } // end for yyj3786 + z.DecStructFieldNotFound(-1, yys3794) + } // end switch yys3794 + } // end for yyj3794 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47823,16 +47943,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3794 int - var yyb3794 bool - var yyhl3794 bool = l >= 0 - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + var yyj3802 int + var yyb3802 bool + var yyhl3802 bool = l >= 0 + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47842,13 +47962,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47858,13 +47978,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47874,13 +47994,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47890,13 +48010,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47906,13 +48026,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47922,13 +48042,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47939,17 +48059,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj3794++ - if yyhl3794 { - yyb3794 = yyj3794 > l + yyj3802++ + if yyhl3802 { + yyb3802 = yyj3802 > l } else { - yyb3794 = r.CheckBreak() + yyb3802 = r.CheckBreak() } - if yyb3794 { + if yyb3802 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3794-1, "") + z.DecStructFieldNotFound(yyj3802-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47961,35 +48081,35 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3802 := z.EncBinary() - _ = yym3802 + yym3810 := z.EncBinary() + _ = yym3810 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3803 := !z.EncBinary() - yy2arr3803 := z.EncBasicHandle().StructToArray - var yyq3803 [1]bool - _, _, _ = yysep3803, yyq3803, yy2arr3803 - const yyr3803 bool = false - yyq3803[0] = x.Name != "" - var yynn3803 int - if yyr3803 || yy2arr3803 { + yysep3811 := !z.EncBinary() + yy2arr3811 := z.EncBasicHandle().StructToArray + var yyq3811 [1]bool + _, _, _ = yysep3811, yyq3811, yy2arr3811 + const yyr3811 bool = false + yyq3811[0] = x.Name != "" + var yynn3811 int + if yyr3811 || yy2arr3811 { r.EncodeArrayStart(1) } else { - yynn3803 = 0 - for _, b := range yyq3803 { + yynn3811 = 0 + for _, b := range yyq3811 { if b { - yynn3803++ + yynn3811++ } } - r.EncodeMapStart(yynn3803) - yynn3803 = 0 + r.EncodeMapStart(yynn3811) + yynn3811 = 0 } - if yyr3803 || yy2arr3803 { + if yyr3811 || yy2arr3811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3803[0] { - yym3805 := z.EncBinary() - _ = yym3805 + if yyq3811[0] { + yym3813 := z.EncBinary() + _ = yym3813 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -47998,19 +48118,19 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3803[0] { + if yyq3811[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3806 := z.EncBinary() - _ = yym3806 + yym3814 := z.EncBinary() + _ = yym3814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3803 || yy2arr3803 { + if yyr3811 || yy2arr3811 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48023,25 +48143,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3807 := z.DecBinary() - _ = yym3807 + yym3815 := z.DecBinary() + _ = yym3815 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3808 := r.ContainerType() - if yyct3808 == codecSelferValueTypeMap1234 { - yyl3808 := r.ReadMapStart() - if yyl3808 == 0 { + yyct3816 := r.ContainerType() + if yyct3816 == codecSelferValueTypeMap1234 { + yyl3816 := r.ReadMapStart() + if yyl3816 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3808, d) + x.codecDecodeSelfFromMap(yyl3816, d) } - } else if yyct3808 == codecSelferValueTypeArray1234 { - yyl3808 := r.ReadArrayStart() - if yyl3808 == 0 { + } else if yyct3816 == codecSelferValueTypeArray1234 { + yyl3816 := r.ReadArrayStart() + if yyl3816 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3808, d) + x.codecDecodeSelfFromArray(yyl3816, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48053,12 +48173,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3809Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3809Slc - var yyhl3809 bool = l >= 0 - for yyj3809 := 0; ; yyj3809++ { - if yyhl3809 { - if yyj3809 >= l { + var yys3817Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3817Slc + var yyhl3817 bool = l >= 0 + for yyj3817 := 0; ; yyj3817++ { + if yyhl3817 { + if yyj3817 >= l { break } } else { @@ -48067,10 +48187,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3809Slc = r.DecodeBytes(yys3809Slc, true, true) - yys3809 := string(yys3809Slc) + yys3817Slc = r.DecodeBytes(yys3817Slc, true, true) + yys3817 := string(yys3817Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3809 { + switch yys3817 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -48078,9 +48198,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3809) - } // end switch yys3809 - } // end for yyj3809 + z.DecStructFieldNotFound(-1, yys3817) + } // end switch yys3817 + } // end for yyj3817 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48088,16 +48208,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3811 int - var yyb3811 bool - var yyhl3811 bool = l >= 0 - yyj3811++ - if yyhl3811 { - yyb3811 = yyj3811 > l + var yyj3819 int + var yyb3819 bool + var yyhl3819 bool = l >= 0 + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3811 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3811 { + if yyb3819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48108,17 +48228,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj3811++ - if yyhl3811 { - yyb3811 = yyj3811 > l + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3811 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3811 { + if yyb3819 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3811-1, "") + z.DecStructFieldNotFound(yyj3819-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48130,37 +48250,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3813 := z.EncBinary() - _ = yym3813 + yym3821 := z.EncBinary() + _ = yym3821 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3814 := !z.EncBinary() - yy2arr3814 := z.EncBasicHandle().StructToArray - var yyq3814 [3]bool - _, _, _ = yysep3814, yyq3814, yy2arr3814 - const yyr3814 bool = false - yyq3814[0] = x.Kind != "" - yyq3814[1] = x.APIVersion != "" - yyq3814[2] = true - var yynn3814 int - if yyr3814 || yy2arr3814 { + yysep3822 := !z.EncBinary() + yy2arr3822 := z.EncBasicHandle().StructToArray + var yyq3822 [3]bool + _, _, _ = yysep3822, yyq3822, yy2arr3822 + const yyr3822 bool = false + yyq3822[0] = x.Kind != "" + yyq3822[1] = x.APIVersion != "" + yyq3822[2] = true + var yynn3822 int + if yyr3822 || yy2arr3822 { r.EncodeArrayStart(3) } else { - yynn3814 = 0 - for _, b := range yyq3814 { + yynn3822 = 0 + for _, b := range yyq3822 { if b { - yynn3814++ + yynn3822++ } } - r.EncodeMapStart(yynn3814) - yynn3814 = 0 + r.EncodeMapStart(yynn3822) + yynn3822 = 0 } - if yyr3814 || yy2arr3814 { + if yyr3822 || yy2arr3822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3814[0] { - yym3816 := z.EncBinary() - _ = yym3816 + if yyq3822[0] { + yym3824 := z.EncBinary() + _ = yym3824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48169,23 +48289,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3814[0] { + if yyq3822[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3817 := z.EncBinary() - _ = yym3817 + yym3825 := z.EncBinary() + _ = yym3825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3814 || yy2arr3814 { + if yyr3822 || yy2arr3822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3814[1] { - yym3819 := z.EncBinary() - _ = yym3819 + if yyq3822[1] { + yym3827 := z.EncBinary() + _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48194,36 +48314,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3814[1] { + if yyq3822[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3820 := z.EncBinary() - _ = yym3820 + yym3828 := z.EncBinary() + _ = yym3828 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3814 || yy2arr3814 { + if yyr3822 || yy2arr3822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3814[2] { - yy3822 := &x.Reference - yy3822.CodecEncodeSelf(e) + if yyq3822[2] { + yy3830 := &x.Reference + yy3830.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3814[2] { + if yyq3822[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3823 := &x.Reference - yy3823.CodecEncodeSelf(e) + yy3831 := &x.Reference + yy3831.CodecEncodeSelf(e) } } - if yyr3814 || yy2arr3814 { + if yyr3822 || yy2arr3822 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48236,25 +48356,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3824 := z.DecBinary() - _ = yym3824 + yym3832 := z.DecBinary() + _ = yym3832 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3825 := r.ContainerType() - if yyct3825 == codecSelferValueTypeMap1234 { - yyl3825 := r.ReadMapStart() - if yyl3825 == 0 { + yyct3833 := r.ContainerType() + if yyct3833 == codecSelferValueTypeMap1234 { + yyl3833 := r.ReadMapStart() + if yyl3833 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3825, d) + x.codecDecodeSelfFromMap(yyl3833, d) } - } else if yyct3825 == codecSelferValueTypeArray1234 { - yyl3825 := r.ReadArrayStart() - if yyl3825 == 0 { + } else if yyct3833 == codecSelferValueTypeArray1234 { + yyl3833 := r.ReadArrayStart() + if yyl3833 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3825, d) + x.codecDecodeSelfFromArray(yyl3833, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48266,12 +48386,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3826Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3826Slc - var yyhl3826 bool = l >= 0 - for yyj3826 := 0; ; yyj3826++ { - if yyhl3826 { - if yyj3826 >= l { + var yys3834Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3834Slc + var yyhl3834 bool = l >= 0 + for yyj3834 := 0; ; yyj3834++ { + if yyhl3834 { + if yyj3834 >= l { break } } else { @@ -48280,10 +48400,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3826Slc = r.DecodeBytes(yys3826Slc, true, true) - yys3826 := string(yys3826Slc) + yys3834Slc = r.DecodeBytes(yys3834Slc, true, true) + yys3834 := string(yys3834Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3826 { + switch yys3834 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48300,13 +48420,13 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3829 := &x.Reference - yyv3829.CodecDecodeSelf(d) + yyv3837 := &x.Reference + yyv3837.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3826) - } // end switch yys3826 - } // end for yyj3826 + z.DecStructFieldNotFound(-1, yys3834) + } // end switch yys3834 + } // end for yyj3834 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48314,16 +48434,16 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3830 int - var yyb3830 bool - var yyhl3830 bool = l >= 0 - yyj3830++ - if yyhl3830 { - yyb3830 = yyj3830 > l + var yyj3838 int + var yyb3838 bool + var yyhl3838 bool = l >= 0 + yyj3838++ + if yyhl3838 { + yyb3838 = yyj3838 > l } else { - yyb3830 = r.CheckBreak() + yyb3838 = r.CheckBreak() } - if yyb3830 { + if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48333,13 +48453,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3830++ - if yyhl3830 { - yyb3830 = yyj3830 > l + yyj3838++ + if yyhl3838 { + yyb3838 = yyj3838 > l } else { - yyb3830 = r.CheckBreak() + yyb3838 = r.CheckBreak() } - if yyb3830 { + if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48349,13 +48469,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3830++ - if yyhl3830 { - yyb3830 = yyj3830 > l + yyj3838++ + if yyhl3838 { + yyb3838 = yyj3838 > l } else { - yyb3830 = r.CheckBreak() + yyb3838 = r.CheckBreak() } - if yyb3830 { + if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48363,21 +48483,21 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3833 := &x.Reference - yyv3833.CodecDecodeSelf(d) + yyv3841 := &x.Reference + yyv3841.CodecDecodeSelf(d) } for { - yyj3830++ - if yyhl3830 { - yyb3830 = yyj3830 > l + yyj3838++ + if yyhl3838 { + yyb3838 = yyj3838 > l } else { - yyb3830 = r.CheckBreak() + yyb3838 = r.CheckBreak() } - if yyb3830 { + if yyb3838 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3830-1, "") + z.DecStructFieldNotFound(yyj3838-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48389,36 +48509,36 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3834 := z.EncBinary() - _ = yym3834 + yym3842 := z.EncBinary() + _ = yym3842 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3835 := !z.EncBinary() - yy2arr3835 := z.EncBasicHandle().StructToArray - var yyq3835 [2]bool - _, _, _ = yysep3835, yyq3835, yy2arr3835 - const yyr3835 bool = false - yyq3835[0] = x.Component != "" - yyq3835[1] = x.Host != "" - var yynn3835 int - if yyr3835 || yy2arr3835 { + yysep3843 := !z.EncBinary() + yy2arr3843 := z.EncBasicHandle().StructToArray + var yyq3843 [2]bool + _, _, _ = yysep3843, yyq3843, yy2arr3843 + const yyr3843 bool = false + yyq3843[0] = x.Component != "" + yyq3843[1] = x.Host != "" + var yynn3843 int + if yyr3843 || yy2arr3843 { r.EncodeArrayStart(2) } else { - yynn3835 = 0 - for _, b := range yyq3835 { + yynn3843 = 0 + for _, b := range yyq3843 { if b { - yynn3835++ + yynn3843++ } } - r.EncodeMapStart(yynn3835) - yynn3835 = 0 + r.EncodeMapStart(yynn3843) + yynn3843 = 0 } - if yyr3835 || yy2arr3835 { + if yyr3843 || yy2arr3843 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3835[0] { - yym3837 := z.EncBinary() - _ = yym3837 + if yyq3843[0] { + yym3845 := z.EncBinary() + _ = yym3845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) @@ -48427,23 +48547,23 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3835[0] { + if yyq3843[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3838 := z.EncBinary() - _ = yym3838 + yym3846 := z.EncBinary() + _ = yym3846 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } - if yyr3835 || yy2arr3835 { + if yyr3843 || yy2arr3843 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3835[1] { - yym3840 := z.EncBinary() - _ = yym3840 + if yyq3843[1] { + yym3848 := z.EncBinary() + _ = yym3848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -48452,19 +48572,19 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3835[1] { + if yyq3843[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3841 := z.EncBinary() - _ = yym3841 + yym3849 := z.EncBinary() + _ = yym3849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr3835 || yy2arr3835 { + if yyr3843 || yy2arr3843 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48477,25 +48597,25 @@ func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3842 := z.DecBinary() - _ = yym3842 + yym3850 := z.DecBinary() + _ = yym3850 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3843 := r.ContainerType() - if yyct3843 == codecSelferValueTypeMap1234 { - yyl3843 := r.ReadMapStart() - if yyl3843 == 0 { + yyct3851 := r.ContainerType() + if yyct3851 == codecSelferValueTypeMap1234 { + yyl3851 := r.ReadMapStart() + if yyl3851 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3843, d) + x.codecDecodeSelfFromMap(yyl3851, d) } - } else if yyct3843 == codecSelferValueTypeArray1234 { - yyl3843 := r.ReadArrayStart() - if yyl3843 == 0 { + } else if yyct3851 == codecSelferValueTypeArray1234 { + yyl3851 := r.ReadArrayStart() + if yyl3851 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3843, d) + x.codecDecodeSelfFromArray(yyl3851, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48507,12 +48627,12 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 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 yys3852Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3852Slc + var yyhl3852 bool = l >= 0 + for yyj3852 := 0; ; yyj3852++ { + if yyhl3852 { + if yyj3852 >= l { break } } else { @@ -48521,10 +48641,10 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3844Slc = r.DecodeBytes(yys3844Slc, true, true) - yys3844 := string(yys3844Slc) + yys3852Slc = r.DecodeBytes(yys3852Slc, true, true) + yys3852 := string(yys3852Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3844 { + switch yys3852 { case "component": if r.TryDecodeAsNil() { x.Component = "" @@ -48538,9 +48658,9 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3844) - } // end switch yys3844 - } // end for yyj3844 + z.DecStructFieldNotFound(-1, yys3852) + } // end switch yys3852 + } // end for yyj3852 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48548,16 +48668,16 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3847 int - var yyb3847 bool - var yyhl3847 bool = l >= 0 - yyj3847++ - if yyhl3847 { - yyb3847 = yyj3847 > l + var yyj3855 int + var yyb3855 bool + var yyhl3855 bool = l >= 0 + yyj3855++ + if yyhl3855 { + yyb3855 = yyj3855 > l } else { - yyb3847 = r.CheckBreak() + yyb3855 = r.CheckBreak() } - if yyb3847 { + if yyb3855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48567,13 +48687,13 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Component = string(r.DecodeString()) } - yyj3847++ - if yyhl3847 { - yyb3847 = yyj3847 > l + yyj3855++ + if yyhl3855 { + yyb3855 = yyj3855 > l } else { - yyb3847 = r.CheckBreak() + yyb3855 = r.CheckBreak() } - if yyb3847 { + if yyb3855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48584,17 +48704,17 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } for { - yyj3847++ - if yyhl3847 { - yyb3847 = yyj3847 > l + yyj3855++ + if yyhl3855 { + yyb3855 = yyj3855 > l } else { - yyb3847 = r.CheckBreak() + yyb3855 = r.CheckBreak() } - if yyb3847 { + if yyb3855 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3847-1, "") + z.DecStructFieldNotFound(yyj3855-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48606,43 +48726,43 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3850 := z.EncBinary() - _ = yym3850 + yym3858 := z.EncBinary() + _ = yym3858 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3851 := !z.EncBinary() - yy2arr3851 := z.EncBasicHandle().StructToArray - var yyq3851 [11]bool - _, _, _ = yysep3851, yyq3851, yy2arr3851 - const yyr3851 bool = false - yyq3851[0] = x.Kind != "" - yyq3851[1] = x.APIVersion != "" - yyq3851[4] = x.Reason != "" - yyq3851[5] = x.Message != "" - yyq3851[6] = true - yyq3851[7] = true - yyq3851[8] = true - yyq3851[9] = x.Count != 0 - yyq3851[10] = x.Type != "" - var yynn3851 int - if yyr3851 || yy2arr3851 { + yysep3859 := !z.EncBinary() + yy2arr3859 := z.EncBasicHandle().StructToArray + var yyq3859 [11]bool + _, _, _ = yysep3859, yyq3859, yy2arr3859 + const yyr3859 bool = false + yyq3859[0] = x.Kind != "" + yyq3859[1] = x.APIVersion != "" + yyq3859[4] = x.Reason != "" + yyq3859[5] = x.Message != "" + yyq3859[6] = true + yyq3859[7] = true + yyq3859[8] = true + yyq3859[9] = x.Count != 0 + yyq3859[10] = x.Type != "" + var yynn3859 int + if yyr3859 || yy2arr3859 { r.EncodeArrayStart(11) } else { - yynn3851 = 2 - for _, b := range yyq3851 { + yynn3859 = 2 + for _, b := range yyq3859 { if b { - yynn3851++ + yynn3859++ } } - r.EncodeMapStart(yynn3851) - yynn3851 = 0 + r.EncodeMapStart(yynn3859) + yynn3859 = 0 } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[0] { - yym3853 := z.EncBinary() - _ = yym3853 + if yyq3859[0] { + yym3861 := z.EncBinary() + _ = yym3861 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48651,23 +48771,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3851[0] { + if yyq3859[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3854 := z.EncBinary() - _ = yym3854 + yym3862 := z.EncBinary() + _ = yym3862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[1] { - yym3856 := z.EncBinary() - _ = yym3856 + if yyq3859[1] { + yym3864 := z.EncBinary() + _ = yym3864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48676,46 +48796,46 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3851[1] { + if yyq3859[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3857 := z.EncBinary() - _ = yym3857 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3851 || yy2arr3851 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3859 := &x.ObjectMeta - yy3859.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3860 := &x.ObjectMeta - yy3860.CodecEncodeSelf(e) - } - if yyr3851 || yy2arr3851 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3862 := &x.InvolvedObject - yy3862.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3863 := &x.InvolvedObject - yy3863.CodecEncodeSelf(e) - } - if yyr3851 || yy2arr3851 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[4] { yym3865 := z.EncBinary() _ = yym3865 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3859 || yy2arr3859 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3867 := &x.ObjectMeta + yy3867.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3868 := &x.ObjectMeta + yy3868.CodecEncodeSelf(e) + } + if yyr3859 || yy2arr3859 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3870 := &x.InvolvedObject + yy3870.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3871 := &x.InvolvedObject + yy3871.CodecEncodeSelf(e) + } + if yyr3859 || yy2arr3859 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3859[4] { + yym3873 := z.EncBinary() + _ = yym3873 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } @@ -48723,23 +48843,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3851[4] { + if yyq3859[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3866 := z.EncBinary() - _ = yym3866 + yym3874 := z.EncBinary() + _ = yym3874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[5] { - yym3868 := z.EncBinary() - _ = yym3868 + if yyq3859[5] { + yym3876 := z.EncBinary() + _ = yym3876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -48748,114 +48868,114 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3851[5] { + if yyq3859[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3869 := z.EncBinary() - _ = yym3869 + yym3877 := z.EncBinary() + _ = yym3877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[6] { - yy3871 := &x.Source - yy3871.CodecEncodeSelf(e) + if yyq3859[6] { + yy3879 := &x.Source + yy3879.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3851[6] { + if yyq3859[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3872 := &x.Source - yy3872.CodecEncodeSelf(e) + yy3880 := &x.Source + yy3880.CodecEncodeSelf(e) } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[7] { - yy3874 := &x.FirstTimestamp - yym3875 := z.EncBinary() - _ = yym3875 + if yyq3859[7] { + yy3882 := &x.FirstTimestamp + yym3883 := z.EncBinary() + _ = yym3883 if false { - } else if z.HasExtensions() && z.EncExt(yy3874) { - } else if yym3875 { - z.EncBinaryMarshal(yy3874) - } else if !yym3875 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3874) + } else if z.HasExtensions() && z.EncExt(yy3882) { + } else if yym3883 { + z.EncBinaryMarshal(yy3882) + } else if !yym3883 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3882) } else { - z.EncFallback(yy3874) + z.EncFallback(yy3882) } } else { r.EncodeNil() } } else { - if yyq3851[7] { + if yyq3859[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3876 := &x.FirstTimestamp - yym3877 := z.EncBinary() - _ = yym3877 + yy3884 := &x.FirstTimestamp + yym3885 := z.EncBinary() + _ = yym3885 if false { - } else if z.HasExtensions() && z.EncExt(yy3876) { - } else if yym3877 { - z.EncBinaryMarshal(yy3876) - } else if !yym3877 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3876) + } else if z.HasExtensions() && z.EncExt(yy3884) { + } else if yym3885 { + z.EncBinaryMarshal(yy3884) + } else if !yym3885 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3884) } else { - z.EncFallback(yy3876) + z.EncFallback(yy3884) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[8] { - yy3879 := &x.LastTimestamp - yym3880 := z.EncBinary() - _ = yym3880 + if yyq3859[8] { + yy3887 := &x.LastTimestamp + yym3888 := z.EncBinary() + _ = yym3888 if false { - } else if z.HasExtensions() && z.EncExt(yy3879) { - } else if yym3880 { - z.EncBinaryMarshal(yy3879) - } else if !yym3880 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3879) + } else if z.HasExtensions() && z.EncExt(yy3887) { + } else if yym3888 { + z.EncBinaryMarshal(yy3887) + } else if !yym3888 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3887) } else { - z.EncFallback(yy3879) + z.EncFallback(yy3887) } } else { r.EncodeNil() } } else { - if yyq3851[8] { + if yyq3859[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3881 := &x.LastTimestamp - yym3882 := z.EncBinary() - _ = yym3882 + yy3889 := &x.LastTimestamp + yym3890 := z.EncBinary() + _ = yym3890 if false { - } else if z.HasExtensions() && z.EncExt(yy3881) { - } else if yym3882 { - z.EncBinaryMarshal(yy3881) - } else if !yym3882 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3881) + } else if z.HasExtensions() && z.EncExt(yy3889) { + } else if yym3890 { + z.EncBinaryMarshal(yy3889) + } else if !yym3890 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3889) } else { - z.EncFallback(yy3881) + z.EncFallback(yy3889) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[9] { - yym3884 := z.EncBinary() - _ = yym3884 + if yyq3859[9] { + yym3892 := z.EncBinary() + _ = yym3892 if false { } else { r.EncodeInt(int64(x.Count)) @@ -48864,23 +48984,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3851[9] { + if yyq3859[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3885 := z.EncBinary() - _ = yym3885 + yym3893 := z.EncBinary() + _ = yym3893 if false { } else { r.EncodeInt(int64(x.Count)) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3851[10] { - yym3887 := z.EncBinary() - _ = yym3887 + if yyq3859[10] { + yym3895 := z.EncBinary() + _ = yym3895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -48889,19 +49009,19 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3851[10] { + if yyq3859[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3888 := z.EncBinary() - _ = yym3888 + yym3896 := z.EncBinary() + _ = yym3896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr3851 || yy2arr3851 { + if yyr3859 || yy2arr3859 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48914,25 +49034,25 @@ func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3889 := z.DecBinary() - _ = yym3889 + yym3897 := z.DecBinary() + _ = yym3897 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3890 := r.ContainerType() - if yyct3890 == codecSelferValueTypeMap1234 { - yyl3890 := r.ReadMapStart() - if yyl3890 == 0 { + yyct3898 := r.ContainerType() + if yyct3898 == codecSelferValueTypeMap1234 { + yyl3898 := r.ReadMapStart() + if yyl3898 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3890, d) + x.codecDecodeSelfFromMap(yyl3898, d) } - } else if yyct3890 == codecSelferValueTypeArray1234 { - yyl3890 := r.ReadArrayStart() - if yyl3890 == 0 { + } else if yyct3898 == codecSelferValueTypeArray1234 { + yyl3898 := r.ReadArrayStart() + if yyl3898 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3890, d) + x.codecDecodeSelfFromArray(yyl3898, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48944,12 +49064,12 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3891Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3891Slc - var yyhl3891 bool = l >= 0 - for yyj3891 := 0; ; yyj3891++ { - if yyhl3891 { - if yyj3891 >= l { + var yys3899Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3899Slc + var yyhl3899 bool = l >= 0 + for yyj3899 := 0; ; yyj3899++ { + if yyhl3899 { + if yyj3899 >= l { break } } else { @@ -48958,10 +49078,10 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3891Slc = r.DecodeBytes(yys3891Slc, true, true) - yys3891 := string(yys3891Slc) + yys3899Slc = r.DecodeBytes(yys3899Slc, true, true) + yys3899 := string(yys3899Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3891 { + switch yys3899 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48978,15 +49098,15 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3894 := &x.ObjectMeta - yyv3894.CodecDecodeSelf(d) + yyv3902 := &x.ObjectMeta + yyv3902.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3895 := &x.InvolvedObject - yyv3895.CodecDecodeSelf(d) + yyv3903 := &x.InvolvedObject + yyv3903.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { @@ -49004,41 +49124,41 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3898 := &x.Source - yyv3898.CodecDecodeSelf(d) + yyv3906 := &x.Source + yyv3906.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_v1.Time{} } else { - yyv3899 := &x.FirstTimestamp - yym3900 := z.DecBinary() - _ = yym3900 + yyv3907 := &x.FirstTimestamp + yym3908 := z.DecBinary() + _ = yym3908 if false { - } else if z.HasExtensions() && z.DecExt(yyv3899) { - } else if yym3900 { - z.DecBinaryUnmarshal(yyv3899) - } else if !yym3900 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3899) + } else if z.HasExtensions() && z.DecExt(yyv3907) { + } else if yym3908 { + z.DecBinaryUnmarshal(yyv3907) + } else if !yym3908 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3907) } else { - z.DecFallback(yyv3899, false) + z.DecFallback(yyv3907, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_v1.Time{} } else { - yyv3901 := &x.LastTimestamp - yym3902 := z.DecBinary() - _ = yym3902 + yyv3909 := &x.LastTimestamp + yym3910 := z.DecBinary() + _ = yym3910 if false { - } else if z.HasExtensions() && z.DecExt(yyv3901) { - } else if yym3902 { - z.DecBinaryUnmarshal(yyv3901) - } else if !yym3902 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3901) + } else if z.HasExtensions() && z.DecExt(yyv3909) { + } else if yym3910 { + z.DecBinaryUnmarshal(yyv3909) + } else if !yym3910 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3909) } else { - z.DecFallback(yyv3901, false) + z.DecFallback(yyv3909, false) } } case "count": @@ -49054,9 +49174,9 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3891) - } // end switch yys3891 - } // end for yyj3891 + z.DecStructFieldNotFound(-1, yys3899) + } // end switch yys3899 + } // end for yyj3899 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49064,16 +49184,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3905 int - var yyb3905 bool - var yyhl3905 bool = l >= 0 - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + var yyj3913 int + var yyb3913 bool + var yyhl3913 bool = l >= 0 + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49083,13 +49203,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49099,13 +49219,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49113,16 +49233,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3908 := &x.ObjectMeta - yyv3908.CodecDecodeSelf(d) + yyv3916 := &x.ObjectMeta + yyv3916.CodecDecodeSelf(d) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49130,16 +49250,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3909 := &x.InvolvedObject - yyv3909.CodecDecodeSelf(d) + yyv3917 := &x.InvolvedObject + yyv3917.CodecDecodeSelf(d) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49149,13 +49269,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49165,13 +49285,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49179,16 +49299,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3912 := &x.Source - yyv3912.CodecDecodeSelf(d) + yyv3920 := &x.Source + yyv3920.CodecDecodeSelf(d) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49196,26 +49316,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_v1.Time{} } else { - yyv3913 := &x.FirstTimestamp - yym3914 := z.DecBinary() - _ = yym3914 + yyv3921 := &x.FirstTimestamp + yym3922 := z.DecBinary() + _ = yym3922 if false { - } else if z.HasExtensions() && z.DecExt(yyv3913) { - } else if yym3914 { - z.DecBinaryUnmarshal(yyv3913) - } else if !yym3914 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3913) + } else if z.HasExtensions() && z.DecExt(yyv3921) { + } else if yym3922 { + z.DecBinaryUnmarshal(yyv3921) + } else if !yym3922 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3921) } else { - z.DecFallback(yyv3913, false) + z.DecFallback(yyv3921, false) } } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49223,26 +49343,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_v1.Time{} } else { - yyv3915 := &x.LastTimestamp - yym3916 := z.DecBinary() - _ = yym3916 + yyv3923 := &x.LastTimestamp + yym3924 := z.DecBinary() + _ = yym3924 if false { - } else if z.HasExtensions() && z.DecExt(yyv3915) { - } else if yym3916 { - z.DecBinaryUnmarshal(yyv3915) - } else if !yym3916 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3915) + } else if z.HasExtensions() && z.DecExt(yyv3923) { + } else if yym3924 { + z.DecBinaryUnmarshal(yyv3923) + } else if !yym3924 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3923) } else { - z.DecFallback(yyv3915, false) + z.DecFallback(yyv3923, false) } } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49252,13 +49372,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Count = int32(r.DecodeInt(32)) } - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49269,17 +49389,17 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } for { - yyj3905++ - if yyhl3905 { - yyb3905 = yyj3905 > l + yyj3913++ + if yyhl3913 { + yyb3913 = yyj3913 > l } else { - yyb3905 = r.CheckBreak() + yyb3913 = r.CheckBreak() } - if yyb3905 { + if yyb3913 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3905-1, "") + z.DecStructFieldNotFound(yyj3913-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49291,37 +49411,37 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3919 := z.EncBinary() - _ = yym3919 + yym3927 := z.EncBinary() + _ = yym3927 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3920 := !z.EncBinary() - yy2arr3920 := z.EncBasicHandle().StructToArray - var yyq3920 [4]bool - _, _, _ = yysep3920, yyq3920, yy2arr3920 - const yyr3920 bool = false - yyq3920[0] = x.Kind != "" - yyq3920[1] = x.APIVersion != "" - yyq3920[2] = true - var yynn3920 int - if yyr3920 || yy2arr3920 { + yysep3928 := !z.EncBinary() + yy2arr3928 := z.EncBasicHandle().StructToArray + var yyq3928 [4]bool + _, _, _ = yysep3928, yyq3928, yy2arr3928 + const yyr3928 bool = false + yyq3928[0] = x.Kind != "" + yyq3928[1] = x.APIVersion != "" + yyq3928[2] = true + var yynn3928 int + if yyr3928 || yy2arr3928 { r.EncodeArrayStart(4) } else { - yynn3920 = 1 - for _, b := range yyq3920 { + yynn3928 = 1 + for _, b := range yyq3928 { if b { - yynn3920++ + yynn3928++ } } - r.EncodeMapStart(yynn3920) - yynn3920 = 0 + r.EncodeMapStart(yynn3928) + yynn3928 = 0 } - if yyr3920 || yy2arr3920 { + if yyr3928 || yy2arr3928 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3920[0] { - yym3922 := z.EncBinary() - _ = yym3922 + if yyq3928[0] { + yym3930 := z.EncBinary() + _ = yym3930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49330,23 +49450,23 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3920[0] { + if yyq3928[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3923 := z.EncBinary() - _ = yym3923 + yym3931 := z.EncBinary() + _ = yym3931 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3920 || yy2arr3920 { + if yyr3928 || yy2arr3928 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3920[1] { - yym3925 := z.EncBinary() - _ = yym3925 + if yyq3928[1] { + yym3933 := z.EncBinary() + _ = yym3933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49355,54 +49475,54 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3920[1] { + if yyq3928[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3926 := z.EncBinary() - _ = yym3926 + yym3934 := z.EncBinary() + _ = yym3934 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3920 || yy2arr3920 { + if yyr3928 || yy2arr3928 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3920[2] { - yy3928 := &x.ListMeta - yym3929 := z.EncBinary() - _ = yym3929 + if yyq3928[2] { + yy3936 := &x.ListMeta + yym3937 := z.EncBinary() + _ = yym3937 if false { - } else if z.HasExtensions() && z.EncExt(yy3928) { + } else if z.HasExtensions() && z.EncExt(yy3936) { } else { - z.EncFallback(yy3928) + z.EncFallback(yy3936) } } else { r.EncodeNil() } } else { - if yyq3920[2] { + if yyq3928[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3930 := &x.ListMeta - yym3931 := z.EncBinary() - _ = yym3931 + yy3938 := &x.ListMeta + yym3939 := z.EncBinary() + _ = yym3939 if false { - } else if z.HasExtensions() && z.EncExt(yy3930) { + } else if z.HasExtensions() && z.EncExt(yy3938) { } else { - z.EncFallback(yy3930) + z.EncFallback(yy3938) } } } - if yyr3920 || yy2arr3920 { + if yyr3928 || yy2arr3928 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3933 := z.EncBinary() - _ = yym3933 + yym3941 := z.EncBinary() + _ = yym3941 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) @@ -49415,15 +49535,15 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3934 := z.EncBinary() - _ = yym3934 + yym3942 := z.EncBinary() + _ = yym3942 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr3920 || yy2arr3920 { + if yyr3928 || yy2arr3928 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49436,25 +49556,25 @@ func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3935 := z.DecBinary() - _ = yym3935 + yym3943 := z.DecBinary() + _ = yym3943 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3936 := r.ContainerType() - if yyct3936 == codecSelferValueTypeMap1234 { - yyl3936 := r.ReadMapStart() - if yyl3936 == 0 { + yyct3944 := r.ContainerType() + if yyct3944 == codecSelferValueTypeMap1234 { + yyl3944 := r.ReadMapStart() + if yyl3944 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3936, d) + x.codecDecodeSelfFromMap(yyl3944, d) } - } else if yyct3936 == codecSelferValueTypeArray1234 { - yyl3936 := r.ReadArrayStart() - if yyl3936 == 0 { + } else if yyct3944 == codecSelferValueTypeArray1234 { + yyl3944 := r.ReadArrayStart() + if yyl3944 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3936, d) + x.codecDecodeSelfFromArray(yyl3944, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49466,12 +49586,12 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3937Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3937Slc - var yyhl3937 bool = l >= 0 - for yyj3937 := 0; ; yyj3937++ { - if yyhl3937 { - if yyj3937 >= l { + var yys3945Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3945Slc + var yyhl3945 bool = l >= 0 + for yyj3945 := 0; ; yyj3945++ { + if yyhl3945 { + if yyj3945 >= l { break } } else { @@ -49480,10 +49600,10 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3937Slc = r.DecodeBytes(yys3937Slc, true, true) - yys3937 := string(yys3937Slc) + yys3945Slc = r.DecodeBytes(yys3945Slc, true, true) + yys3945 := string(yys3945Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3937 { + switch yys3945 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49500,31 +49620,31 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3940 := &x.ListMeta - yym3941 := z.DecBinary() - _ = yym3941 + yyv3948 := &x.ListMeta + yym3949 := z.DecBinary() + _ = yym3949 if false { - } else if z.HasExtensions() && z.DecExt(yyv3940) { + } else if z.HasExtensions() && z.DecExt(yyv3948) { } else { - z.DecFallback(yyv3940, false) + z.DecFallback(yyv3948, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3942 := &x.Items - yym3943 := z.DecBinary() - _ = yym3943 + yyv3950 := &x.Items + yym3951 := z.DecBinary() + _ = yym3951 if false { } else { - h.decSliceEvent((*[]Event)(yyv3942), d) + h.decSliceEvent((*[]Event)(yyv3950), d) } } default: - z.DecStructFieldNotFound(-1, yys3937) - } // end switch yys3937 - } // end for yyj3937 + z.DecStructFieldNotFound(-1, yys3945) + } // end switch yys3945 + } // end for yyj3945 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49532,16 +49652,16 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3944 int - var yyb3944 bool - var yyhl3944 bool = l >= 0 - yyj3944++ - if yyhl3944 { - yyb3944 = yyj3944 > l + var yyj3952 int + var yyb3952 bool + var yyhl3952 bool = l >= 0 + yyj3952++ + if yyhl3952 { + yyb3952 = yyj3952 > l } else { - yyb3944 = r.CheckBreak() + yyb3952 = r.CheckBreak() } - if yyb3944 { + if yyb3952 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49551,13 +49671,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3944++ - if yyhl3944 { - yyb3944 = yyj3944 > l + yyj3952++ + if yyhl3952 { + yyb3952 = yyj3952 > l } else { - yyb3944 = r.CheckBreak() + yyb3952 = r.CheckBreak() } - if yyb3944 { + if yyb3952 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49567,13 +49687,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3944++ - if yyhl3944 { - yyb3944 = yyj3944 > l + yyj3952++ + if yyhl3952 { + yyb3952 = yyj3952 > l } else { - yyb3944 = r.CheckBreak() + yyb3952 = r.CheckBreak() } - if yyb3944 { + if yyb3952 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49581,22 +49701,22 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3947 := &x.ListMeta - yym3948 := z.DecBinary() - _ = yym3948 + yyv3955 := &x.ListMeta + yym3956 := z.DecBinary() + _ = yym3956 if false { - } else if z.HasExtensions() && z.DecExt(yyv3947) { + } else if z.HasExtensions() && z.DecExt(yyv3955) { } else { - z.DecFallback(yyv3947, false) + z.DecFallback(yyv3955, false) } } - yyj3944++ - if yyhl3944 { - yyb3944 = yyj3944 > l + yyj3952++ + if yyhl3952 { + yyb3952 = yyj3952 > l } else { - yyb3944 = r.CheckBreak() + yyb3952 = r.CheckBreak() } - if yyb3944 { + if yyb3952 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49604,26 +49724,26 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3949 := &x.Items - yym3950 := z.DecBinary() - _ = yym3950 + yyv3957 := &x.Items + yym3958 := z.DecBinary() + _ = yym3958 if false { } else { - h.decSliceEvent((*[]Event)(yyv3949), d) + h.decSliceEvent((*[]Event)(yyv3957), d) } } for { - yyj3944++ - if yyhl3944 { - yyb3944 = yyj3944 > l + yyj3952++ + if yyhl3952 { + yyb3952 = yyj3952 > l } else { - yyb3944 = r.CheckBreak() + yyb3952 = r.CheckBreak() } - if yyb3944 { + if yyb3952 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3944-1, "") + z.DecStructFieldNotFound(yyj3952-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49635,37 +49755,37 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3951 := z.EncBinary() - _ = yym3951 + yym3959 := z.EncBinary() + _ = yym3959 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3952 := !z.EncBinary() - yy2arr3952 := z.EncBasicHandle().StructToArray - var yyq3952 [4]bool - _, _, _ = yysep3952, yyq3952, yy2arr3952 - const yyr3952 bool = false - yyq3952[0] = x.Kind != "" - yyq3952[1] = x.APIVersion != "" - yyq3952[2] = true - var yynn3952 int - if yyr3952 || yy2arr3952 { + yysep3960 := !z.EncBinary() + yy2arr3960 := z.EncBasicHandle().StructToArray + var yyq3960 [4]bool + _, _, _ = yysep3960, yyq3960, yy2arr3960 + const yyr3960 bool = false + yyq3960[0] = x.Kind != "" + yyq3960[1] = x.APIVersion != "" + yyq3960[2] = true + var yynn3960 int + if yyr3960 || yy2arr3960 { r.EncodeArrayStart(4) } else { - yynn3952 = 1 - for _, b := range yyq3952 { + yynn3960 = 1 + for _, b := range yyq3960 { if b { - yynn3952++ + yynn3960++ } } - r.EncodeMapStart(yynn3952) - yynn3952 = 0 + r.EncodeMapStart(yynn3960) + yynn3960 = 0 } - if yyr3952 || yy2arr3952 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3952[0] { - yym3954 := z.EncBinary() - _ = yym3954 + if yyq3960[0] { + yym3962 := z.EncBinary() + _ = yym3962 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49674,23 +49794,23 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3952[0] { + if yyq3960[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3955 := z.EncBinary() - _ = yym3955 + yym3963 := z.EncBinary() + _ = yym3963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3952 || yy2arr3952 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3952[1] { - yym3957 := z.EncBinary() - _ = yym3957 + if yyq3960[1] { + yym3965 := z.EncBinary() + _ = yym3965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49699,54 +49819,54 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3952[1] { + if yyq3960[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3958 := z.EncBinary() - _ = yym3958 + yym3966 := z.EncBinary() + _ = yym3966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3952 || yy2arr3952 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3952[2] { - yy3960 := &x.ListMeta - yym3961 := z.EncBinary() - _ = yym3961 + if yyq3960[2] { + yy3968 := &x.ListMeta + yym3969 := z.EncBinary() + _ = yym3969 if false { - } else if z.HasExtensions() && z.EncExt(yy3960) { + } else if z.HasExtensions() && z.EncExt(yy3968) { } else { - z.EncFallback(yy3960) + z.EncFallback(yy3968) } } else { r.EncodeNil() } } else { - if yyq3952[2] { + if yyq3960[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3962 := &x.ListMeta - yym3963 := z.EncBinary() - _ = yym3963 + yy3970 := &x.ListMeta + yym3971 := z.EncBinary() + _ = yym3971 if false { - } else if z.HasExtensions() && z.EncExt(yy3962) { + } else if z.HasExtensions() && z.EncExt(yy3970) { } else { - z.EncFallback(yy3962) + z.EncFallback(yy3970) } } } - if yyr3952 || yy2arr3952 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3965 := z.EncBinary() - _ = yym3965 + yym3973 := z.EncBinary() + _ = yym3973 if false { } else { h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) @@ -49759,15 +49879,15 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3966 := z.EncBinary() - _ = yym3966 + yym3974 := z.EncBinary() + _ = yym3974 if false { } else { h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) } } } - if yyr3952 || yy2arr3952 { + if yyr3960 || yy2arr3960 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49780,25 +49900,25 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3967 := z.DecBinary() - _ = yym3967 + yym3975 := z.DecBinary() + _ = yym3975 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3968 := r.ContainerType() - if yyct3968 == codecSelferValueTypeMap1234 { - yyl3968 := r.ReadMapStart() - if yyl3968 == 0 { + yyct3976 := r.ContainerType() + if yyct3976 == codecSelferValueTypeMap1234 { + yyl3976 := r.ReadMapStart() + if yyl3976 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3968, d) + x.codecDecodeSelfFromMap(yyl3976, d) } - } else if yyct3968 == codecSelferValueTypeArray1234 { - yyl3968 := r.ReadArrayStart() - if yyl3968 == 0 { + } else if yyct3976 == codecSelferValueTypeArray1234 { + yyl3976 := r.ReadArrayStart() + if yyl3976 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3968, d) + x.codecDecodeSelfFromArray(yyl3976, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49810,12 +49930,12 @@ func (x *List) 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 yys3977Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3977Slc + var yyhl3977 bool = l >= 0 + for yyj3977 := 0; ; yyj3977++ { + if yyhl3977 { + if yyj3977 >= l { break } } else { @@ -49824,10 +49944,10 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3969Slc = r.DecodeBytes(yys3969Slc, true, true) - yys3969 := string(yys3969Slc) + yys3977Slc = r.DecodeBytes(yys3977Slc, true, true) + yys3977 := string(yys3977Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3969 { + switch yys3977 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49844,31 +49964,31 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3972 := &x.ListMeta - yym3973 := z.DecBinary() - _ = yym3973 + yyv3980 := &x.ListMeta + yym3981 := z.DecBinary() + _ = yym3981 if false { - } else if z.HasExtensions() && z.DecExt(yyv3972) { + } else if z.HasExtensions() && z.DecExt(yyv3980) { } else { - z.DecFallback(yyv3972, false) + z.DecFallback(yyv3980, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3974 := &x.Items - yym3975 := z.DecBinary() - _ = yym3975 + yyv3982 := &x.Items + yym3983 := z.DecBinary() + _ = yym3983 if false { } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3974), d) + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3982), d) } } default: - z.DecStructFieldNotFound(-1, yys3969) - } // end switch yys3969 - } // end for yyj3969 + z.DecStructFieldNotFound(-1, yys3977) + } // end switch yys3977 + } // end for yyj3977 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49876,16 +49996,16 @@ func (x *List) 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 yyj3984 int + var yyb3984 bool + var yyhl3984 bool = l >= 0 + yyj3984++ + if yyhl3984 { + yyb3984 = yyj3984 > l } else { - yyb3976 = r.CheckBreak() + yyb3984 = r.CheckBreak() } - if yyb3976 { + if yyb3984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49895,13 +50015,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj3984++ + if yyhl3984 { + yyb3984 = yyj3984 > l } else { - yyb3976 = r.CheckBreak() + yyb3984 = r.CheckBreak() } - if yyb3976 { + if yyb3984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49911,13 +50031,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj3984++ + if yyhl3984 { + yyb3984 = yyj3984 > l } else { - yyb3976 = r.CheckBreak() + yyb3984 = r.CheckBreak() } - if yyb3976 { + if yyb3984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49925,22 +50045,22 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv3979 := &x.ListMeta - yym3980 := z.DecBinary() - _ = yym3980 + yyv3987 := &x.ListMeta + yym3988 := z.DecBinary() + _ = yym3988 if false { - } else if z.HasExtensions() && z.DecExt(yyv3979) { + } else if z.HasExtensions() && z.DecExt(yyv3987) { } else { - z.DecFallback(yyv3979, false) + z.DecFallback(yyv3987, false) } } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj3984++ + if yyhl3984 { + yyb3984 = yyj3984 > l } else { - yyb3976 = r.CheckBreak() + yyb3984 = r.CheckBreak() } - if yyb3976 { + if yyb3984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49948,26 +50068,26 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3981 := &x.Items - yym3982 := z.DecBinary() - _ = yym3982 + yyv3989 := &x.Items + yym3990 := z.DecBinary() + _ = yym3990 if false { } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3981), d) + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3989), d) } } for { - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj3984++ + if yyhl3984 { + yyb3984 = yyj3984 > l } else { - yyb3976 = r.CheckBreak() + yyb3984 = r.CheckBreak() } - if yyb3976 { + if yyb3984 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3976-1, "") + z.DecStructFieldNotFound(yyj3984-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49976,8 +50096,8 @@ func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3983 := z.EncBinary() - _ = yym3983 + yym3991 := z.EncBinary() + _ = yym3991 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -49989,8 +50109,8 @@ func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3984 := z.DecBinary() - _ = yym3984 + yym3992 := z.DecBinary() + _ = yym3992 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50005,53 +50125,53 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3985 := z.EncBinary() - _ = yym3985 + yym3993 := z.EncBinary() + _ = yym3993 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3986 := !z.EncBinary() - yy2arr3986 := z.EncBasicHandle().StructToArray - var yyq3986 [6]bool - _, _, _ = yysep3986, yyq3986, yy2arr3986 - const yyr3986 bool = false - yyq3986[0] = x.Type != "" - yyq3986[1] = len(x.Max) != 0 - yyq3986[2] = len(x.Min) != 0 - yyq3986[3] = len(x.Default) != 0 - yyq3986[4] = len(x.DefaultRequest) != 0 - yyq3986[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn3986 int - if yyr3986 || yy2arr3986 { + yysep3994 := !z.EncBinary() + yy2arr3994 := z.EncBasicHandle().StructToArray + var yyq3994 [6]bool + _, _, _ = yysep3994, yyq3994, yy2arr3994 + const yyr3994 bool = false + yyq3994[0] = x.Type != "" + yyq3994[1] = len(x.Max) != 0 + yyq3994[2] = len(x.Min) != 0 + yyq3994[3] = len(x.Default) != 0 + yyq3994[4] = len(x.DefaultRequest) != 0 + yyq3994[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn3994 int + if yyr3994 || yy2arr3994 { r.EncodeArrayStart(6) } else { - yynn3986 = 0 - for _, b := range yyq3986 { + yynn3994 = 0 + for _, b := range yyq3994 { if b { - yynn3986++ + yynn3994++ } } - r.EncodeMapStart(yynn3986) - yynn3986 = 0 + r.EncodeMapStart(yynn3994) + yynn3994 = 0 } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[0] { + if yyq3994[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3986[0] { + if yyq3994[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[1] { + if yyq3994[1] { if x.Max == nil { r.EncodeNil() } else { @@ -50061,7 +50181,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3986[1] { + if yyq3994[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50072,9 +50192,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[2] { + if yyq3994[2] { if x.Min == nil { r.EncodeNil() } else { @@ -50084,7 +50204,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3986[2] { + if yyq3994[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50095,9 +50215,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[3] { + if yyq3994[3] { if x.Default == nil { r.EncodeNil() } else { @@ -50107,7 +50227,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3986[3] { + if yyq3994[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50118,9 +50238,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[4] { + if yyq3994[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { @@ -50130,7 +50250,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3986[4] { + if yyq3994[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50141,9 +50261,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3986[5] { + if yyq3994[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { @@ -50153,7 +50273,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3986[5] { + if yyq3994[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50164,7 +50284,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3986 || yy2arr3986 { + if yyr3994 || yy2arr3994 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50177,25 +50297,25 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3993 := z.DecBinary() - _ = yym3993 + yym4001 := z.DecBinary() + _ = yym4001 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3994 := r.ContainerType() - if yyct3994 == codecSelferValueTypeMap1234 { - yyl3994 := r.ReadMapStart() - if yyl3994 == 0 { + yyct4002 := r.ContainerType() + if yyct4002 == codecSelferValueTypeMap1234 { + yyl4002 := r.ReadMapStart() + if yyl4002 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3994, d) + x.codecDecodeSelfFromMap(yyl4002, d) } - } else if yyct3994 == codecSelferValueTypeArray1234 { - yyl3994 := r.ReadArrayStart() - if yyl3994 == 0 { + } else if yyct4002 == codecSelferValueTypeArray1234 { + yyl4002 := r.ReadArrayStart() + if yyl4002 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3994, d) + x.codecDecodeSelfFromArray(yyl4002, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50207,12 +50327,12 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3995Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3995Slc - var yyhl3995 bool = l >= 0 - for yyj3995 := 0; ; yyj3995++ { - if yyhl3995 { - if yyj3995 >= l { + var yys4003Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4003Slc + var yyhl4003 bool = l >= 0 + for yyj4003 := 0; ; yyj4003++ { + if yyhl4003 { + if yyj4003 >= l { break } } else { @@ -50221,10 +50341,10 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3995Slc = r.DecodeBytes(yys3995Slc, true, true) - yys3995 := string(yys3995Slc) + yys4003Slc = r.DecodeBytes(yys4003Slc, true, true) + yys4003 := string(yys4003Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3995 { + switch yys4003 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -50235,41 +50355,41 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv3997 := &x.Max - yyv3997.CodecDecodeSelf(d) + yyv4005 := &x.Max + yyv4005.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { - yyv3998 := &x.Min - yyv3998.CodecDecodeSelf(d) + yyv4006 := &x.Min + yyv4006.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { - yyv3999 := &x.Default - yyv3999.CodecDecodeSelf(d) + yyv4007 := &x.Default + yyv4007.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv4000 := &x.DefaultRequest - yyv4000.CodecDecodeSelf(d) + yyv4008 := &x.DefaultRequest + yyv4008.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv4001 := &x.MaxLimitRequestRatio - yyv4001.CodecDecodeSelf(d) + yyv4009 := &x.MaxLimitRequestRatio + yyv4009.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3995) - } // end switch yys3995 - } // end for yyj3995 + z.DecStructFieldNotFound(-1, yys4003) + } // end switch yys4003 + } // end for yyj4003 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50277,16 +50397,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4002 int - var yyb4002 bool - var yyhl4002 bool = l >= 0 - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + var yyj4010 int + var yyb4010 bool + var yyhl4010 bool = l >= 0 + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50296,13 +50416,13 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = LimitType(r.DecodeString()) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50310,16 +50430,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv4004 := &x.Max - yyv4004.CodecDecodeSelf(d) + yyv4012 := &x.Max + yyv4012.CodecDecodeSelf(d) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50327,16 +50447,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Min = nil } else { - yyv4005 := &x.Min - yyv4005.CodecDecodeSelf(d) + yyv4013 := &x.Min + yyv4013.CodecDecodeSelf(d) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50344,16 +50464,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Default = nil } else { - yyv4006 := &x.Default - yyv4006.CodecDecodeSelf(d) + yyv4014 := &x.Default + yyv4014.CodecDecodeSelf(d) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50361,16 +50481,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv4007 := &x.DefaultRequest - yyv4007.CodecDecodeSelf(d) + yyv4015 := &x.DefaultRequest + yyv4015.CodecDecodeSelf(d) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50378,21 +50498,21 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv4008 := &x.MaxLimitRequestRatio - yyv4008.CodecDecodeSelf(d) + yyv4016 := &x.MaxLimitRequestRatio + yyv4016.CodecDecodeSelf(d) } for { - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4010++ + if yyhl4010 { + yyb4010 = yyj4010 > l } else { - yyb4002 = r.CheckBreak() + yyb4010 = r.CheckBreak() } - if yyb4002 { + if yyb4010 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4002-1, "") + z.DecStructFieldNotFound(yyj4010-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50404,36 +50524,36 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4009 := z.EncBinary() - _ = yym4009 + yym4017 := z.EncBinary() + _ = yym4017 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4010 := !z.EncBinary() - yy2arr4010 := z.EncBasicHandle().StructToArray - var yyq4010 [1]bool - _, _, _ = yysep4010, yyq4010, yy2arr4010 - const yyr4010 bool = false - var yynn4010 int - if yyr4010 || yy2arr4010 { + yysep4018 := !z.EncBinary() + yy2arr4018 := z.EncBasicHandle().StructToArray + var yyq4018 [1]bool + _, _, _ = yysep4018, yyq4018, yy2arr4018 + const yyr4018 bool = false + var yynn4018 int + if yyr4018 || yy2arr4018 { r.EncodeArrayStart(1) } else { - yynn4010 = 1 - for _, b := range yyq4010 { + yynn4018 = 1 + for _, b := range yyq4018 { if b { - yynn4010++ + yynn4018++ } } - r.EncodeMapStart(yynn4010) - yynn4010 = 0 + r.EncodeMapStart(yynn4018) + yynn4018 = 0 } - if yyr4010 || yy2arr4010 { + if yyr4018 || yy2arr4018 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { - yym4012 := z.EncBinary() - _ = yym4012 + yym4020 := z.EncBinary() + _ = yym4020 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) @@ -50446,15 +50566,15 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Limits == nil { r.EncodeNil() } else { - yym4013 := z.EncBinary() - _ = yym4013 + yym4021 := z.EncBinary() + _ = yym4021 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } - if yyr4010 || yy2arr4010 { + if yyr4018 || yy2arr4018 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50467,25 +50587,25 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4014 := z.DecBinary() - _ = yym4014 + yym4022 := z.DecBinary() + _ = yym4022 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4015 := r.ContainerType() - if yyct4015 == codecSelferValueTypeMap1234 { - yyl4015 := r.ReadMapStart() - if yyl4015 == 0 { + yyct4023 := r.ContainerType() + if yyct4023 == codecSelferValueTypeMap1234 { + yyl4023 := r.ReadMapStart() + if yyl4023 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4015, d) + x.codecDecodeSelfFromMap(yyl4023, d) } - } else if yyct4015 == codecSelferValueTypeArray1234 { - yyl4015 := r.ReadArrayStart() - if yyl4015 == 0 { + } else if yyct4023 == codecSelferValueTypeArray1234 { + yyl4023 := r.ReadArrayStart() + if yyl4023 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4015, d) + x.codecDecodeSelfFromArray(yyl4023, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50497,12 +50617,12 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4016Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4016Slc - var yyhl4016 bool = l >= 0 - for yyj4016 := 0; ; yyj4016++ { - if yyhl4016 { - if yyj4016 >= l { + var yys4024Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4024Slc + var yyhl4024 bool = l >= 0 + for yyj4024 := 0; ; yyj4024++ { + if yyhl4024 { + if yyj4024 >= l { break } } else { @@ -50511,26 +50631,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4016Slc = r.DecodeBytes(yys4016Slc, true, true) - yys4016 := string(yys4016Slc) + yys4024Slc = r.DecodeBytes(yys4024Slc, true, true) + yys4024 := string(yys4024Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4016 { + switch yys4024 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4017 := &x.Limits - yym4018 := z.DecBinary() - _ = yym4018 + yyv4025 := &x.Limits + yym4026 := z.DecBinary() + _ = yym4026 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4017), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4025), d) } } default: - z.DecStructFieldNotFound(-1, yys4016) - } // end switch yys4016 - } // end for yyj4016 + z.DecStructFieldNotFound(-1, yys4024) + } // end switch yys4024 + } // end for yyj4024 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50538,16 +50658,16 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4019 int - var yyb4019 bool - var yyhl4019 bool = l >= 0 - yyj4019++ - if yyhl4019 { - yyb4019 = yyj4019 > l + var yyj4027 int + var yyb4027 bool + var yyhl4027 bool = l >= 0 + yyj4027++ + if yyhl4027 { + yyb4027 = yyj4027 > l } else { - yyb4019 = r.CheckBreak() + yyb4027 = r.CheckBreak() } - if yyb4019 { + if yyb4027 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50555,26 +50675,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4020 := &x.Limits - yym4021 := z.DecBinary() - _ = yym4021 + yyv4028 := &x.Limits + yym4029 := z.DecBinary() + _ = yym4029 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4020), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4028), d) } } for { - yyj4019++ - if yyhl4019 { - yyb4019 = yyj4019 > l + yyj4027++ + if yyhl4027 { + yyb4027 = yyj4027 > l } else { - yyb4019 = r.CheckBreak() + yyb4027 = r.CheckBreak() } - if yyb4019 { + if yyb4027 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4019-1, "") + z.DecStructFieldNotFound(yyj4027-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50586,38 +50706,38 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4022 := z.EncBinary() - _ = yym4022 + yym4030 := z.EncBinary() + _ = yym4030 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 - yyq4023[3] = true - var yynn4023 int - if yyr4023 || yy2arr4023 { + yysep4031 := !z.EncBinary() + yy2arr4031 := z.EncBasicHandle().StructToArray + var yyq4031 [4]bool + _, _, _ = yysep4031, yyq4031, yy2arr4031 + const yyr4031 bool = false + yyq4031[0] = x.Kind != "" + yyq4031[1] = x.APIVersion != "" + yyq4031[2] = true + yyq4031[3] = true + var yynn4031 int + if yyr4031 || yy2arr4031 { r.EncodeArrayStart(4) } else { - yynn4023 = 0 - for _, b := range yyq4023 { + yynn4031 = 0 + for _, b := range yyq4031 { if b { - yynn4023++ + yynn4031++ } } - r.EncodeMapStart(yynn4023) - yynn4023 = 0 + r.EncodeMapStart(yynn4031) + yynn4031 = 0 } - if yyr4023 || yy2arr4023 { + if yyr4031 || yy2arr4031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[0] { - yym4025 := z.EncBinary() - _ = yym4025 + if yyq4031[0] { + yym4033 := z.EncBinary() + _ = yym4033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50626,23 +50746,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4023[0] { + if yyq4031[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4026 := z.EncBinary() - _ = yym4026 + yym4034 := z.EncBinary() + _ = yym4034 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4023 || yy2arr4023 { + if yyr4031 || yy2arr4031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[1] { - yym4028 := z.EncBinary() - _ = yym4028 + if yyq4031[1] { + yym4036 := z.EncBinary() + _ = yym4036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50651,53 +50771,53 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4023[1] { + if yyq4031[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4029 := z.EncBinary() - _ = yym4029 + yym4037 := z.EncBinary() + _ = yym4037 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4023 || yy2arr4023 { + if yyr4031 || yy2arr4031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[2] { - yy4031 := &x.ObjectMeta - yy4031.CodecEncodeSelf(e) + if yyq4031[2] { + yy4039 := &x.ObjectMeta + yy4039.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4023[2] { + if yyq4031[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4032 := &x.ObjectMeta - yy4032.CodecEncodeSelf(e) + yy4040 := &x.ObjectMeta + yy4040.CodecEncodeSelf(e) } } - if yyr4023 || yy2arr4023 { + if yyr4031 || yy2arr4031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[3] { - yy4034 := &x.Spec - yy4034.CodecEncodeSelf(e) + if yyq4031[3] { + yy4042 := &x.Spec + yy4042.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4023[3] { + if yyq4031[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4035 := &x.Spec - yy4035.CodecEncodeSelf(e) + yy4043 := &x.Spec + yy4043.CodecEncodeSelf(e) } } - if yyr4023 || yy2arr4023 { + if yyr4031 || yy2arr4031 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50710,25 +50830,25 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4036 := z.DecBinary() - _ = yym4036 + yym4044 := z.DecBinary() + _ = yym4044 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4037 := r.ContainerType() - if yyct4037 == codecSelferValueTypeMap1234 { - yyl4037 := r.ReadMapStart() - if yyl4037 == 0 { + yyct4045 := r.ContainerType() + if yyct4045 == codecSelferValueTypeMap1234 { + yyl4045 := r.ReadMapStart() + if yyl4045 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4037, d) + x.codecDecodeSelfFromMap(yyl4045, d) } - } else if yyct4037 == codecSelferValueTypeArray1234 { - yyl4037 := r.ReadArrayStart() - if yyl4037 == 0 { + } else if yyct4045 == codecSelferValueTypeArray1234 { + yyl4045 := r.ReadArrayStart() + if yyl4045 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4037, d) + x.codecDecodeSelfFromArray(yyl4045, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50740,12 +50860,12 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4038Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4038Slc - var yyhl4038 bool = l >= 0 - for yyj4038 := 0; ; yyj4038++ { - if yyhl4038 { - if yyj4038 >= l { + var yys4046Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4046Slc + var yyhl4046 bool = l >= 0 + for yyj4046 := 0; ; yyj4046++ { + if yyhl4046 { + if yyj4046 >= l { break } } else { @@ -50754,10 +50874,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4038Slc = r.DecodeBytes(yys4038Slc, true, true) - yys4038 := string(yys4038Slc) + yys4046Slc = r.DecodeBytes(yys4046Slc, true, true) + yys4046 := string(yys4046Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4038 { + switch yys4046 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50774,20 +50894,20 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4041 := &x.ObjectMeta - yyv4041.CodecDecodeSelf(d) + yyv4049 := &x.ObjectMeta + yyv4049.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4042 := &x.Spec - yyv4042.CodecDecodeSelf(d) + yyv4050 := &x.Spec + yyv4050.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4038) - } // end switch yys4038 - } // end for yyj4038 + z.DecStructFieldNotFound(-1, yys4046) + } // end switch yys4046 + } // end for yyj4046 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50795,16 +50915,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4043 int - var yyb4043 bool - var yyhl4043 bool = l >= 0 - yyj4043++ - if yyhl4043 { - yyb4043 = yyj4043 > l + var yyj4051 int + var yyb4051 bool + var yyhl4051 bool = l >= 0 + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l } else { - yyb4043 = r.CheckBreak() + yyb4051 = r.CheckBreak() } - if yyb4043 { + if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50814,13 +50934,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4043++ - if yyhl4043 { - yyb4043 = yyj4043 > l + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l } else { - yyb4043 = r.CheckBreak() + yyb4051 = r.CheckBreak() } - if yyb4043 { + if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50830,13 +50950,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4043++ - if yyhl4043 { - yyb4043 = yyj4043 > l + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l } else { - yyb4043 = r.CheckBreak() + yyb4051 = r.CheckBreak() } - if yyb4043 { + if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50844,16 +50964,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4046 := &x.ObjectMeta - yyv4046.CodecDecodeSelf(d) + yyv4054 := &x.ObjectMeta + yyv4054.CodecDecodeSelf(d) } - yyj4043++ - if yyhl4043 { - yyb4043 = yyj4043 > l + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l } else { - yyb4043 = r.CheckBreak() + yyb4051 = r.CheckBreak() } - if yyb4043 { + if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50861,21 +50981,21 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4047 := &x.Spec - yyv4047.CodecDecodeSelf(d) + yyv4055 := &x.Spec + yyv4055.CodecDecodeSelf(d) } for { - yyj4043++ - if yyhl4043 { - yyb4043 = yyj4043 > l + yyj4051++ + if yyhl4051 { + yyb4051 = yyj4051 > l } else { - yyb4043 = r.CheckBreak() + yyb4051 = r.CheckBreak() } - if yyb4043 { + if yyb4051 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4043-1, "") + z.DecStructFieldNotFound(yyj4051-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50887,37 +51007,37 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4048 := z.EncBinary() - _ = yym4048 + yym4056 := z.EncBinary() + _ = yym4056 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4049 := !z.EncBinary() - yy2arr4049 := z.EncBasicHandle().StructToArray - var yyq4049 [4]bool - _, _, _ = yysep4049, yyq4049, yy2arr4049 - const yyr4049 bool = false - yyq4049[0] = x.Kind != "" - yyq4049[1] = x.APIVersion != "" - yyq4049[2] = true - var yynn4049 int - if yyr4049 || yy2arr4049 { + yysep4057 := !z.EncBinary() + yy2arr4057 := z.EncBasicHandle().StructToArray + var yyq4057 [4]bool + _, _, _ = yysep4057, yyq4057, yy2arr4057 + const yyr4057 bool = false + yyq4057[0] = x.Kind != "" + yyq4057[1] = x.APIVersion != "" + yyq4057[2] = true + var yynn4057 int + if yyr4057 || yy2arr4057 { r.EncodeArrayStart(4) } else { - yynn4049 = 1 - for _, b := range yyq4049 { + yynn4057 = 1 + for _, b := range yyq4057 { if b { - yynn4049++ + yynn4057++ } } - r.EncodeMapStart(yynn4049) - yynn4049 = 0 + r.EncodeMapStart(yynn4057) + yynn4057 = 0 } - if yyr4049 || yy2arr4049 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4049[0] { - yym4051 := z.EncBinary() - _ = yym4051 + if yyq4057[0] { + yym4059 := z.EncBinary() + _ = yym4059 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50926,23 +51046,23 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4049[0] { + if yyq4057[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4052 := z.EncBinary() - _ = yym4052 + yym4060 := z.EncBinary() + _ = yym4060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4049 || yy2arr4049 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4049[1] { - yym4054 := z.EncBinary() - _ = yym4054 + if yyq4057[1] { + yym4062 := z.EncBinary() + _ = yym4062 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50951,54 +51071,54 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4049[1] { + if yyq4057[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4055 := z.EncBinary() - _ = yym4055 + yym4063 := z.EncBinary() + _ = yym4063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4049 || yy2arr4049 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4049[2] { - yy4057 := &x.ListMeta - yym4058 := z.EncBinary() - _ = yym4058 + if yyq4057[2] { + yy4065 := &x.ListMeta + yym4066 := z.EncBinary() + _ = yym4066 if false { - } else if z.HasExtensions() && z.EncExt(yy4057) { + } else if z.HasExtensions() && z.EncExt(yy4065) { } else { - z.EncFallback(yy4057) + z.EncFallback(yy4065) } } else { r.EncodeNil() } } else { - if yyq4049[2] { + if yyq4057[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4059 := &x.ListMeta - yym4060 := z.EncBinary() - _ = yym4060 + yy4067 := &x.ListMeta + yym4068 := z.EncBinary() + _ = yym4068 if false { - } else if z.HasExtensions() && z.EncExt(yy4059) { + } else if z.HasExtensions() && z.EncExt(yy4067) { } else { - z.EncFallback(yy4059) + z.EncFallback(yy4067) } } } - if yyr4049 || yy2arr4049 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4062 := z.EncBinary() - _ = yym4062 + yym4070 := z.EncBinary() + _ = yym4070 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) @@ -51011,15 +51131,15 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4063 := z.EncBinary() - _ = yym4063 + yym4071 := z.EncBinary() + _ = yym4071 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } - if yyr4049 || yy2arr4049 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51032,25 +51152,25 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4064 := z.DecBinary() - _ = yym4064 + yym4072 := z.DecBinary() + _ = yym4072 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4065 := r.ContainerType() - if yyct4065 == codecSelferValueTypeMap1234 { - yyl4065 := r.ReadMapStart() - if yyl4065 == 0 { + yyct4073 := r.ContainerType() + if yyct4073 == codecSelferValueTypeMap1234 { + yyl4073 := r.ReadMapStart() + if yyl4073 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4065, d) + x.codecDecodeSelfFromMap(yyl4073, d) } - } else if yyct4065 == codecSelferValueTypeArray1234 { - yyl4065 := r.ReadArrayStart() - if yyl4065 == 0 { + } else if yyct4073 == codecSelferValueTypeArray1234 { + yyl4073 := r.ReadArrayStart() + if yyl4073 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4065, d) + x.codecDecodeSelfFromArray(yyl4073, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51062,12 +51182,12 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4066Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4066Slc - var yyhl4066 bool = l >= 0 - for yyj4066 := 0; ; yyj4066++ { - if yyhl4066 { - if yyj4066 >= l { + var yys4074Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4074Slc + var yyhl4074 bool = l >= 0 + for yyj4074 := 0; ; yyj4074++ { + if yyhl4074 { + if yyj4074 >= l { break } } else { @@ -51076,10 +51196,10 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4066Slc = r.DecodeBytes(yys4066Slc, true, true) - yys4066 := string(yys4066Slc) + yys4074Slc = r.DecodeBytes(yys4074Slc, true, true) + yys4074 := string(yys4074Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4066 { + switch yys4074 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51096,31 +51216,31 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4069 := &x.ListMeta - yym4070 := z.DecBinary() - _ = yym4070 + yyv4077 := &x.ListMeta + yym4078 := z.DecBinary() + _ = yym4078 if false { - } else if z.HasExtensions() && z.DecExt(yyv4069) { + } else if z.HasExtensions() && z.DecExt(yyv4077) { } else { - z.DecFallback(yyv4069, false) + z.DecFallback(yyv4077, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4071 := &x.Items - yym4072 := z.DecBinary() - _ = yym4072 + yyv4079 := &x.Items + yym4080 := z.DecBinary() + _ = yym4080 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4071), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4079), d) } } default: - z.DecStructFieldNotFound(-1, yys4066) - } // end switch yys4066 - } // end for yyj4066 + z.DecStructFieldNotFound(-1, yys4074) + } // end switch yys4074 + } // end for yyj4074 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51128,16 +51248,16 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4073 int - var yyb4073 bool - var yyhl4073 bool = l >= 0 - yyj4073++ - if yyhl4073 { - yyb4073 = yyj4073 > l + var yyj4081 int + var yyb4081 bool + var yyhl4081 bool = l >= 0 + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb4073 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb4073 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51147,13 +51267,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4073++ - if yyhl4073 { - yyb4073 = yyj4073 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb4073 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb4073 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51163,13 +51283,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4073++ - if yyhl4073 { - yyb4073 = yyj4073 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb4073 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb4073 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51177,22 +51297,22 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4076 := &x.ListMeta - yym4077 := z.DecBinary() - _ = yym4077 + yyv4084 := &x.ListMeta + yym4085 := z.DecBinary() + _ = yym4085 if false { - } else if z.HasExtensions() && z.DecExt(yyv4076) { + } else if z.HasExtensions() && z.DecExt(yyv4084) { } else { - z.DecFallback(yyv4076, false) + z.DecFallback(yyv4084, false) } } - yyj4073++ - if yyhl4073 { - yyb4073 = yyj4073 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb4073 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb4073 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51200,26 +51320,26 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4078 := &x.Items - yym4079 := z.DecBinary() - _ = yym4079 + yyv4086 := &x.Items + yym4087 := z.DecBinary() + _ = yym4087 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4078), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4086), d) } } for { - yyj4073++ - if yyhl4073 { - yyb4073 = yyj4073 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb4073 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb4073 { + if yyb4081 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4073-1, "") + z.DecStructFieldNotFound(yyj4081-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51228,8 +51348,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4080 := z.EncBinary() - _ = yym4080 + yym4088 := z.EncBinary() + _ = yym4088 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51241,8 +51361,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4081 := z.DecBinary() - _ = yym4081 + yym4089 := z.DecBinary() + _ = yym4089 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51257,34 +51377,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4082 := z.EncBinary() - _ = yym4082 + yym4090 := z.EncBinary() + _ = yym4090 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4083 := !z.EncBinary() - yy2arr4083 := z.EncBasicHandle().StructToArray - var yyq4083 [2]bool - _, _, _ = yysep4083, yyq4083, yy2arr4083 - const yyr4083 bool = false - yyq4083[0] = len(x.Hard) != 0 - yyq4083[1] = len(x.Scopes) != 0 - var yynn4083 int - if yyr4083 || yy2arr4083 { + yysep4091 := !z.EncBinary() + yy2arr4091 := z.EncBasicHandle().StructToArray + var yyq4091 [2]bool + _, _, _ = yysep4091, yyq4091, yy2arr4091 + const yyr4091 bool = false + yyq4091[0] = len(x.Hard) != 0 + yyq4091[1] = len(x.Scopes) != 0 + var yynn4091 int + if yyr4091 || yy2arr4091 { r.EncodeArrayStart(2) } else { - yynn4083 = 0 - for _, b := range yyq4083 { + yynn4091 = 0 + for _, b := range yyq4091 { if b { - yynn4083++ + yynn4091++ } } - r.EncodeMapStart(yynn4083) - yynn4083 = 0 + r.EncodeMapStart(yynn4091) + yynn4091 = 0 } - if yyr4083 || yy2arr4083 { + if yyr4091 || yy2arr4091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4083[0] { + if yyq4091[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -51294,7 +51414,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4083[0] { + if yyq4091[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51305,14 +51425,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4083 || yy2arr4083 { + if yyr4091 || yy2arr4091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4083[1] { + if yyq4091[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym4086 := z.EncBinary() - _ = yym4086 + yym4094 := z.EncBinary() + _ = yym4094 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -51322,15 +51442,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4083[1] { + if yyq4091[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { - yym4087 := z.EncBinary() - _ = yym4087 + yym4095 := z.EncBinary() + _ = yym4095 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -51338,7 +51458,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4083 || yy2arr4083 { + if yyr4091 || yy2arr4091 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51351,25 +51471,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4088 := z.DecBinary() - _ = yym4088 + yym4096 := z.DecBinary() + _ = yym4096 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4089 := r.ContainerType() - if yyct4089 == codecSelferValueTypeMap1234 { - yyl4089 := r.ReadMapStart() - if yyl4089 == 0 { + yyct4097 := r.ContainerType() + if yyct4097 == codecSelferValueTypeMap1234 { + yyl4097 := r.ReadMapStart() + if yyl4097 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4089, d) + x.codecDecodeSelfFromMap(yyl4097, d) } - } else if yyct4089 == codecSelferValueTypeArray1234 { - yyl4089 := r.ReadArrayStart() - if yyl4089 == 0 { + } else if yyct4097 == codecSelferValueTypeArray1234 { + yyl4097 := r.ReadArrayStart() + if yyl4097 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4089, d) + x.codecDecodeSelfFromArray(yyl4097, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51381,12 +51501,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4090Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4090Slc - var yyhl4090 bool = l >= 0 - for yyj4090 := 0; ; yyj4090++ { - if yyhl4090 { - if yyj4090 >= l { + var yys4098Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4098Slc + var yyhl4098 bool = l >= 0 + for yyj4098 := 0; ; yyj4098++ { + if yyhl4098 { + if yyj4098 >= l { break } } else { @@ -51395,33 +51515,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4090Slc = r.DecodeBytes(yys4090Slc, true, true) - yys4090 := string(yys4090Slc) + yys4098Slc = r.DecodeBytes(yys4098Slc, true, true) + yys4098 := string(yys4098Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4090 { + switch yys4098 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4091 := &x.Hard - yyv4091.CodecDecodeSelf(d) + yyv4099 := &x.Hard + yyv4099.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4092 := &x.Scopes - yym4093 := z.DecBinary() - _ = yym4093 + yyv4100 := &x.Scopes + yym4101 := z.DecBinary() + _ = yym4101 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4092), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4100), d) } } default: - z.DecStructFieldNotFound(-1, yys4090) - } // end switch yys4090 - } // end for yyj4090 + z.DecStructFieldNotFound(-1, yys4098) + } // end switch yys4098 + } // end for yyj4098 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51429,16 +51549,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4094 int - var yyb4094 bool - var yyhl4094 bool = l >= 0 - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + var yyj4102 int + var yyb4102 bool + var yyhl4102 bool = l >= 0 + yyj4102++ + if yyhl4102 { + yyb4102 = yyj4102 > l } else { - yyb4094 = r.CheckBreak() + yyb4102 = r.CheckBreak() } - if yyb4094 { + if yyb4102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51446,16 +51566,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4095 := &x.Hard - yyv4095.CodecDecodeSelf(d) + yyv4103 := &x.Hard + yyv4103.CodecDecodeSelf(d) } - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4102++ + if yyhl4102 { + yyb4102 = yyj4102 > l } else { - yyb4094 = r.CheckBreak() + yyb4102 = r.CheckBreak() } - if yyb4094 { + if yyb4102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51463,26 +51583,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4096 := &x.Scopes - yym4097 := z.DecBinary() - _ = yym4097 + yyv4104 := &x.Scopes + yym4105 := z.DecBinary() + _ = yym4105 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4096), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4104), d) } } for { - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4102++ + if yyhl4102 { + yyb4102 = yyj4102 > l } else { - yyb4094 = r.CheckBreak() + yyb4102 = r.CheckBreak() } - if yyb4094 { + if yyb4102 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4094-1, "") + z.DecStructFieldNotFound(yyj4102-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51494,34 +51614,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4098 := z.EncBinary() - _ = yym4098 + yym4106 := z.EncBinary() + _ = yym4106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4099 := !z.EncBinary() - yy2arr4099 := z.EncBasicHandle().StructToArray - var yyq4099 [2]bool - _, _, _ = yysep4099, yyq4099, yy2arr4099 - const yyr4099 bool = false - yyq4099[0] = len(x.Hard) != 0 - yyq4099[1] = len(x.Used) != 0 - var yynn4099 int - if yyr4099 || yy2arr4099 { + yysep4107 := !z.EncBinary() + yy2arr4107 := z.EncBasicHandle().StructToArray + var yyq4107 [2]bool + _, _, _ = yysep4107, yyq4107, yy2arr4107 + const yyr4107 bool = false + yyq4107[0] = len(x.Hard) != 0 + yyq4107[1] = len(x.Used) != 0 + var yynn4107 int + if yyr4107 || yy2arr4107 { r.EncodeArrayStart(2) } else { - yynn4099 = 0 - for _, b := range yyq4099 { + yynn4107 = 0 + for _, b := range yyq4107 { if b { - yynn4099++ + yynn4107++ } } - r.EncodeMapStart(yynn4099) - yynn4099 = 0 + r.EncodeMapStart(yynn4107) + yynn4107 = 0 } - if yyr4099 || yy2arr4099 { + if yyr4107 || yy2arr4107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4099[0] { + if yyq4107[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -51531,7 +51651,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4099[0] { + if yyq4107[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51542,9 +51662,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4099 || yy2arr4099 { + if yyr4107 || yy2arr4107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4099[1] { + if yyq4107[1] { if x.Used == nil { r.EncodeNil() } else { @@ -51554,7 +51674,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4099[1] { + if yyq4107[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51565,7 +51685,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4099 || yy2arr4099 { + if yyr4107 || yy2arr4107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51578,25 +51698,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4102 := z.DecBinary() - _ = yym4102 + yym4110 := z.DecBinary() + _ = yym4110 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4103 := r.ContainerType() - if yyct4103 == codecSelferValueTypeMap1234 { - yyl4103 := r.ReadMapStart() - if yyl4103 == 0 { + yyct4111 := r.ContainerType() + if yyct4111 == codecSelferValueTypeMap1234 { + yyl4111 := r.ReadMapStart() + if yyl4111 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4103, d) + x.codecDecodeSelfFromMap(yyl4111, d) } - } else if yyct4103 == codecSelferValueTypeArray1234 { - yyl4103 := r.ReadArrayStart() - if yyl4103 == 0 { + } else if yyct4111 == codecSelferValueTypeArray1234 { + yyl4111 := r.ReadArrayStart() + if yyl4111 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4103, d) + x.codecDecodeSelfFromArray(yyl4111, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51608,12 +51728,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4104Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4104Slc - var yyhl4104 bool = l >= 0 - for yyj4104 := 0; ; yyj4104++ { - if yyhl4104 { - if yyj4104 >= l { + var yys4112Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4112Slc + var yyhl4112 bool = l >= 0 + for yyj4112 := 0; ; yyj4112++ { + if yyhl4112 { + if yyj4112 >= l { break } } else { @@ -51622,28 +51742,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4104Slc = r.DecodeBytes(yys4104Slc, true, true) - yys4104 := string(yys4104Slc) + yys4112Slc = r.DecodeBytes(yys4112Slc, true, true) + yys4112 := string(yys4112Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4104 { + switch yys4112 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4105 := &x.Hard - yyv4105.CodecDecodeSelf(d) + yyv4113 := &x.Hard + yyv4113.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4106 := &x.Used - yyv4106.CodecDecodeSelf(d) + yyv4114 := &x.Used + yyv4114.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4104) - } // end switch yys4104 - } // end for yyj4104 + z.DecStructFieldNotFound(-1, yys4112) + } // end switch yys4112 + } // end for yyj4112 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51651,16 +51771,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4107 int - var yyb4107 bool - var yyhl4107 bool = l >= 0 - yyj4107++ - if yyhl4107 { - yyb4107 = yyj4107 > l + var yyj4115 int + var yyb4115 bool + var yyhl4115 bool = l >= 0 + yyj4115++ + if yyhl4115 { + yyb4115 = yyj4115 > l } else { - yyb4107 = r.CheckBreak() + yyb4115 = r.CheckBreak() } - if yyb4107 { + if yyb4115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51668,16 +51788,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4108 := &x.Hard - yyv4108.CodecDecodeSelf(d) + yyv4116 := &x.Hard + yyv4116.CodecDecodeSelf(d) } - yyj4107++ - if yyhl4107 { - yyb4107 = yyj4107 > l + yyj4115++ + if yyhl4115 { + yyb4115 = yyj4115 > l } else { - yyb4107 = r.CheckBreak() + yyb4115 = r.CheckBreak() } - if yyb4107 { + if yyb4115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51685,21 +51805,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4109 := &x.Used - yyv4109.CodecDecodeSelf(d) + yyv4117 := &x.Used + yyv4117.CodecDecodeSelf(d) } for { - yyj4107++ - if yyhl4107 { - yyb4107 = yyj4107 > l + yyj4115++ + if yyhl4115 { + yyb4115 = yyj4115 > l } else { - yyb4107 = r.CheckBreak() + yyb4115 = r.CheckBreak() } - if yyb4107 { + if yyb4115 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4107-1, "") + z.DecStructFieldNotFound(yyj4115-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51711,39 +51831,39 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4110 := z.EncBinary() - _ = yym4110 + yym4118 := z.EncBinary() + _ = yym4118 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4111 := !z.EncBinary() - yy2arr4111 := z.EncBasicHandle().StructToArray - var yyq4111 [5]bool - _, _, _ = yysep4111, yyq4111, yy2arr4111 - const yyr4111 bool = false - yyq4111[0] = x.Kind != "" - yyq4111[1] = x.APIVersion != "" - yyq4111[2] = true - yyq4111[3] = true - yyq4111[4] = true - var yynn4111 int - if yyr4111 || yy2arr4111 { + yysep4119 := !z.EncBinary() + yy2arr4119 := z.EncBasicHandle().StructToArray + var yyq4119 [5]bool + _, _, _ = yysep4119, yyq4119, yy2arr4119 + const yyr4119 bool = false + yyq4119[0] = x.Kind != "" + yyq4119[1] = x.APIVersion != "" + yyq4119[2] = true + yyq4119[3] = true + yyq4119[4] = true + var yynn4119 int + if yyr4119 || yy2arr4119 { r.EncodeArrayStart(5) } else { - yynn4111 = 0 - for _, b := range yyq4111 { + yynn4119 = 0 + for _, b := range yyq4119 { if b { - yynn4111++ + yynn4119++ } } - r.EncodeMapStart(yynn4111) - yynn4111 = 0 + r.EncodeMapStart(yynn4119) + yynn4119 = 0 } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4111[0] { - yym4113 := z.EncBinary() - _ = yym4113 + if yyq4119[0] { + yym4121 := z.EncBinary() + _ = yym4121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51752,23 +51872,23 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4111[0] { + if yyq4119[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4114 := z.EncBinary() - _ = yym4114 + yym4122 := z.EncBinary() + _ = yym4122 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4111[1] { - yym4116 := z.EncBinary() - _ = yym4116 + if yyq4119[1] { + yym4124 := z.EncBinary() + _ = yym4124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51777,70 +51897,70 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4111[1] { + if yyq4119[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4117 := z.EncBinary() - _ = yym4117 + yym4125 := z.EncBinary() + _ = yym4125 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4111[2] { - yy4119 := &x.ObjectMeta - yy4119.CodecEncodeSelf(e) + if yyq4119[2] { + yy4127 := &x.ObjectMeta + yy4127.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4111[2] { + if yyq4119[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4120 := &x.ObjectMeta - yy4120.CodecEncodeSelf(e) + yy4128 := &x.ObjectMeta + yy4128.CodecEncodeSelf(e) } } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4111[3] { - yy4122 := &x.Spec - yy4122.CodecEncodeSelf(e) + if yyq4119[3] { + yy4130 := &x.Spec + yy4130.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4111[3] { + if yyq4119[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4123 := &x.Spec - yy4123.CodecEncodeSelf(e) + yy4131 := &x.Spec + yy4131.CodecEncodeSelf(e) } } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4111[4] { - yy4125 := &x.Status - yy4125.CodecEncodeSelf(e) + if yyq4119[4] { + yy4133 := &x.Status + yy4133.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4111[4] { + if yyq4119[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4126 := &x.Status - yy4126.CodecEncodeSelf(e) + yy4134 := &x.Status + yy4134.CodecEncodeSelf(e) } } - if yyr4111 || yy2arr4111 { + if yyr4119 || yy2arr4119 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51853,25 +51973,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4127 := z.DecBinary() - _ = yym4127 + yym4135 := z.DecBinary() + _ = yym4135 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4128 := r.ContainerType() - if yyct4128 == codecSelferValueTypeMap1234 { - yyl4128 := r.ReadMapStart() - if yyl4128 == 0 { + yyct4136 := r.ContainerType() + if yyct4136 == codecSelferValueTypeMap1234 { + yyl4136 := r.ReadMapStart() + if yyl4136 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4128, d) + x.codecDecodeSelfFromMap(yyl4136, d) } - } else if yyct4128 == codecSelferValueTypeArray1234 { - yyl4128 := r.ReadArrayStart() - if yyl4128 == 0 { + } else if yyct4136 == codecSelferValueTypeArray1234 { + yyl4136 := r.ReadArrayStart() + if yyl4136 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4128, d) + x.codecDecodeSelfFromArray(yyl4136, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51883,12 +52003,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4129Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4129Slc - var yyhl4129 bool = l >= 0 - for yyj4129 := 0; ; yyj4129++ { - if yyhl4129 { - if yyj4129 >= l { + var yys4137Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4137Slc + var yyhl4137 bool = l >= 0 + for yyj4137 := 0; ; yyj4137++ { + if yyhl4137 { + if yyj4137 >= l { break } } else { @@ -51897,10 +52017,10 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4129Slc = r.DecodeBytes(yys4129Slc, true, true) - yys4129 := string(yys4129Slc) + yys4137Slc = r.DecodeBytes(yys4137Slc, true, true) + yys4137 := string(yys4137Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4129 { + switch yys4137 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51917,27 +52037,27 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4132 := &x.ObjectMeta - yyv4132.CodecDecodeSelf(d) + yyv4140 := &x.ObjectMeta + yyv4140.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4133 := &x.Spec - yyv4133.CodecDecodeSelf(d) + yyv4141 := &x.Spec + yyv4141.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4134 := &x.Status - yyv4134.CodecDecodeSelf(d) + yyv4142 := &x.Status + yyv4142.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4129) - } // end switch yys4129 - } // end for yyj4129 + z.DecStructFieldNotFound(-1, yys4137) + } // end switch yys4137 + } // end for yyj4137 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51945,16 +52065,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4135 int - var yyb4135 bool - var yyhl4135 bool = l >= 0 - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + var yyj4143 int + var yyb4143 bool + var yyhl4143 bool = l >= 0 + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51964,13 +52084,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51980,13 +52100,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51994,16 +52114,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4138 := &x.ObjectMeta - yyv4138.CodecDecodeSelf(d) + yyv4146 := &x.ObjectMeta + yyv4146.CodecDecodeSelf(d) } - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52011,16 +52131,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4139 := &x.Spec - yyv4139.CodecDecodeSelf(d) + yyv4147 := &x.Spec + yyv4147.CodecDecodeSelf(d) } - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52028,21 +52148,21 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4140 := &x.Status - yyv4140.CodecDecodeSelf(d) + yyv4148 := &x.Status + yyv4148.CodecDecodeSelf(d) } for { - yyj4135++ - if yyhl4135 { - yyb4135 = yyj4135 > l + yyj4143++ + if yyhl4143 { + yyb4143 = yyj4143 > l } else { - yyb4135 = r.CheckBreak() + yyb4143 = r.CheckBreak() } - if yyb4135 { + if yyb4143 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4135-1, "") + z.DecStructFieldNotFound(yyj4143-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52054,37 +52174,37 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4141 := z.EncBinary() - _ = yym4141 + yym4149 := z.EncBinary() + _ = yym4149 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4142 := !z.EncBinary() - yy2arr4142 := z.EncBasicHandle().StructToArray - var yyq4142 [4]bool - _, _, _ = yysep4142, yyq4142, yy2arr4142 - const yyr4142 bool = false - yyq4142[0] = x.Kind != "" - yyq4142[1] = x.APIVersion != "" - yyq4142[2] = true - var yynn4142 int - if yyr4142 || yy2arr4142 { + yysep4150 := !z.EncBinary() + yy2arr4150 := z.EncBasicHandle().StructToArray + var yyq4150 [4]bool + _, _, _ = yysep4150, yyq4150, yy2arr4150 + const yyr4150 bool = false + yyq4150[0] = x.Kind != "" + yyq4150[1] = x.APIVersion != "" + yyq4150[2] = true + var yynn4150 int + if yyr4150 || yy2arr4150 { r.EncodeArrayStart(4) } else { - yynn4142 = 1 - for _, b := range yyq4142 { + yynn4150 = 1 + for _, b := range yyq4150 { if b { - yynn4142++ + yynn4150++ } } - r.EncodeMapStart(yynn4142) - yynn4142 = 0 + r.EncodeMapStart(yynn4150) + yynn4150 = 0 } - if yyr4142 || yy2arr4142 { + if yyr4150 || yy2arr4150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4142[0] { - yym4144 := z.EncBinary() - _ = yym4144 + if yyq4150[0] { + yym4152 := z.EncBinary() + _ = yym4152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52093,23 +52213,23 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4142[0] { + if yyq4150[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4145 := z.EncBinary() - _ = yym4145 + yym4153 := z.EncBinary() + _ = yym4153 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4142 || yy2arr4142 { + if yyr4150 || yy2arr4150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4142[1] { - yym4147 := z.EncBinary() - _ = yym4147 + if yyq4150[1] { + yym4155 := z.EncBinary() + _ = yym4155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52118,54 +52238,54 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4142[1] { + if yyq4150[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4148 := z.EncBinary() - _ = yym4148 + yym4156 := z.EncBinary() + _ = yym4156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4142 || yy2arr4142 { + if yyr4150 || yy2arr4150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4142[2] { - yy4150 := &x.ListMeta - yym4151 := z.EncBinary() - _ = yym4151 + if yyq4150[2] { + yy4158 := &x.ListMeta + yym4159 := z.EncBinary() + _ = yym4159 if false { - } else if z.HasExtensions() && z.EncExt(yy4150) { + } else if z.HasExtensions() && z.EncExt(yy4158) { } else { - z.EncFallback(yy4150) + z.EncFallback(yy4158) } } else { r.EncodeNil() } } else { - if yyq4142[2] { + if yyq4150[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4152 := &x.ListMeta - yym4153 := z.EncBinary() - _ = yym4153 + yy4160 := &x.ListMeta + yym4161 := z.EncBinary() + _ = yym4161 if false { - } else if z.HasExtensions() && z.EncExt(yy4152) { + } else if z.HasExtensions() && z.EncExt(yy4160) { } else { - z.EncFallback(yy4152) + z.EncFallback(yy4160) } } } - if yyr4142 || yy2arr4142 { + if yyr4150 || yy2arr4150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4155 := z.EncBinary() - _ = yym4155 + yym4163 := z.EncBinary() + _ = yym4163 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) @@ -52178,15 +52298,15 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4156 := z.EncBinary() - _ = yym4156 + yym4164 := z.EncBinary() + _ = yym4164 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr4142 || yy2arr4142 { + if yyr4150 || yy2arr4150 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52199,25 +52319,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4157 := z.DecBinary() - _ = yym4157 + yym4165 := z.DecBinary() + _ = yym4165 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4158 := r.ContainerType() - if yyct4158 == codecSelferValueTypeMap1234 { - yyl4158 := r.ReadMapStart() - if yyl4158 == 0 { + yyct4166 := r.ContainerType() + if yyct4166 == codecSelferValueTypeMap1234 { + yyl4166 := r.ReadMapStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4158, d) + x.codecDecodeSelfFromMap(yyl4166, d) } - } else if yyct4158 == codecSelferValueTypeArray1234 { - yyl4158 := r.ReadArrayStart() - if yyl4158 == 0 { + } else if yyct4166 == codecSelferValueTypeArray1234 { + yyl4166 := r.ReadArrayStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4158, d) + x.codecDecodeSelfFromArray(yyl4166, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52229,12 +52349,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4159Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4159Slc - var yyhl4159 bool = l >= 0 - for yyj4159 := 0; ; yyj4159++ { - if yyhl4159 { - if yyj4159 >= l { + var yys4167Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4167Slc + var yyhl4167 bool = l >= 0 + for yyj4167 := 0; ; yyj4167++ { + if yyhl4167 { + if yyj4167 >= l { break } } else { @@ -52243,10 +52363,10 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4159Slc = r.DecodeBytes(yys4159Slc, true, true) - yys4159 := string(yys4159Slc) + yys4167Slc = r.DecodeBytes(yys4167Slc, true, true) + yys4167 := string(yys4167Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4159 { + switch yys4167 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52263,31 +52383,31 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4162 := &x.ListMeta - yym4163 := z.DecBinary() - _ = yym4163 + yyv4170 := &x.ListMeta + yym4171 := z.DecBinary() + _ = yym4171 if false { - } else if z.HasExtensions() && z.DecExt(yyv4162) { + } else if z.HasExtensions() && z.DecExt(yyv4170) { } else { - z.DecFallback(yyv4162, false) + z.DecFallback(yyv4170, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4164 := &x.Items - yym4165 := z.DecBinary() - _ = yym4165 + yyv4172 := &x.Items + yym4173 := z.DecBinary() + _ = yym4173 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4164), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4172), d) } } default: - z.DecStructFieldNotFound(-1, yys4159) - } // end switch yys4159 - } // end for yyj4159 + z.DecStructFieldNotFound(-1, yys4167) + } // end switch yys4167 + } // end for yyj4167 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52295,16 +52415,16 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4166 int - var yyb4166 bool - var yyhl4166 bool = l >= 0 - yyj4166++ - if yyhl4166 { - yyb4166 = yyj4166 > l + var yyj4174 int + var yyb4174 bool + var yyhl4174 bool = l >= 0 + yyj4174++ + if yyhl4174 { + yyb4174 = yyj4174 > l } else { - yyb4166 = r.CheckBreak() + yyb4174 = r.CheckBreak() } - if yyb4166 { + if yyb4174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52314,13 +52434,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj4166++ - if yyhl4166 { - yyb4166 = yyj4166 > l + yyj4174++ + if yyhl4174 { + yyb4174 = yyj4174 > l } else { - yyb4166 = r.CheckBreak() + yyb4174 = r.CheckBreak() } - if yyb4166 { + if yyb4174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52330,13 +52450,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj4166++ - if yyhl4166 { - yyb4166 = yyj4166 > l + yyj4174++ + if yyhl4174 { + yyb4174 = yyj4174 > l } else { - yyb4166 = r.CheckBreak() + yyb4174 = r.CheckBreak() } - if yyb4166 { + if yyb4174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52344,22 +52464,22 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4169 := &x.ListMeta - yym4170 := z.DecBinary() - _ = yym4170 + yyv4177 := &x.ListMeta + yym4178 := z.DecBinary() + _ = yym4178 if false { - } else if z.HasExtensions() && z.DecExt(yyv4169) { + } else if z.HasExtensions() && z.DecExt(yyv4177) { } else { - z.DecFallback(yyv4169, false) + z.DecFallback(yyv4177, false) } } - yyj4166++ - if yyhl4166 { - yyb4166 = yyj4166 > l + yyj4174++ + if yyhl4174 { + yyb4174 = yyj4174 > l } else { - yyb4166 = r.CheckBreak() + yyb4174 = r.CheckBreak() } - if yyb4166 { + if yyb4174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52367,26 +52487,26 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4171 := &x.Items - yym4172 := z.DecBinary() - _ = yym4172 + yyv4179 := &x.Items + yym4180 := z.DecBinary() + _ = yym4180 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4171), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4179), d) } } for { - yyj4166++ - if yyhl4166 { - yyb4166 = yyj4166 > l + yyj4174++ + if yyhl4174 { + yyb4174 = yyj4174 > l } else { - yyb4166 = r.CheckBreak() + yyb4174 = r.CheckBreak() } - if yyb4166 { + if yyb4174 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4166-1, "") + z.DecStructFieldNotFound(yyj4174-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52398,40 +52518,40 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4173 := z.EncBinary() - _ = yym4173 + yym4181 := z.EncBinary() + _ = yym4181 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4174 := !z.EncBinary() - yy2arr4174 := z.EncBasicHandle().StructToArray - var yyq4174 [6]bool - _, _, _ = yysep4174, yyq4174, yy2arr4174 - const yyr4174 bool = false - yyq4174[0] = x.Kind != "" - yyq4174[1] = x.APIVersion != "" - yyq4174[2] = true - yyq4174[3] = len(x.Data) != 0 - yyq4174[4] = len(x.StringData) != 0 - yyq4174[5] = x.Type != "" - var yynn4174 int - if yyr4174 || yy2arr4174 { + yysep4182 := !z.EncBinary() + yy2arr4182 := z.EncBasicHandle().StructToArray + var yyq4182 [6]bool + _, _, _ = yysep4182, yyq4182, yy2arr4182 + const yyr4182 bool = false + yyq4182[0] = x.Kind != "" + yyq4182[1] = x.APIVersion != "" + yyq4182[2] = true + yyq4182[3] = len(x.Data) != 0 + yyq4182[4] = len(x.StringData) != 0 + yyq4182[5] = x.Type != "" + var yynn4182 int + if yyr4182 || yy2arr4182 { r.EncodeArrayStart(6) } else { - yynn4174 = 0 - for _, b := range yyq4174 { + yynn4182 = 0 + for _, b := range yyq4182 { if b { - yynn4174++ + yynn4182++ } } - r.EncodeMapStart(yynn4174) - yynn4174 = 0 + r.EncodeMapStart(yynn4182) + yynn4182 = 0 } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[0] { - yym4176 := z.EncBinary() - _ = yym4176 + if yyq4182[0] { + yym4184 := z.EncBinary() + _ = yym4184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52440,23 +52560,23 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4174[0] { + if yyq4182[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4177 := z.EncBinary() - _ = yym4177 + yym4185 := z.EncBinary() + _ = yym4185 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[1] { - yym4179 := z.EncBinary() - _ = yym4179 + if yyq4182[1] { + yym4187 := z.EncBinary() + _ = yym4187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52465,43 +52585,43 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4174[1] { + if yyq4182[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4180 := z.EncBinary() - _ = yym4180 + yym4188 := z.EncBinary() + _ = yym4188 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[2] { - yy4182 := &x.ObjectMeta - yy4182.CodecEncodeSelf(e) + if yyq4182[2] { + yy4190 := &x.ObjectMeta + yy4190.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4174[2] { + if yyq4182[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4183 := &x.ObjectMeta - yy4183.CodecEncodeSelf(e) + yy4191 := &x.ObjectMeta + yy4191.CodecEncodeSelf(e) } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[3] { + if yyq4182[3] { if x.Data == nil { r.EncodeNil() } else { - yym4185 := z.EncBinary() - _ = yym4185 + yym4193 := z.EncBinary() + _ = yym4193 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52511,15 +52631,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4174[3] { + if yyq4182[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4186 := z.EncBinary() - _ = yym4186 + yym4194 := z.EncBinary() + _ = yym4194 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52527,14 +52647,14 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[4] { + if yyq4182[4] { if x.StringData == nil { r.EncodeNil() } else { - yym4188 := z.EncBinary() - _ = yym4188 + yym4196 := z.EncBinary() + _ = yym4196 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -52544,15 +52664,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4174[4] { + if yyq4182[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stringData")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StringData == nil { r.EncodeNil() } else { - yym4189 := z.EncBinary() - _ = yym4189 + yym4197 := z.EncBinary() + _ = yym4197 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -52560,22 +52680,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4174[5] { + if yyq4182[5] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4174[5] { + if yyq4182[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4174 || yy2arr4174 { + if yyr4182 || yy2arr4182 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52588,25 +52708,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4191 := z.DecBinary() - _ = yym4191 + yym4199 := z.DecBinary() + _ = yym4199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4192 := r.ContainerType() - if yyct4192 == codecSelferValueTypeMap1234 { - yyl4192 := r.ReadMapStart() - if yyl4192 == 0 { + yyct4200 := r.ContainerType() + if yyct4200 == codecSelferValueTypeMap1234 { + yyl4200 := r.ReadMapStart() + if yyl4200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4192, d) + x.codecDecodeSelfFromMap(yyl4200, d) } - } else if yyct4192 == codecSelferValueTypeArray1234 { - yyl4192 := r.ReadArrayStart() - if yyl4192 == 0 { + } else if yyct4200 == codecSelferValueTypeArray1234 { + yyl4200 := r.ReadArrayStart() + if yyl4200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4192, d) + x.codecDecodeSelfFromArray(yyl4200, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52618,12 +52738,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4193Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4193Slc - var yyhl4193 bool = l >= 0 - for yyj4193 := 0; ; yyj4193++ { - if yyhl4193 { - if yyj4193 >= l { + var yys4201Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4201Slc + var yyhl4201 bool = l >= 0 + for yyj4201 := 0; ; yyj4201++ { + if yyhl4201 { + if yyj4201 >= l { break } } else { @@ -52632,10 +52752,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4193Slc = r.DecodeBytes(yys4193Slc, true, true) - yys4193 := string(yys4193Slc) + yys4201Slc = r.DecodeBytes(yys4201Slc, true, true) + yys4201 := string(yys4201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4193 { + switch yys4201 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52652,31 +52772,31 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4196 := &x.ObjectMeta - yyv4196.CodecDecodeSelf(d) + yyv4204 := &x.ObjectMeta + yyv4204.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4197 := &x.Data - yym4198 := z.DecBinary() - _ = yym4198 + yyv4205 := &x.Data + yym4206 := z.DecBinary() + _ = yym4206 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4197), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4205), d) } } case "stringData": if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4199 := &x.StringData - yym4200 := z.DecBinary() - _ = yym4200 + yyv4207 := &x.StringData + yym4208 := z.DecBinary() + _ = yym4208 if false { } else { - z.F.DecMapStringStringX(yyv4199, false, d) + z.F.DecMapStringStringX(yyv4207, false, d) } } case "type": @@ -52686,9 +52806,9 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4193) - } // end switch yys4193 - } // end for yyj4193 + z.DecStructFieldNotFound(-1, yys4201) + } // end switch yys4201 + } // end for yyj4201 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52696,16 +52816,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4202 int - var yyb4202 bool - var yyhl4202 bool = l >= 0 - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + var yyj4210 int + var yyb4210 bool + var yyhl4210 bool = l >= 0 + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52715,13 +52835,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52731,13 +52851,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52745,16 +52865,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4205 := &x.ObjectMeta - yyv4205.CodecDecodeSelf(d) + yyv4213 := &x.ObjectMeta + yyv4213.CodecDecodeSelf(d) } - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52762,21 +52882,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4206 := &x.Data - yym4207 := z.DecBinary() - _ = yym4207 + yyv4214 := &x.Data + yym4215 := z.DecBinary() + _ = yym4215 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4206), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4214), d) } } - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52784,21 +52904,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4208 := &x.StringData - yym4209 := z.DecBinary() - _ = yym4209 + yyv4216 := &x.StringData + yym4217 := z.DecBinary() + _ = yym4217 if false { } else { - z.F.DecMapStringStringX(yyv4208, false, d) + z.F.DecMapStringStringX(yyv4216, false, d) } } - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52809,17 +52929,17 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } for { - yyj4202++ - if yyhl4202 { - yyb4202 = yyj4202 > l + yyj4210++ + if yyhl4210 { + yyb4210 = yyj4210 > l } else { - yyb4202 = r.CheckBreak() + yyb4210 = r.CheckBreak() } - if yyb4202 { + if yyb4210 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4202-1, "") + z.DecStructFieldNotFound(yyj4210-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52828,8 +52948,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4211 := z.EncBinary() - _ = yym4211 + yym4219 := z.EncBinary() + _ = yym4219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -52841,8 +52961,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4212 := z.DecBinary() - _ = yym4212 + yym4220 := z.DecBinary() + _ = yym4220 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -52857,37 +52977,37 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4213 := z.EncBinary() - _ = yym4213 + yym4221 := z.EncBinary() + _ = yym4221 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4214 := !z.EncBinary() - yy2arr4214 := z.EncBasicHandle().StructToArray - var yyq4214 [4]bool - _, _, _ = yysep4214, yyq4214, yy2arr4214 - const yyr4214 bool = false - yyq4214[0] = x.Kind != "" - yyq4214[1] = x.APIVersion != "" - yyq4214[2] = true - var yynn4214 int - if yyr4214 || yy2arr4214 { + yysep4222 := !z.EncBinary() + yy2arr4222 := z.EncBasicHandle().StructToArray + var yyq4222 [4]bool + _, _, _ = yysep4222, yyq4222, yy2arr4222 + const yyr4222 bool = false + yyq4222[0] = x.Kind != "" + yyq4222[1] = x.APIVersion != "" + yyq4222[2] = true + var yynn4222 int + if yyr4222 || yy2arr4222 { r.EncodeArrayStart(4) } else { - yynn4214 = 1 - for _, b := range yyq4214 { + yynn4222 = 1 + for _, b := range yyq4222 { if b { - yynn4214++ + yynn4222++ } } - r.EncodeMapStart(yynn4214) - yynn4214 = 0 + r.EncodeMapStart(yynn4222) + yynn4222 = 0 } - if yyr4214 || yy2arr4214 { + if yyr4222 || yy2arr4222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4214[0] { - yym4216 := z.EncBinary() - _ = yym4216 + if yyq4222[0] { + yym4224 := z.EncBinary() + _ = yym4224 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52896,23 +53016,23 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4214[0] { + if yyq4222[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4217 := z.EncBinary() - _ = yym4217 + yym4225 := z.EncBinary() + _ = yym4225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4214 || yy2arr4214 { + if yyr4222 || yy2arr4222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4214[1] { - yym4219 := z.EncBinary() - _ = yym4219 + if yyq4222[1] { + yym4227 := z.EncBinary() + _ = yym4227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52921,54 +53041,54 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4214[1] { + if yyq4222[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4220 := z.EncBinary() - _ = yym4220 + yym4228 := z.EncBinary() + _ = yym4228 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4214 || yy2arr4214 { + if yyr4222 || yy2arr4222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4214[2] { - yy4222 := &x.ListMeta - yym4223 := z.EncBinary() - _ = yym4223 + if yyq4222[2] { + yy4230 := &x.ListMeta + yym4231 := z.EncBinary() + _ = yym4231 if false { - } else if z.HasExtensions() && z.EncExt(yy4222) { + } else if z.HasExtensions() && z.EncExt(yy4230) { } else { - z.EncFallback(yy4222) + z.EncFallback(yy4230) } } else { r.EncodeNil() } } else { - if yyq4214[2] { + if yyq4222[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4224 := &x.ListMeta - yym4225 := z.EncBinary() - _ = yym4225 + yy4232 := &x.ListMeta + yym4233 := z.EncBinary() + _ = yym4233 if false { - } else if z.HasExtensions() && z.EncExt(yy4224) { + } else if z.HasExtensions() && z.EncExt(yy4232) { } else { - z.EncFallback(yy4224) + z.EncFallback(yy4232) } } } - if yyr4214 || yy2arr4214 { + if yyr4222 || yy2arr4222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4227 := z.EncBinary() - _ = yym4227 + yym4235 := z.EncBinary() + _ = yym4235 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) @@ -52981,15 +53101,15 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4228 := z.EncBinary() - _ = yym4228 + yym4236 := z.EncBinary() + _ = yym4236 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr4214 || yy2arr4214 { + if yyr4222 || yy2arr4222 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53002,25 +53122,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4229 := z.DecBinary() - _ = yym4229 + yym4237 := z.DecBinary() + _ = yym4237 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4230 := r.ContainerType() - if yyct4230 == codecSelferValueTypeMap1234 { - yyl4230 := r.ReadMapStart() - if yyl4230 == 0 { + yyct4238 := r.ContainerType() + if yyct4238 == codecSelferValueTypeMap1234 { + yyl4238 := r.ReadMapStart() + if yyl4238 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4230, d) + x.codecDecodeSelfFromMap(yyl4238, d) } - } else if yyct4230 == codecSelferValueTypeArray1234 { - yyl4230 := r.ReadArrayStart() - if yyl4230 == 0 { + } else if yyct4238 == codecSelferValueTypeArray1234 { + yyl4238 := r.ReadArrayStart() + if yyl4238 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4230, d) + x.codecDecodeSelfFromArray(yyl4238, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53032,12 +53152,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4231Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4231Slc - var yyhl4231 bool = l >= 0 - for yyj4231 := 0; ; yyj4231++ { - if yyhl4231 { - if yyj4231 >= l { + var yys4239Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4239Slc + var yyhl4239 bool = l >= 0 + for yyj4239 := 0; ; yyj4239++ { + if yyhl4239 { + if yyj4239 >= l { break } } else { @@ -53046,10 +53166,10 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4231Slc = r.DecodeBytes(yys4231Slc, true, true) - yys4231 := string(yys4231Slc) + yys4239Slc = r.DecodeBytes(yys4239Slc, true, true) + yys4239 := string(yys4239Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4231 { + switch yys4239 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53066,31 +53186,31 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4234 := &x.ListMeta - yym4235 := z.DecBinary() - _ = yym4235 + yyv4242 := &x.ListMeta + yym4243 := z.DecBinary() + _ = yym4243 if false { - } else if z.HasExtensions() && z.DecExt(yyv4234) { + } else if z.HasExtensions() && z.DecExt(yyv4242) { } else { - z.DecFallback(yyv4234, false) + z.DecFallback(yyv4242, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4236 := &x.Items - yym4237 := z.DecBinary() - _ = yym4237 + yyv4244 := &x.Items + yym4245 := z.DecBinary() + _ = yym4245 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4236), d) + h.decSliceSecret((*[]Secret)(yyv4244), d) } } default: - z.DecStructFieldNotFound(-1, yys4231) - } // end switch yys4231 - } // end for yyj4231 + z.DecStructFieldNotFound(-1, yys4239) + } // end switch yys4239 + } // end for yyj4239 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53098,16 +53218,16 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4238 int - var yyb4238 bool - var yyhl4238 bool = l >= 0 - yyj4238++ - if yyhl4238 { - yyb4238 = yyj4238 > l + var yyj4246 int + var yyb4246 bool + var yyhl4246 bool = l >= 0 + yyj4246++ + if yyhl4246 { + yyb4246 = yyj4246 > l } else { - yyb4238 = r.CheckBreak() + yyb4246 = r.CheckBreak() } - if yyb4238 { + if yyb4246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53117,13 +53237,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4238++ - if yyhl4238 { - yyb4238 = yyj4238 > l + yyj4246++ + if yyhl4246 { + yyb4246 = yyj4246 > l } else { - yyb4238 = r.CheckBreak() + yyb4246 = r.CheckBreak() } - if yyb4238 { + if yyb4246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53133,13 +53253,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4238++ - if yyhl4238 { - yyb4238 = yyj4238 > l + yyj4246++ + if yyhl4246 { + yyb4246 = yyj4246 > l } else { - yyb4238 = r.CheckBreak() + yyb4246 = r.CheckBreak() } - if yyb4238 { + if yyb4246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53147,22 +53267,22 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4241 := &x.ListMeta - yym4242 := z.DecBinary() - _ = yym4242 + yyv4249 := &x.ListMeta + yym4250 := z.DecBinary() + _ = yym4250 if false { - } else if z.HasExtensions() && z.DecExt(yyv4241) { + } else if z.HasExtensions() && z.DecExt(yyv4249) { } else { - z.DecFallback(yyv4241, false) + z.DecFallback(yyv4249, false) } } - yyj4238++ - if yyhl4238 { - yyb4238 = yyj4238 > l + yyj4246++ + if yyhl4246 { + yyb4246 = yyj4246 > l } else { - yyb4238 = r.CheckBreak() + yyb4246 = r.CheckBreak() } - if yyb4238 { + if yyb4246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53170,26 +53290,26 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4243 := &x.Items - yym4244 := z.DecBinary() - _ = yym4244 + yyv4251 := &x.Items + yym4252 := z.DecBinary() + _ = yym4252 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4243), d) + h.decSliceSecret((*[]Secret)(yyv4251), d) } } for { - yyj4238++ - if yyhl4238 { - yyb4238 = yyj4238 > l + yyj4246++ + if yyhl4246 { + yyb4246 = yyj4246 > l } else { - yyb4238 = r.CheckBreak() + yyb4246 = r.CheckBreak() } - if yyb4238 { + if yyb4246 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4238-1, "") + z.DecStructFieldNotFound(yyj4246-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53201,38 +53321,38 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4245 := z.EncBinary() - _ = yym4245 + yym4253 := z.EncBinary() + _ = yym4253 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4246 := !z.EncBinary() - yy2arr4246 := z.EncBasicHandle().StructToArray - var yyq4246 [4]bool - _, _, _ = yysep4246, yyq4246, yy2arr4246 - const yyr4246 bool = false - yyq4246[0] = x.Kind != "" - yyq4246[1] = x.APIVersion != "" - yyq4246[2] = true - yyq4246[3] = len(x.Data) != 0 - var yynn4246 int - if yyr4246 || yy2arr4246 { + yysep4254 := !z.EncBinary() + yy2arr4254 := z.EncBasicHandle().StructToArray + var yyq4254 [4]bool + _, _, _ = yysep4254, yyq4254, yy2arr4254 + const yyr4254 bool = false + yyq4254[0] = x.Kind != "" + yyq4254[1] = x.APIVersion != "" + yyq4254[2] = true + yyq4254[3] = len(x.Data) != 0 + var yynn4254 int + if yyr4254 || yy2arr4254 { r.EncodeArrayStart(4) } else { - yynn4246 = 0 - for _, b := range yyq4246 { + yynn4254 = 0 + for _, b := range yyq4254 { if b { - yynn4246++ + yynn4254++ } } - r.EncodeMapStart(yynn4246) - yynn4246 = 0 + r.EncodeMapStart(yynn4254) + yynn4254 = 0 } - if yyr4246 || yy2arr4246 { + if yyr4254 || yy2arr4254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4246[0] { - yym4248 := z.EncBinary() - _ = yym4248 + if yyq4254[0] { + yym4256 := z.EncBinary() + _ = yym4256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53241,23 +53361,23 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4246[0] { + if yyq4254[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4249 := z.EncBinary() - _ = yym4249 + yym4257 := z.EncBinary() + _ = yym4257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4246 || yy2arr4246 { + if yyr4254 || yy2arr4254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4246[1] { - yym4251 := z.EncBinary() - _ = yym4251 + if yyq4254[1] { + yym4259 := z.EncBinary() + _ = yym4259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53266,43 +53386,43 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4246[1] { + if yyq4254[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4252 := z.EncBinary() - _ = yym4252 + yym4260 := z.EncBinary() + _ = yym4260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4246 || yy2arr4246 { + if yyr4254 || yy2arr4254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4246[2] { - yy4254 := &x.ObjectMeta - yy4254.CodecEncodeSelf(e) + if yyq4254[2] { + yy4262 := &x.ObjectMeta + yy4262.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4246[2] { + if yyq4254[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4255 := &x.ObjectMeta - yy4255.CodecEncodeSelf(e) + yy4263 := &x.ObjectMeta + yy4263.CodecEncodeSelf(e) } } - if yyr4246 || yy2arr4246 { + if yyr4254 || yy2arr4254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4246[3] { + if yyq4254[3] { if x.Data == nil { r.EncodeNil() } else { - yym4257 := z.EncBinary() - _ = yym4257 + yym4265 := z.EncBinary() + _ = yym4265 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -53312,15 +53432,15 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4246[3] { + if yyq4254[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4258 := z.EncBinary() - _ = yym4258 + yym4266 := z.EncBinary() + _ = yym4266 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -53328,7 +53448,7 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4246 || yy2arr4246 { + if yyr4254 || yy2arr4254 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53341,25 +53461,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4259 := z.DecBinary() - _ = yym4259 + yym4267 := z.DecBinary() + _ = yym4267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4260 := r.ContainerType() - if yyct4260 == codecSelferValueTypeMap1234 { - yyl4260 := r.ReadMapStart() - if yyl4260 == 0 { + yyct4268 := r.ContainerType() + if yyct4268 == codecSelferValueTypeMap1234 { + yyl4268 := r.ReadMapStart() + if yyl4268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4260, d) + x.codecDecodeSelfFromMap(yyl4268, d) } - } else if yyct4260 == codecSelferValueTypeArray1234 { - yyl4260 := r.ReadArrayStart() - if yyl4260 == 0 { + } else if yyct4268 == codecSelferValueTypeArray1234 { + yyl4268 := r.ReadArrayStart() + if yyl4268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4260, d) + x.codecDecodeSelfFromArray(yyl4268, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53371,12 +53491,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4261Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4261Slc - var yyhl4261 bool = l >= 0 - for yyj4261 := 0; ; yyj4261++ { - if yyhl4261 { - if yyj4261 >= l { + var yys4269Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4269Slc + var yyhl4269 bool = l >= 0 + for yyj4269 := 0; ; yyj4269++ { + if yyhl4269 { + if yyj4269 >= l { break } } else { @@ -53385,10 +53505,10 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4261Slc = r.DecodeBytes(yys4261Slc, true, true) - yys4261 := string(yys4261Slc) + yys4269Slc = r.DecodeBytes(yys4269Slc, true, true) + yys4269 := string(yys4269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4261 { + switch yys4269 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53405,25 +53525,25 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4264 := &x.ObjectMeta - yyv4264.CodecDecodeSelf(d) + yyv4272 := &x.ObjectMeta + yyv4272.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4265 := &x.Data - yym4266 := z.DecBinary() - _ = yym4266 + yyv4273 := &x.Data + yym4274 := z.DecBinary() + _ = yym4274 if false { } else { - z.F.DecMapStringStringX(yyv4265, false, d) + z.F.DecMapStringStringX(yyv4273, false, d) } } default: - z.DecStructFieldNotFound(-1, yys4261) - } // end switch yys4261 - } // end for yyj4261 + z.DecStructFieldNotFound(-1, yys4269) + } // end switch yys4269 + } // end for yyj4269 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53431,16 +53551,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4267 int - var yyb4267 bool - var yyhl4267 bool = l >= 0 - yyj4267++ - if yyhl4267 { - yyb4267 = yyj4267 > l + var yyj4275 int + var yyb4275 bool + var yyhl4275 bool = l >= 0 + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l } else { - yyb4267 = r.CheckBreak() + yyb4275 = r.CheckBreak() } - if yyb4267 { + if yyb4275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53450,13 +53570,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4267++ - if yyhl4267 { - yyb4267 = yyj4267 > l + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l } else { - yyb4267 = r.CheckBreak() + yyb4275 = r.CheckBreak() } - if yyb4267 { + if yyb4275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53466,13 +53586,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4267++ - if yyhl4267 { - yyb4267 = yyj4267 > l + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l } else { - yyb4267 = r.CheckBreak() + yyb4275 = r.CheckBreak() } - if yyb4267 { + if yyb4275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53480,16 +53600,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4270 := &x.ObjectMeta - yyv4270.CodecDecodeSelf(d) + yyv4278 := &x.ObjectMeta + yyv4278.CodecDecodeSelf(d) } - yyj4267++ - if yyhl4267 { - yyb4267 = yyj4267 > l + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l } else { - yyb4267 = r.CheckBreak() + yyb4275 = r.CheckBreak() } - if yyb4267 { + if yyb4275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53497,26 +53617,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4271 := &x.Data - yym4272 := z.DecBinary() - _ = yym4272 + yyv4279 := &x.Data + yym4280 := z.DecBinary() + _ = yym4280 if false { } else { - z.F.DecMapStringStringX(yyv4271, false, d) + z.F.DecMapStringStringX(yyv4279, false, d) } } for { - yyj4267++ - if yyhl4267 { - yyb4267 = yyj4267 > l + yyj4275++ + if yyhl4275 { + yyb4275 = yyj4275 > l } else { - yyb4267 = r.CheckBreak() + yyb4275 = r.CheckBreak() } - if yyb4267 { + if yyb4275 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4267-1, "") + z.DecStructFieldNotFound(yyj4275-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53528,37 +53648,37 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4273 := z.EncBinary() - _ = yym4273 + yym4281 := z.EncBinary() + _ = yym4281 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 - var yynn4274 int - if yyr4274 || yy2arr4274 { + yysep4282 := !z.EncBinary() + yy2arr4282 := z.EncBasicHandle().StructToArray + var yyq4282 [4]bool + _, _, _ = yysep4282, yyq4282, yy2arr4282 + const yyr4282 bool = false + yyq4282[0] = x.Kind != "" + yyq4282[1] = x.APIVersion != "" + yyq4282[2] = true + var yynn4282 int + if yyr4282 || yy2arr4282 { r.EncodeArrayStart(4) } else { - yynn4274 = 1 - for _, b := range yyq4274 { + yynn4282 = 1 + for _, b := range yyq4282 { if b { - yynn4274++ + yynn4282++ } } - r.EncodeMapStart(yynn4274) - yynn4274 = 0 + r.EncodeMapStart(yynn4282) + yynn4282 = 0 } - if yyr4274 || yy2arr4274 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[0] { - yym4276 := z.EncBinary() - _ = yym4276 + if yyq4282[0] { + yym4284 := z.EncBinary() + _ = yym4284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53567,23 +53687,23 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4274[0] { + if yyq4282[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4277 := z.EncBinary() - _ = yym4277 + yym4285 := z.EncBinary() + _ = yym4285 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4274 || yy2arr4274 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[1] { - yym4279 := z.EncBinary() - _ = yym4279 + if yyq4282[1] { + yym4287 := z.EncBinary() + _ = yym4287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53592,54 +53712,54 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4274[1] { + if yyq4282[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4280 := z.EncBinary() - _ = yym4280 + yym4288 := z.EncBinary() + _ = yym4288 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4274 || yy2arr4274 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[2] { - yy4282 := &x.ListMeta - yym4283 := z.EncBinary() - _ = yym4283 + if yyq4282[2] { + yy4290 := &x.ListMeta + yym4291 := z.EncBinary() + _ = yym4291 if false { - } else if z.HasExtensions() && z.EncExt(yy4282) { + } else if z.HasExtensions() && z.EncExt(yy4290) { } else { - z.EncFallback(yy4282) + z.EncFallback(yy4290) } } else { r.EncodeNil() } } else { - if yyq4274[2] { + if yyq4282[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4284 := &x.ListMeta - yym4285 := z.EncBinary() - _ = yym4285 + yy4292 := &x.ListMeta + yym4293 := z.EncBinary() + _ = yym4293 if false { - } else if z.HasExtensions() && z.EncExt(yy4284) { + } else if z.HasExtensions() && z.EncExt(yy4292) { } else { - z.EncFallback(yy4284) + z.EncFallback(yy4292) } } } - if yyr4274 || yy2arr4274 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4287 := z.EncBinary() - _ = yym4287 + yym4295 := z.EncBinary() + _ = yym4295 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) @@ -53652,15 +53772,15 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4288 := z.EncBinary() - _ = yym4288 + yym4296 := z.EncBinary() + _ = yym4296 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr4274 || yy2arr4274 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53673,25 +53793,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4289 := z.DecBinary() - _ = yym4289 + yym4297 := z.DecBinary() + _ = yym4297 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4290 := r.ContainerType() - if yyct4290 == codecSelferValueTypeMap1234 { - yyl4290 := r.ReadMapStart() - if yyl4290 == 0 { + yyct4298 := r.ContainerType() + if yyct4298 == codecSelferValueTypeMap1234 { + yyl4298 := r.ReadMapStart() + if yyl4298 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4290, d) + x.codecDecodeSelfFromMap(yyl4298, d) } - } else if yyct4290 == codecSelferValueTypeArray1234 { - yyl4290 := r.ReadArrayStart() - if yyl4290 == 0 { + } else if yyct4298 == codecSelferValueTypeArray1234 { + yyl4298 := r.ReadArrayStart() + if yyl4298 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4290, d) + x.codecDecodeSelfFromArray(yyl4298, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53703,12 +53823,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4291Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4291Slc - var yyhl4291 bool = l >= 0 - for yyj4291 := 0; ; yyj4291++ { - if yyhl4291 { - if yyj4291 >= l { + var yys4299Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4299Slc + var yyhl4299 bool = l >= 0 + for yyj4299 := 0; ; yyj4299++ { + if yyhl4299 { + if yyj4299 >= l { break } } else { @@ -53717,10 +53837,10 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4291Slc = r.DecodeBytes(yys4291Slc, true, true) - yys4291 := string(yys4291Slc) + yys4299Slc = r.DecodeBytes(yys4299Slc, true, true) + yys4299 := string(yys4299Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4291 { + switch yys4299 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53737,31 +53857,31 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4294 := &x.ListMeta - yym4295 := z.DecBinary() - _ = yym4295 + yyv4302 := &x.ListMeta + yym4303 := z.DecBinary() + _ = yym4303 if false { - } else if z.HasExtensions() && z.DecExt(yyv4294) { + } else if z.HasExtensions() && z.DecExt(yyv4302) { } else { - z.DecFallback(yyv4294, false) + z.DecFallback(yyv4302, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4296 := &x.Items - yym4297 := z.DecBinary() - _ = yym4297 + yyv4304 := &x.Items + yym4305 := z.DecBinary() + _ = yym4305 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4296), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4304), d) } } default: - z.DecStructFieldNotFound(-1, yys4291) - } // end switch yys4291 - } // end for yyj4291 + z.DecStructFieldNotFound(-1, yys4299) + } // end switch yys4299 + } // end for yyj4299 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53769,16 +53889,16 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 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 yyj4306 int + var yyb4306 bool + var yyhl4306 bool = l >= 0 + yyj4306++ + if yyhl4306 { + yyb4306 = yyj4306 > l } else { - yyb4298 = r.CheckBreak() + yyb4306 = r.CheckBreak() } - if yyb4298 { + if yyb4306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53788,13 +53908,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4306++ + if yyhl4306 { + yyb4306 = yyj4306 > l } else { - yyb4298 = r.CheckBreak() + yyb4306 = r.CheckBreak() } - if yyb4298 { + if yyb4306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53804,13 +53924,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4306++ + if yyhl4306 { + yyb4306 = yyj4306 > l } else { - yyb4298 = r.CheckBreak() + yyb4306 = r.CheckBreak() } - if yyb4298 { + if yyb4306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53818,22 +53938,22 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4301 := &x.ListMeta - yym4302 := z.DecBinary() - _ = yym4302 + yyv4309 := &x.ListMeta + yym4310 := z.DecBinary() + _ = yym4310 if false { - } else if z.HasExtensions() && z.DecExt(yyv4301) { + } else if z.HasExtensions() && z.DecExt(yyv4309) { } else { - z.DecFallback(yyv4301, false) + z.DecFallback(yyv4309, false) } } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4306++ + if yyhl4306 { + yyb4306 = yyj4306 > l } else { - yyb4298 = r.CheckBreak() + yyb4306 = r.CheckBreak() } - if yyb4298 { + if yyb4306 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53841,26 +53961,26 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4303 := &x.Items - yym4304 := z.DecBinary() - _ = yym4304 + yyv4311 := &x.Items + yym4312 := z.DecBinary() + _ = yym4312 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4303), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4311), d) } } for { - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4306++ + if yyhl4306 { + yyb4306 = yyj4306 > l } else { - yyb4298 = r.CheckBreak() + yyb4306 = r.CheckBreak() } - if yyb4298 { + if yyb4306 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4298-1, "") + z.DecStructFieldNotFound(yyj4306-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53869,8 +53989,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4305 := z.EncBinary() - _ = yym4305 + yym4313 := z.EncBinary() + _ = yym4313 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -53882,8 +54002,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4306 := z.DecBinary() - _ = yym4306 + yym4314 := z.DecBinary() + _ = yym4314 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -53898,32 +54018,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4307 := z.EncBinary() - _ = yym4307 + yym4315 := z.EncBinary() + _ = yym4315 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4308 := !z.EncBinary() - yy2arr4308 := z.EncBasicHandle().StructToArray - var yyq4308 [4]bool - _, _, _ = yysep4308, yyq4308, yy2arr4308 - const yyr4308 bool = false - yyq4308[2] = x.Message != "" - yyq4308[3] = x.Error != "" - var yynn4308 int - if yyr4308 || yy2arr4308 { + yysep4316 := !z.EncBinary() + yy2arr4316 := z.EncBasicHandle().StructToArray + var yyq4316 [4]bool + _, _, _ = yysep4316, yyq4316, yy2arr4316 + const yyr4316 bool = false + yyq4316[2] = x.Message != "" + yyq4316[3] = x.Error != "" + var yynn4316 int + if yyr4316 || yy2arr4316 { r.EncodeArrayStart(4) } else { - yynn4308 = 2 - for _, b := range yyq4308 { + yynn4316 = 2 + for _, b := range yyq4316 { if b { - yynn4308++ + yynn4316++ } } - r.EncodeMapStart(yynn4308) - yynn4308 = 0 + r.EncodeMapStart(yynn4316) + yynn4316 = 0 } - if yyr4308 || yy2arr4308 { + if yyr4316 || yy2arr4316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -53932,7 +54052,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr4308 || yy2arr4308 { + if yyr4316 || yy2arr4316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -53941,11 +54061,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr4308 || yy2arr4308 { + if yyr4316 || yy2arr4316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4308[2] { - yym4312 := z.EncBinary() - _ = yym4312 + if yyq4316[2] { + yym4320 := z.EncBinary() + _ = yym4320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -53954,23 +54074,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4308[2] { + if yyq4316[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4313 := z.EncBinary() - _ = yym4313 + yym4321 := z.EncBinary() + _ = yym4321 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr4308 || yy2arr4308 { + if yyr4316 || yy2arr4316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4308[3] { - yym4315 := z.EncBinary() - _ = yym4315 + if yyq4316[3] { + yym4323 := z.EncBinary() + _ = yym4323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -53979,19 +54099,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4308[3] { + if yyq4316[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4316 := z.EncBinary() - _ = yym4316 + yym4324 := z.EncBinary() + _ = yym4324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr4308 || yy2arr4308 { + if yyr4316 || yy2arr4316 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54004,25 +54124,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4317 := z.DecBinary() - _ = yym4317 + yym4325 := z.DecBinary() + _ = yym4325 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4318 := r.ContainerType() - if yyct4318 == codecSelferValueTypeMap1234 { - yyl4318 := r.ReadMapStart() - if yyl4318 == 0 { + yyct4326 := r.ContainerType() + if yyct4326 == codecSelferValueTypeMap1234 { + yyl4326 := r.ReadMapStart() + if yyl4326 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4318, d) + x.codecDecodeSelfFromMap(yyl4326, d) } - } else if yyct4318 == codecSelferValueTypeArray1234 { - yyl4318 := r.ReadArrayStart() - if yyl4318 == 0 { + } else if yyct4326 == codecSelferValueTypeArray1234 { + yyl4326 := r.ReadArrayStart() + if yyl4326 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4318, d) + x.codecDecodeSelfFromArray(yyl4326, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54034,12 +54154,12 @@ func (x *ComponentCondition) 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 yys4327Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4327Slc + var yyhl4327 bool = l >= 0 + for yyj4327 := 0; ; yyj4327++ { + if yyhl4327 { + if yyj4327 >= l { break } } else { @@ -54048,10 +54168,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) - yys4319 := string(yys4319Slc) + yys4327Slc = r.DecodeBytes(yys4327Slc, true, true) + yys4327 := string(yys4327Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4319 { + switch yys4327 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -54077,9 +54197,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4319) - } // end switch yys4319 - } // end for yyj4319 + z.DecStructFieldNotFound(-1, yys4327) + } // end switch yys4327 + } // end for yyj4327 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54087,16 +54207,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4324 int - var yyb4324 bool - var yyhl4324 bool = l >= 0 - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + var yyj4332 int + var yyb4332 bool + var yyhl4332 bool = l >= 0 + yyj4332++ + if yyhl4332 { + yyb4332 = yyj4332 > l } else { - yyb4324 = r.CheckBreak() + yyb4332 = r.CheckBreak() } - if yyb4324 { + if yyb4332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54106,13 +54226,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4332++ + if yyhl4332 { + yyb4332 = yyj4332 > l } else { - yyb4324 = r.CheckBreak() + yyb4332 = r.CheckBreak() } - if yyb4324 { + if yyb4332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54122,13 +54242,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4332++ + if yyhl4332 { + yyb4332 = yyj4332 > l } else { - yyb4324 = r.CheckBreak() + yyb4332 = r.CheckBreak() } - if yyb4324 { + if yyb4332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54138,13 +54258,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4332++ + if yyhl4332 { + yyb4332 = yyj4332 > l } else { - yyb4324 = r.CheckBreak() + yyb4332 = r.CheckBreak() } - if yyb4324 { + if yyb4332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54155,17 +54275,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4332++ + if yyhl4332 { + yyb4332 = yyj4332 > l } else { - yyb4324 = r.CheckBreak() + yyb4332 = r.CheckBreak() } - if yyb4324 { + if yyb4332 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4324-1, "") + z.DecStructFieldNotFound(yyj4332-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54177,38 +54297,38 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4329 := z.EncBinary() - _ = yym4329 + yym4337 := z.EncBinary() + _ = yym4337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4330 := !z.EncBinary() - yy2arr4330 := z.EncBasicHandle().StructToArray - var yyq4330 [4]bool - _, _, _ = yysep4330, yyq4330, yy2arr4330 - const yyr4330 bool = false - yyq4330[0] = x.Kind != "" - yyq4330[1] = x.APIVersion != "" - yyq4330[2] = true - yyq4330[3] = len(x.Conditions) != 0 - var yynn4330 int - if yyr4330 || yy2arr4330 { + yysep4338 := !z.EncBinary() + yy2arr4338 := z.EncBasicHandle().StructToArray + var yyq4338 [4]bool + _, _, _ = yysep4338, yyq4338, yy2arr4338 + const yyr4338 bool = false + yyq4338[0] = x.Kind != "" + yyq4338[1] = x.APIVersion != "" + yyq4338[2] = true + yyq4338[3] = len(x.Conditions) != 0 + var yynn4338 int + if yyr4338 || yy2arr4338 { r.EncodeArrayStart(4) } else { - yynn4330 = 0 - for _, b := range yyq4330 { + yynn4338 = 0 + for _, b := range yyq4338 { if b { - yynn4330++ + yynn4338++ } } - r.EncodeMapStart(yynn4330) - yynn4330 = 0 + r.EncodeMapStart(yynn4338) + yynn4338 = 0 } - if yyr4330 || yy2arr4330 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[0] { - yym4332 := z.EncBinary() - _ = yym4332 + if yyq4338[0] { + yym4340 := z.EncBinary() + _ = yym4340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54217,23 +54337,23 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4330[0] { + if yyq4338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4333 := z.EncBinary() - _ = yym4333 + yym4341 := z.EncBinary() + _ = yym4341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4330 || yy2arr4330 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[1] { - yym4335 := z.EncBinary() - _ = yym4335 + if yyq4338[1] { + yym4343 := z.EncBinary() + _ = yym4343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54242,43 +54362,43 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4330[1] { + if yyq4338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4336 := z.EncBinary() - _ = yym4336 + yym4344 := z.EncBinary() + _ = yym4344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4330 || yy2arr4330 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[2] { - yy4338 := &x.ObjectMeta - yy4338.CodecEncodeSelf(e) + if yyq4338[2] { + yy4346 := &x.ObjectMeta + yy4346.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4330[2] { + if yyq4338[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4339 := &x.ObjectMeta - yy4339.CodecEncodeSelf(e) + yy4347 := &x.ObjectMeta + yy4347.CodecEncodeSelf(e) } } - if yyr4330 || yy2arr4330 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[3] { + if yyq4338[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym4341 := z.EncBinary() - _ = yym4341 + yym4349 := z.EncBinary() + _ = yym4349 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -54288,15 +54408,15 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4330[3] { + if yyq4338[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym4342 := z.EncBinary() - _ = yym4342 + yym4350 := z.EncBinary() + _ = yym4350 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -54304,7 +54424,7 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4330 || yy2arr4330 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54317,25 +54437,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4343 := z.DecBinary() - _ = yym4343 + yym4351 := z.DecBinary() + _ = yym4351 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4344 := r.ContainerType() - if yyct4344 == codecSelferValueTypeMap1234 { - yyl4344 := r.ReadMapStart() - if yyl4344 == 0 { + yyct4352 := r.ContainerType() + if yyct4352 == codecSelferValueTypeMap1234 { + yyl4352 := r.ReadMapStart() + if yyl4352 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4344, d) + x.codecDecodeSelfFromMap(yyl4352, d) } - } else if yyct4344 == codecSelferValueTypeArray1234 { - yyl4344 := r.ReadArrayStart() - if yyl4344 == 0 { + } else if yyct4352 == codecSelferValueTypeArray1234 { + yyl4352 := r.ReadArrayStart() + if yyl4352 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4344, d) + x.codecDecodeSelfFromArray(yyl4352, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54347,12 +54467,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4345Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4345Slc - var yyhl4345 bool = l >= 0 - for yyj4345 := 0; ; yyj4345++ { - if yyhl4345 { - if yyj4345 >= l { + var yys4353Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4353Slc + var yyhl4353 bool = l >= 0 + for yyj4353 := 0; ; yyj4353++ { + if yyhl4353 { + if yyj4353 >= l { break } } else { @@ -54361,10 +54481,10 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4345Slc = r.DecodeBytes(yys4345Slc, true, true) - yys4345 := string(yys4345Slc) + yys4353Slc = r.DecodeBytes(yys4353Slc, true, true) + yys4353 := string(yys4353Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4345 { + switch yys4353 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54381,25 +54501,25 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4348 := &x.ObjectMeta - yyv4348.CodecDecodeSelf(d) + yyv4356 := &x.ObjectMeta + yyv4356.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4349 := &x.Conditions - yym4350 := z.DecBinary() - _ = yym4350 + yyv4357 := &x.Conditions + yym4358 := z.DecBinary() + _ = yym4358 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4349), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4357), d) } } default: - z.DecStructFieldNotFound(-1, yys4345) - } // end switch yys4345 - } // end for yyj4345 + z.DecStructFieldNotFound(-1, yys4353) + } // end switch yys4353 + } // end for yyj4353 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54407,16 +54527,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4351 int - var yyb4351 bool - var yyhl4351 bool = l >= 0 - yyj4351++ - if yyhl4351 { - yyb4351 = yyj4351 > l + var yyj4359 int + var yyb4359 bool + var yyhl4359 bool = l >= 0 + yyj4359++ + if yyhl4359 { + yyb4359 = yyj4359 > l } else { - yyb4351 = r.CheckBreak() + yyb4359 = r.CheckBreak() } - if yyb4351 { + if yyb4359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54426,13 +54546,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4351++ - if yyhl4351 { - yyb4351 = yyj4351 > l + yyj4359++ + if yyhl4359 { + yyb4359 = yyj4359 > l } else { - yyb4351 = r.CheckBreak() + yyb4359 = r.CheckBreak() } - if yyb4351 { + if yyb4359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54442,13 +54562,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4351++ - if yyhl4351 { - yyb4351 = yyj4351 > l + yyj4359++ + if yyhl4359 { + yyb4359 = yyj4359 > l } else { - yyb4351 = r.CheckBreak() + yyb4359 = r.CheckBreak() } - if yyb4351 { + if yyb4359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54456,16 +54576,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4354 := &x.ObjectMeta - yyv4354.CodecDecodeSelf(d) + yyv4362 := &x.ObjectMeta + yyv4362.CodecDecodeSelf(d) } - yyj4351++ - if yyhl4351 { - yyb4351 = yyj4351 > l + yyj4359++ + if yyhl4359 { + yyb4359 = yyj4359 > l } else { - yyb4351 = r.CheckBreak() + yyb4359 = r.CheckBreak() } - if yyb4351 { + if yyb4359 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54473,26 +54593,26 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4355 := &x.Conditions - yym4356 := z.DecBinary() - _ = yym4356 + yyv4363 := &x.Conditions + yym4364 := z.DecBinary() + _ = yym4364 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4355), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4363), d) } } for { - yyj4351++ - if yyhl4351 { - yyb4351 = yyj4351 > l + yyj4359++ + if yyhl4359 { + yyb4359 = yyj4359 > l } else { - yyb4351 = r.CheckBreak() + yyb4359 = r.CheckBreak() } - if yyb4351 { + if yyb4359 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4351-1, "") + z.DecStructFieldNotFound(yyj4359-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54504,37 +54624,37 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4357 := z.EncBinary() - _ = yym4357 + yym4365 := z.EncBinary() + _ = yym4365 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4358 := !z.EncBinary() - yy2arr4358 := z.EncBasicHandle().StructToArray - var yyq4358 [4]bool - _, _, _ = yysep4358, yyq4358, yy2arr4358 - const yyr4358 bool = false - yyq4358[0] = x.Kind != "" - yyq4358[1] = x.APIVersion != "" - yyq4358[2] = true - var yynn4358 int - if yyr4358 || yy2arr4358 { + yysep4366 := !z.EncBinary() + yy2arr4366 := z.EncBasicHandle().StructToArray + var yyq4366 [4]bool + _, _, _ = yysep4366, yyq4366, yy2arr4366 + const yyr4366 bool = false + yyq4366[0] = x.Kind != "" + yyq4366[1] = x.APIVersion != "" + yyq4366[2] = true + var yynn4366 int + if yyr4366 || yy2arr4366 { r.EncodeArrayStart(4) } else { - yynn4358 = 1 - for _, b := range yyq4358 { + yynn4366 = 1 + for _, b := range yyq4366 { if b { - yynn4358++ + yynn4366++ } } - r.EncodeMapStart(yynn4358) - yynn4358 = 0 + r.EncodeMapStart(yynn4366) + yynn4366 = 0 } - if yyr4358 || yy2arr4358 { + if yyr4366 || yy2arr4366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4358[0] { - yym4360 := z.EncBinary() - _ = yym4360 + if yyq4366[0] { + yym4368 := z.EncBinary() + _ = yym4368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54543,23 +54663,23 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4358[0] { + if yyq4366[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4361 := z.EncBinary() - _ = yym4361 + yym4369 := z.EncBinary() + _ = yym4369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4358 || yy2arr4358 { + if yyr4366 || yy2arr4366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4358[1] { - yym4363 := z.EncBinary() - _ = yym4363 + if yyq4366[1] { + yym4371 := z.EncBinary() + _ = yym4371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54568,54 +54688,54 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4358[1] { + if yyq4366[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4364 := z.EncBinary() - _ = yym4364 + yym4372 := z.EncBinary() + _ = yym4372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4358 || yy2arr4358 { + if yyr4366 || yy2arr4366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4358[2] { - yy4366 := &x.ListMeta - yym4367 := z.EncBinary() - _ = yym4367 + if yyq4366[2] { + yy4374 := &x.ListMeta + yym4375 := z.EncBinary() + _ = yym4375 if false { - } else if z.HasExtensions() && z.EncExt(yy4366) { + } else if z.HasExtensions() && z.EncExt(yy4374) { } else { - z.EncFallback(yy4366) + z.EncFallback(yy4374) } } else { r.EncodeNil() } } else { - if yyq4358[2] { + if yyq4366[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4368 := &x.ListMeta - yym4369 := z.EncBinary() - _ = yym4369 + yy4376 := &x.ListMeta + yym4377 := z.EncBinary() + _ = yym4377 if false { - } else if z.HasExtensions() && z.EncExt(yy4368) { + } else if z.HasExtensions() && z.EncExt(yy4376) { } else { - z.EncFallback(yy4368) + z.EncFallback(yy4376) } } } - if yyr4358 || yy2arr4358 { + if yyr4366 || yy2arr4366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4371 := z.EncBinary() - _ = yym4371 + yym4379 := z.EncBinary() + _ = yym4379 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) @@ -54628,15 +54748,15 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4372 := z.EncBinary() - _ = yym4372 + yym4380 := z.EncBinary() + _ = yym4380 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr4358 || yy2arr4358 { + if yyr4366 || yy2arr4366 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54649,25 +54769,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4373 := z.DecBinary() - _ = yym4373 + yym4381 := z.DecBinary() + _ = yym4381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4374 := r.ContainerType() - if yyct4374 == codecSelferValueTypeMap1234 { - yyl4374 := r.ReadMapStart() - if yyl4374 == 0 { + yyct4382 := r.ContainerType() + if yyct4382 == codecSelferValueTypeMap1234 { + yyl4382 := r.ReadMapStart() + if yyl4382 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4374, d) + x.codecDecodeSelfFromMap(yyl4382, d) } - } else if yyct4374 == codecSelferValueTypeArray1234 { - yyl4374 := r.ReadArrayStart() - if yyl4374 == 0 { + } else if yyct4382 == codecSelferValueTypeArray1234 { + yyl4382 := r.ReadArrayStart() + if yyl4382 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4374, d) + x.codecDecodeSelfFromArray(yyl4382, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54679,12 +54799,12 @@ func (x *ComponentStatusList) 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 yys4383Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4383Slc + var yyhl4383 bool = l >= 0 + for yyj4383 := 0; ; yyj4383++ { + if yyhl4383 { + if yyj4383 >= l { break } } else { @@ -54693,10 +54813,10 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) - yys4375 := string(yys4375Slc) + yys4383Slc = r.DecodeBytes(yys4383Slc, true, true) + yys4383 := string(yys4383Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4375 { + switch yys4383 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54713,31 +54833,31 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4378 := &x.ListMeta - yym4379 := z.DecBinary() - _ = yym4379 + yyv4386 := &x.ListMeta + yym4387 := z.DecBinary() + _ = yym4387 if false { - } else if z.HasExtensions() && z.DecExt(yyv4378) { + } else if z.HasExtensions() && z.DecExt(yyv4386) { } else { - z.DecFallback(yyv4378, false) + z.DecFallback(yyv4386, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4380 := &x.Items - yym4381 := z.DecBinary() - _ = yym4381 + yyv4388 := &x.Items + yym4389 := z.DecBinary() + _ = yym4389 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4380), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4388), d) } } default: - z.DecStructFieldNotFound(-1, yys4375) - } // end switch yys4375 - } // end for yyj4375 + z.DecStructFieldNotFound(-1, yys4383) + } // end switch yys4383 + } // end for yyj4383 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54745,16 +54865,16 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4382 int - var yyb4382 bool - var yyhl4382 bool = l >= 0 - yyj4382++ - if yyhl4382 { - yyb4382 = yyj4382 > l + var yyj4390 int + var yyb4390 bool + var yyhl4390 bool = l >= 0 + yyj4390++ + if yyhl4390 { + yyb4390 = yyj4390 > l } else { - yyb4382 = r.CheckBreak() + yyb4390 = r.CheckBreak() } - if yyb4382 { + if yyb4390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54764,13 +54884,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj4382++ - if yyhl4382 { - yyb4382 = yyj4382 > l + yyj4390++ + if yyhl4390 { + yyb4390 = yyj4390 > l } else { - yyb4382 = r.CheckBreak() + yyb4390 = r.CheckBreak() } - if yyb4382 { + if yyb4390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54780,13 +54900,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj4382++ - if yyhl4382 { - yyb4382 = yyj4382 > l + yyj4390++ + if yyhl4390 { + yyb4390 = yyj4390 > l } else { - yyb4382 = r.CheckBreak() + yyb4390 = r.CheckBreak() } - if yyb4382 { + if yyb4390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54794,22 +54914,22 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg2_v1.ListMeta{} } else { - yyv4385 := &x.ListMeta - yym4386 := z.DecBinary() - _ = yym4386 + yyv4393 := &x.ListMeta + yym4394 := z.DecBinary() + _ = yym4394 if false { - } else if z.HasExtensions() && z.DecExt(yyv4385) { + } else if z.HasExtensions() && z.DecExt(yyv4393) { } else { - z.DecFallback(yyv4385, false) + z.DecFallback(yyv4393, false) } } - yyj4382++ - if yyhl4382 { - yyb4382 = yyj4382 > l + yyj4390++ + if yyhl4390 { + yyb4390 = yyj4390 > l } else { - yyb4382 = r.CheckBreak() + yyb4390 = r.CheckBreak() } - if yyb4382 { + if yyb4390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54817,26 +54937,26 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4387 := &x.Items - yym4388 := z.DecBinary() - _ = yym4388 + yyv4395 := &x.Items + yym4396 := z.DecBinary() + _ = yym4396 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4387), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4395), d) } } for { - yyj4382++ - if yyhl4382 { - yyb4382 = yyj4382 > l + yyj4390++ + if yyhl4390 { + yyb4390 = yyj4390 > l } else { - yyb4382 = r.CheckBreak() + yyb4390 = r.CheckBreak() } - if yyb4382 { + if yyb4390 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4382-1, "") + z.DecStructFieldNotFound(yyj4390-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54848,39 +54968,39 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4389 := z.EncBinary() - _ = yym4389 + yym4397 := z.EncBinary() + _ = yym4397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4390 := !z.EncBinary() - yy2arr4390 := z.EncBasicHandle().StructToArray - var yyq4390 [2]bool - _, _, _ = yysep4390, yyq4390, yy2arr4390 - const yyr4390 bool = false - yyq4390[0] = len(x.Items) != 0 - yyq4390[1] = x.DefaultMode != nil - var yynn4390 int - if yyr4390 || yy2arr4390 { + yysep4398 := !z.EncBinary() + yy2arr4398 := z.EncBasicHandle().StructToArray + var yyq4398 [2]bool + _, _, _ = yysep4398, yyq4398, yy2arr4398 + const yyr4398 bool = false + yyq4398[0] = len(x.Items) != 0 + yyq4398[1] = x.DefaultMode != nil + var yynn4398 int + if yyr4398 || yy2arr4398 { r.EncodeArrayStart(2) } else { - yynn4390 = 0 - for _, b := range yyq4390 { + yynn4398 = 0 + for _, b := range yyq4398 { if b { - yynn4390++ + yynn4398++ } } - r.EncodeMapStart(yynn4390) - yynn4390 = 0 + r.EncodeMapStart(yynn4398) + yynn4398 = 0 } - if yyr4390 || yy2arr4390 { + if yyr4398 || yy2arr4398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4390[0] { + if yyq4398[0] { if x.Items == nil { r.EncodeNil() } else { - yym4392 := z.EncBinary() - _ = yym4392 + yym4400 := z.EncBinary() + _ = yym4400 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -54890,15 +55010,15 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4390[0] { + if yyq4398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym4393 := z.EncBinary() - _ = yym4393 + yym4401 := z.EncBinary() + _ = yym4401 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -54906,42 +55026,42 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4390 || yy2arr4390 { + if yyr4398 || yy2arr4398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4390[1] { + if yyq4398[1] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy4395 := *x.DefaultMode - yym4396 := z.EncBinary() - _ = yym4396 + yy4403 := *x.DefaultMode + yym4404 := z.EncBinary() + _ = yym4404 if false { } else { - r.EncodeInt(int64(yy4395)) + r.EncodeInt(int64(yy4403)) } } } else { r.EncodeNil() } } else { - if yyq4390[1] { + if yyq4398[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { - yy4397 := *x.DefaultMode - yym4398 := z.EncBinary() - _ = yym4398 + yy4405 := *x.DefaultMode + yym4406 := z.EncBinary() + _ = yym4406 if false { } else { - r.EncodeInt(int64(yy4397)) + r.EncodeInt(int64(yy4405)) } } } } - if yyr4390 || yy2arr4390 { + if yyr4398 || yy2arr4398 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54954,25 +55074,25 @@ func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4399 := z.DecBinary() - _ = yym4399 + yym4407 := z.DecBinary() + _ = yym4407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4400 := r.ContainerType() - if yyct4400 == codecSelferValueTypeMap1234 { - yyl4400 := r.ReadMapStart() - if yyl4400 == 0 { + yyct4408 := r.ContainerType() + if yyct4408 == codecSelferValueTypeMap1234 { + yyl4408 := r.ReadMapStart() + if yyl4408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4400, d) + x.codecDecodeSelfFromMap(yyl4408, d) } - } else if yyct4400 == codecSelferValueTypeArray1234 { - yyl4400 := r.ReadArrayStart() - if yyl4400 == 0 { + } else if yyct4408 == codecSelferValueTypeArray1234 { + yyl4408 := r.ReadArrayStart() + if yyl4408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4400, d) + x.codecDecodeSelfFromArray(yyl4408, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54984,12 +55104,12 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4401Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4401Slc - var yyhl4401 bool = l >= 0 - for yyj4401 := 0; ; yyj4401++ { - if yyhl4401 { - if yyj4401 >= l { + var yys4409Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4409Slc + var yyhl4409 bool = l >= 0 + for yyj4409 := 0; ; yyj4409++ { + if yyhl4409 { + if yyj4409 >= l { break } } else { @@ -54998,20 +55118,20 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4401Slc = r.DecodeBytes(yys4401Slc, true, true) - yys4401 := string(yys4401Slc) + yys4409Slc = r.DecodeBytes(yys4409Slc, true, true) + yys4409 := string(yys4409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4401 { + switch yys4409 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4402 := &x.Items - yym4403 := z.DecBinary() - _ = yym4403 + yyv4410 := &x.Items + yym4411 := z.DecBinary() + _ = yym4411 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4402), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4410), d) } } case "defaultMode": @@ -55023,17 +55143,17 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym4405 := z.DecBinary() - _ = yym4405 + yym4413 := z.DecBinary() + _ = yym4413 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys4401) - } // end switch yys4401 - } // end for yyj4401 + z.DecStructFieldNotFound(-1, yys4409) + } // end switch yys4409 + } // end for yyj4409 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55041,16 +55161,16 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4406 int - var yyb4406 bool - var yyhl4406 bool = l >= 0 - yyj4406++ - if yyhl4406 { - yyb4406 = yyj4406 > l + var yyj4414 int + var yyb4414 bool + var yyhl4414 bool = l >= 0 + yyj4414++ + if yyhl4414 { + yyb4414 = yyj4414 > l } else { - yyb4406 = r.CheckBreak() + yyb4414 = r.CheckBreak() } - if yyb4406 { + if yyb4414 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55058,21 +55178,21 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4407 := &x.Items - yym4408 := z.DecBinary() - _ = yym4408 + yyv4415 := &x.Items + yym4416 := z.DecBinary() + _ = yym4416 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4407), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4415), d) } } - yyj4406++ - if yyhl4406 { - yyb4406 = yyj4406 > l + yyj4414++ + if yyhl4414 { + yyb4414 = yyj4414 > l } else { - yyb4406 = r.CheckBreak() + yyb4414 = r.CheckBreak() } - if yyb4406 { + if yyb4414 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55085,25 +55205,25 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym4410 := z.DecBinary() - _ = yym4410 + yym4418 := z.DecBinary() + _ = yym4418 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj4406++ - if yyhl4406 { - yyb4406 = yyj4406 > l + yyj4414++ + if yyhl4414 { + yyb4414 = yyj4414 > l } else { - yyb4406 = r.CheckBreak() + yyb4414 = r.CheckBreak() } - if yyb4406 { + if yyb4414 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4406-1, "") + z.DecStructFieldNotFound(yyj4414-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55115,36 +55235,36 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4411 := z.EncBinary() - _ = yym4411 + yym4419 := z.EncBinary() + _ = yym4419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4412 := !z.EncBinary() - yy2arr4412 := z.EncBasicHandle().StructToArray - var yyq4412 [4]bool - _, _, _ = yysep4412, yyq4412, yy2arr4412 - const yyr4412 bool = false - yyq4412[1] = x.FieldRef != nil - yyq4412[2] = x.ResourceFieldRef != nil - yyq4412[3] = x.Mode != nil - var yynn4412 int - if yyr4412 || yy2arr4412 { + yysep4420 := !z.EncBinary() + yy2arr4420 := z.EncBasicHandle().StructToArray + var yyq4420 [4]bool + _, _, _ = yysep4420, yyq4420, yy2arr4420 + const yyr4420 bool = false + yyq4420[1] = x.FieldRef != nil + yyq4420[2] = x.ResourceFieldRef != nil + yyq4420[3] = x.Mode != nil + var yynn4420 int + if yyr4420 || yy2arr4420 { r.EncodeArrayStart(4) } else { - yynn4412 = 1 - for _, b := range yyq4412 { + yynn4420 = 1 + for _, b := range yyq4420 { if b { - yynn4412++ + yynn4420++ } } - r.EncodeMapStart(yynn4412) - yynn4412 = 0 + r.EncodeMapStart(yynn4420) + yynn4420 = 0 } - if yyr4412 || yy2arr4412 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4414 := z.EncBinary() - _ = yym4414 + yym4422 := z.EncBinary() + _ = yym4422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -55153,16 +55273,16 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4415 := z.EncBinary() - _ = yym4415 + yym4423 := z.EncBinary() + _ = yym4423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr4412 || yy2arr4412 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[1] { + if yyq4420[1] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -55172,7 +55292,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4412[1] { + if yyq4420[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55183,9 +55303,9 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4412 || yy2arr4412 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[2] { + if yyq4420[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -55195,7 +55315,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4412[2] { + if yyq4420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55206,42 +55326,42 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4412 || yy2arr4412 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[3] { + if yyq4420[3] { if x.Mode == nil { r.EncodeNil() } else { - yy4419 := *x.Mode - yym4420 := z.EncBinary() - _ = yym4420 + yy4427 := *x.Mode + yym4428 := z.EncBinary() + _ = yym4428 if false { } else { - r.EncodeInt(int64(yy4419)) + r.EncodeInt(int64(yy4427)) } } } else { r.EncodeNil() } } else { - if yyq4412[3] { + if yyq4420[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Mode == nil { r.EncodeNil() } else { - yy4421 := *x.Mode - yym4422 := z.EncBinary() - _ = yym4422 + yy4429 := *x.Mode + yym4430 := z.EncBinary() + _ = yym4430 if false { } else { - r.EncodeInt(int64(yy4421)) + r.EncodeInt(int64(yy4429)) } } } } - if yyr4412 || yy2arr4412 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55254,25 +55374,25 @@ func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4423 := z.DecBinary() - _ = yym4423 + yym4431 := z.DecBinary() + _ = yym4431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4424 := r.ContainerType() - if yyct4424 == codecSelferValueTypeMap1234 { - yyl4424 := r.ReadMapStart() - if yyl4424 == 0 { + yyct4432 := r.ContainerType() + if yyct4432 == codecSelferValueTypeMap1234 { + yyl4432 := r.ReadMapStart() + if yyl4432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4424, d) + x.codecDecodeSelfFromMap(yyl4432, d) } - } else if yyct4424 == codecSelferValueTypeArray1234 { - yyl4424 := r.ReadArrayStart() - if yyl4424 == 0 { + } else if yyct4432 == codecSelferValueTypeArray1234 { + yyl4432 := r.ReadArrayStart() + if yyl4432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4424, d) + x.codecDecodeSelfFromArray(yyl4432, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55284,12 +55404,12 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4425Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4425Slc - var yyhl4425 bool = l >= 0 - for yyj4425 := 0; ; yyj4425++ { - if yyhl4425 { - if yyj4425 >= l { + var yys4433Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4433Slc + var yyhl4433 bool = l >= 0 + for yyj4433 := 0; ; yyj4433++ { + if yyhl4433 { + if yyj4433 >= l { break } } else { @@ -55298,10 +55418,10 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4425Slc = r.DecodeBytes(yys4425Slc, true, true) - yys4425 := string(yys4425Slc) + yys4433Slc = r.DecodeBytes(yys4433Slc, true, true) + yys4433 := string(yys4433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4425 { + switch yys4433 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -55339,17 +55459,17 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.Mode == nil { x.Mode = new(int32) } - yym4430 := z.DecBinary() - _ = yym4430 + yym4438 := z.DecBinary() + _ = yym4438 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys4425) - } // end switch yys4425 - } // end for yyj4425 + z.DecStructFieldNotFound(-1, yys4433) + } // end switch yys4433 + } // end for yyj4433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55357,16 +55477,16 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4431 int - var yyb4431 bool - var yyhl4431 bool = l >= 0 - yyj4431++ - if yyhl4431 { - yyb4431 = yyj4431 > l + var yyj4439 int + var yyb4439 bool + var yyhl4439 bool = l >= 0 + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4431 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4431 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55376,13 +55496,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj4431++ - if yyhl4431 { - yyb4431 = yyj4431 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4431 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4431 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55397,13 +55517,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj4431++ - if yyhl4431 { - yyb4431 = yyj4431 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4431 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4431 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55418,13 +55538,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj4431++ - if yyhl4431 { - yyb4431 = yyj4431 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4431 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4431 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55437,25 +55557,25 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.Mode == nil { x.Mode = new(int32) } - yym4436 := z.DecBinary() - _ = yym4436 + yym4444 := z.DecBinary() + _ = yym4444 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { - yyj4431++ - if yyhl4431 { - yyb4431 = yyj4431 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4431 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4431 { + if yyb4439 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4431-1, "") + z.DecStructFieldNotFound(yyj4439-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55467,38 +55587,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4437 := z.EncBinary() - _ = yym4437 + yym4445 := z.EncBinary() + _ = yym4445 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4438 := !z.EncBinary() - yy2arr4438 := z.EncBasicHandle().StructToArray - var yyq4438 [6]bool - _, _, _ = yysep4438, yyq4438, yy2arr4438 - const yyr4438 bool = false - yyq4438[0] = x.Capabilities != nil - yyq4438[1] = x.Privileged != nil - yyq4438[2] = x.SELinuxOptions != nil - yyq4438[3] = x.RunAsUser != nil - yyq4438[4] = x.RunAsNonRoot != nil - yyq4438[5] = x.ReadOnlyRootFilesystem != nil - var yynn4438 int - if yyr4438 || yy2arr4438 { + yysep4446 := !z.EncBinary() + yy2arr4446 := z.EncBasicHandle().StructToArray + var yyq4446 [6]bool + _, _, _ = yysep4446, yyq4446, yy2arr4446 + const yyr4446 bool = false + yyq4446[0] = x.Capabilities != nil + yyq4446[1] = x.Privileged != nil + yyq4446[2] = x.SELinuxOptions != nil + yyq4446[3] = x.RunAsUser != nil + yyq4446[4] = x.RunAsNonRoot != nil + yyq4446[5] = x.ReadOnlyRootFilesystem != nil + var yynn4446 int + if yyr4446 || yy2arr4446 { r.EncodeArrayStart(6) } else { - yynn4438 = 0 - for _, b := range yyq4438 { + yynn4446 = 0 + for _, b := range yyq4446 { if b { - yynn4438++ + yynn4446++ } } - r.EncodeMapStart(yynn4438) - yynn4438 = 0 + r.EncodeMapStart(yynn4446) + yynn4446 = 0 } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[0] { + if yyq4446[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -55508,7 +55628,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4438[0] { + if yyq4446[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55519,44 +55639,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[1] { + if yyq4446[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy4441 := *x.Privileged - yym4442 := z.EncBinary() - _ = yym4442 + yy4449 := *x.Privileged + yym4450 := z.EncBinary() + _ = yym4450 if false { } else { - r.EncodeBool(bool(yy4441)) + r.EncodeBool(bool(yy4449)) } } } else { r.EncodeNil() } } else { - if yyq4438[1] { + if yyq4446[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { - yy4443 := *x.Privileged - yym4444 := z.EncBinary() - _ = yym4444 + yy4451 := *x.Privileged + yym4452 := z.EncBinary() + _ = yym4452 if false { } else { - r.EncodeBool(bool(yy4443)) + r.EncodeBool(bool(yy4451)) } } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[2] { + if yyq4446[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -55566,7 +55686,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4438[2] { + if yyq4446[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55577,112 +55697,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[3] { + if yyq4446[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy4447 := *x.RunAsUser - yym4448 := z.EncBinary() - _ = yym4448 + yy4455 := *x.RunAsUser + yym4456 := z.EncBinary() + _ = yym4456 if false { } else { - r.EncodeInt(int64(yy4447)) + r.EncodeInt(int64(yy4455)) } } } else { r.EncodeNil() } } else { - if yyq4438[3] { + if yyq4446[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy4449 := *x.RunAsUser - yym4450 := z.EncBinary() - _ = yym4450 + yy4457 := *x.RunAsUser + yym4458 := z.EncBinary() + _ = yym4458 if false { } else { - r.EncodeInt(int64(yy4449)) + r.EncodeInt(int64(yy4457)) } } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[4] { + if yyq4446[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4452 := *x.RunAsNonRoot - yym4453 := z.EncBinary() - _ = yym4453 + yy4460 := *x.RunAsNonRoot + yym4461 := z.EncBinary() + _ = yym4461 if false { } else { - r.EncodeBool(bool(yy4452)) + r.EncodeBool(bool(yy4460)) } } } else { r.EncodeNil() } } else { - if yyq4438[4] { + if yyq4446[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4454 := *x.RunAsNonRoot - yym4455 := z.EncBinary() - _ = yym4455 + yy4462 := *x.RunAsNonRoot + yym4463 := z.EncBinary() + _ = yym4463 if false { } else { - r.EncodeBool(bool(yy4454)) + r.EncodeBool(bool(yy4462)) } } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4438[5] { + if yyq4446[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4457 := *x.ReadOnlyRootFilesystem - yym4458 := z.EncBinary() - _ = yym4458 + yy4465 := *x.ReadOnlyRootFilesystem + yym4466 := z.EncBinary() + _ = yym4466 if false { } else { - r.EncodeBool(bool(yy4457)) + r.EncodeBool(bool(yy4465)) } } } else { r.EncodeNil() } } else { - if yyq4438[5] { + if yyq4446[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4459 := *x.ReadOnlyRootFilesystem - yym4460 := z.EncBinary() - _ = yym4460 + yy4467 := *x.ReadOnlyRootFilesystem + yym4468 := z.EncBinary() + _ = yym4468 if false { } else { - r.EncodeBool(bool(yy4459)) + r.EncodeBool(bool(yy4467)) } } } } - if yyr4438 || yy2arr4438 { + if yyr4446 || yy2arr4446 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55695,25 +55815,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4461 := z.DecBinary() - _ = yym4461 + yym4469 := z.DecBinary() + _ = yym4469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4462 := r.ContainerType() - if yyct4462 == codecSelferValueTypeMap1234 { - yyl4462 := r.ReadMapStart() - if yyl4462 == 0 { + yyct4470 := r.ContainerType() + if yyct4470 == codecSelferValueTypeMap1234 { + yyl4470 := r.ReadMapStart() + if yyl4470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4462, d) + x.codecDecodeSelfFromMap(yyl4470, d) } - } else if yyct4462 == codecSelferValueTypeArray1234 { - yyl4462 := r.ReadArrayStart() - if yyl4462 == 0 { + } else if yyct4470 == codecSelferValueTypeArray1234 { + yyl4470 := r.ReadArrayStart() + if yyl4470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4462, d) + x.codecDecodeSelfFromArray(yyl4470, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55725,12 +55845,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4463Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4463Slc - var yyhl4463 bool = l >= 0 - for yyj4463 := 0; ; yyj4463++ { - if yyhl4463 { - if yyj4463 >= l { + var yys4471Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4471Slc + var yyhl4471 bool = l >= 0 + for yyj4471 := 0; ; yyj4471++ { + if yyhl4471 { + if yyj4471 >= l { break } } else { @@ -55739,10 +55859,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4463Slc = r.DecodeBytes(yys4463Slc, true, true) - yys4463 := string(yys4463Slc) + yys4471Slc = r.DecodeBytes(yys4471Slc, true, true) + yys4471 := string(yys4471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4463 { + switch yys4471 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -55763,8 +55883,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym4466 := z.DecBinary() - _ = yym4466 + yym4474 := z.DecBinary() + _ = yym4474 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -55790,8 +55910,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4469 := z.DecBinary() - _ = yym4469 + yym4477 := z.DecBinary() + _ = yym4477 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -55806,8 +55926,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4471 := z.DecBinary() - _ = yym4471 + yym4479 := z.DecBinary() + _ = yym4479 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -55822,17 +55942,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4473 := z.DecBinary() - _ = yym4473 + yym4481 := z.DecBinary() + _ = yym4481 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys4463) - } // end switch yys4463 - } // end for yyj4463 + z.DecStructFieldNotFound(-1, yys4471) + } // end switch yys4471 + } // end for yyj4471 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55840,16 +55960,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4474 int - var yyb4474 bool - var yyhl4474 bool = l >= 0 - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + var yyj4482 int + var yyb4482 bool + var yyhl4482 bool = l >= 0 + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55864,13 +55984,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55883,20 +56003,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym4477 := z.DecBinary() - _ = yym4477 + yym4485 := z.DecBinary() + _ = yym4485 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55911,13 +56031,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55930,20 +56050,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4480 := z.DecBinary() - _ = yym4480 + yym4488 := z.DecBinary() + _ = yym4488 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55956,20 +56076,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4482 := z.DecBinary() - _ = yym4482 + yym4490 := z.DecBinary() + _ = yym4490 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55982,25 +56102,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4484 := z.DecBinary() - _ = yym4484 + yym4492 := z.DecBinary() + _ = yym4492 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj4474++ - if yyhl4474 { - yyb4474 = yyj4474 > l + yyj4482++ + if yyhl4482 { + yyb4482 = yyj4482 > l } else { - yyb4474 = r.CheckBreak() + yyb4482 = r.CheckBreak() } - if yyb4474 { + if yyb4482 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4474-1, "") + z.DecStructFieldNotFound(yyj4482-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56012,38 +56132,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4485 := z.EncBinary() - _ = yym4485 + yym4493 := z.EncBinary() + _ = yym4493 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4486 := !z.EncBinary() - yy2arr4486 := z.EncBasicHandle().StructToArray - var yyq4486 [4]bool - _, _, _ = yysep4486, yyq4486, yy2arr4486 - const yyr4486 bool = false - yyq4486[0] = x.User != "" - yyq4486[1] = x.Role != "" - yyq4486[2] = x.Type != "" - yyq4486[3] = x.Level != "" - var yynn4486 int - if yyr4486 || yy2arr4486 { + yysep4494 := !z.EncBinary() + yy2arr4494 := z.EncBasicHandle().StructToArray + var yyq4494 [4]bool + _, _, _ = yysep4494, yyq4494, yy2arr4494 + const yyr4494 bool = false + yyq4494[0] = x.User != "" + yyq4494[1] = x.Role != "" + yyq4494[2] = x.Type != "" + yyq4494[3] = x.Level != "" + var yynn4494 int + if yyr4494 || yy2arr4494 { r.EncodeArrayStart(4) } else { - yynn4486 = 0 - for _, b := range yyq4486 { + yynn4494 = 0 + for _, b := range yyq4494 { if b { - yynn4486++ + yynn4494++ } } - r.EncodeMapStart(yynn4486) - yynn4486 = 0 + r.EncodeMapStart(yynn4494) + yynn4494 = 0 } - if yyr4486 || yy2arr4486 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[0] { - yym4488 := z.EncBinary() - _ = yym4488 + if yyq4494[0] { + yym4496 := z.EncBinary() + _ = yym4496 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -56052,74 +56172,74 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4486[0] { + if yyq4494[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4489 := z.EncBinary() - _ = yym4489 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } - } - if yyr4486 || yy2arr4486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[1] { - yym4491 := z.EncBinary() - _ = yym4491 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4486[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("role")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4492 := z.EncBinary() - _ = yym4492 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) - } - } - } - if yyr4486 || yy2arr4486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[2] { - yym4494 := z.EncBinary() - _ = yym4494 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4486[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4495 := z.EncBinary() - _ = yym4495 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } - } - if yyr4486 || yy2arr4486 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[3] { yym4497 := z.EncBinary() _ = yym4497 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr4494 || yy2arr4494 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4494[1] { + yym4499 := z.EncBinary() + _ = yym4499 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4494[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("role")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4500 := z.EncBinary() + _ = yym4500 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } + } + if yyr4494 || yy2arr4494 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4494[2] { + yym4502 := z.EncBinary() + _ = yym4502 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4494[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4503 := z.EncBinary() + _ = yym4503 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr4494 || yy2arr4494 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4494[3] { + yym4505 := z.EncBinary() + _ = yym4505 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } @@ -56127,19 +56247,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4486[3] { + if yyq4494[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4498 := z.EncBinary() - _ = yym4498 + yym4506 := z.EncBinary() + _ = yym4506 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr4486 || yy2arr4486 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -56152,25 +56272,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4499 := z.DecBinary() - _ = yym4499 + yym4507 := z.DecBinary() + _ = yym4507 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4500 := r.ContainerType() - if yyct4500 == codecSelferValueTypeMap1234 { - yyl4500 := r.ReadMapStart() - if yyl4500 == 0 { + yyct4508 := r.ContainerType() + if yyct4508 == codecSelferValueTypeMap1234 { + yyl4508 := r.ReadMapStart() + if yyl4508 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4500, d) + x.codecDecodeSelfFromMap(yyl4508, d) } - } else if yyct4500 == codecSelferValueTypeArray1234 { - yyl4500 := r.ReadArrayStart() - if yyl4500 == 0 { + } else if yyct4508 == codecSelferValueTypeArray1234 { + yyl4508 := r.ReadArrayStart() + if yyl4508 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4500, d) + x.codecDecodeSelfFromArray(yyl4508, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -56182,12 +56302,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4501Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4501Slc - var yyhl4501 bool = l >= 0 - for yyj4501 := 0; ; yyj4501++ { - if yyhl4501 { - if yyj4501 >= l { + var yys4509Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4509Slc + var yyhl4509 bool = l >= 0 + for yyj4509 := 0; ; yyj4509++ { + if yyhl4509 { + if yyj4509 >= l { break } } else { @@ -56196,10 +56316,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4501Slc = r.DecodeBytes(yys4501Slc, true, true) - yys4501 := string(yys4501Slc) + yys4509Slc = r.DecodeBytes(yys4509Slc, true, true) + yys4509 := string(yys4509Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4501 { + switch yys4509 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -56225,9 +56345,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4501) - } // end switch yys4501 - } // end for yyj4501 + z.DecStructFieldNotFound(-1, yys4509) + } // end switch yys4509 + } // end for yyj4509 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -56235,16 +56355,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4506 int - var yyb4506 bool - var yyhl4506 bool = l >= 0 - yyj4506++ - if yyhl4506 { - yyb4506 = yyj4506 > l + var yyj4514 int + var yyb4514 bool + var yyhl4514 bool = l >= 0 + yyj4514++ + if yyhl4514 { + yyb4514 = yyj4514 > l } else { - yyb4506 = r.CheckBreak() + yyb4514 = r.CheckBreak() } - if yyb4506 { + if yyb4514 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56254,13 +56374,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj4506++ - if yyhl4506 { - yyb4506 = yyj4506 > l + yyj4514++ + if yyhl4514 { + yyb4514 = yyj4514 > l } else { - yyb4506 = r.CheckBreak() + yyb4514 = r.CheckBreak() } - if yyb4506 { + if yyb4514 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56270,13 +56390,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj4506++ - if yyhl4506 { - yyb4506 = yyj4506 > l + yyj4514++ + if yyhl4514 { + yyb4514 = yyj4514 > l } else { - yyb4506 = r.CheckBreak() + yyb4514 = r.CheckBreak() } - if yyb4506 { + if yyb4514 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56286,13 +56406,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj4506++ - if yyhl4506 { - yyb4506 = yyj4506 > l + yyj4514++ + if yyhl4514 { + yyb4514 = yyj4514 > l } else { - yyb4506 = r.CheckBreak() + yyb4514 = r.CheckBreak() } - if yyb4506 { + if yyb4514 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56303,17 +56423,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj4506++ - if yyhl4506 { - yyb4506 = yyj4506 > l + yyj4514++ + if yyhl4514 { + yyb4514 = yyj4514 > l } else { - yyb4506 = r.CheckBreak() + yyb4514 = r.CheckBreak() } - if yyb4506 { + if yyb4514 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4506-1, "") + z.DecStructFieldNotFound(yyj4514-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56325,37 +56445,37 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4511 := z.EncBinary() - _ = yym4511 + yym4519 := z.EncBinary() + _ = yym4519 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4512 := !z.EncBinary() - yy2arr4512 := z.EncBasicHandle().StructToArray - var yyq4512 [5]bool - _, _, _ = yysep4512, yyq4512, yy2arr4512 - const yyr4512 bool = false - yyq4512[0] = x.Kind != "" - yyq4512[1] = x.APIVersion != "" - yyq4512[2] = true - var yynn4512 int - if yyr4512 || yy2arr4512 { + yysep4520 := !z.EncBinary() + yy2arr4520 := z.EncBasicHandle().StructToArray + var yyq4520 [5]bool + _, _, _ = yysep4520, yyq4520, yy2arr4520 + const yyr4520 bool = false + yyq4520[0] = x.Kind != "" + yyq4520[1] = x.APIVersion != "" + yyq4520[2] = true + var yynn4520 int + if yyr4520 || yy2arr4520 { r.EncodeArrayStart(5) } else { - yynn4512 = 2 - for _, b := range yyq4512 { + yynn4520 = 2 + for _, b := range yyq4520 { if b { - yynn4512++ + yynn4520++ } } - r.EncodeMapStart(yynn4512) - yynn4512 = 0 + r.EncodeMapStart(yynn4520) + yynn4520 = 0 } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4512[0] { - yym4514 := z.EncBinary() - _ = yym4514 + if yyq4520[0] { + yym4522 := z.EncBinary() + _ = yym4522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -56364,23 +56484,23 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4512[0] { + if yyq4520[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4515 := z.EncBinary() - _ = yym4515 + yym4523 := z.EncBinary() + _ = yym4523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4512[1] { - yym4517 := z.EncBinary() - _ = yym4517 + if yyq4520[1] { + yym4525 := z.EncBinary() + _ = yym4525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -56389,39 +56509,39 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4512[1] { + if yyq4520[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4518 := z.EncBinary() - _ = yym4518 + yym4526 := z.EncBinary() + _ = yym4526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4512[2] { - yy4520 := &x.ObjectMeta - yy4520.CodecEncodeSelf(e) + if yyq4520[2] { + yy4528 := &x.ObjectMeta + yy4528.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4512[2] { + if yyq4520[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4521 := &x.ObjectMeta - yy4521.CodecEncodeSelf(e) + yy4529 := &x.ObjectMeta + yy4529.CodecEncodeSelf(e) } } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4523 := z.EncBinary() - _ = yym4523 + yym4531 := z.EncBinary() + _ = yym4531 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -56430,20 +56550,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4524 := z.EncBinary() - _ = yym4524 + yym4532 := z.EncBinary() + _ = yym4532 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym4526 := z.EncBinary() - _ = yym4526 + yym4534 := z.EncBinary() + _ = yym4534 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -56456,15 +56576,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym4527 := z.EncBinary() - _ = yym4527 + yym4535 := z.EncBinary() + _ = yym4535 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr4512 || yy2arr4512 { + if yyr4520 || yy2arr4520 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -56477,25 +56597,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4528 := z.DecBinary() - _ = yym4528 + yym4536 := z.DecBinary() + _ = yym4536 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4529 := r.ContainerType() - if yyct4529 == codecSelferValueTypeMap1234 { - yyl4529 := r.ReadMapStart() - if yyl4529 == 0 { + yyct4537 := r.ContainerType() + if yyct4537 == codecSelferValueTypeMap1234 { + yyl4537 := r.ReadMapStart() + if yyl4537 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4529, d) + x.codecDecodeSelfFromMap(yyl4537, d) } - } else if yyct4529 == codecSelferValueTypeArray1234 { - yyl4529 := r.ReadArrayStart() - if yyl4529 == 0 { + } else if yyct4537 == codecSelferValueTypeArray1234 { + yyl4537 := r.ReadArrayStart() + if yyl4537 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4529, d) + x.codecDecodeSelfFromArray(yyl4537, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -56507,12 +56627,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4530Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4530Slc - var yyhl4530 bool = l >= 0 - for yyj4530 := 0; ; yyj4530++ { - if yyhl4530 { - if yyj4530 >= l { + var yys4538Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4538Slc + var yyhl4538 bool = l >= 0 + for yyj4538 := 0; ; yyj4538++ { + if yyhl4538 { + if yyj4538 >= l { break } } else { @@ -56521,10 +56641,10 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4530Slc = r.DecodeBytes(yys4530Slc, true, true) - yys4530 := string(yys4530Slc) + yys4538Slc = r.DecodeBytes(yys4538Slc, true, true) + yys4538 := string(yys4538Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4530 { + switch yys4538 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -56541,8 +56661,8 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4533 := &x.ObjectMeta - yyv4533.CodecDecodeSelf(d) + yyv4541 := &x.ObjectMeta + yyv4541.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -56554,18 +56674,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4535 := &x.Data - yym4536 := z.DecBinary() - _ = yym4536 + yyv4543 := &x.Data + yym4544 := z.DecBinary() + _ = yym4544 if false { } else { - *yyv4535 = r.DecodeBytes(*(*[]byte)(yyv4535), false, false) + *yyv4543 = r.DecodeBytes(*(*[]byte)(yyv4543), false, false) } } default: - z.DecStructFieldNotFound(-1, yys4530) - } // end switch yys4530 - } // end for yyj4530 + z.DecStructFieldNotFound(-1, yys4538) + } // end switch yys4538 + } // end for yyj4538 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -56573,16 +56693,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4537 int - var yyb4537 bool - var yyhl4537 bool = l >= 0 - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + var yyj4545 int + var yyb4545 bool + var yyhl4545 bool = l >= 0 + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56592,13 +56712,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56608,13 +56728,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56622,16 +56742,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4540 := &x.ObjectMeta - yyv4540.CodecDecodeSelf(d) + yyv4548 := &x.ObjectMeta + yyv4548.CodecDecodeSelf(d) } - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56641,13 +56761,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Range = string(r.DecodeString()) } - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56655,26 +56775,26 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4542 := &x.Data - yym4543 := z.DecBinary() - _ = yym4543 + yyv4550 := &x.Data + yym4551 := z.DecBinary() + _ = yym4551 if false { } else { - *yyv4542 = r.DecodeBytes(*(*[]byte)(yyv4542), false, false) + *yyv4550 = r.DecodeBytes(*(*[]byte)(yyv4550), false, false) } } for { - yyj4537++ - if yyhl4537 { - yyb4537 = yyj4537 > l + yyj4545++ + if yyhl4545 { + yyb4545 = yyj4545 > l } else { - yyb4537 = r.CheckBreak() + yyb4545 = r.CheckBreak() } - if yyb4537 { + if yyb4545 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4537-1, "") + z.DecStructFieldNotFound(yyj4545-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56684,15 +56804,15 @@ func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg2_v1.OwnerReference, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4544 := range v { + for _, yyv4552 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4545 := &yyv4544 - yym4546 := z.EncBinary() - _ = yym4546 + yy4553 := &yyv4552 + yym4554 := z.EncBinary() + _ = yym4554 if false { - } else if z.HasExtensions() && z.EncExt(yy4545) { + } else if z.HasExtensions() && z.EncExt(yy4553) { } else { - z.EncFallback(yy4545) + z.EncFallback(yy4553) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -56703,145 +56823,12 @@ func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg2_v1.OwnerReference, z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4547 := *v - yyh4547, yyl4547 := z.DecSliceHelperStart() - var yyc4547 bool - if yyl4547 == 0 { - if yyv4547 == nil { - yyv4547 = []pkg2_v1.OwnerReference{} - yyc4547 = true - } else if len(yyv4547) != 0 { - yyv4547 = yyv4547[:0] - yyc4547 = true - } - } else if yyl4547 > 0 { - var yyrr4547, yyrl4547 int - var yyrt4547 bool - if yyl4547 > cap(yyv4547) { - - yyrg4547 := len(yyv4547) > 0 - yyv24547 := yyv4547 - yyrl4547, yyrt4547 = z.DecInferLen(yyl4547, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4547 { - if yyrl4547 <= cap(yyv4547) { - yyv4547 = yyv4547[:yyrl4547] - } else { - yyv4547 = make([]pkg2_v1.OwnerReference, yyrl4547) - } - } else { - yyv4547 = make([]pkg2_v1.OwnerReference, yyrl4547) - } - yyc4547 = true - yyrr4547 = len(yyv4547) - if yyrg4547 { - copy(yyv4547, yyv24547) - } - } else if yyl4547 != len(yyv4547) { - yyv4547 = yyv4547[:yyl4547] - yyc4547 = true - } - yyj4547 := 0 - for ; yyj4547 < yyrr4547; yyj4547++ { - yyh4547.ElemContainerState(yyj4547) - if r.TryDecodeAsNil() { - yyv4547[yyj4547] = pkg2_v1.OwnerReference{} - } else { - yyv4548 := &yyv4547[yyj4547] - yym4549 := z.DecBinary() - _ = yym4549 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4548) { - } else { - z.DecFallback(yyv4548, false) - } - } - - } - if yyrt4547 { - for ; yyj4547 < yyl4547; yyj4547++ { - yyv4547 = append(yyv4547, pkg2_v1.OwnerReference{}) - yyh4547.ElemContainerState(yyj4547) - if r.TryDecodeAsNil() { - yyv4547[yyj4547] = pkg2_v1.OwnerReference{} - } else { - yyv4550 := &yyv4547[yyj4547] - yym4551 := z.DecBinary() - _ = yym4551 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4550) { - } else { - z.DecFallback(yyv4550, false) - } - } - - } - } - - } else { - yyj4547 := 0 - for ; !r.CheckBreak(); yyj4547++ { - - if yyj4547 >= len(yyv4547) { - yyv4547 = append(yyv4547, pkg2_v1.OwnerReference{}) // var yyz4547 pkg2_v1.OwnerReference - yyc4547 = true - } - yyh4547.ElemContainerState(yyj4547) - if yyj4547 < len(yyv4547) { - if r.TryDecodeAsNil() { - yyv4547[yyj4547] = pkg2_v1.OwnerReference{} - } else { - yyv4552 := &yyv4547[yyj4547] - yym4553 := z.DecBinary() - _ = yym4553 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4552) { - } else { - z.DecFallback(yyv4552, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj4547 < len(yyv4547) { - yyv4547 = yyv4547[:yyj4547] - yyc4547 = true - } else if yyj4547 == 0 && yyv4547 == nil { - yyv4547 = []pkg2_v1.OwnerReference{} - yyc4547 = true - } - } - yyh4547.End() - if yyc4547 { - *v = yyv4547 - } -} - -func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4554 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4554.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv4555 := *v yyh4555, yyl4555 := z.DecSliceHelperStart() var yyc4555 bool if yyl4555 == 0 { if yyv4555 == nil { - yyv4555 = []PersistentVolumeAccessMode{} + yyv4555 = []pkg2_v1.OwnerReference{} yyc4555 = true } else if len(yyv4555) != 0 { yyv4555 = yyv4555[:0] @@ -56852,18 +56839,23 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum var yyrt4555 bool if yyl4555 > cap(yyv4555) { - yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 16) + yyrg4555 := len(yyv4555) > 0 + yyv24555 := yyv4555 + yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 72) if yyrt4555 { if yyrl4555 <= cap(yyv4555) { yyv4555 = yyv4555[:yyrl4555] } else { - yyv4555 = make([]PersistentVolumeAccessMode, yyrl4555) + yyv4555 = make([]pkg2_v1.OwnerReference, yyrl4555) } } else { - yyv4555 = make([]PersistentVolumeAccessMode, yyrl4555) + yyv4555 = make([]pkg2_v1.OwnerReference, yyrl4555) } yyc4555 = true yyrr4555 = len(yyv4555) + if yyrg4555 { + copy(yyv4555, yyv24555) + } } else if yyl4555 != len(yyv4555) { yyv4555 = yyv4555[:yyl4555] yyc4555 = true @@ -56872,20 +56864,34 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum for ; yyj4555 < yyrr4555; yyj4555++ { yyh4555.ElemContainerState(yyj4555) if r.TryDecodeAsNil() { - yyv4555[yyj4555] = "" + yyv4555[yyj4555] = pkg2_v1.OwnerReference{} } else { - yyv4555[yyj4555] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4556 := &yyv4555[yyj4555] + yym4557 := z.DecBinary() + _ = yym4557 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4556) { + } else { + z.DecFallback(yyv4556, false) + } } } if yyrt4555 { for ; yyj4555 < yyl4555; yyj4555++ { - yyv4555 = append(yyv4555, "") + yyv4555 = append(yyv4555, pkg2_v1.OwnerReference{}) yyh4555.ElemContainerState(yyj4555) if r.TryDecodeAsNil() { - yyv4555[yyj4555] = "" + yyv4555[yyj4555] = pkg2_v1.OwnerReference{} } else { - yyv4555[yyj4555] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4558 := &yyv4555[yyj4555] + yym4559 := z.DecBinary() + _ = yym4559 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4558) { + } else { + z.DecFallback(yyv4558, false) + } } } @@ -56896,15 +56902,22 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum for ; !r.CheckBreak(); yyj4555++ { if yyj4555 >= len(yyv4555) { - yyv4555 = append(yyv4555, "") // var yyz4555 PersistentVolumeAccessMode + yyv4555 = append(yyv4555, pkg2_v1.OwnerReference{}) // var yyz4555 pkg2_v1.OwnerReference yyc4555 = true } yyh4555.ElemContainerState(yyj4555) if yyj4555 < len(yyv4555) { if r.TryDecodeAsNil() { - yyv4555[yyj4555] = "" + yyv4555[yyj4555] = pkg2_v1.OwnerReference{} } else { - yyv4555[yyj4555] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4560 := &yyv4555[yyj4555] + yym4561 := z.DecBinary() + _ = yym4561 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4560) { + } else { + z.DecFallback(yyv4560, false) + } } } else { @@ -56916,7 +56929,7 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum yyv4555 = yyv4555[:yyj4555] yyc4555 = true } else if yyj4555 == 0 && yyv4555 == nil { - yyv4555 = []PersistentVolumeAccessMode{} + yyv4555 = []pkg2_v1.OwnerReference{} yyc4555 = true } } @@ -56926,15 +56939,122 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum } } +func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4562 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4562.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4563 := *v + yyh4563, yyl4563 := z.DecSliceHelperStart() + var yyc4563 bool + if yyl4563 == 0 { + if yyv4563 == nil { + yyv4563 = []PersistentVolumeAccessMode{} + 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) { + + yyrl4563, yyrt4563 = z.DecInferLen(yyl4563, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4563 { + if yyrl4563 <= cap(yyv4563) { + yyv4563 = yyv4563[:yyrl4563] + } else { + yyv4563 = make([]PersistentVolumeAccessMode, yyrl4563) + } + } else { + yyv4563 = make([]PersistentVolumeAccessMode, yyrl4563) + } + yyc4563 = true + yyrr4563 = len(yyv4563) + } else if yyl4563 != len(yyv4563) { + yyv4563 = yyv4563[:yyl4563] + yyc4563 = true + } + yyj4563 := 0 + for ; yyj4563 < yyrr4563; yyj4563++ { + yyh4563.ElemContainerState(yyj4563) + if r.TryDecodeAsNil() { + yyv4563[yyj4563] = "" + } else { + yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + if yyrt4563 { + for ; yyj4563 < yyl4563; yyj4563++ { + yyv4563 = append(yyv4563, "") + yyh4563.ElemContainerState(yyj4563) + if r.TryDecodeAsNil() { + yyv4563[yyj4563] = "" + } else { + yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } + } + + } else { + yyj4563 := 0 + for ; !r.CheckBreak(); yyj4563++ { + + if yyj4563 >= len(yyv4563) { + yyv4563 = append(yyv4563, "") // var yyz4563 PersistentVolumeAccessMode + yyc4563 = true + } + yyh4563.ElemContainerState(yyj4563) + if yyj4563 < len(yyv4563) { + if r.TryDecodeAsNil() { + yyv4563[yyj4563] = "" + } else { + yyv4563[yyj4563] = PersistentVolumeAccessMode(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4563 < len(yyv4563) { + yyv4563 = yyv4563[:yyj4563] + yyc4563 = true + } else if yyj4563 == 0 && yyv4563 == nil { + yyv4563 = []PersistentVolumeAccessMode{} + yyc4563 = true + } + } + yyh4563.End() + if yyc4563 { + *v = yyv4563 + } +} + 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 _, yyv4559 := range v { + for _, yyv4567 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4560 := &yyv4559 - yy4560.CodecEncodeSelf(e) + yy4568 := &yyv4567 + yy4568.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56944,83 +57064,83 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4561 := *v - yyh4561, yyl4561 := z.DecSliceHelperStart() - var yyc4561 bool - if yyl4561 == 0 { - if yyv4561 == nil { - yyv4561 = []PersistentVolume{} - yyc4561 = true - } else if len(yyv4561) != 0 { - yyv4561 = yyv4561[:0] - yyc4561 = true + yyv4569 := *v + yyh4569, yyl4569 := z.DecSliceHelperStart() + var yyc4569 bool + if yyl4569 == 0 { + if yyv4569 == nil { + yyv4569 = []PersistentVolume{} + yyc4569 = true + } else if len(yyv4569) != 0 { + yyv4569 = yyv4569[:0] + yyc4569 = true } - } else if yyl4561 > 0 { - var yyrr4561, yyrl4561 int - var yyrt4561 bool - if yyl4561 > cap(yyv4561) { + } else if yyl4569 > 0 { + var yyrr4569, yyrl4569 int + var yyrt4569 bool + if yyl4569 > cap(yyv4569) { - yyrg4561 := len(yyv4561) > 0 - yyv24561 := yyv4561 - yyrl4561, yyrt4561 = z.DecInferLen(yyl4561, z.DecBasicHandle().MaxInitLen, 496) - if yyrt4561 { - if yyrl4561 <= cap(yyv4561) { - yyv4561 = yyv4561[:yyrl4561] + yyrg4569 := len(yyv4569) > 0 + yyv24569 := yyv4569 + yyrl4569, yyrt4569 = z.DecInferLen(yyl4569, z.DecBasicHandle().MaxInitLen, 496) + if yyrt4569 { + if yyrl4569 <= cap(yyv4569) { + yyv4569 = yyv4569[:yyrl4569] } else { - yyv4561 = make([]PersistentVolume, yyrl4561) + yyv4569 = make([]PersistentVolume, yyrl4569) } } else { - yyv4561 = make([]PersistentVolume, yyrl4561) + yyv4569 = make([]PersistentVolume, yyrl4569) } - yyc4561 = true - yyrr4561 = len(yyv4561) - if yyrg4561 { - copy(yyv4561, yyv24561) + yyc4569 = true + yyrr4569 = len(yyv4569) + if yyrg4569 { + copy(yyv4569, yyv24569) } - } else if yyl4561 != len(yyv4561) { - yyv4561 = yyv4561[:yyl4561] - yyc4561 = true + } else if yyl4569 != len(yyv4569) { + yyv4569 = yyv4569[:yyl4569] + yyc4569 = true } - yyj4561 := 0 - for ; yyj4561 < yyrr4561; yyj4561++ { - yyh4561.ElemContainerState(yyj4561) + yyj4569 := 0 + for ; yyj4569 < yyrr4569; yyj4569++ { + yyh4569.ElemContainerState(yyj4569) if r.TryDecodeAsNil() { - yyv4561[yyj4561] = PersistentVolume{} + yyv4569[yyj4569] = PersistentVolume{} } else { - yyv4562 := &yyv4561[yyj4561] - yyv4562.CodecDecodeSelf(d) + yyv4570 := &yyv4569[yyj4569] + yyv4570.CodecDecodeSelf(d) } } - if yyrt4561 { - for ; yyj4561 < yyl4561; yyj4561++ { - yyv4561 = append(yyv4561, PersistentVolume{}) - yyh4561.ElemContainerState(yyj4561) + if yyrt4569 { + for ; yyj4569 < yyl4569; yyj4569++ { + yyv4569 = append(yyv4569, PersistentVolume{}) + yyh4569.ElemContainerState(yyj4569) if r.TryDecodeAsNil() { - yyv4561[yyj4561] = PersistentVolume{} + yyv4569[yyj4569] = PersistentVolume{} } else { - yyv4563 := &yyv4561[yyj4561] - yyv4563.CodecDecodeSelf(d) + yyv4571 := &yyv4569[yyj4569] + yyv4571.CodecDecodeSelf(d) } } } } else { - yyj4561 := 0 - for ; !r.CheckBreak(); yyj4561++ { + yyj4569 := 0 + for ; !r.CheckBreak(); yyj4569++ { - if yyj4561 >= len(yyv4561) { - yyv4561 = append(yyv4561, PersistentVolume{}) // var yyz4561 PersistentVolume - yyc4561 = true + if yyj4569 >= len(yyv4569) { + yyv4569 = append(yyv4569, PersistentVolume{}) // var yyz4569 PersistentVolume + yyc4569 = true } - yyh4561.ElemContainerState(yyj4561) - if yyj4561 < len(yyv4561) { + yyh4569.ElemContainerState(yyj4569) + if yyj4569 < len(yyv4569) { if r.TryDecodeAsNil() { - yyv4561[yyj4561] = PersistentVolume{} + yyv4569[yyj4569] = PersistentVolume{} } else { - yyv4564 := &yyv4561[yyj4561] - yyv4564.CodecDecodeSelf(d) + yyv4572 := &yyv4569[yyj4569] + yyv4572.CodecDecodeSelf(d) } } else { @@ -57028,17 +57148,17 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code } } - if yyj4561 < len(yyv4561) { - yyv4561 = yyv4561[:yyj4561] - yyc4561 = true - } else if yyj4561 == 0 && yyv4561 == nil { - yyv4561 = []PersistentVolume{} - yyc4561 = true + if yyj4569 < len(yyv4569) { + yyv4569 = yyv4569[:yyj4569] + yyc4569 = true + } else if yyj4569 == 0 && yyv4569 == nil { + yyv4569 = []PersistentVolume{} + yyc4569 = true } } - yyh4561.End() - if yyc4561 { - *v = yyv4561 + yyh4569.End() + if yyc4569 { + *v = yyv4569 } } @@ -57047,10 +57167,10 @@ func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4565 := range v { + for _, yyv4573 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4566 := &yyv4565 - yy4566.CodecEncodeSelf(e) + yy4574 := &yyv4573 + yy4574.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57060,83 +57180,83 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4567 := *v - yyh4567, yyl4567 := z.DecSliceHelperStart() - var yyc4567 bool - if yyl4567 == 0 { - if yyv4567 == nil { - yyv4567 = []PersistentVolumeClaim{} - yyc4567 = true - } else if len(yyv4567) != 0 { - yyv4567 = yyv4567[:0] - yyc4567 = true + yyv4575 := *v + yyh4575, yyl4575 := z.DecSliceHelperStart() + var yyc4575 bool + if yyl4575 == 0 { + if yyv4575 == nil { + yyv4575 = []PersistentVolumeClaim{} + yyc4575 = true + } else if len(yyv4575) != 0 { + yyv4575 = yyv4575[:0] + yyc4575 = true } - } else if yyl4567 > 0 { - var yyrr4567, yyrl4567 int - var yyrt4567 bool - if yyl4567 > cap(yyv4567) { + } else if yyl4575 > 0 { + var yyrr4575, yyrl4575 int + var yyrt4575 bool + if yyl4575 > cap(yyv4575) { - yyrg4567 := len(yyv4567) > 0 - yyv24567 := yyv4567 - yyrl4567, yyrt4567 = z.DecInferLen(yyl4567, z.DecBasicHandle().MaxInitLen, 368) - if yyrt4567 { - if yyrl4567 <= cap(yyv4567) { - yyv4567 = yyv4567[:yyrl4567] + yyrg4575 := len(yyv4575) > 0 + yyv24575 := yyv4575 + yyrl4575, yyrt4575 = z.DecInferLen(yyl4575, z.DecBasicHandle().MaxInitLen, 368) + if yyrt4575 { + if yyrl4575 <= cap(yyv4575) { + yyv4575 = yyv4575[:yyrl4575] } else { - yyv4567 = make([]PersistentVolumeClaim, yyrl4567) + yyv4575 = make([]PersistentVolumeClaim, yyrl4575) } } else { - yyv4567 = make([]PersistentVolumeClaim, yyrl4567) + yyv4575 = make([]PersistentVolumeClaim, yyrl4575) } - yyc4567 = true - yyrr4567 = len(yyv4567) - if yyrg4567 { - copy(yyv4567, yyv24567) + yyc4575 = true + yyrr4575 = len(yyv4575) + if yyrg4575 { + copy(yyv4575, yyv24575) } - } else if yyl4567 != len(yyv4567) { - yyv4567 = yyv4567[:yyl4567] - yyc4567 = true + } else if yyl4575 != len(yyv4575) { + yyv4575 = yyv4575[:yyl4575] + yyc4575 = true } - yyj4567 := 0 - for ; yyj4567 < yyrr4567; yyj4567++ { - yyh4567.ElemContainerState(yyj4567) + yyj4575 := 0 + for ; yyj4575 < yyrr4575; yyj4575++ { + yyh4575.ElemContainerState(yyj4575) if r.TryDecodeAsNil() { - yyv4567[yyj4567] = PersistentVolumeClaim{} + yyv4575[yyj4575] = PersistentVolumeClaim{} } else { - yyv4568 := &yyv4567[yyj4567] - yyv4568.CodecDecodeSelf(d) + yyv4576 := &yyv4575[yyj4575] + yyv4576.CodecDecodeSelf(d) } } - if yyrt4567 { - for ; yyj4567 < yyl4567; yyj4567++ { - yyv4567 = append(yyv4567, PersistentVolumeClaim{}) - yyh4567.ElemContainerState(yyj4567) + if yyrt4575 { + for ; yyj4575 < yyl4575; yyj4575++ { + yyv4575 = append(yyv4575, PersistentVolumeClaim{}) + yyh4575.ElemContainerState(yyj4575) if r.TryDecodeAsNil() { - yyv4567[yyj4567] = PersistentVolumeClaim{} + yyv4575[yyj4575] = PersistentVolumeClaim{} } else { - yyv4569 := &yyv4567[yyj4567] - yyv4569.CodecDecodeSelf(d) + yyv4577 := &yyv4575[yyj4575] + yyv4577.CodecDecodeSelf(d) } } } } else { - yyj4567 := 0 - for ; !r.CheckBreak(); yyj4567++ { + yyj4575 := 0 + for ; !r.CheckBreak(); yyj4575++ { - if yyj4567 >= len(yyv4567) { - yyv4567 = append(yyv4567, PersistentVolumeClaim{}) // var yyz4567 PersistentVolumeClaim - yyc4567 = true + if yyj4575 >= len(yyv4575) { + yyv4575 = append(yyv4575, PersistentVolumeClaim{}) // var yyz4575 PersistentVolumeClaim + yyc4575 = true } - yyh4567.ElemContainerState(yyj4567) - if yyj4567 < len(yyv4567) { + yyh4575.ElemContainerState(yyj4575) + if yyj4575 < len(yyv4575) { if r.TryDecodeAsNil() { - yyv4567[yyj4567] = PersistentVolumeClaim{} + yyv4575[yyj4575] = PersistentVolumeClaim{} } else { - yyv4570 := &yyv4567[yyj4567] - yyv4570.CodecDecodeSelf(d) + yyv4578 := &yyv4575[yyj4575] + yyv4578.CodecDecodeSelf(d) } } else { @@ -57144,17 +57264,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai } } - if yyj4567 < len(yyv4567) { - yyv4567 = yyv4567[:yyj4567] - yyc4567 = true - } else if yyj4567 == 0 && yyv4567 == nil { - yyv4567 = []PersistentVolumeClaim{} - yyc4567 = true + if yyj4575 < len(yyv4575) { + yyv4575 = yyv4575[:yyj4575] + yyc4575 = true + } else if yyj4575 == 0 && yyv4575 == nil { + yyv4575 = []PersistentVolumeClaim{} + yyc4575 = true } } - yyh4567.End() - if yyc4567 { - *v = yyv4567 + yyh4575.End() + if yyc4575 { + *v = yyv4575 } } @@ -57163,10 +57283,10 @@ func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4571 := range v { + for _, yyv4579 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4572 := &yyv4571 - yy4572.CodecEncodeSelf(e) + yy4580 := &yyv4579 + yy4580.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57176,83 +57296,83 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4573 := *v - yyh4573, yyl4573 := z.DecSliceHelperStart() - var yyc4573 bool - if yyl4573 == 0 { - if yyv4573 == nil { - yyv4573 = []KeyToPath{} - yyc4573 = true - } else if len(yyv4573) != 0 { - yyv4573 = yyv4573[:0] - yyc4573 = true + yyv4581 := *v + yyh4581, yyl4581 := z.DecSliceHelperStart() + var yyc4581 bool + if yyl4581 == 0 { + if yyv4581 == nil { + yyv4581 = []KeyToPath{} + yyc4581 = true + } else if len(yyv4581) != 0 { + yyv4581 = yyv4581[:0] + yyc4581 = true } - } else if yyl4573 > 0 { - var yyrr4573, yyrl4573 int - var yyrt4573 bool - if yyl4573 > cap(yyv4573) { + } else if yyl4581 > 0 { + var yyrr4581, yyrl4581 int + var yyrt4581 bool + if yyl4581 > cap(yyv4581) { - yyrg4573 := len(yyv4573) > 0 - yyv24573 := yyv4573 - yyrl4573, yyrt4573 = z.DecInferLen(yyl4573, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4573 { - if yyrl4573 <= cap(yyv4573) { - yyv4573 = yyv4573[:yyrl4573] + yyrg4581 := len(yyv4581) > 0 + yyv24581 := yyv4581 + yyrl4581, yyrt4581 = z.DecInferLen(yyl4581, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4581 { + if yyrl4581 <= cap(yyv4581) { + yyv4581 = yyv4581[:yyrl4581] } else { - yyv4573 = make([]KeyToPath, yyrl4573) + yyv4581 = make([]KeyToPath, yyrl4581) } } else { - yyv4573 = make([]KeyToPath, yyrl4573) + yyv4581 = make([]KeyToPath, yyrl4581) } - yyc4573 = true - yyrr4573 = len(yyv4573) - if yyrg4573 { - copy(yyv4573, yyv24573) + yyc4581 = true + yyrr4581 = len(yyv4581) + if yyrg4581 { + copy(yyv4581, yyv24581) } - } else if yyl4573 != len(yyv4573) { - yyv4573 = yyv4573[:yyl4573] - yyc4573 = true + } else if yyl4581 != len(yyv4581) { + yyv4581 = yyv4581[:yyl4581] + yyc4581 = true } - yyj4573 := 0 - for ; yyj4573 < yyrr4573; yyj4573++ { - yyh4573.ElemContainerState(yyj4573) + yyj4581 := 0 + for ; yyj4581 < yyrr4581; yyj4581++ { + yyh4581.ElemContainerState(yyj4581) if r.TryDecodeAsNil() { - yyv4573[yyj4573] = KeyToPath{} + yyv4581[yyj4581] = KeyToPath{} } else { - yyv4574 := &yyv4573[yyj4573] - yyv4574.CodecDecodeSelf(d) + yyv4582 := &yyv4581[yyj4581] + yyv4582.CodecDecodeSelf(d) } } - if yyrt4573 { - for ; yyj4573 < yyl4573; yyj4573++ { - yyv4573 = append(yyv4573, KeyToPath{}) - yyh4573.ElemContainerState(yyj4573) + if yyrt4581 { + for ; yyj4581 < yyl4581; yyj4581++ { + yyv4581 = append(yyv4581, KeyToPath{}) + yyh4581.ElemContainerState(yyj4581) if r.TryDecodeAsNil() { - yyv4573[yyj4573] = KeyToPath{} + yyv4581[yyj4581] = KeyToPath{} } else { - yyv4575 := &yyv4573[yyj4573] - yyv4575.CodecDecodeSelf(d) + yyv4583 := &yyv4581[yyj4581] + yyv4583.CodecDecodeSelf(d) } } } } else { - yyj4573 := 0 - for ; !r.CheckBreak(); yyj4573++ { + yyj4581 := 0 + for ; !r.CheckBreak(); yyj4581++ { - if yyj4573 >= len(yyv4573) { - yyv4573 = append(yyv4573, KeyToPath{}) // var yyz4573 KeyToPath - yyc4573 = true + if yyj4581 >= len(yyv4581) { + yyv4581 = append(yyv4581, KeyToPath{}) // var yyz4581 KeyToPath + yyc4581 = true } - yyh4573.ElemContainerState(yyj4573) - if yyj4573 < len(yyv4573) { + yyh4581.ElemContainerState(yyj4581) + if yyj4581 < len(yyv4581) { if r.TryDecodeAsNil() { - yyv4573[yyj4573] = KeyToPath{} + yyv4581[yyj4581] = KeyToPath{} } else { - yyv4576 := &yyv4573[yyj4573] - yyv4576.CodecDecodeSelf(d) + yyv4584 := &yyv4581[yyj4581] + yyv4584.CodecDecodeSelf(d) } } else { @@ -57260,17 +57380,17 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) } } - if yyj4573 < len(yyv4573) { - yyv4573 = yyv4573[:yyj4573] - yyc4573 = true - } else if yyj4573 == 0 && yyv4573 == nil { - yyv4573 = []KeyToPath{} - yyc4573 = true + if yyj4581 < len(yyv4581) { + yyv4581 = yyv4581[:yyj4581] + yyc4581 = true + } else if yyj4581 == 0 && yyv4581 == nil { + yyv4581 = []KeyToPath{} + yyc4581 = true } } - yyh4573.End() - if yyc4573 { - *v = yyv4573 + yyh4581.End() + if yyc4581 { + *v = yyv4581 } } @@ -57279,10 +57399,10 @@ func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4577 := range v { + for _, yyv4585 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4578 := &yyv4577 - yy4578.CodecEncodeSelf(e) + yy4586 := &yyv4585 + yy4586.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57292,83 +57412,83 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4579 := *v - yyh4579, yyl4579 := z.DecSliceHelperStart() - var yyc4579 bool - if yyl4579 == 0 { - if yyv4579 == nil { - yyv4579 = []HTTPHeader{} - yyc4579 = true - } else if len(yyv4579) != 0 { - yyv4579 = yyv4579[:0] - yyc4579 = true + yyv4587 := *v + yyh4587, yyl4587 := z.DecSliceHelperStart() + var yyc4587 bool + if yyl4587 == 0 { + if yyv4587 == nil { + yyv4587 = []HTTPHeader{} + yyc4587 = true + } else if len(yyv4587) != 0 { + yyv4587 = yyv4587[:0] + yyc4587 = true } - } else if yyl4579 > 0 { - var yyrr4579, yyrl4579 int - var yyrt4579 bool - if yyl4579 > cap(yyv4579) { + } else if yyl4587 > 0 { + var yyrr4587, yyrl4587 int + var yyrt4587 bool + if yyl4587 > cap(yyv4587) { - yyrg4579 := len(yyv4579) > 0 - yyv24579 := yyv4579 - yyrl4579, yyrt4579 = z.DecInferLen(yyl4579, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4579 { - if yyrl4579 <= cap(yyv4579) { - yyv4579 = yyv4579[:yyrl4579] + yyrg4587 := len(yyv4587) > 0 + yyv24587 := yyv4587 + yyrl4587, yyrt4587 = z.DecInferLen(yyl4587, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4587 { + if yyrl4587 <= cap(yyv4587) { + yyv4587 = yyv4587[:yyrl4587] } else { - yyv4579 = make([]HTTPHeader, yyrl4579) + yyv4587 = make([]HTTPHeader, yyrl4587) } } else { - yyv4579 = make([]HTTPHeader, yyrl4579) + yyv4587 = make([]HTTPHeader, yyrl4587) } - yyc4579 = true - yyrr4579 = len(yyv4579) - if yyrg4579 { - copy(yyv4579, yyv24579) + yyc4587 = true + yyrr4587 = len(yyv4587) + if yyrg4587 { + copy(yyv4587, yyv24587) } - } else if yyl4579 != len(yyv4579) { - yyv4579 = yyv4579[:yyl4579] - yyc4579 = true + } else if yyl4587 != len(yyv4587) { + yyv4587 = yyv4587[:yyl4587] + yyc4587 = true } - yyj4579 := 0 - for ; yyj4579 < yyrr4579; yyj4579++ { - yyh4579.ElemContainerState(yyj4579) + yyj4587 := 0 + for ; yyj4587 < yyrr4587; yyj4587++ { + yyh4587.ElemContainerState(yyj4587) if r.TryDecodeAsNil() { - yyv4579[yyj4579] = HTTPHeader{} + yyv4587[yyj4587] = HTTPHeader{} } else { - yyv4580 := &yyv4579[yyj4579] - yyv4580.CodecDecodeSelf(d) + yyv4588 := &yyv4587[yyj4587] + yyv4588.CodecDecodeSelf(d) } } - if yyrt4579 { - for ; yyj4579 < yyl4579; yyj4579++ { - yyv4579 = append(yyv4579, HTTPHeader{}) - yyh4579.ElemContainerState(yyj4579) + if yyrt4587 { + for ; yyj4587 < yyl4587; yyj4587++ { + yyv4587 = append(yyv4587, HTTPHeader{}) + yyh4587.ElemContainerState(yyj4587) if r.TryDecodeAsNil() { - yyv4579[yyj4579] = HTTPHeader{} + yyv4587[yyj4587] = HTTPHeader{} } else { - yyv4581 := &yyv4579[yyj4579] - yyv4581.CodecDecodeSelf(d) + yyv4589 := &yyv4587[yyj4587] + yyv4589.CodecDecodeSelf(d) } } } } else { - yyj4579 := 0 - for ; !r.CheckBreak(); yyj4579++ { + yyj4587 := 0 + for ; !r.CheckBreak(); yyj4587++ { - if yyj4579 >= len(yyv4579) { - yyv4579 = append(yyv4579, HTTPHeader{}) // var yyz4579 HTTPHeader - yyc4579 = true + if yyj4587 >= len(yyv4587) { + yyv4587 = append(yyv4587, HTTPHeader{}) // var yyz4587 HTTPHeader + yyc4587 = true } - yyh4579.ElemContainerState(yyj4579) - if yyj4579 < len(yyv4579) { + yyh4587.ElemContainerState(yyj4587) + if yyj4587 < len(yyv4587) { if r.TryDecodeAsNil() { - yyv4579[yyj4579] = HTTPHeader{} + yyv4587[yyj4587] = HTTPHeader{} } else { - yyv4582 := &yyv4579[yyj4579] - yyv4582.CodecDecodeSelf(d) + yyv4590 := &yyv4587[yyj4587] + yyv4590.CodecDecodeSelf(d) } } else { @@ -57376,17 +57496,17 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode } } - if yyj4579 < len(yyv4579) { - yyv4579 = yyv4579[:yyj4579] - yyc4579 = true - } else if yyj4579 == 0 && yyv4579 == nil { - yyv4579 = []HTTPHeader{} - yyc4579 = true + if yyj4587 < len(yyv4587) { + yyv4587 = yyv4587[:yyj4587] + yyc4587 = true + } else if yyj4587 == 0 && yyv4587 == nil { + yyv4587 = []HTTPHeader{} + yyc4587 = true } } - yyh4579.End() - if yyc4579 { - *v = yyv4579 + yyh4587.End() + if yyc4587 { + *v = yyv4587 } } @@ -57395,9 +57515,9 @@ func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4583 := range v { + for _, yyv4591 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4583.CodecEncodeSelf(e) + yyv4591.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57407,75 +57527,75 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4584 := *v - yyh4584, yyl4584 := z.DecSliceHelperStart() - var yyc4584 bool - if yyl4584 == 0 { - if yyv4584 == nil { - yyv4584 = []Capability{} - yyc4584 = true - } else if len(yyv4584) != 0 { - yyv4584 = yyv4584[:0] - yyc4584 = true + yyv4592 := *v + yyh4592, yyl4592 := z.DecSliceHelperStart() + var yyc4592 bool + if yyl4592 == 0 { + if yyv4592 == nil { + yyv4592 = []Capability{} + yyc4592 = true + } else if len(yyv4592) != 0 { + yyv4592 = yyv4592[:0] + yyc4592 = true } - } else if yyl4584 > 0 { - var yyrr4584, yyrl4584 int - var yyrt4584 bool - if yyl4584 > cap(yyv4584) { + } else if yyl4592 > 0 { + var yyrr4592, yyrl4592 int + var yyrt4592 bool + if yyl4592 > cap(yyv4592) { - yyrl4584, yyrt4584 = z.DecInferLen(yyl4584, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4584 { - if yyrl4584 <= cap(yyv4584) { - yyv4584 = yyv4584[:yyrl4584] + yyrl4592, yyrt4592 = z.DecInferLen(yyl4592, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4592 { + if yyrl4592 <= cap(yyv4592) { + yyv4592 = yyv4592[:yyrl4592] } else { - yyv4584 = make([]Capability, yyrl4584) + yyv4592 = make([]Capability, yyrl4592) } } else { - yyv4584 = make([]Capability, yyrl4584) + yyv4592 = make([]Capability, yyrl4592) } - yyc4584 = true - yyrr4584 = len(yyv4584) - } else if yyl4584 != len(yyv4584) { - yyv4584 = yyv4584[:yyl4584] - yyc4584 = true + yyc4592 = true + yyrr4592 = len(yyv4592) + } else if yyl4592 != len(yyv4592) { + yyv4592 = yyv4592[:yyl4592] + yyc4592 = true } - yyj4584 := 0 - for ; yyj4584 < yyrr4584; yyj4584++ { - yyh4584.ElemContainerState(yyj4584) + yyj4592 := 0 + for ; yyj4592 < yyrr4592; yyj4592++ { + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv4584[yyj4584] = "" + yyv4592[yyj4592] = "" } else { - yyv4584[yyj4584] = Capability(r.DecodeString()) + yyv4592[yyj4592] = Capability(r.DecodeString()) } } - if yyrt4584 { - for ; yyj4584 < yyl4584; yyj4584++ { - yyv4584 = append(yyv4584, "") - yyh4584.ElemContainerState(yyj4584) + if yyrt4592 { + for ; yyj4592 < yyl4592; yyj4592++ { + yyv4592 = append(yyv4592, "") + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv4584[yyj4584] = "" + yyv4592[yyj4592] = "" } else { - yyv4584[yyj4584] = Capability(r.DecodeString()) + yyv4592[yyj4592] = Capability(r.DecodeString()) } } } } else { - yyj4584 := 0 - for ; !r.CheckBreak(); yyj4584++ { + yyj4592 := 0 + for ; !r.CheckBreak(); yyj4592++ { - if yyj4584 >= len(yyv4584) { - yyv4584 = append(yyv4584, "") // var yyz4584 Capability - yyc4584 = true + if yyj4592 >= len(yyv4592) { + yyv4592 = append(yyv4592, "") // var yyz4592 Capability + yyc4592 = true } - yyh4584.ElemContainerState(yyj4584) - if yyj4584 < len(yyv4584) { + yyh4592.ElemContainerState(yyj4592) + if yyj4592 < len(yyv4592) { if r.TryDecodeAsNil() { - yyv4584[yyj4584] = "" + yyv4592[yyj4592] = "" } else { - yyv4584[yyj4584] = Capability(r.DecodeString()) + yyv4592[yyj4592] = Capability(r.DecodeString()) } } else { @@ -57483,17 +57603,17 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode } } - if yyj4584 < len(yyv4584) { - yyv4584 = yyv4584[:yyj4584] - yyc4584 = true - } else if yyj4584 == 0 && yyv4584 == nil { - yyv4584 = []Capability{} - yyc4584 = true + if yyj4592 < len(yyv4592) { + yyv4592 = yyv4592[:yyj4592] + yyc4592 = true + } else if yyj4592 == 0 && yyv4592 == nil { + yyv4592 = []Capability{} + yyc4592 = true } } - yyh4584.End() - if yyc4584 { - *v = yyv4584 + yyh4592.End() + if yyc4592 { + *v = yyv4592 } } @@ -57502,10 +57622,10 @@ func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4588 := range v { + for _, yyv4596 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4589 := &yyv4588 - yy4589.CodecEncodeSelf(e) + yy4597 := &yyv4596 + yy4597.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57515,83 +57635,83 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4590 := *v - yyh4590, yyl4590 := z.DecSliceHelperStart() - var yyc4590 bool - if yyl4590 == 0 { - if yyv4590 == nil { - yyv4590 = []ContainerPort{} - yyc4590 = true - } else if len(yyv4590) != 0 { - yyv4590 = yyv4590[:0] - yyc4590 = true + yyv4598 := *v + yyh4598, yyl4598 := z.DecSliceHelperStart() + var yyc4598 bool + if yyl4598 == 0 { + if yyv4598 == nil { + yyv4598 = []ContainerPort{} + yyc4598 = true + } else if len(yyv4598) != 0 { + yyv4598 = yyv4598[:0] + yyc4598 = true } - } else if yyl4590 > 0 { - var yyrr4590, yyrl4590 int - var yyrt4590 bool - if yyl4590 > cap(yyv4590) { + } else if yyl4598 > 0 { + var yyrr4598, yyrl4598 int + var yyrt4598 bool + if yyl4598 > cap(yyv4598) { - yyrg4590 := len(yyv4590) > 0 - yyv24590 := yyv4590 - yyrl4590, yyrt4590 = z.DecInferLen(yyl4590, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4590 { - if yyrl4590 <= cap(yyv4590) { - yyv4590 = yyv4590[:yyrl4590] + yyrg4598 := len(yyv4598) > 0 + yyv24598 := yyv4598 + yyrl4598, yyrt4598 = z.DecInferLen(yyl4598, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4598 { + if yyrl4598 <= cap(yyv4598) { + yyv4598 = yyv4598[:yyrl4598] } else { - yyv4590 = make([]ContainerPort, yyrl4590) + yyv4598 = make([]ContainerPort, yyrl4598) } } else { - yyv4590 = make([]ContainerPort, yyrl4590) + yyv4598 = make([]ContainerPort, yyrl4598) } - yyc4590 = true - yyrr4590 = len(yyv4590) - if yyrg4590 { - copy(yyv4590, yyv24590) + yyc4598 = true + yyrr4598 = len(yyv4598) + if yyrg4598 { + copy(yyv4598, yyv24598) } - } else if yyl4590 != len(yyv4590) { - yyv4590 = yyv4590[:yyl4590] - yyc4590 = true + } else if yyl4598 != len(yyv4598) { + yyv4598 = yyv4598[:yyl4598] + yyc4598 = true } - yyj4590 := 0 - for ; yyj4590 < yyrr4590; yyj4590++ { - yyh4590.ElemContainerState(yyj4590) + yyj4598 := 0 + for ; yyj4598 < yyrr4598; yyj4598++ { + yyh4598.ElemContainerState(yyj4598) if r.TryDecodeAsNil() { - yyv4590[yyj4590] = ContainerPort{} + yyv4598[yyj4598] = ContainerPort{} } else { - yyv4591 := &yyv4590[yyj4590] - yyv4591.CodecDecodeSelf(d) + yyv4599 := &yyv4598[yyj4598] + yyv4599.CodecDecodeSelf(d) } } - if yyrt4590 { - for ; yyj4590 < yyl4590; yyj4590++ { - yyv4590 = append(yyv4590, ContainerPort{}) - yyh4590.ElemContainerState(yyj4590) + if yyrt4598 { + for ; yyj4598 < yyl4598; yyj4598++ { + yyv4598 = append(yyv4598, ContainerPort{}) + yyh4598.ElemContainerState(yyj4598) if r.TryDecodeAsNil() { - yyv4590[yyj4590] = ContainerPort{} + yyv4598[yyj4598] = ContainerPort{} } else { - yyv4592 := &yyv4590[yyj4590] - yyv4592.CodecDecodeSelf(d) + yyv4600 := &yyv4598[yyj4598] + yyv4600.CodecDecodeSelf(d) } } } } else { - yyj4590 := 0 - for ; !r.CheckBreak(); yyj4590++ { + yyj4598 := 0 + for ; !r.CheckBreak(); yyj4598++ { - if yyj4590 >= len(yyv4590) { - yyv4590 = append(yyv4590, ContainerPort{}) // var yyz4590 ContainerPort - yyc4590 = true + if yyj4598 >= len(yyv4598) { + yyv4598 = append(yyv4598, ContainerPort{}) // var yyz4598 ContainerPort + yyc4598 = true } - yyh4590.ElemContainerState(yyj4590) - if yyj4590 < len(yyv4590) { + yyh4598.ElemContainerState(yyj4598) + if yyj4598 < len(yyv4598) { if r.TryDecodeAsNil() { - yyv4590[yyj4590] = ContainerPort{} + yyv4598[yyj4598] = ContainerPort{} } else { - yyv4593 := &yyv4590[yyj4590] - yyv4593.CodecDecodeSelf(d) + yyv4601 := &yyv4598[yyj4598] + yyv4601.CodecDecodeSelf(d) } } else { @@ -57599,17 +57719,17 @@ func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978. } } - if yyj4590 < len(yyv4590) { - yyv4590 = yyv4590[:yyj4590] - yyc4590 = true - } else if yyj4590 == 0 && yyv4590 == nil { - yyv4590 = []ContainerPort{} - yyc4590 = true + if yyj4598 < len(yyv4598) { + yyv4598 = yyv4598[:yyj4598] + yyc4598 = true + } else if yyj4598 == 0 && yyv4598 == nil { + yyv4598 = []ContainerPort{} + yyc4598 = true } } - yyh4590.End() - if yyc4590 { - *v = yyv4590 + yyh4598.End() + if yyc4598 { + *v = yyv4598 } } @@ -57618,10 +57738,10 @@ func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4594 := range v { + for _, yyv4602 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4595 := &yyv4594 - yy4595.CodecEncodeSelf(e) + yy4603 := &yyv4602 + yy4603.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57631,83 +57751,83 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4596 := *v - yyh4596, yyl4596 := z.DecSliceHelperStart() - var yyc4596 bool - if yyl4596 == 0 { - if yyv4596 == nil { - yyv4596 = []EnvVar{} - yyc4596 = true - } else if len(yyv4596) != 0 { - yyv4596 = yyv4596[:0] - yyc4596 = true + yyv4604 := *v + yyh4604, yyl4604 := z.DecSliceHelperStart() + var yyc4604 bool + if yyl4604 == 0 { + if yyv4604 == nil { + yyv4604 = []EnvVar{} + yyc4604 = true + } else if len(yyv4604) != 0 { + yyv4604 = yyv4604[:0] + yyc4604 = true } - } else if yyl4596 > 0 { - var yyrr4596, yyrl4596 int - var yyrt4596 bool - if yyl4596 > cap(yyv4596) { + } else if yyl4604 > 0 { + var yyrr4604, yyrl4604 int + var yyrt4604 bool + if yyl4604 > cap(yyv4604) { - yyrg4596 := len(yyv4596) > 0 - yyv24596 := yyv4596 - yyrl4596, yyrt4596 = z.DecInferLen(yyl4596, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4596 { - if yyrl4596 <= cap(yyv4596) { - yyv4596 = yyv4596[:yyrl4596] + yyrg4604 := len(yyv4604) > 0 + yyv24604 := yyv4604 + yyrl4604, yyrt4604 = z.DecInferLen(yyl4604, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4604 { + if yyrl4604 <= cap(yyv4604) { + yyv4604 = yyv4604[:yyrl4604] } else { - yyv4596 = make([]EnvVar, yyrl4596) + yyv4604 = make([]EnvVar, yyrl4604) } } else { - yyv4596 = make([]EnvVar, yyrl4596) + yyv4604 = make([]EnvVar, yyrl4604) } - yyc4596 = true - yyrr4596 = len(yyv4596) - if yyrg4596 { - copy(yyv4596, yyv24596) + yyc4604 = true + yyrr4604 = len(yyv4604) + if yyrg4604 { + copy(yyv4604, yyv24604) } - } else if yyl4596 != len(yyv4596) { - yyv4596 = yyv4596[:yyl4596] - yyc4596 = true + } else if yyl4604 != len(yyv4604) { + yyv4604 = yyv4604[:yyl4604] + yyc4604 = true } - yyj4596 := 0 - for ; yyj4596 < yyrr4596; yyj4596++ { - yyh4596.ElemContainerState(yyj4596) + yyj4604 := 0 + for ; yyj4604 < yyrr4604; yyj4604++ { + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv4596[yyj4596] = EnvVar{} + yyv4604[yyj4604] = EnvVar{} } else { - yyv4597 := &yyv4596[yyj4596] - yyv4597.CodecDecodeSelf(d) + yyv4605 := &yyv4604[yyj4604] + yyv4605.CodecDecodeSelf(d) } } - if yyrt4596 { - for ; yyj4596 < yyl4596; yyj4596++ { - yyv4596 = append(yyv4596, EnvVar{}) - yyh4596.ElemContainerState(yyj4596) + if yyrt4604 { + for ; yyj4604 < yyl4604; yyj4604++ { + yyv4604 = append(yyv4604, EnvVar{}) + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv4596[yyj4596] = EnvVar{} + yyv4604[yyj4604] = EnvVar{} } else { - yyv4598 := &yyv4596[yyj4596] - yyv4598.CodecDecodeSelf(d) + yyv4606 := &yyv4604[yyj4604] + yyv4606.CodecDecodeSelf(d) } } } } else { - yyj4596 := 0 - for ; !r.CheckBreak(); yyj4596++ { + yyj4604 := 0 + for ; !r.CheckBreak(); yyj4604++ { - if yyj4596 >= len(yyv4596) { - yyv4596 = append(yyv4596, EnvVar{}) // var yyz4596 EnvVar - yyc4596 = true + if yyj4604 >= len(yyv4604) { + yyv4604 = append(yyv4604, EnvVar{}) // var yyz4604 EnvVar + yyc4604 = true } - yyh4596.ElemContainerState(yyj4596) - if yyj4596 < len(yyv4596) { + yyh4604.ElemContainerState(yyj4604) + if yyj4604 < len(yyv4604) { if r.TryDecodeAsNil() { - yyv4596[yyj4596] = EnvVar{} + yyv4604[yyj4604] = EnvVar{} } else { - yyv4599 := &yyv4596[yyj4596] - yyv4599.CodecDecodeSelf(d) + yyv4607 := &yyv4604[yyj4604] + yyv4607.CodecDecodeSelf(d) } } else { @@ -57715,17 +57835,17 @@ func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { } } - if yyj4596 < len(yyv4596) { - yyv4596 = yyv4596[:yyj4596] - yyc4596 = true - } else if yyj4596 == 0 && yyv4596 == nil { - yyv4596 = []EnvVar{} - yyc4596 = true + if yyj4604 < len(yyv4604) { + yyv4604 = yyv4604[:yyj4604] + yyc4604 = true + } else if yyj4604 == 0 && yyv4604 == nil { + yyv4604 = []EnvVar{} + yyc4604 = true } } - yyh4596.End() - if yyc4596 { - *v = yyv4596 + yyh4604.End() + if yyc4604 { + *v = yyv4604 } } @@ -57734,10 +57854,10 @@ func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4600 := range v { + for _, yyv4608 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4601 := &yyv4600 - yy4601.CodecEncodeSelf(e) + yy4609 := &yyv4608 + yy4609.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57747,83 +57867,83 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4602 := *v - yyh4602, yyl4602 := z.DecSliceHelperStart() - var yyc4602 bool - if yyl4602 == 0 { - if yyv4602 == nil { - yyv4602 = []VolumeMount{} - yyc4602 = true - } else if len(yyv4602) != 0 { - yyv4602 = yyv4602[:0] - yyc4602 = true + yyv4610 := *v + yyh4610, yyl4610 := z.DecSliceHelperStart() + var yyc4610 bool + if yyl4610 == 0 { + if yyv4610 == nil { + yyv4610 = []VolumeMount{} + yyc4610 = true + } else if len(yyv4610) != 0 { + yyv4610 = yyv4610[:0] + yyc4610 = true } - } else if yyl4602 > 0 { - var yyrr4602, yyrl4602 int - var yyrt4602 bool - if yyl4602 > cap(yyv4602) { + } else if yyl4610 > 0 { + var yyrr4610, yyrl4610 int + var yyrt4610 bool + if yyl4610 > cap(yyv4610) { - yyrg4602 := len(yyv4602) > 0 - yyv24602 := yyv4602 - yyrl4602, yyrt4602 = z.DecInferLen(yyl4602, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4602 { - if yyrl4602 <= cap(yyv4602) { - yyv4602 = yyv4602[:yyrl4602] + yyrg4610 := len(yyv4610) > 0 + yyv24610 := yyv4610 + yyrl4610, yyrt4610 = z.DecInferLen(yyl4610, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4610 { + if yyrl4610 <= cap(yyv4610) { + yyv4610 = yyv4610[:yyrl4610] } else { - yyv4602 = make([]VolumeMount, yyrl4602) + yyv4610 = make([]VolumeMount, yyrl4610) } } else { - yyv4602 = make([]VolumeMount, yyrl4602) + yyv4610 = make([]VolumeMount, yyrl4610) } - yyc4602 = true - yyrr4602 = len(yyv4602) - if yyrg4602 { - copy(yyv4602, yyv24602) + yyc4610 = true + yyrr4610 = len(yyv4610) + if yyrg4610 { + copy(yyv4610, yyv24610) } - } else if yyl4602 != len(yyv4602) { - yyv4602 = yyv4602[:yyl4602] - yyc4602 = true + } else if yyl4610 != len(yyv4610) { + yyv4610 = yyv4610[:yyl4610] + yyc4610 = true } - yyj4602 := 0 - for ; yyj4602 < yyrr4602; yyj4602++ { - yyh4602.ElemContainerState(yyj4602) + yyj4610 := 0 + for ; yyj4610 < yyrr4610; yyj4610++ { + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv4602[yyj4602] = VolumeMount{} + yyv4610[yyj4610] = VolumeMount{} } else { - yyv4603 := &yyv4602[yyj4602] - yyv4603.CodecDecodeSelf(d) + yyv4611 := &yyv4610[yyj4610] + yyv4611.CodecDecodeSelf(d) } } - if yyrt4602 { - for ; yyj4602 < yyl4602; yyj4602++ { - yyv4602 = append(yyv4602, VolumeMount{}) - yyh4602.ElemContainerState(yyj4602) + if yyrt4610 { + for ; yyj4610 < yyl4610; yyj4610++ { + yyv4610 = append(yyv4610, VolumeMount{}) + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv4602[yyj4602] = VolumeMount{} + yyv4610[yyj4610] = VolumeMount{} } else { - yyv4604 := &yyv4602[yyj4602] - yyv4604.CodecDecodeSelf(d) + yyv4612 := &yyv4610[yyj4610] + yyv4612.CodecDecodeSelf(d) } } } } else { - yyj4602 := 0 - for ; !r.CheckBreak(); yyj4602++ { + yyj4610 := 0 + for ; !r.CheckBreak(); yyj4610++ { - if yyj4602 >= len(yyv4602) { - yyv4602 = append(yyv4602, VolumeMount{}) // var yyz4602 VolumeMount - yyc4602 = true + if yyj4610 >= len(yyv4610) { + yyv4610 = append(yyv4610, VolumeMount{}) // var yyz4610 VolumeMount + yyc4610 = true } - yyh4602.ElemContainerState(yyj4602) - if yyj4602 < len(yyv4602) { + yyh4610.ElemContainerState(yyj4610) + if yyj4610 < len(yyv4610) { if r.TryDecodeAsNil() { - yyv4602[yyj4602] = VolumeMount{} + yyv4610[yyj4610] = VolumeMount{} } else { - yyv4605 := &yyv4602[yyj4602] - yyv4605.CodecDecodeSelf(d) + yyv4613 := &yyv4610[yyj4610] + yyv4613.CodecDecodeSelf(d) } } else { @@ -57831,17 +57951,17 @@ func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Deco } } - if yyj4602 < len(yyv4602) { - yyv4602 = yyv4602[:yyj4602] - yyc4602 = true - } else if yyj4602 == 0 && yyv4602 == nil { - yyv4602 = []VolumeMount{} - yyc4602 = true + if yyj4610 < len(yyv4610) { + yyv4610 = yyv4610[:yyj4610] + yyc4610 = true + } else if yyj4610 == 0 && yyv4610 == nil { + yyv4610 = []VolumeMount{} + yyc4610 = true } } - yyh4602.End() - if yyc4602 { - *v = yyv4602 + yyh4610.End() + if yyc4610 { + *v = yyv4610 } } @@ -57850,10 +57970,10 @@ func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4606 := range v { + for _, yyv4614 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4607 := &yyv4606 - yy4607.CodecEncodeSelf(e) + yy4615 := &yyv4614 + yy4615.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57863,83 +57983,83 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4608 := *v - yyh4608, yyl4608 := z.DecSliceHelperStart() - var yyc4608 bool - if yyl4608 == 0 { - if yyv4608 == nil { - yyv4608 = []NodeSelectorTerm{} - yyc4608 = true - } else if len(yyv4608) != 0 { - yyv4608 = yyv4608[:0] - yyc4608 = true + yyv4616 := *v + yyh4616, yyl4616 := z.DecSliceHelperStart() + var yyc4616 bool + if yyl4616 == 0 { + if yyv4616 == nil { + yyv4616 = []NodeSelectorTerm{} + yyc4616 = true + } else if len(yyv4616) != 0 { + yyv4616 = yyv4616[:0] + yyc4616 = true } - } else if yyl4608 > 0 { - var yyrr4608, yyrl4608 int - var yyrt4608 bool - if yyl4608 > cap(yyv4608) { + } else if yyl4616 > 0 { + var yyrr4616, yyrl4616 int + var yyrt4616 bool + if yyl4616 > cap(yyv4616) { - yyrg4608 := len(yyv4608) > 0 - yyv24608 := yyv4608 - yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 24) - if yyrt4608 { - if yyrl4608 <= cap(yyv4608) { - yyv4608 = yyv4608[:yyrl4608] + yyrg4616 := len(yyv4616) > 0 + yyv24616 := yyv4616 + yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4616 { + if yyrl4616 <= cap(yyv4616) { + yyv4616 = yyv4616[:yyrl4616] } else { - yyv4608 = make([]NodeSelectorTerm, yyrl4608) + yyv4616 = make([]NodeSelectorTerm, yyrl4616) } } else { - yyv4608 = make([]NodeSelectorTerm, yyrl4608) + yyv4616 = make([]NodeSelectorTerm, yyrl4616) } - yyc4608 = true - yyrr4608 = len(yyv4608) - if yyrg4608 { - copy(yyv4608, yyv24608) + yyc4616 = true + yyrr4616 = len(yyv4616) + if yyrg4616 { + copy(yyv4616, yyv24616) } - } else if yyl4608 != len(yyv4608) { - yyv4608 = yyv4608[:yyl4608] - yyc4608 = true + } else if yyl4616 != len(yyv4616) { + yyv4616 = yyv4616[:yyl4616] + yyc4616 = true } - yyj4608 := 0 - for ; yyj4608 < yyrr4608; yyj4608++ { - yyh4608.ElemContainerState(yyj4608) + yyj4616 := 0 + for ; yyj4616 < yyrr4616; yyj4616++ { + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = NodeSelectorTerm{} + yyv4616[yyj4616] = NodeSelectorTerm{} } else { - yyv4609 := &yyv4608[yyj4608] - yyv4609.CodecDecodeSelf(d) + yyv4617 := &yyv4616[yyj4616] + yyv4617.CodecDecodeSelf(d) } } - if yyrt4608 { - for ; yyj4608 < yyl4608; yyj4608++ { - yyv4608 = append(yyv4608, NodeSelectorTerm{}) - yyh4608.ElemContainerState(yyj4608) + if yyrt4616 { + for ; yyj4616 < yyl4616; yyj4616++ { + yyv4616 = append(yyv4616, NodeSelectorTerm{}) + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = NodeSelectorTerm{} + yyv4616[yyj4616] = NodeSelectorTerm{} } else { - yyv4610 := &yyv4608[yyj4608] - yyv4610.CodecDecodeSelf(d) + yyv4618 := &yyv4616[yyj4616] + yyv4618.CodecDecodeSelf(d) } } } } else { - yyj4608 := 0 - for ; !r.CheckBreak(); yyj4608++ { + yyj4616 := 0 + for ; !r.CheckBreak(); yyj4616++ { - if yyj4608 >= len(yyv4608) { - yyv4608 = append(yyv4608, NodeSelectorTerm{}) // var yyz4608 NodeSelectorTerm - yyc4608 = true + if yyj4616 >= len(yyv4616) { + yyv4616 = append(yyv4616, NodeSelectorTerm{}) // var yyz4616 NodeSelectorTerm + yyc4616 = true } - yyh4608.ElemContainerState(yyj4608) - if yyj4608 < len(yyv4608) { + yyh4616.ElemContainerState(yyj4616) + if yyj4616 < len(yyv4616) { if r.TryDecodeAsNil() { - yyv4608[yyj4608] = NodeSelectorTerm{} + yyv4616[yyj4616] = NodeSelectorTerm{} } else { - yyv4611 := &yyv4608[yyj4608] - yyv4611.CodecDecodeSelf(d) + yyv4619 := &yyv4616[yyj4616] + yyv4619.CodecDecodeSelf(d) } } else { @@ -57947,17 +58067,17 @@ func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *code } } - if yyj4608 < len(yyv4608) { - yyv4608 = yyv4608[:yyj4608] - yyc4608 = true - } else if yyj4608 == 0 && yyv4608 == nil { - yyv4608 = []NodeSelectorTerm{} - yyc4608 = true + if yyj4616 < len(yyv4616) { + yyv4616 = yyv4616[:yyj4616] + yyc4616 = true + } else if yyj4616 == 0 && yyv4616 == nil { + yyv4616 = []NodeSelectorTerm{} + yyc4616 = true } } - yyh4608.End() - if yyc4608 { - *v = yyv4608 + yyh4616.End() + if yyc4616 { + *v = yyv4616 } } @@ -57966,10 +58086,10 @@ func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequire z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4612 := range v { + for _, yyv4620 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4613 := &yyv4612 - yy4613.CodecEncodeSelf(e) + yy4621 := &yyv4620 + yy4621.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -57979,83 +58099,83 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4614 := *v - yyh4614, yyl4614 := z.DecSliceHelperStart() - var yyc4614 bool - if yyl4614 == 0 { - if yyv4614 == nil { - yyv4614 = []NodeSelectorRequirement{} - yyc4614 = true - } else if len(yyv4614) != 0 { - yyv4614 = yyv4614[:0] - yyc4614 = true + yyv4622 := *v + yyh4622, yyl4622 := z.DecSliceHelperStart() + var yyc4622 bool + if yyl4622 == 0 { + if yyv4622 == nil { + yyv4622 = []NodeSelectorRequirement{} + yyc4622 = true + } else if len(yyv4622) != 0 { + yyv4622 = yyv4622[:0] + yyc4622 = true } - } else if yyl4614 > 0 { - var yyrr4614, yyrl4614 int - var yyrt4614 bool - if yyl4614 > cap(yyv4614) { + } else if yyl4622 > 0 { + var yyrr4622, yyrl4622 int + var yyrt4622 bool + if yyl4622 > cap(yyv4622) { - yyrg4614 := len(yyv4614) > 0 - yyv24614 := yyv4614 - yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4614 { - if yyrl4614 <= cap(yyv4614) { - yyv4614 = yyv4614[:yyrl4614] + yyrg4622 := len(yyv4622) > 0 + yyv24622 := yyv4622 + yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4622 { + if yyrl4622 <= cap(yyv4622) { + yyv4622 = yyv4622[:yyrl4622] } else { - yyv4614 = make([]NodeSelectorRequirement, yyrl4614) + yyv4622 = make([]NodeSelectorRequirement, yyrl4622) } } else { - yyv4614 = make([]NodeSelectorRequirement, yyrl4614) + yyv4622 = make([]NodeSelectorRequirement, yyrl4622) } - yyc4614 = true - yyrr4614 = len(yyv4614) - if yyrg4614 { - copy(yyv4614, yyv24614) + yyc4622 = true + yyrr4622 = len(yyv4622) + if yyrg4622 { + copy(yyv4622, yyv24622) } - } else if yyl4614 != len(yyv4614) { - yyv4614 = yyv4614[:yyl4614] - yyc4614 = true + } else if yyl4622 != len(yyv4622) { + yyv4622 = yyv4622[:yyl4622] + yyc4622 = true } - yyj4614 := 0 - for ; yyj4614 < yyrr4614; yyj4614++ { - yyh4614.ElemContainerState(yyj4614) + yyj4622 := 0 + for ; yyj4622 < yyrr4622; yyj4622++ { + yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = NodeSelectorRequirement{} + yyv4622[yyj4622] = NodeSelectorRequirement{} } else { - yyv4615 := &yyv4614[yyj4614] - yyv4615.CodecDecodeSelf(d) + yyv4623 := &yyv4622[yyj4622] + yyv4623.CodecDecodeSelf(d) } } - if yyrt4614 { - for ; yyj4614 < yyl4614; yyj4614++ { - yyv4614 = append(yyv4614, NodeSelectorRequirement{}) - yyh4614.ElemContainerState(yyj4614) + if yyrt4622 { + for ; yyj4622 < yyl4622; yyj4622++ { + yyv4622 = append(yyv4622, NodeSelectorRequirement{}) + yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = NodeSelectorRequirement{} + yyv4622[yyj4622] = NodeSelectorRequirement{} } else { - yyv4616 := &yyv4614[yyj4614] - yyv4616.CodecDecodeSelf(d) + yyv4624 := &yyv4622[yyj4622] + yyv4624.CodecDecodeSelf(d) } } } } else { - yyj4614 := 0 - for ; !r.CheckBreak(); yyj4614++ { + yyj4622 := 0 + for ; !r.CheckBreak(); yyj4622++ { - if yyj4614 >= len(yyv4614) { - yyv4614 = append(yyv4614, NodeSelectorRequirement{}) // var yyz4614 NodeSelectorRequirement - yyc4614 = true + if yyj4622 >= len(yyv4622) { + yyv4622 = append(yyv4622, NodeSelectorRequirement{}) // var yyz4622 NodeSelectorRequirement + yyc4622 = true } - yyh4614.ElemContainerState(yyj4614) - if yyj4614 < len(yyv4614) { + yyh4622.ElemContainerState(yyj4622) + if yyj4622 < len(yyv4622) { if r.TryDecodeAsNil() { - yyv4614[yyj4614] = NodeSelectorRequirement{} + yyv4622[yyj4622] = NodeSelectorRequirement{} } else { - yyv4617 := &yyv4614[yyj4614] - yyv4617.CodecDecodeSelf(d) + yyv4625 := &yyv4622[yyj4622] + yyv4625.CodecDecodeSelf(d) } } else { @@ -58063,17 +58183,17 @@ func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequir } } - if yyj4614 < len(yyv4614) { - yyv4614 = yyv4614[:yyj4614] - yyc4614 = true - } else if yyj4614 == 0 && yyv4614 == nil { - yyv4614 = []NodeSelectorRequirement{} - yyc4614 = true + if yyj4622 < len(yyv4622) { + yyv4622 = yyv4622[:yyj4622] + yyc4622 = true + } else if yyj4622 == 0 && yyv4622 == nil { + yyv4622 = []NodeSelectorRequirement{} + yyc4622 = true } } - yyh4614.End() - if yyc4614 { - *v = yyv4614 + yyh4622.End() + if yyc4622 { + *v = yyv4622 } } @@ -58082,10 +58202,10 @@ func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4618 := range v { + for _, yyv4626 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4619 := &yyv4618 - yy4619.CodecEncodeSelf(e) + yy4627 := &yyv4626 + yy4627.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58095,83 +58215,83 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4620 := *v - yyh4620, yyl4620 := z.DecSliceHelperStart() - var yyc4620 bool - if yyl4620 == 0 { - if yyv4620 == nil { - yyv4620 = []PodAffinityTerm{} - yyc4620 = true - } else if len(yyv4620) != 0 { - yyv4620 = yyv4620[:0] - yyc4620 = true + yyv4628 := *v + yyh4628, yyl4628 := z.DecSliceHelperStart() + var yyc4628 bool + if yyl4628 == 0 { + if yyv4628 == nil { + yyv4628 = []PodAffinityTerm{} + yyc4628 = true + } else if len(yyv4628) != 0 { + yyv4628 = yyv4628[:0] + yyc4628 = true } - } else if yyl4620 > 0 { - var yyrr4620, yyrl4620 int - var yyrt4620 bool - if yyl4620 > cap(yyv4620) { + } else if yyl4628 > 0 { + var yyrr4628, yyrl4628 int + var yyrt4628 bool + if yyl4628 > cap(yyv4628) { - yyrg4620 := len(yyv4620) > 0 - yyv24620 := yyv4620 - yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4620 { - if yyrl4620 <= cap(yyv4620) { - yyv4620 = yyv4620[:yyrl4620] + yyrg4628 := len(yyv4628) > 0 + yyv24628 := yyv4628 + yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4628 { + if yyrl4628 <= cap(yyv4628) { + yyv4628 = yyv4628[:yyrl4628] } else { - yyv4620 = make([]PodAffinityTerm, yyrl4620) + yyv4628 = make([]PodAffinityTerm, yyrl4628) } } else { - yyv4620 = make([]PodAffinityTerm, yyrl4620) + yyv4628 = make([]PodAffinityTerm, yyrl4628) } - yyc4620 = true - yyrr4620 = len(yyv4620) - if yyrg4620 { - copy(yyv4620, yyv24620) + yyc4628 = true + yyrr4628 = len(yyv4628) + if yyrg4628 { + copy(yyv4628, yyv24628) } - } else if yyl4620 != len(yyv4620) { - yyv4620 = yyv4620[:yyl4620] - yyc4620 = true + } else if yyl4628 != len(yyv4628) { + yyv4628 = yyv4628[:yyl4628] + yyc4628 = true } - yyj4620 := 0 - for ; yyj4620 < yyrr4620; yyj4620++ { - yyh4620.ElemContainerState(yyj4620) + yyj4628 := 0 + for ; yyj4628 < yyrr4628; yyj4628++ { + yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = PodAffinityTerm{} + yyv4628[yyj4628] = PodAffinityTerm{} } else { - yyv4621 := &yyv4620[yyj4620] - yyv4621.CodecDecodeSelf(d) + yyv4629 := &yyv4628[yyj4628] + yyv4629.CodecDecodeSelf(d) } } - if yyrt4620 { - for ; yyj4620 < yyl4620; yyj4620++ { - yyv4620 = append(yyv4620, PodAffinityTerm{}) - yyh4620.ElemContainerState(yyj4620) + if yyrt4628 { + for ; yyj4628 < yyl4628; yyj4628++ { + yyv4628 = append(yyv4628, PodAffinityTerm{}) + yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = PodAffinityTerm{} + yyv4628[yyj4628] = PodAffinityTerm{} } else { - yyv4622 := &yyv4620[yyj4620] - yyv4622.CodecDecodeSelf(d) + yyv4630 := &yyv4628[yyj4628] + yyv4630.CodecDecodeSelf(d) } } } } else { - yyj4620 := 0 - for ; !r.CheckBreak(); yyj4620++ { + yyj4628 := 0 + for ; !r.CheckBreak(); yyj4628++ { - if yyj4620 >= len(yyv4620) { - yyv4620 = append(yyv4620, PodAffinityTerm{}) // var yyz4620 PodAffinityTerm - yyc4620 = true + if yyj4628 >= len(yyv4628) { + yyv4628 = append(yyv4628, PodAffinityTerm{}) // var yyz4628 PodAffinityTerm + yyc4628 = true } - yyh4620.ElemContainerState(yyj4620) - if yyj4620 < len(yyv4620) { + yyh4628.ElemContainerState(yyj4628) + if yyj4628 < len(yyv4628) { if r.TryDecodeAsNil() { - yyv4620[yyj4620] = PodAffinityTerm{} + yyv4628[yyj4628] = PodAffinityTerm{} } else { - yyv4623 := &yyv4620[yyj4620] - yyv4623.CodecDecodeSelf(d) + yyv4631 := &yyv4628[yyj4628] + yyv4631.CodecDecodeSelf(d) } } else { @@ -58179,17 +58299,17 @@ func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1 } } - if yyj4620 < len(yyv4620) { - yyv4620 = yyv4620[:yyj4620] - yyc4620 = true - } else if yyj4620 == 0 && yyv4620 == nil { - yyv4620 = []PodAffinityTerm{} - yyc4620 = true + if yyj4628 < len(yyv4628) { + yyv4628 = yyv4628[:yyj4628] + yyc4628 = true + } else if yyj4628 == 0 && yyv4628 == nil { + yyv4628 = []PodAffinityTerm{} + yyc4628 = true } } - yyh4620.End() - if yyc4620 { - *v = yyv4620 + yyh4628.End() + if yyc4628 { + *v = yyv4628 } } @@ -58198,10 +58318,10 @@ func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinity z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4624 := range v { + for _, yyv4632 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4625 := &yyv4624 - yy4625.CodecEncodeSelf(e) + yy4633 := &yyv4632 + yy4633.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58211,83 +58331,83 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4626 := *v - yyh4626, yyl4626 := z.DecSliceHelperStart() - var yyc4626 bool - if yyl4626 == 0 { - if yyv4626 == nil { - yyv4626 = []WeightedPodAffinityTerm{} - yyc4626 = true - } else if len(yyv4626) != 0 { - yyv4626 = yyv4626[:0] - yyc4626 = true + yyv4634 := *v + yyh4634, yyl4634 := z.DecSliceHelperStart() + var yyc4634 bool + if yyl4634 == 0 { + if yyv4634 == nil { + yyv4634 = []WeightedPodAffinityTerm{} + yyc4634 = true + } else if len(yyv4634) != 0 { + yyv4634 = yyv4634[:0] + yyc4634 = true } - } else if yyl4626 > 0 { - var yyrr4626, yyrl4626 int - var yyrt4626 bool - if yyl4626 > cap(yyv4626) { + } else if yyl4634 > 0 { + var yyrr4634, yyrl4634 int + var yyrt4634 bool + if yyl4634 > cap(yyv4634) { - yyrg4626 := len(yyv4626) > 0 - yyv24626 := yyv4626 - yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4626 { - if yyrl4626 <= cap(yyv4626) { - yyv4626 = yyv4626[:yyrl4626] + yyrg4634 := len(yyv4634) > 0 + yyv24634 := yyv4634 + yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4634 { + if yyrl4634 <= cap(yyv4634) { + yyv4634 = yyv4634[:yyrl4634] } else { - yyv4626 = make([]WeightedPodAffinityTerm, yyrl4626) + yyv4634 = make([]WeightedPodAffinityTerm, yyrl4634) } } else { - yyv4626 = make([]WeightedPodAffinityTerm, yyrl4626) + yyv4634 = make([]WeightedPodAffinityTerm, yyrl4634) } - yyc4626 = true - yyrr4626 = len(yyv4626) - if yyrg4626 { - copy(yyv4626, yyv24626) + yyc4634 = true + yyrr4634 = len(yyv4634) + if yyrg4634 { + copy(yyv4634, yyv24634) } - } else if yyl4626 != len(yyv4626) { - yyv4626 = yyv4626[:yyl4626] - yyc4626 = true + } else if yyl4634 != len(yyv4634) { + yyv4634 = yyv4634[:yyl4634] + yyc4634 = true } - yyj4626 := 0 - for ; yyj4626 < yyrr4626; yyj4626++ { - yyh4626.ElemContainerState(yyj4626) + yyj4634 := 0 + for ; yyj4634 < yyrr4634; yyj4634++ { + yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4626[yyj4626] = WeightedPodAffinityTerm{} + yyv4634[yyj4634] = WeightedPodAffinityTerm{} } else { - yyv4627 := &yyv4626[yyj4626] - yyv4627.CodecDecodeSelf(d) + yyv4635 := &yyv4634[yyj4634] + yyv4635.CodecDecodeSelf(d) } } - if yyrt4626 { - for ; yyj4626 < yyl4626; yyj4626++ { - yyv4626 = append(yyv4626, WeightedPodAffinityTerm{}) - yyh4626.ElemContainerState(yyj4626) + if yyrt4634 { + for ; yyj4634 < yyl4634; yyj4634++ { + yyv4634 = append(yyv4634, WeightedPodAffinityTerm{}) + yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4626[yyj4626] = WeightedPodAffinityTerm{} + yyv4634[yyj4634] = WeightedPodAffinityTerm{} } else { - yyv4628 := &yyv4626[yyj4626] - yyv4628.CodecDecodeSelf(d) + yyv4636 := &yyv4634[yyj4634] + yyv4636.CodecDecodeSelf(d) } } } } else { - yyj4626 := 0 - for ; !r.CheckBreak(); yyj4626++ { + yyj4634 := 0 + for ; !r.CheckBreak(); yyj4634++ { - if yyj4626 >= len(yyv4626) { - yyv4626 = append(yyv4626, WeightedPodAffinityTerm{}) // var yyz4626 WeightedPodAffinityTerm - yyc4626 = true + if yyj4634 >= len(yyv4634) { + yyv4634 = append(yyv4634, WeightedPodAffinityTerm{}) // var yyz4634 WeightedPodAffinityTerm + yyc4634 = true } - yyh4626.ElemContainerState(yyj4626) - if yyj4626 < len(yyv4626) { + yyh4634.ElemContainerState(yyj4634) + if yyj4634 < len(yyv4634) { if r.TryDecodeAsNil() { - yyv4626[yyj4626] = WeightedPodAffinityTerm{} + yyv4634[yyj4634] = WeightedPodAffinityTerm{} } else { - yyv4629 := &yyv4626[yyj4626] - yyv4629.CodecDecodeSelf(d) + yyv4637 := &yyv4634[yyj4634] + yyv4637.CodecDecodeSelf(d) } } else { @@ -58295,17 +58415,17 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit } } - if yyj4626 < len(yyv4626) { - yyv4626 = yyv4626[:yyj4626] - yyc4626 = true - } else if yyj4626 == 0 && yyv4626 == nil { - yyv4626 = []WeightedPodAffinityTerm{} - yyc4626 = true + if yyj4634 < len(yyv4634) { + yyv4634 = yyv4634[:yyj4634] + yyc4634 = true + } else if yyj4634 == 0 && yyv4634 == nil { + yyv4634 = []WeightedPodAffinityTerm{} + yyc4634 = true } } - yyh4626.End() - if yyc4626 { - *v = yyv4626 + yyh4634.End() + if yyc4634 { + *v = yyv4634 } } @@ -58314,10 +58434,10 @@ func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredScheduling z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4630 := range v { + for _, yyv4638 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4631 := &yyv4630 - yy4631.CodecEncodeSelf(e) + yy4639 := &yyv4638 + yy4639.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58327,83 +58447,83 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4632 := *v - yyh4632, yyl4632 := z.DecSliceHelperStart() - var yyc4632 bool - if yyl4632 == 0 { - if yyv4632 == nil { - yyv4632 = []PreferredSchedulingTerm{} - yyc4632 = true - } else if len(yyv4632) != 0 { - yyv4632 = yyv4632[:0] - yyc4632 = true + yyv4640 := *v + yyh4640, yyl4640 := z.DecSliceHelperStart() + var yyc4640 bool + if yyl4640 == 0 { + if yyv4640 == nil { + yyv4640 = []PreferredSchedulingTerm{} + yyc4640 = true + } else if len(yyv4640) != 0 { + yyv4640 = yyv4640[:0] + yyc4640 = true } - } else if yyl4632 > 0 { - var yyrr4632, yyrl4632 int - var yyrt4632 bool - if yyl4632 > cap(yyv4632) { + } else if yyl4640 > 0 { + var yyrr4640, yyrl4640 int + var yyrt4640 bool + if yyl4640 > cap(yyv4640) { - yyrg4632 := len(yyv4632) > 0 - yyv24632 := yyv4632 - yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4632 { - if yyrl4632 <= cap(yyv4632) { - yyv4632 = yyv4632[:yyrl4632] + yyrg4640 := len(yyv4640) > 0 + yyv24640 := yyv4640 + yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4640 { + if yyrl4640 <= cap(yyv4640) { + yyv4640 = yyv4640[:yyrl4640] } else { - yyv4632 = make([]PreferredSchedulingTerm, yyrl4632) + yyv4640 = make([]PreferredSchedulingTerm, yyrl4640) } } else { - yyv4632 = make([]PreferredSchedulingTerm, yyrl4632) + yyv4640 = make([]PreferredSchedulingTerm, yyrl4640) } - yyc4632 = true - yyrr4632 = len(yyv4632) - if yyrg4632 { - copy(yyv4632, yyv24632) + yyc4640 = true + yyrr4640 = len(yyv4640) + if yyrg4640 { + copy(yyv4640, yyv24640) } - } else if yyl4632 != len(yyv4632) { - yyv4632 = yyv4632[:yyl4632] - yyc4632 = true + } else if yyl4640 != len(yyv4640) { + yyv4640 = yyv4640[:yyl4640] + yyc4640 = true } - yyj4632 := 0 - for ; yyj4632 < yyrr4632; yyj4632++ { - yyh4632.ElemContainerState(yyj4632) + yyj4640 := 0 + for ; yyj4640 < yyrr4640; yyj4640++ { + yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = PreferredSchedulingTerm{} + yyv4640[yyj4640] = PreferredSchedulingTerm{} } else { - yyv4633 := &yyv4632[yyj4632] - yyv4633.CodecDecodeSelf(d) + yyv4641 := &yyv4640[yyj4640] + yyv4641.CodecDecodeSelf(d) } } - if yyrt4632 { - for ; yyj4632 < yyl4632; yyj4632++ { - yyv4632 = append(yyv4632, PreferredSchedulingTerm{}) - yyh4632.ElemContainerState(yyj4632) + if yyrt4640 { + for ; yyj4640 < yyl4640; yyj4640++ { + yyv4640 = append(yyv4640, PreferredSchedulingTerm{}) + yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = PreferredSchedulingTerm{} + yyv4640[yyj4640] = PreferredSchedulingTerm{} } else { - yyv4634 := &yyv4632[yyj4632] - yyv4634.CodecDecodeSelf(d) + yyv4642 := &yyv4640[yyj4640] + yyv4642.CodecDecodeSelf(d) } } } } else { - yyj4632 := 0 - for ; !r.CheckBreak(); yyj4632++ { + yyj4640 := 0 + for ; !r.CheckBreak(); yyj4640++ { - if yyj4632 >= len(yyv4632) { - yyv4632 = append(yyv4632, PreferredSchedulingTerm{}) // var yyz4632 PreferredSchedulingTerm - yyc4632 = true + if yyj4640 >= len(yyv4640) { + yyv4640 = append(yyv4640, PreferredSchedulingTerm{}) // var yyz4640 PreferredSchedulingTerm + yyc4640 = true } - yyh4632.ElemContainerState(yyj4632) - if yyj4632 < len(yyv4632) { + yyh4640.ElemContainerState(yyj4640) + if yyj4640 < len(yyv4640) { if r.TryDecodeAsNil() { - yyv4632[yyj4632] = PreferredSchedulingTerm{} + yyv4640[yyj4640] = PreferredSchedulingTerm{} } else { - yyv4635 := &yyv4632[yyj4632] - yyv4635.CodecDecodeSelf(d) + yyv4643 := &yyv4640[yyj4640] + yyv4643.CodecDecodeSelf(d) } } else { @@ -58411,17 +58531,17 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin } } - if yyj4632 < len(yyv4632) { - yyv4632 = yyv4632[:yyj4632] - yyc4632 = true - } else if yyj4632 == 0 && yyv4632 == nil { - yyv4632 = []PreferredSchedulingTerm{} - yyc4632 = true + if yyj4640 < len(yyv4640) { + yyv4640 = yyv4640[:yyj4640] + yyc4640 = true + } else if yyj4640 == 0 && yyv4640 == nil { + yyv4640 = []PreferredSchedulingTerm{} + yyc4640 = true } } - yyh4632.End() - if yyc4632 { - *v = yyv4632 + yyh4640.End() + if yyc4640 { + *v = yyv4640 } } @@ -58430,10 +58550,10 @@ func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4636 := range v { + for _, yyv4644 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4637 := &yyv4636 - yy4637.CodecEncodeSelf(e) + yy4645 := &yyv4644 + yy4645.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58443,83 +58563,83 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, 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 = []Volume{} - yyc4638 = true - } else if len(yyv4638) != 0 { - yyv4638 = yyv4638[:0] - yyc4638 = true + yyv4646 := *v + yyh4646, yyl4646 := z.DecSliceHelperStart() + var yyc4646 bool + if yyl4646 == 0 { + if yyv4646 == nil { + yyv4646 = []Volume{} + yyc4646 = true + } else if len(yyv4646) != 0 { + yyv4646 = yyv4646[:0] + yyc4646 = true } - } else if yyl4638 > 0 { - var yyrr4638, yyrl4638 int - var yyrt4638 bool - if yyl4638 > cap(yyv4638) { + } else if yyl4646 > 0 { + var yyrr4646, yyrl4646 int + var yyrt4646 bool + if yyl4646 > cap(yyv4646) { - yyrg4638 := len(yyv4638) > 0 - yyv24638 := yyv4638 - yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 200) - if yyrt4638 { - if yyrl4638 <= cap(yyv4638) { - yyv4638 = yyv4638[:yyrl4638] + yyrg4646 := len(yyv4646) > 0 + yyv24646 := yyv4646 + yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 200) + if yyrt4646 { + if yyrl4646 <= cap(yyv4646) { + yyv4646 = yyv4646[:yyrl4646] } else { - yyv4638 = make([]Volume, yyrl4638) + yyv4646 = make([]Volume, yyrl4646) } } else { - yyv4638 = make([]Volume, yyrl4638) + yyv4646 = make([]Volume, yyrl4646) } - yyc4638 = true - yyrr4638 = len(yyv4638) - if yyrg4638 { - copy(yyv4638, yyv24638) + yyc4646 = true + yyrr4646 = len(yyv4646) + if yyrg4646 { + copy(yyv4646, yyv24646) } - } else if yyl4638 != len(yyv4638) { - yyv4638 = yyv4638[:yyl4638] - yyc4638 = true + } else if yyl4646 != len(yyv4646) { + yyv4646 = yyv4646[:yyl4646] + yyc4646 = true } - yyj4638 := 0 - for ; yyj4638 < yyrr4638; yyj4638++ { - yyh4638.ElemContainerState(yyj4638) + yyj4646 := 0 + for ; yyj4646 < yyrr4646; yyj4646++ { + yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Volume{} + yyv4646[yyj4646] = Volume{} } else { - yyv4639 := &yyv4638[yyj4638] - yyv4639.CodecDecodeSelf(d) + yyv4647 := &yyv4646[yyj4646] + yyv4647.CodecDecodeSelf(d) } } - if yyrt4638 { - for ; yyj4638 < yyl4638; yyj4638++ { - yyv4638 = append(yyv4638, Volume{}) - yyh4638.ElemContainerState(yyj4638) + if yyrt4646 { + for ; yyj4646 < yyl4646; yyj4646++ { + yyv4646 = append(yyv4646, Volume{}) + yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Volume{} + yyv4646[yyj4646] = Volume{} } else { - yyv4640 := &yyv4638[yyj4638] - yyv4640.CodecDecodeSelf(d) + yyv4648 := &yyv4646[yyj4646] + yyv4648.CodecDecodeSelf(d) } } } } else { - yyj4638 := 0 - for ; !r.CheckBreak(); yyj4638++ { + yyj4646 := 0 + for ; !r.CheckBreak(); yyj4646++ { - if yyj4638 >= len(yyv4638) { - yyv4638 = append(yyv4638, Volume{}) // var yyz4638 Volume - yyc4638 = true + if yyj4646 >= len(yyv4646) { + yyv4646 = append(yyv4646, Volume{}) // var yyz4646 Volume + yyc4646 = true } - yyh4638.ElemContainerState(yyj4638) - if yyj4638 < len(yyv4638) { + yyh4646.ElemContainerState(yyj4646) + if yyj4646 < len(yyv4646) { if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Volume{} + yyv4646[yyj4646] = Volume{} } else { - yyv4641 := &yyv4638[yyj4638] - yyv4641.CodecDecodeSelf(d) + yyv4649 := &yyv4646[yyj4646] + yyv4649.CodecDecodeSelf(d) } } else { @@ -58527,17 +58647,17 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { } } - if yyj4638 < len(yyv4638) { - yyv4638 = yyv4638[:yyj4638] - yyc4638 = true - } else if yyj4638 == 0 && yyv4638 == nil { - yyv4638 = []Volume{} - yyc4638 = true + if yyj4646 < len(yyv4646) { + yyv4646 = yyv4646[:yyj4646] + yyc4646 = true + } else if yyj4646 == 0 && yyv4646 == nil { + yyv4646 = []Volume{} + yyc4646 = true } } - yyh4638.End() - if yyc4638 { - *v = yyv4638 + yyh4646.End() + if yyc4646 { + *v = yyv4646 } } @@ -58546,10 +58666,10 @@ func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4642 := range v { + for _, yyv4650 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4643 := &yyv4642 - yy4643.CodecEncodeSelf(e) + yy4651 := &yyv4650 + yy4651.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58559,83 +58679,83 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4644 := *v - yyh4644, yyl4644 := z.DecSliceHelperStart() - var yyc4644 bool - if yyl4644 == 0 { - if yyv4644 == nil { - yyv4644 = []Container{} - yyc4644 = true - } else if len(yyv4644) != 0 { - yyv4644 = yyv4644[:0] - yyc4644 = true + yyv4652 := *v + yyh4652, yyl4652 := z.DecSliceHelperStart() + var yyc4652 bool + if yyl4652 == 0 { + if yyv4652 == nil { + yyv4652 = []Container{} + yyc4652 = true + } else if len(yyv4652) != 0 { + yyv4652 = yyv4652[:0] + yyc4652 = true } - } else if yyl4644 > 0 { - var yyrr4644, yyrl4644 int - var yyrt4644 bool - if yyl4644 > cap(yyv4644) { + } else if yyl4652 > 0 { + var yyrr4652, yyrl4652 int + var yyrt4652 bool + if yyl4652 > cap(yyv4652) { - yyrg4644 := len(yyv4644) > 0 - yyv24644 := yyv4644 - yyrl4644, yyrt4644 = z.DecInferLen(yyl4644, z.DecBasicHandle().MaxInitLen, 256) - if yyrt4644 { - if yyrl4644 <= cap(yyv4644) { - yyv4644 = yyv4644[:yyrl4644] + yyrg4652 := len(yyv4652) > 0 + yyv24652 := yyv4652 + yyrl4652, yyrt4652 = z.DecInferLen(yyl4652, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4652 { + if yyrl4652 <= cap(yyv4652) { + yyv4652 = yyv4652[:yyrl4652] } else { - yyv4644 = make([]Container, yyrl4644) + yyv4652 = make([]Container, yyrl4652) } } else { - yyv4644 = make([]Container, yyrl4644) + yyv4652 = make([]Container, yyrl4652) } - yyc4644 = true - yyrr4644 = len(yyv4644) - if yyrg4644 { - copy(yyv4644, yyv24644) + yyc4652 = true + yyrr4652 = len(yyv4652) + if yyrg4652 { + copy(yyv4652, yyv24652) } - } else if yyl4644 != len(yyv4644) { - yyv4644 = yyv4644[:yyl4644] - yyc4644 = true + } else if yyl4652 != len(yyv4652) { + yyv4652 = yyv4652[:yyl4652] + yyc4652 = true } - yyj4644 := 0 - for ; yyj4644 < yyrr4644; yyj4644++ { - yyh4644.ElemContainerState(yyj4644) + yyj4652 := 0 + for ; yyj4652 < yyrr4652; yyj4652++ { + yyh4652.ElemContainerState(yyj4652) if r.TryDecodeAsNil() { - yyv4644[yyj4644] = Container{} + yyv4652[yyj4652] = Container{} } else { - yyv4645 := &yyv4644[yyj4644] - yyv4645.CodecDecodeSelf(d) + yyv4653 := &yyv4652[yyj4652] + yyv4653.CodecDecodeSelf(d) } } - if yyrt4644 { - for ; yyj4644 < yyl4644; yyj4644++ { - yyv4644 = append(yyv4644, Container{}) - yyh4644.ElemContainerState(yyj4644) + if yyrt4652 { + for ; yyj4652 < yyl4652; yyj4652++ { + yyv4652 = append(yyv4652, Container{}) + yyh4652.ElemContainerState(yyj4652) if r.TryDecodeAsNil() { - yyv4644[yyj4644] = Container{} + yyv4652[yyj4652] = Container{} } else { - yyv4646 := &yyv4644[yyj4644] - yyv4646.CodecDecodeSelf(d) + yyv4654 := &yyv4652[yyj4652] + yyv4654.CodecDecodeSelf(d) } } } } else { - yyj4644 := 0 - for ; !r.CheckBreak(); yyj4644++ { + yyj4652 := 0 + for ; !r.CheckBreak(); yyj4652++ { - if yyj4644 >= len(yyv4644) { - yyv4644 = append(yyv4644, Container{}) // var yyz4644 Container - yyc4644 = true + if yyj4652 >= len(yyv4652) { + yyv4652 = append(yyv4652, Container{}) // var yyz4652 Container + yyc4652 = true } - yyh4644.ElemContainerState(yyj4644) - if yyj4644 < len(yyv4644) { + yyh4652.ElemContainerState(yyj4652) + if yyj4652 < len(yyv4652) { if r.TryDecodeAsNil() { - yyv4644[yyj4644] = Container{} + yyv4652[yyj4652] = Container{} } else { - yyv4647 := &yyv4644[yyj4644] - yyv4647.CodecDecodeSelf(d) + yyv4655 := &yyv4652[yyj4652] + yyv4655.CodecDecodeSelf(d) } } else { @@ -58643,17 +58763,17 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } } - if yyj4644 < len(yyv4644) { - yyv4644 = yyv4644[:yyj4644] - yyc4644 = true - } else if yyj4644 == 0 && yyv4644 == nil { - yyv4644 = []Container{} - yyc4644 = true + if yyj4652 < len(yyv4652) { + yyv4652 = yyv4652[:yyj4652] + yyc4652 = true + } else if yyj4652 == 0 && yyv4652 == nil { + yyv4652 = []Container{} + yyc4652 = true } } - yyh4644.End() - if yyc4644 { - *v = yyv4644 + yyh4652.End() + if yyc4652 { + *v = yyv4652 } } @@ -58662,10 +58782,10 @@ func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4648 := range v { + for _, yyv4656 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4649 := &yyv4648 - yy4649.CodecEncodeSelf(e) + yy4657 := &yyv4656 + yy4657.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58675,83 +58795,83 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4650 := *v - yyh4650, yyl4650 := z.DecSliceHelperStart() - var yyc4650 bool - if yyl4650 == 0 { - if yyv4650 == nil { - yyv4650 = []LocalObjectReference{} - yyc4650 = true - } else if len(yyv4650) != 0 { - yyv4650 = yyv4650[:0] - yyc4650 = true + yyv4658 := *v + yyh4658, yyl4658 := z.DecSliceHelperStart() + var yyc4658 bool + if yyl4658 == 0 { + if yyv4658 == nil { + yyv4658 = []LocalObjectReference{} + yyc4658 = true + } else if len(yyv4658) != 0 { + yyv4658 = yyv4658[:0] + yyc4658 = true } - } else if yyl4650 > 0 { - var yyrr4650, yyrl4650 int - var yyrt4650 bool - if yyl4650 > cap(yyv4650) { + } else if yyl4658 > 0 { + var yyrr4658, yyrl4658 int + var yyrt4658 bool + if yyl4658 > cap(yyv4658) { - yyrg4650 := len(yyv4650) > 0 - yyv24650 := yyv4650 - yyrl4650, yyrt4650 = z.DecInferLen(yyl4650, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4650 { - if yyrl4650 <= cap(yyv4650) { - yyv4650 = yyv4650[:yyrl4650] + yyrg4658 := len(yyv4658) > 0 + yyv24658 := yyv4658 + yyrl4658, yyrt4658 = z.DecInferLen(yyl4658, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4658 { + if yyrl4658 <= cap(yyv4658) { + yyv4658 = yyv4658[:yyrl4658] } else { - yyv4650 = make([]LocalObjectReference, yyrl4650) + yyv4658 = make([]LocalObjectReference, yyrl4658) } } else { - yyv4650 = make([]LocalObjectReference, yyrl4650) + yyv4658 = make([]LocalObjectReference, yyrl4658) } - yyc4650 = true - yyrr4650 = len(yyv4650) - if yyrg4650 { - copy(yyv4650, yyv24650) + yyc4658 = true + yyrr4658 = len(yyv4658) + if yyrg4658 { + copy(yyv4658, yyv24658) } - } else if yyl4650 != len(yyv4650) { - yyv4650 = yyv4650[:yyl4650] - yyc4650 = true + } else if yyl4658 != len(yyv4658) { + yyv4658 = yyv4658[:yyl4658] + yyc4658 = true } - yyj4650 := 0 - for ; yyj4650 < yyrr4650; yyj4650++ { - yyh4650.ElemContainerState(yyj4650) + yyj4658 := 0 + for ; yyj4658 < yyrr4658; yyj4658++ { + yyh4658.ElemContainerState(yyj4658) if r.TryDecodeAsNil() { - yyv4650[yyj4650] = LocalObjectReference{} + yyv4658[yyj4658] = LocalObjectReference{} } else { - yyv4651 := &yyv4650[yyj4650] - yyv4651.CodecDecodeSelf(d) + yyv4659 := &yyv4658[yyj4658] + yyv4659.CodecDecodeSelf(d) } } - if yyrt4650 { - for ; yyj4650 < yyl4650; yyj4650++ { - yyv4650 = append(yyv4650, LocalObjectReference{}) - yyh4650.ElemContainerState(yyj4650) + if yyrt4658 { + for ; yyj4658 < yyl4658; yyj4658++ { + yyv4658 = append(yyv4658, LocalObjectReference{}) + yyh4658.ElemContainerState(yyj4658) if r.TryDecodeAsNil() { - yyv4650[yyj4650] = LocalObjectReference{} + yyv4658[yyj4658] = LocalObjectReference{} } else { - yyv4652 := &yyv4650[yyj4650] - yyv4652.CodecDecodeSelf(d) + yyv4660 := &yyv4658[yyj4658] + yyv4660.CodecDecodeSelf(d) } } } } else { - yyj4650 := 0 - for ; !r.CheckBreak(); yyj4650++ { + yyj4658 := 0 + for ; !r.CheckBreak(); yyj4658++ { - if yyj4650 >= len(yyv4650) { - yyv4650 = append(yyv4650, LocalObjectReference{}) // var yyz4650 LocalObjectReference - yyc4650 = true + if yyj4658 >= len(yyv4658) { + yyv4658 = append(yyv4658, LocalObjectReference{}) // var yyz4658 LocalObjectReference + yyc4658 = true } - yyh4650.ElemContainerState(yyj4650) - if yyj4650 < len(yyv4650) { + yyh4658.ElemContainerState(yyj4658) + if yyj4658 < len(yyv4658) { if r.TryDecodeAsNil() { - yyv4650[yyj4650] = LocalObjectReference{} + yyv4658[yyj4658] = LocalObjectReference{} } else { - yyv4653 := &yyv4650[yyj4650] - yyv4653.CodecDecodeSelf(d) + yyv4661 := &yyv4658[yyj4658] + yyv4661.CodecDecodeSelf(d) } } else { @@ -58759,17 +58879,17 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } } - if yyj4650 < len(yyv4650) { - yyv4650 = yyv4650[:yyj4650] - yyc4650 = true - } else if yyj4650 == 0 && yyv4650 == nil { - yyv4650 = []LocalObjectReference{} - yyc4650 = true + if yyj4658 < len(yyv4658) { + yyv4658 = yyv4658[:yyj4658] + yyc4658 = true + } else if yyj4658 == 0 && yyv4658 == nil { + yyv4658 = []LocalObjectReference{} + yyc4658 = true } } - yyh4650.End() - if yyc4650 { - *v = yyv4650 + yyh4658.End() + if yyc4658 { + *v = yyv4658 } } @@ -58778,10 +58898,10 @@ func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4654 := range v { + for _, yyv4662 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4655 := &yyv4654 - yy4655.CodecEncodeSelf(e) + yy4663 := &yyv4662 + yy4663.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58791,83 +58911,83 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4656 := *v - yyh4656, yyl4656 := z.DecSliceHelperStart() - var yyc4656 bool - if yyl4656 == 0 { - if yyv4656 == nil { - yyv4656 = []PodCondition{} - yyc4656 = true - } else if len(yyv4656) != 0 { - yyv4656 = yyv4656[:0] - yyc4656 = true + yyv4664 := *v + yyh4664, yyl4664 := z.DecSliceHelperStart() + var yyc4664 bool + if yyl4664 == 0 { + if yyv4664 == nil { + yyv4664 = []PodCondition{} + yyc4664 = true + } else if len(yyv4664) != 0 { + yyv4664 = yyv4664[:0] + yyc4664 = true } - } else if yyl4656 > 0 { - var yyrr4656, yyrl4656 int - var yyrt4656 bool - if yyl4656 > cap(yyv4656) { + } else if yyl4664 > 0 { + var yyrr4664, yyrl4664 int + var yyrt4664 bool + if yyl4664 > cap(yyv4664) { - yyrg4656 := len(yyv4656) > 0 - yyv24656 := yyv4656 - yyrl4656, yyrt4656 = z.DecInferLen(yyl4656, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4656 { - if yyrl4656 <= cap(yyv4656) { - yyv4656 = yyv4656[:yyrl4656] + yyrg4664 := len(yyv4664) > 0 + yyv24664 := yyv4664 + yyrl4664, yyrt4664 = z.DecInferLen(yyl4664, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4664 { + if yyrl4664 <= cap(yyv4664) { + yyv4664 = yyv4664[:yyrl4664] } else { - yyv4656 = make([]PodCondition, yyrl4656) + yyv4664 = make([]PodCondition, yyrl4664) } } else { - yyv4656 = make([]PodCondition, yyrl4656) + yyv4664 = make([]PodCondition, yyrl4664) } - yyc4656 = true - yyrr4656 = len(yyv4656) - if yyrg4656 { - copy(yyv4656, yyv24656) + yyc4664 = true + yyrr4664 = len(yyv4664) + if yyrg4664 { + copy(yyv4664, yyv24664) } - } else if yyl4656 != len(yyv4656) { - yyv4656 = yyv4656[:yyl4656] - yyc4656 = true + } else if yyl4664 != len(yyv4664) { + yyv4664 = yyv4664[:yyl4664] + yyc4664 = true } - yyj4656 := 0 - for ; yyj4656 < yyrr4656; yyj4656++ { - yyh4656.ElemContainerState(yyj4656) + yyj4664 := 0 + for ; yyj4664 < yyrr4664; yyj4664++ { + yyh4664.ElemContainerState(yyj4664) if r.TryDecodeAsNil() { - yyv4656[yyj4656] = PodCondition{} + yyv4664[yyj4664] = PodCondition{} } else { - yyv4657 := &yyv4656[yyj4656] - yyv4657.CodecDecodeSelf(d) + yyv4665 := &yyv4664[yyj4664] + yyv4665.CodecDecodeSelf(d) } } - if yyrt4656 { - for ; yyj4656 < yyl4656; yyj4656++ { - yyv4656 = append(yyv4656, PodCondition{}) - yyh4656.ElemContainerState(yyj4656) + if yyrt4664 { + for ; yyj4664 < yyl4664; yyj4664++ { + yyv4664 = append(yyv4664, PodCondition{}) + yyh4664.ElemContainerState(yyj4664) if r.TryDecodeAsNil() { - yyv4656[yyj4656] = PodCondition{} + yyv4664[yyj4664] = PodCondition{} } else { - yyv4658 := &yyv4656[yyj4656] - yyv4658.CodecDecodeSelf(d) + yyv4666 := &yyv4664[yyj4664] + yyv4666.CodecDecodeSelf(d) } } } } else { - yyj4656 := 0 - for ; !r.CheckBreak(); yyj4656++ { + yyj4664 := 0 + for ; !r.CheckBreak(); yyj4664++ { - if yyj4656 >= len(yyv4656) { - yyv4656 = append(yyv4656, PodCondition{}) // var yyz4656 PodCondition - yyc4656 = true + if yyj4664 >= len(yyv4664) { + yyv4664 = append(yyv4664, PodCondition{}) // var yyz4664 PodCondition + yyc4664 = true } - yyh4656.ElemContainerState(yyj4656) - if yyj4656 < len(yyv4656) { + yyh4664.ElemContainerState(yyj4664) + if yyj4664 < len(yyv4664) { if r.TryDecodeAsNil() { - yyv4656[yyj4656] = PodCondition{} + yyv4664[yyj4664] = PodCondition{} } else { - yyv4659 := &yyv4656[yyj4656] - yyv4659.CodecDecodeSelf(d) + yyv4667 := &yyv4664[yyj4664] + yyv4667.CodecDecodeSelf(d) } } else { @@ -58875,17 +58995,17 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } } - if yyj4656 < len(yyv4656) { - yyv4656 = yyv4656[:yyj4656] - yyc4656 = true - } else if yyj4656 == 0 && yyv4656 == nil { - yyv4656 = []PodCondition{} - yyc4656 = true + if yyj4664 < len(yyv4664) { + yyv4664 = yyv4664[:yyj4664] + yyc4664 = true + } else if yyj4664 == 0 && yyv4664 == nil { + yyv4664 = []PodCondition{} + yyc4664 = true } } - yyh4656.End() - if yyc4656 { - *v = yyv4656 + yyh4664.End() + if yyc4664 { + *v = yyv4664 } } @@ -58894,10 +59014,10 @@ func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4660 := range v { + for _, yyv4668 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4661 := &yyv4660 - yy4661.CodecEncodeSelf(e) + yy4669 := &yyv4668 + yy4669.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58907,83 +59027,83 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4662 := *v - yyh4662, yyl4662 := z.DecSliceHelperStart() - var yyc4662 bool - if yyl4662 == 0 { - if yyv4662 == nil { - yyv4662 = []ContainerStatus{} - yyc4662 = true - } else if len(yyv4662) != 0 { - yyv4662 = yyv4662[:0] - yyc4662 = true + yyv4670 := *v + yyh4670, yyl4670 := z.DecSliceHelperStart() + var yyc4670 bool + if yyl4670 == 0 { + if yyv4670 == nil { + yyv4670 = []ContainerStatus{} + yyc4670 = true + } else if len(yyv4670) != 0 { + yyv4670 = yyv4670[:0] + yyc4670 = true } - } else if yyl4662 > 0 { - var yyrr4662, yyrl4662 int - var yyrt4662 bool - if yyl4662 > cap(yyv4662) { + } else if yyl4670 > 0 { + var yyrr4670, yyrl4670 int + var yyrt4670 bool + if yyl4670 > cap(yyv4670) { - yyrg4662 := len(yyv4662) > 0 - yyv24662 := yyv4662 - yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 120) - if yyrt4662 { - if yyrl4662 <= cap(yyv4662) { - yyv4662 = yyv4662[:yyrl4662] + yyrg4670 := len(yyv4670) > 0 + yyv24670 := yyv4670 + yyrl4670, yyrt4670 = z.DecInferLen(yyl4670, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4670 { + if yyrl4670 <= cap(yyv4670) { + yyv4670 = yyv4670[:yyrl4670] } else { - yyv4662 = make([]ContainerStatus, yyrl4662) + yyv4670 = make([]ContainerStatus, yyrl4670) } } else { - yyv4662 = make([]ContainerStatus, yyrl4662) + yyv4670 = make([]ContainerStatus, yyrl4670) } - yyc4662 = true - yyrr4662 = len(yyv4662) - if yyrg4662 { - copy(yyv4662, yyv24662) + yyc4670 = true + yyrr4670 = len(yyv4670) + if yyrg4670 { + copy(yyv4670, yyv24670) } - } else if yyl4662 != len(yyv4662) { - yyv4662 = yyv4662[:yyl4662] - yyc4662 = true + } else if yyl4670 != len(yyv4670) { + yyv4670 = yyv4670[:yyl4670] + yyc4670 = true } - yyj4662 := 0 - for ; yyj4662 < yyrr4662; yyj4662++ { - yyh4662.ElemContainerState(yyj4662) + yyj4670 := 0 + for ; yyj4670 < yyrr4670; yyj4670++ { + yyh4670.ElemContainerState(yyj4670) if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ContainerStatus{} + yyv4670[yyj4670] = ContainerStatus{} } else { - yyv4663 := &yyv4662[yyj4662] - yyv4663.CodecDecodeSelf(d) + yyv4671 := &yyv4670[yyj4670] + yyv4671.CodecDecodeSelf(d) } } - if yyrt4662 { - for ; yyj4662 < yyl4662; yyj4662++ { - yyv4662 = append(yyv4662, ContainerStatus{}) - yyh4662.ElemContainerState(yyj4662) + if yyrt4670 { + for ; yyj4670 < yyl4670; yyj4670++ { + yyv4670 = append(yyv4670, ContainerStatus{}) + yyh4670.ElemContainerState(yyj4670) if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ContainerStatus{} + yyv4670[yyj4670] = ContainerStatus{} } else { - yyv4664 := &yyv4662[yyj4662] - yyv4664.CodecDecodeSelf(d) + yyv4672 := &yyv4670[yyj4670] + yyv4672.CodecDecodeSelf(d) } } } } else { - yyj4662 := 0 - for ; !r.CheckBreak(); yyj4662++ { + yyj4670 := 0 + for ; !r.CheckBreak(); yyj4670++ { - if yyj4662 >= len(yyv4662) { - yyv4662 = append(yyv4662, ContainerStatus{}) // var yyz4662 ContainerStatus - yyc4662 = true + if yyj4670 >= len(yyv4670) { + yyv4670 = append(yyv4670, ContainerStatus{}) // var yyz4670 ContainerStatus + yyc4670 = true } - yyh4662.ElemContainerState(yyj4662) - if yyj4662 < len(yyv4662) { + yyh4670.ElemContainerState(yyj4670) + if yyj4670 < len(yyv4670) { if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ContainerStatus{} + yyv4670[yyj4670] = ContainerStatus{} } else { - yyv4665 := &yyv4662[yyj4662] - yyv4665.CodecDecodeSelf(d) + yyv4673 := &yyv4670[yyj4670] + yyv4673.CodecDecodeSelf(d) } } else { @@ -58991,17 +59111,17 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } } - if yyj4662 < len(yyv4662) { - yyv4662 = yyv4662[:yyj4662] - yyc4662 = true - } else if yyj4662 == 0 && yyv4662 == nil { - yyv4662 = []ContainerStatus{} - yyc4662 = true + if yyj4670 < len(yyv4670) { + yyv4670 = yyv4670[:yyj4670] + yyc4670 = true + } else if yyj4670 == 0 && yyv4670 == nil { + yyv4670 = []ContainerStatus{} + yyc4670 = true } } - yyh4662.End() - if yyc4662 { - *v = yyv4662 + yyh4670.End() + if yyc4670 { + *v = yyv4670 } } @@ -59010,10 +59130,10 @@ func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4666 := range v { + for _, yyv4674 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4667 := &yyv4666 - yy4667.CodecEncodeSelf(e) + yy4675 := &yyv4674 + yy4675.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59023,83 +59143,83 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4668 := *v - yyh4668, yyl4668 := z.DecSliceHelperStart() - var yyc4668 bool - if yyl4668 == 0 { - if yyv4668 == nil { - yyv4668 = []Pod{} - yyc4668 = true - } else if len(yyv4668) != 0 { - yyv4668 = yyv4668[:0] - yyc4668 = true + yyv4676 := *v + yyh4676, yyl4676 := z.DecSliceHelperStart() + var yyc4676 bool + if yyl4676 == 0 { + if yyv4676 == nil { + yyv4676 = []Pod{} + yyc4676 = true + } else if len(yyv4676) != 0 { + yyv4676 = yyv4676[:0] + yyc4676 = true } - } else if yyl4668 > 0 { - var yyrr4668, yyrl4668 int - var yyrt4668 bool - if yyl4668 > cap(yyv4668) { + } else if yyl4676 > 0 { + var yyrr4676, yyrl4676 int + var yyrt4676 bool + if yyl4676 > cap(yyv4676) { - yyrg4668 := len(yyv4668) > 0 - yyv24668 := yyv4668 - yyrl4668, yyrt4668 = z.DecInferLen(yyl4668, z.DecBasicHandle().MaxInitLen, 664) - if yyrt4668 { - if yyrl4668 <= cap(yyv4668) { - yyv4668 = yyv4668[:yyrl4668] + yyrg4676 := len(yyv4676) > 0 + yyv24676 := yyv4676 + yyrl4676, yyrt4676 = z.DecInferLen(yyl4676, z.DecBasicHandle().MaxInitLen, 688) + if yyrt4676 { + if yyrl4676 <= cap(yyv4676) { + yyv4676 = yyv4676[:yyrl4676] } else { - yyv4668 = make([]Pod, yyrl4668) + yyv4676 = make([]Pod, yyrl4676) } } else { - yyv4668 = make([]Pod, yyrl4668) + yyv4676 = make([]Pod, yyrl4676) } - yyc4668 = true - yyrr4668 = len(yyv4668) - if yyrg4668 { - copy(yyv4668, yyv24668) + yyc4676 = true + yyrr4676 = len(yyv4676) + if yyrg4676 { + copy(yyv4676, yyv24676) } - } else if yyl4668 != len(yyv4668) { - yyv4668 = yyv4668[:yyl4668] - yyc4668 = true + } else if yyl4676 != len(yyv4676) { + yyv4676 = yyv4676[:yyl4676] + yyc4676 = true } - yyj4668 := 0 - for ; yyj4668 < yyrr4668; yyj4668++ { - yyh4668.ElemContainerState(yyj4668) + yyj4676 := 0 + for ; yyj4676 < yyrr4676; yyj4676++ { + yyh4676.ElemContainerState(yyj4676) if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Pod{} + yyv4676[yyj4676] = Pod{} } else { - yyv4669 := &yyv4668[yyj4668] - yyv4669.CodecDecodeSelf(d) + yyv4677 := &yyv4676[yyj4676] + yyv4677.CodecDecodeSelf(d) } } - if yyrt4668 { - for ; yyj4668 < yyl4668; yyj4668++ { - yyv4668 = append(yyv4668, Pod{}) - yyh4668.ElemContainerState(yyj4668) + if yyrt4676 { + for ; yyj4676 < yyl4676; yyj4676++ { + yyv4676 = append(yyv4676, Pod{}) + yyh4676.ElemContainerState(yyj4676) if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Pod{} + yyv4676[yyj4676] = Pod{} } else { - yyv4670 := &yyv4668[yyj4668] - yyv4670.CodecDecodeSelf(d) + yyv4678 := &yyv4676[yyj4676] + yyv4678.CodecDecodeSelf(d) } } } } else { - yyj4668 := 0 - for ; !r.CheckBreak(); yyj4668++ { + yyj4676 := 0 + for ; !r.CheckBreak(); yyj4676++ { - if yyj4668 >= len(yyv4668) { - yyv4668 = append(yyv4668, Pod{}) // var yyz4668 Pod - yyc4668 = true + if yyj4676 >= len(yyv4676) { + yyv4676 = append(yyv4676, Pod{}) // var yyz4676 Pod + yyc4676 = true } - yyh4668.ElemContainerState(yyj4668) - if yyj4668 < len(yyv4668) { + yyh4676.ElemContainerState(yyj4676) + if yyj4676 < len(yyv4676) { if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Pod{} + yyv4676[yyj4676] = Pod{} } else { - yyv4671 := &yyv4668[yyj4668] - yyv4671.CodecDecodeSelf(d) + yyv4679 := &yyv4676[yyj4676] + yyv4679.CodecDecodeSelf(d) } } else { @@ -59107,17 +59227,17 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { } } - if yyj4668 < len(yyv4668) { - yyv4668 = yyv4668[:yyj4668] - yyc4668 = true - } else if yyj4668 == 0 && yyv4668 == nil { - yyv4668 = []Pod{} - yyc4668 = true + if yyj4676 < len(yyv4676) { + yyv4676 = yyv4676[:yyj4676] + yyc4676 = true + } else if yyj4676 == 0 && yyv4676 == nil { + yyv4676 = []Pod{} + yyc4676 = true } } - yyh4668.End() - if yyc4668 { - *v = yyv4668 + yyh4676.End() + if yyc4676 { + *v = yyv4676 } } @@ -59126,10 +59246,10 @@ func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4672 := range v { + for _, yyv4680 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4673 := &yyv4672 - yy4673.CodecEncodeSelf(e) + yy4681 := &yyv4680 + yy4681.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59139,83 +59259,83 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4674 := *v - yyh4674, yyl4674 := z.DecSliceHelperStart() - var yyc4674 bool - if yyl4674 == 0 { - if yyv4674 == nil { - yyv4674 = []PodTemplate{} - yyc4674 = true - } else if len(yyv4674) != 0 { - yyv4674 = yyv4674[:0] - yyc4674 = true + yyv4682 := *v + yyh4682, yyl4682 := z.DecSliceHelperStart() + var yyc4682 bool + if yyl4682 == 0 { + if yyv4682 == nil { + yyv4682 = []PodTemplate{} + yyc4682 = true + } else if len(yyv4682) != 0 { + yyv4682 = yyv4682[:0] + yyc4682 = true } - } else if yyl4674 > 0 { - var yyrr4674, yyrl4674 int - var yyrt4674 bool - if yyl4674 > cap(yyv4674) { + } else if yyl4682 > 0 { + var yyrr4682, yyrl4682 int + var yyrt4682 bool + if yyl4682 > cap(yyv4682) { - yyrg4674 := len(yyv4674) > 0 - yyv24674 := yyv4674 - yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 728) - if yyrt4674 { - if yyrl4674 <= cap(yyv4674) { - yyv4674 = yyv4674[:yyrl4674] + yyrg4682 := len(yyv4682) > 0 + yyv24682 := yyv4682 + yyrl4682, yyrt4682 = z.DecInferLen(yyl4682, z.DecBasicHandle().MaxInitLen, 736) + if yyrt4682 { + if yyrl4682 <= cap(yyv4682) { + yyv4682 = yyv4682[:yyrl4682] } else { - yyv4674 = make([]PodTemplate, yyrl4674) + yyv4682 = make([]PodTemplate, yyrl4682) } } else { - yyv4674 = make([]PodTemplate, yyrl4674) + yyv4682 = make([]PodTemplate, yyrl4682) } - yyc4674 = true - yyrr4674 = len(yyv4674) - if yyrg4674 { - copy(yyv4674, yyv24674) + yyc4682 = true + yyrr4682 = len(yyv4682) + if yyrg4682 { + copy(yyv4682, yyv24682) } - } else if yyl4674 != len(yyv4674) { - yyv4674 = yyv4674[:yyl4674] - yyc4674 = true + } else if yyl4682 != len(yyv4682) { + yyv4682 = yyv4682[:yyl4682] + yyc4682 = true } - yyj4674 := 0 - for ; yyj4674 < yyrr4674; yyj4674++ { - yyh4674.ElemContainerState(yyj4674) + yyj4682 := 0 + for ; yyj4682 < yyrr4682; yyj4682++ { + yyh4682.ElemContainerState(yyj4682) if r.TryDecodeAsNil() { - yyv4674[yyj4674] = PodTemplate{} + yyv4682[yyj4682] = PodTemplate{} } else { - yyv4675 := &yyv4674[yyj4674] - yyv4675.CodecDecodeSelf(d) + yyv4683 := &yyv4682[yyj4682] + yyv4683.CodecDecodeSelf(d) } } - if yyrt4674 { - for ; yyj4674 < yyl4674; yyj4674++ { - yyv4674 = append(yyv4674, PodTemplate{}) - yyh4674.ElemContainerState(yyj4674) + if yyrt4682 { + for ; yyj4682 < yyl4682; yyj4682++ { + yyv4682 = append(yyv4682, PodTemplate{}) + yyh4682.ElemContainerState(yyj4682) if r.TryDecodeAsNil() { - yyv4674[yyj4674] = PodTemplate{} + yyv4682[yyj4682] = PodTemplate{} } else { - yyv4676 := &yyv4674[yyj4674] - yyv4676.CodecDecodeSelf(d) + yyv4684 := &yyv4682[yyj4682] + yyv4684.CodecDecodeSelf(d) } } } } else { - yyj4674 := 0 - for ; !r.CheckBreak(); yyj4674++ { + yyj4682 := 0 + for ; !r.CheckBreak(); yyj4682++ { - if yyj4674 >= len(yyv4674) { - yyv4674 = append(yyv4674, PodTemplate{}) // var yyz4674 PodTemplate - yyc4674 = true + if yyj4682 >= len(yyv4682) { + yyv4682 = append(yyv4682, PodTemplate{}) // var yyz4682 PodTemplate + yyc4682 = true } - yyh4674.ElemContainerState(yyj4674) - if yyj4674 < len(yyv4674) { + yyh4682.ElemContainerState(yyj4682) + if yyj4682 < len(yyv4682) { if r.TryDecodeAsNil() { - yyv4674[yyj4674] = PodTemplate{} + yyv4682[yyj4682] = PodTemplate{} } else { - yyv4677 := &yyv4674[yyj4674] - yyv4677.CodecDecodeSelf(d) + yyv4685 := &yyv4682[yyj4682] + yyv4685.CodecDecodeSelf(d) } } else { @@ -59223,17 +59343,17 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco } } - if yyj4674 < len(yyv4674) { - yyv4674 = yyv4674[:yyj4674] - yyc4674 = true - } else if yyj4674 == 0 && yyv4674 == nil { - yyv4674 = []PodTemplate{} - yyc4674 = true + if yyj4682 < len(yyv4682) { + yyv4682 = yyv4682[:yyj4682] + yyc4682 = true + } else if yyj4682 == 0 && yyv4682 == nil { + yyv4682 = []PodTemplate{} + yyc4682 = true } } - yyh4674.End() - if yyc4674 { - *v = yyv4674 + yyh4682.End() + if yyc4682 { + *v = yyv4682 } } @@ -59242,10 +59362,10 @@ func (x codecSelfer1234) encSliceReplicationControllerCondition(v []ReplicationC z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4678 := range v { + for _, yyv4686 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4679 := &yyv4678 - yy4679.CodecEncodeSelf(e) + yy4687 := &yyv4686 + yy4687.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59255,83 +59375,83 @@ func (x codecSelfer1234) decSliceReplicationControllerCondition(v *[]Replication z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4680 := *v - yyh4680, yyl4680 := z.DecSliceHelperStart() - var yyc4680 bool - if yyl4680 == 0 { - if yyv4680 == nil { - yyv4680 = []ReplicationControllerCondition{} - yyc4680 = true - } else if len(yyv4680) != 0 { - yyv4680 = yyv4680[:0] - yyc4680 = true + yyv4688 := *v + yyh4688, yyl4688 := z.DecSliceHelperStart() + var yyc4688 bool + if yyl4688 == 0 { + if yyv4688 == nil { + yyv4688 = []ReplicationControllerCondition{} + yyc4688 = true + } else if len(yyv4688) != 0 { + yyv4688 = yyv4688[:0] + yyc4688 = true } - } else if yyl4680 > 0 { - var yyrr4680, yyrl4680 int - var yyrt4680 bool - if yyl4680 > cap(yyv4680) { + } else if yyl4688 > 0 { + var yyrr4688, yyrl4688 int + var yyrt4688 bool + if yyl4688 > cap(yyv4688) { - yyrg4680 := len(yyv4680) > 0 - yyv24680 := yyv4680 - yyrl4680, yyrt4680 = z.DecInferLen(yyl4680, z.DecBasicHandle().MaxInitLen, 88) - if yyrt4680 { - if yyrl4680 <= cap(yyv4680) { - yyv4680 = yyv4680[:yyrl4680] + yyrg4688 := len(yyv4688) > 0 + yyv24688 := yyv4688 + yyrl4688, yyrt4688 = z.DecInferLen(yyl4688, z.DecBasicHandle().MaxInitLen, 88) + if yyrt4688 { + if yyrl4688 <= cap(yyv4688) { + yyv4688 = yyv4688[:yyrl4688] } else { - yyv4680 = make([]ReplicationControllerCondition, yyrl4680) + yyv4688 = make([]ReplicationControllerCondition, yyrl4688) } } else { - yyv4680 = make([]ReplicationControllerCondition, yyrl4680) + yyv4688 = make([]ReplicationControllerCondition, yyrl4688) } - yyc4680 = true - yyrr4680 = len(yyv4680) - if yyrg4680 { - copy(yyv4680, yyv24680) + yyc4688 = true + yyrr4688 = len(yyv4688) + if yyrg4688 { + copy(yyv4688, yyv24688) } - } else if yyl4680 != len(yyv4680) { - yyv4680 = yyv4680[:yyl4680] - yyc4680 = true + } else if yyl4688 != len(yyv4688) { + yyv4688 = yyv4688[:yyl4688] + yyc4688 = true } - yyj4680 := 0 - for ; yyj4680 < yyrr4680; yyj4680++ { - yyh4680.ElemContainerState(yyj4680) + yyj4688 := 0 + for ; yyj4688 < yyrr4688; yyj4688++ { + yyh4688.ElemContainerState(yyj4688) if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ReplicationControllerCondition{} + yyv4688[yyj4688] = ReplicationControllerCondition{} } else { - yyv4681 := &yyv4680[yyj4680] - yyv4681.CodecDecodeSelf(d) + yyv4689 := &yyv4688[yyj4688] + yyv4689.CodecDecodeSelf(d) } } - if yyrt4680 { - for ; yyj4680 < yyl4680; yyj4680++ { - yyv4680 = append(yyv4680, ReplicationControllerCondition{}) - yyh4680.ElemContainerState(yyj4680) + if yyrt4688 { + for ; yyj4688 < yyl4688; yyj4688++ { + yyv4688 = append(yyv4688, ReplicationControllerCondition{}) + yyh4688.ElemContainerState(yyj4688) if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ReplicationControllerCondition{} + yyv4688[yyj4688] = ReplicationControllerCondition{} } else { - yyv4682 := &yyv4680[yyj4680] - yyv4682.CodecDecodeSelf(d) + yyv4690 := &yyv4688[yyj4688] + yyv4690.CodecDecodeSelf(d) } } } } else { - yyj4680 := 0 - for ; !r.CheckBreak(); yyj4680++ { + yyj4688 := 0 + for ; !r.CheckBreak(); yyj4688++ { - if yyj4680 >= len(yyv4680) { - yyv4680 = append(yyv4680, ReplicationControllerCondition{}) // var yyz4680 ReplicationControllerCondition - yyc4680 = true + if yyj4688 >= len(yyv4688) { + yyv4688 = append(yyv4688, ReplicationControllerCondition{}) // var yyz4688 ReplicationControllerCondition + yyc4688 = true } - yyh4680.ElemContainerState(yyj4680) - if yyj4680 < len(yyv4680) { + yyh4688.ElemContainerState(yyj4688) + if yyj4688 < len(yyv4688) { if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ReplicationControllerCondition{} + yyv4688[yyj4688] = ReplicationControllerCondition{} } else { - yyv4683 := &yyv4680[yyj4680] - yyv4683.CodecDecodeSelf(d) + yyv4691 := &yyv4688[yyj4688] + yyv4691.CodecDecodeSelf(d) } } else { @@ -59339,17 +59459,17 @@ func (x codecSelfer1234) decSliceReplicationControllerCondition(v *[]Replication } } - if yyj4680 < len(yyv4680) { - yyv4680 = yyv4680[:yyj4680] - yyc4680 = true - } else if yyj4680 == 0 && yyv4680 == nil { - yyv4680 = []ReplicationControllerCondition{} - yyc4680 = true + if yyj4688 < len(yyv4688) { + yyv4688 = yyv4688[:yyj4688] + yyc4688 = true + } else if yyj4688 == 0 && yyv4688 == nil { + yyv4688 = []ReplicationControllerCondition{} + yyc4688 = true } } - yyh4680.End() - if yyc4680 { - *v = yyv4680 + yyh4688.End() + if yyc4688 { + *v = yyv4688 } } @@ -59358,10 +59478,10 @@ func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4684 := range v { + for _, yyv4692 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4685 := &yyv4684 - yy4685.CodecEncodeSelf(e) + yy4693 := &yyv4692 + yy4693.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59371,83 +59491,83 @@ func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationControlle z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4686 := *v - yyh4686, yyl4686 := z.DecSliceHelperStart() - var yyc4686 bool - if yyl4686 == 0 { - if yyv4686 == nil { - yyv4686 = []ReplicationController{} - yyc4686 = true - } else if len(yyv4686) != 0 { - yyv4686 = yyv4686[:0] - yyc4686 = true + yyv4694 := *v + yyh4694, yyl4694 := z.DecSliceHelperStart() + var yyc4694 bool + if yyl4694 == 0 { + if yyv4694 == nil { + yyv4694 = []ReplicationController{} + yyc4694 = true + } else if len(yyv4694) != 0 { + yyv4694 = yyv4694[:0] + yyc4694 = true } - } else if yyl4686 > 0 { - var yyrr4686, yyrl4686 int - var yyrt4686 bool - if yyl4686 > cap(yyv4686) { + } else if yyl4694 > 0 { + var yyrr4694, yyrl4694 int + var yyrt4694 bool + if yyl4694 > cap(yyv4694) { - yyrg4686 := len(yyv4686) > 0 - yyv24686 := yyv4686 - yyrl4686, yyrt4686 = z.DecInferLen(yyl4686, z.DecBasicHandle().MaxInitLen, 336) - if yyrt4686 { - if yyrl4686 <= cap(yyv4686) { - yyv4686 = yyv4686[:yyrl4686] + yyrg4694 := len(yyv4694) > 0 + yyv24694 := yyv4694 + yyrl4694, yyrt4694 = z.DecInferLen(yyl4694, z.DecBasicHandle().MaxInitLen, 336) + if yyrt4694 { + if yyrl4694 <= cap(yyv4694) { + yyv4694 = yyv4694[:yyrl4694] } else { - yyv4686 = make([]ReplicationController, yyrl4686) + yyv4694 = make([]ReplicationController, yyrl4694) } } else { - yyv4686 = make([]ReplicationController, yyrl4686) + yyv4694 = make([]ReplicationController, yyrl4694) } - yyc4686 = true - yyrr4686 = len(yyv4686) - if yyrg4686 { - copy(yyv4686, yyv24686) + yyc4694 = true + yyrr4694 = len(yyv4694) + if yyrg4694 { + copy(yyv4694, yyv24694) } - } else if yyl4686 != len(yyv4686) { - yyv4686 = yyv4686[:yyl4686] - yyc4686 = true + } else if yyl4694 != len(yyv4694) { + yyv4694 = yyv4694[:yyl4694] + yyc4694 = true } - yyj4686 := 0 - for ; yyj4686 < yyrr4686; yyj4686++ { - yyh4686.ElemContainerState(yyj4686) + yyj4694 := 0 + for ; yyj4694 < yyrr4694; yyj4694++ { + yyh4694.ElemContainerState(yyj4694) if r.TryDecodeAsNil() { - yyv4686[yyj4686] = ReplicationController{} + yyv4694[yyj4694] = ReplicationController{} } else { - yyv4687 := &yyv4686[yyj4686] - yyv4687.CodecDecodeSelf(d) + yyv4695 := &yyv4694[yyj4694] + yyv4695.CodecDecodeSelf(d) } } - if yyrt4686 { - for ; yyj4686 < yyl4686; yyj4686++ { - yyv4686 = append(yyv4686, ReplicationController{}) - yyh4686.ElemContainerState(yyj4686) + if yyrt4694 { + for ; yyj4694 < yyl4694; yyj4694++ { + yyv4694 = append(yyv4694, ReplicationController{}) + yyh4694.ElemContainerState(yyj4694) if r.TryDecodeAsNil() { - yyv4686[yyj4686] = ReplicationController{} + yyv4694[yyj4694] = ReplicationController{} } else { - yyv4688 := &yyv4686[yyj4686] - yyv4688.CodecDecodeSelf(d) + yyv4696 := &yyv4694[yyj4694] + yyv4696.CodecDecodeSelf(d) } } } } else { - yyj4686 := 0 - for ; !r.CheckBreak(); yyj4686++ { + yyj4694 := 0 + for ; !r.CheckBreak(); yyj4694++ { - if yyj4686 >= len(yyv4686) { - yyv4686 = append(yyv4686, ReplicationController{}) // var yyz4686 ReplicationController - yyc4686 = true + if yyj4694 >= len(yyv4694) { + yyv4694 = append(yyv4694, ReplicationController{}) // var yyz4694 ReplicationController + yyc4694 = true } - yyh4686.ElemContainerState(yyj4686) - if yyj4686 < len(yyv4686) { + yyh4694.ElemContainerState(yyj4694) + if yyj4694 < len(yyv4694) { if r.TryDecodeAsNil() { - yyv4686[yyj4686] = ReplicationController{} + yyv4694[yyj4694] = ReplicationController{} } else { - yyv4689 := &yyv4686[yyj4686] - yyv4689.CodecDecodeSelf(d) + yyv4697 := &yyv4694[yyj4694] + yyv4697.CodecDecodeSelf(d) } } else { @@ -59455,17 +59575,17 @@ func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationControlle } } - if yyj4686 < len(yyv4686) { - yyv4686 = yyv4686[:yyj4686] - yyc4686 = true - } else if yyj4686 == 0 && yyv4686 == nil { - yyv4686 = []ReplicationController{} - yyc4686 = true + if yyj4694 < len(yyv4694) { + yyv4694 = yyv4694[:yyj4694] + yyc4694 = true + } else if yyj4694 == 0 && yyv4694 == nil { + yyv4694 = []ReplicationController{} + yyc4694 = true } } - yyh4686.End() - if yyc4686 { - *v = yyv4686 + yyh4694.End() + if yyc4694 { + *v = yyv4694 } } @@ -59474,10 +59594,10 @@ func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4690 := range v { + for _, yyv4698 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4691 := &yyv4690 - yy4691.CodecEncodeSelf(e) + yy4699 := &yyv4698 + yy4699.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59487,83 +59607,83 @@ func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4692 := *v - yyh4692, yyl4692 := z.DecSliceHelperStart() - var yyc4692 bool - if yyl4692 == 0 { - if yyv4692 == nil { - yyv4692 = []LoadBalancerIngress{} - yyc4692 = true - } else if len(yyv4692) != 0 { - yyv4692 = yyv4692[:0] - yyc4692 = true + yyv4700 := *v + yyh4700, yyl4700 := z.DecSliceHelperStart() + var yyc4700 bool + if yyl4700 == 0 { + if yyv4700 == nil { + yyv4700 = []LoadBalancerIngress{} + yyc4700 = true + } else if len(yyv4700) != 0 { + yyv4700 = yyv4700[:0] + yyc4700 = true } - } else if yyl4692 > 0 { - var yyrr4692, yyrl4692 int - var yyrt4692 bool - if yyl4692 > cap(yyv4692) { + } else if yyl4700 > 0 { + var yyrr4700, yyrl4700 int + var yyrt4700 bool + if yyl4700 > cap(yyv4700) { - yyrg4692 := len(yyv4692) > 0 - yyv24692 := yyv4692 - yyrl4692, yyrt4692 = z.DecInferLen(yyl4692, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4692 { - if yyrl4692 <= cap(yyv4692) { - yyv4692 = yyv4692[:yyrl4692] + yyrg4700 := len(yyv4700) > 0 + yyv24700 := yyv4700 + yyrl4700, yyrt4700 = z.DecInferLen(yyl4700, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4700 { + if yyrl4700 <= cap(yyv4700) { + yyv4700 = yyv4700[:yyrl4700] } else { - yyv4692 = make([]LoadBalancerIngress, yyrl4692) + yyv4700 = make([]LoadBalancerIngress, yyrl4700) } } else { - yyv4692 = make([]LoadBalancerIngress, yyrl4692) + yyv4700 = make([]LoadBalancerIngress, yyrl4700) } - yyc4692 = true - yyrr4692 = len(yyv4692) - if yyrg4692 { - copy(yyv4692, yyv24692) + yyc4700 = true + yyrr4700 = len(yyv4700) + if yyrg4700 { + copy(yyv4700, yyv24700) } - } else if yyl4692 != len(yyv4692) { - yyv4692 = yyv4692[:yyl4692] - yyc4692 = true + } else if yyl4700 != len(yyv4700) { + yyv4700 = yyv4700[:yyl4700] + yyc4700 = true } - yyj4692 := 0 - for ; yyj4692 < yyrr4692; yyj4692++ { - yyh4692.ElemContainerState(yyj4692) + yyj4700 := 0 + for ; yyj4700 < yyrr4700; yyj4700++ { + yyh4700.ElemContainerState(yyj4700) if r.TryDecodeAsNil() { - yyv4692[yyj4692] = LoadBalancerIngress{} + yyv4700[yyj4700] = LoadBalancerIngress{} } else { - yyv4693 := &yyv4692[yyj4692] - yyv4693.CodecDecodeSelf(d) + yyv4701 := &yyv4700[yyj4700] + yyv4701.CodecDecodeSelf(d) } } - if yyrt4692 { - for ; yyj4692 < yyl4692; yyj4692++ { - yyv4692 = append(yyv4692, LoadBalancerIngress{}) - yyh4692.ElemContainerState(yyj4692) + if yyrt4700 { + for ; yyj4700 < yyl4700; yyj4700++ { + yyv4700 = append(yyv4700, LoadBalancerIngress{}) + yyh4700.ElemContainerState(yyj4700) if r.TryDecodeAsNil() { - yyv4692[yyj4692] = LoadBalancerIngress{} + yyv4700[yyj4700] = LoadBalancerIngress{} } else { - yyv4694 := &yyv4692[yyj4692] - yyv4694.CodecDecodeSelf(d) + yyv4702 := &yyv4700[yyj4700] + yyv4702.CodecDecodeSelf(d) } } } } else { - yyj4692 := 0 - for ; !r.CheckBreak(); yyj4692++ { + yyj4700 := 0 + for ; !r.CheckBreak(); yyj4700++ { - if yyj4692 >= len(yyv4692) { - yyv4692 = append(yyv4692, LoadBalancerIngress{}) // var yyz4692 LoadBalancerIngress - yyc4692 = true + if yyj4700 >= len(yyv4700) { + yyv4700 = append(yyv4700, LoadBalancerIngress{}) // var yyz4700 LoadBalancerIngress + yyc4700 = true } - yyh4692.ElemContainerState(yyj4692) - if yyj4692 < len(yyv4692) { + yyh4700.ElemContainerState(yyj4700) + if yyj4700 < len(yyv4700) { if r.TryDecodeAsNil() { - yyv4692[yyj4692] = LoadBalancerIngress{} + yyv4700[yyj4700] = LoadBalancerIngress{} } else { - yyv4695 := &yyv4692[yyj4692] - yyv4695.CodecDecodeSelf(d) + yyv4703 := &yyv4700[yyj4700] + yyv4703.CodecDecodeSelf(d) } } else { @@ -59571,17 +59691,17 @@ func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d } } - if yyj4692 < len(yyv4692) { - yyv4692 = yyv4692[:yyj4692] - yyc4692 = true - } else if yyj4692 == 0 && yyv4692 == nil { - yyv4692 = []LoadBalancerIngress{} - yyc4692 = true + if yyj4700 < len(yyv4700) { + yyv4700 = yyv4700[:yyj4700] + yyc4700 = true + } else if yyj4700 == 0 && yyv4700 == nil { + yyv4700 = []LoadBalancerIngress{} + yyc4700 = true } } - yyh4692.End() - if yyc4692 { - *v = yyv4692 + yyh4700.End() + if yyc4700 { + *v = yyv4700 } } @@ -59590,10 +59710,10 @@ func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4696 := range v { + for _, yyv4704 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4697 := &yyv4696 - yy4697.CodecEncodeSelf(e) + yy4705 := &yyv4704 + yy4705.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59603,83 +59723,83 @@ func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4698 := *v - yyh4698, yyl4698 := z.DecSliceHelperStart() - var yyc4698 bool - if yyl4698 == 0 { - if yyv4698 == nil { - yyv4698 = []ServicePort{} - yyc4698 = true - } else if len(yyv4698) != 0 { - yyv4698 = yyv4698[:0] - yyc4698 = true + yyv4706 := *v + yyh4706, yyl4706 := z.DecSliceHelperStart() + var yyc4706 bool + if yyl4706 == 0 { + if yyv4706 == nil { + yyv4706 = []ServicePort{} + yyc4706 = true + } else if len(yyv4706) != 0 { + yyv4706 = yyv4706[:0] + yyc4706 = true } - } else if yyl4698 > 0 { - var yyrr4698, yyrl4698 int - var yyrt4698 bool - if yyl4698 > cap(yyv4698) { + } else if yyl4706 > 0 { + var yyrr4706, yyrl4706 int + var yyrt4706 bool + if yyl4706 > cap(yyv4706) { - yyrg4698 := len(yyv4698) > 0 - yyv24698 := yyv4698 - yyrl4698, yyrt4698 = z.DecInferLen(yyl4698, z.DecBasicHandle().MaxInitLen, 80) - if yyrt4698 { - if yyrl4698 <= cap(yyv4698) { - yyv4698 = yyv4698[:yyrl4698] + yyrg4706 := len(yyv4706) > 0 + yyv24706 := yyv4706 + yyrl4706, yyrt4706 = z.DecInferLen(yyl4706, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4706 { + if yyrl4706 <= cap(yyv4706) { + yyv4706 = yyv4706[:yyrl4706] } else { - yyv4698 = make([]ServicePort, yyrl4698) + yyv4706 = make([]ServicePort, yyrl4706) } } else { - yyv4698 = make([]ServicePort, yyrl4698) + yyv4706 = make([]ServicePort, yyrl4706) } - yyc4698 = true - yyrr4698 = len(yyv4698) - if yyrg4698 { - copy(yyv4698, yyv24698) + yyc4706 = true + yyrr4706 = len(yyv4706) + if yyrg4706 { + copy(yyv4706, yyv24706) } - } else if yyl4698 != len(yyv4698) { - yyv4698 = yyv4698[:yyl4698] - yyc4698 = true + } else if yyl4706 != len(yyv4706) { + yyv4706 = yyv4706[:yyl4706] + yyc4706 = true } - yyj4698 := 0 - for ; yyj4698 < yyrr4698; yyj4698++ { - yyh4698.ElemContainerState(yyj4698) + yyj4706 := 0 + for ; yyj4706 < yyrr4706; yyj4706++ { + yyh4706.ElemContainerState(yyj4706) if r.TryDecodeAsNil() { - yyv4698[yyj4698] = ServicePort{} + yyv4706[yyj4706] = ServicePort{} } else { - yyv4699 := &yyv4698[yyj4698] - yyv4699.CodecDecodeSelf(d) + yyv4707 := &yyv4706[yyj4706] + yyv4707.CodecDecodeSelf(d) } } - if yyrt4698 { - for ; yyj4698 < yyl4698; yyj4698++ { - yyv4698 = append(yyv4698, ServicePort{}) - yyh4698.ElemContainerState(yyj4698) + if yyrt4706 { + for ; yyj4706 < yyl4706; yyj4706++ { + yyv4706 = append(yyv4706, ServicePort{}) + yyh4706.ElemContainerState(yyj4706) if r.TryDecodeAsNil() { - yyv4698[yyj4698] = ServicePort{} + yyv4706[yyj4706] = ServicePort{} } else { - yyv4700 := &yyv4698[yyj4698] - yyv4700.CodecDecodeSelf(d) + yyv4708 := &yyv4706[yyj4706] + yyv4708.CodecDecodeSelf(d) } } } } else { - yyj4698 := 0 - for ; !r.CheckBreak(); yyj4698++ { + yyj4706 := 0 + for ; !r.CheckBreak(); yyj4706++ { - if yyj4698 >= len(yyv4698) { - yyv4698 = append(yyv4698, ServicePort{}) // var yyz4698 ServicePort - yyc4698 = true + if yyj4706 >= len(yyv4706) { + yyv4706 = append(yyv4706, ServicePort{}) // var yyz4706 ServicePort + yyc4706 = true } - yyh4698.ElemContainerState(yyj4698) - if yyj4698 < len(yyv4698) { + yyh4706.ElemContainerState(yyj4706) + if yyj4706 < len(yyv4706) { if r.TryDecodeAsNil() { - yyv4698[yyj4698] = ServicePort{} + yyv4706[yyj4706] = ServicePort{} } else { - yyv4701 := &yyv4698[yyj4698] - yyv4701.CodecDecodeSelf(d) + yyv4709 := &yyv4706[yyj4706] + yyv4709.CodecDecodeSelf(d) } } else { @@ -59687,17 +59807,17 @@ func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Deco } } - if yyj4698 < len(yyv4698) { - yyv4698 = yyv4698[:yyj4698] - yyc4698 = true - } else if yyj4698 == 0 && yyv4698 == nil { - yyv4698 = []ServicePort{} - yyc4698 = true + if yyj4706 < len(yyv4706) { + yyv4706 = yyv4706[:yyj4706] + yyc4706 = true + } else if yyj4706 == 0 && yyv4706 == nil { + yyv4706 = []ServicePort{} + yyc4706 = true } } - yyh4698.End() - if yyc4698 { - *v = yyv4698 + yyh4706.End() + if yyc4706 { + *v = yyv4706 } } @@ -59706,10 +59826,10 @@ func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4702 := range v { + for _, yyv4710 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4703 := &yyv4702 - yy4703.CodecEncodeSelf(e) + yy4711 := &yyv4710 + yy4711.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59719,83 +59839,83 @@ func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4704 := *v - yyh4704, yyl4704 := z.DecSliceHelperStart() - var yyc4704 bool - if yyl4704 == 0 { - if yyv4704 == nil { - yyv4704 = []Service{} - yyc4704 = true - } else if len(yyv4704) != 0 { - yyv4704 = yyv4704[:0] - yyc4704 = true + yyv4712 := *v + yyh4712, yyl4712 := z.DecSliceHelperStart() + var yyc4712 bool + if yyl4712 == 0 { + if yyv4712 == nil { + yyv4712 = []Service{} + yyc4712 = true + } else if len(yyv4712) != 0 { + yyv4712 = yyv4712[:0] + yyc4712 = true } - } else if yyl4704 > 0 { - var yyrr4704, yyrl4704 int - var yyrt4704 bool - if yyl4704 > cap(yyv4704) { + } else if yyl4712 > 0 { + var yyrr4712, yyrl4712 int + var yyrt4712 bool + if yyl4712 > cap(yyv4712) { - yyrg4704 := len(yyv4704) > 0 - yyv24704 := yyv4704 - yyrl4704, yyrt4704 = z.DecInferLen(yyl4704, z.DecBasicHandle().MaxInitLen, 464) - if yyrt4704 { - if yyrl4704 <= cap(yyv4704) { - yyv4704 = yyv4704[:yyrl4704] + yyrg4712 := len(yyv4712) > 0 + yyv24712 := yyv4712 + yyrl4712, yyrt4712 = z.DecInferLen(yyl4712, z.DecBasicHandle().MaxInitLen, 464) + if yyrt4712 { + if yyrl4712 <= cap(yyv4712) { + yyv4712 = yyv4712[:yyrl4712] } else { - yyv4704 = make([]Service, yyrl4704) + yyv4712 = make([]Service, yyrl4712) } } else { - yyv4704 = make([]Service, yyrl4704) + yyv4712 = make([]Service, yyrl4712) } - yyc4704 = true - yyrr4704 = len(yyv4704) - if yyrg4704 { - copy(yyv4704, yyv24704) + yyc4712 = true + yyrr4712 = len(yyv4712) + if yyrg4712 { + copy(yyv4712, yyv24712) } - } else if yyl4704 != len(yyv4704) { - yyv4704 = yyv4704[:yyl4704] - yyc4704 = true + } else if yyl4712 != len(yyv4712) { + yyv4712 = yyv4712[:yyl4712] + yyc4712 = true } - yyj4704 := 0 - for ; yyj4704 < yyrr4704; yyj4704++ { - yyh4704.ElemContainerState(yyj4704) + yyj4712 := 0 + for ; yyj4712 < yyrr4712; yyj4712++ { + yyh4712.ElemContainerState(yyj4712) if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Service{} + yyv4712[yyj4712] = Service{} } else { - yyv4705 := &yyv4704[yyj4704] - yyv4705.CodecDecodeSelf(d) + yyv4713 := &yyv4712[yyj4712] + yyv4713.CodecDecodeSelf(d) } } - if yyrt4704 { - for ; yyj4704 < yyl4704; yyj4704++ { - yyv4704 = append(yyv4704, Service{}) - yyh4704.ElemContainerState(yyj4704) + if yyrt4712 { + for ; yyj4712 < yyl4712; yyj4712++ { + yyv4712 = append(yyv4712, Service{}) + yyh4712.ElemContainerState(yyj4712) if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Service{} + yyv4712[yyj4712] = Service{} } else { - yyv4706 := &yyv4704[yyj4704] - yyv4706.CodecDecodeSelf(d) + yyv4714 := &yyv4712[yyj4712] + yyv4714.CodecDecodeSelf(d) } } } } else { - yyj4704 := 0 - for ; !r.CheckBreak(); yyj4704++ { + yyj4712 := 0 + for ; !r.CheckBreak(); yyj4712++ { - if yyj4704 >= len(yyv4704) { - yyv4704 = append(yyv4704, Service{}) // var yyz4704 Service - yyc4704 = true + if yyj4712 >= len(yyv4712) { + yyv4712 = append(yyv4712, Service{}) // var yyz4712 Service + yyc4712 = true } - yyh4704.ElemContainerState(yyj4704) - if yyj4704 < len(yyv4704) { + yyh4712.ElemContainerState(yyj4712) + if yyj4712 < len(yyv4712) { if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Service{} + yyv4712[yyj4712] = Service{} } else { - yyv4707 := &yyv4704[yyj4704] - yyv4707.CodecDecodeSelf(d) + yyv4715 := &yyv4712[yyj4712] + yyv4715.CodecDecodeSelf(d) } } else { @@ -59803,17 +59923,17 @@ func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { } } - if yyj4704 < len(yyv4704) { - yyv4704 = yyv4704[:yyj4704] - yyc4704 = true - } else if yyj4704 == 0 && yyv4704 == nil { - yyv4704 = []Service{} - yyc4704 = true + if yyj4712 < len(yyv4712) { + yyv4712 = yyv4712[:yyj4712] + yyc4712 = true + } else if yyj4712 == 0 && yyv4712 == nil { + yyv4712 = []Service{} + yyc4712 = true } } - yyh4704.End() - if yyc4704 { - *v = yyv4704 + yyh4712.End() + if yyc4712 { + *v = yyv4712 } } @@ -59822,10 +59942,10 @@ func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4708 := range v { + for _, yyv4716 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4709 := &yyv4708 - yy4709.CodecEncodeSelf(e) + yy4717 := &yyv4716 + yy4717.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59835,83 +59955,83 @@ func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4710 := *v - yyh4710, yyl4710 := z.DecSliceHelperStart() - var yyc4710 bool - if yyl4710 == 0 { - if yyv4710 == nil { - yyv4710 = []ObjectReference{} - yyc4710 = true - } else if len(yyv4710) != 0 { - yyv4710 = yyv4710[:0] - yyc4710 = true + yyv4718 := *v + yyh4718, yyl4718 := z.DecSliceHelperStart() + var yyc4718 bool + if yyl4718 == 0 { + if yyv4718 == nil { + yyv4718 = []ObjectReference{} + yyc4718 = true + } else if len(yyv4718) != 0 { + yyv4718 = yyv4718[:0] + yyc4718 = true } - } else if yyl4710 > 0 { - var yyrr4710, yyrl4710 int - var yyrt4710 bool - if yyl4710 > cap(yyv4710) { + } else if yyl4718 > 0 { + var yyrr4718, yyrl4718 int + var yyrt4718 bool + if yyl4718 > cap(yyv4718) { - yyrg4710 := len(yyv4710) > 0 - yyv24710 := yyv4710 - yyrl4710, yyrt4710 = z.DecInferLen(yyl4710, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4710 { - if yyrl4710 <= cap(yyv4710) { - yyv4710 = yyv4710[:yyrl4710] + yyrg4718 := len(yyv4718) > 0 + yyv24718 := yyv4718 + yyrl4718, yyrt4718 = z.DecInferLen(yyl4718, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4718 { + if yyrl4718 <= cap(yyv4718) { + yyv4718 = yyv4718[:yyrl4718] } else { - yyv4710 = make([]ObjectReference, yyrl4710) + yyv4718 = make([]ObjectReference, yyrl4718) } } else { - yyv4710 = make([]ObjectReference, yyrl4710) + yyv4718 = make([]ObjectReference, yyrl4718) } - yyc4710 = true - yyrr4710 = len(yyv4710) - if yyrg4710 { - copy(yyv4710, yyv24710) + yyc4718 = true + yyrr4718 = len(yyv4718) + if yyrg4718 { + copy(yyv4718, yyv24718) } - } else if yyl4710 != len(yyv4710) { - yyv4710 = yyv4710[:yyl4710] - yyc4710 = true + } else if yyl4718 != len(yyv4718) { + yyv4718 = yyv4718[:yyl4718] + yyc4718 = true } - yyj4710 := 0 - for ; yyj4710 < yyrr4710; yyj4710++ { - yyh4710.ElemContainerState(yyj4710) + yyj4718 := 0 + for ; yyj4718 < yyrr4718; yyj4718++ { + yyh4718.ElemContainerState(yyj4718) if r.TryDecodeAsNil() { - yyv4710[yyj4710] = ObjectReference{} + yyv4718[yyj4718] = ObjectReference{} } else { - yyv4711 := &yyv4710[yyj4710] - yyv4711.CodecDecodeSelf(d) + yyv4719 := &yyv4718[yyj4718] + yyv4719.CodecDecodeSelf(d) } } - if yyrt4710 { - for ; yyj4710 < yyl4710; yyj4710++ { - yyv4710 = append(yyv4710, ObjectReference{}) - yyh4710.ElemContainerState(yyj4710) + if yyrt4718 { + for ; yyj4718 < yyl4718; yyj4718++ { + yyv4718 = append(yyv4718, ObjectReference{}) + yyh4718.ElemContainerState(yyj4718) if r.TryDecodeAsNil() { - yyv4710[yyj4710] = ObjectReference{} + yyv4718[yyj4718] = ObjectReference{} } else { - yyv4712 := &yyv4710[yyj4710] - yyv4712.CodecDecodeSelf(d) + yyv4720 := &yyv4718[yyj4718] + yyv4720.CodecDecodeSelf(d) } } } } else { - yyj4710 := 0 - for ; !r.CheckBreak(); yyj4710++ { + yyj4718 := 0 + for ; !r.CheckBreak(); yyj4718++ { - if yyj4710 >= len(yyv4710) { - yyv4710 = append(yyv4710, ObjectReference{}) // var yyz4710 ObjectReference - yyc4710 = true + if yyj4718 >= len(yyv4718) { + yyv4718 = append(yyv4718, ObjectReference{}) // var yyz4718 ObjectReference + yyc4718 = true } - yyh4710.ElemContainerState(yyj4710) - if yyj4710 < len(yyv4710) { + yyh4718.ElemContainerState(yyj4718) + if yyj4718 < len(yyv4718) { if r.TryDecodeAsNil() { - yyv4710[yyj4710] = ObjectReference{} + yyv4718[yyj4718] = ObjectReference{} } else { - yyv4713 := &yyv4710[yyj4710] - yyv4713.CodecDecodeSelf(d) + yyv4721 := &yyv4718[yyj4718] + yyv4721.CodecDecodeSelf(d) } } else { @@ -59919,17 +60039,17 @@ func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1 } } - if yyj4710 < len(yyv4710) { - yyv4710 = yyv4710[:yyj4710] - yyc4710 = true - } else if yyj4710 == 0 && yyv4710 == nil { - yyv4710 = []ObjectReference{} - yyc4710 = true + if yyj4718 < len(yyv4718) { + yyv4718 = yyv4718[:yyj4718] + yyc4718 = true + } else if yyj4718 == 0 && yyv4718 == nil { + yyv4718 = []ObjectReference{} + yyc4718 = true } } - yyh4710.End() - if yyc4710 { - *v = yyv4710 + yyh4718.End() + if yyc4718 { + *v = yyv4718 } } @@ -59938,10 +60058,10 @@ func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4714 := range v { + for _, yyv4722 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4715 := &yyv4714 - yy4715.CodecEncodeSelf(e) + yy4723 := &yyv4722 + yy4723.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59951,83 +60071,83 @@ func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4716 := *v - yyh4716, yyl4716 := z.DecSliceHelperStart() - var yyc4716 bool - if yyl4716 == 0 { - if yyv4716 == nil { - yyv4716 = []ServiceAccount{} - yyc4716 = true - } else if len(yyv4716) != 0 { - yyv4716 = yyv4716[:0] - yyc4716 = true + yyv4724 := *v + yyh4724, yyl4724 := z.DecSliceHelperStart() + var yyc4724 bool + if yyl4724 == 0 { + if yyv4724 == nil { + yyv4724 = []ServiceAccount{} + yyc4724 = true + } else if len(yyv4724) != 0 { + yyv4724 = yyv4724[:0] + yyc4724 = true } - } else if yyl4716 > 0 { - var yyrr4716, yyrl4716 int - var yyrt4716 bool - if yyl4716 > cap(yyv4716) { + } else if yyl4724 > 0 { + var yyrr4724, yyrl4724 int + var yyrt4724 bool + if yyl4724 > cap(yyv4724) { - yyrg4716 := len(yyv4716) > 0 - yyv24716 := yyv4716 - yyrl4716, yyrt4716 = z.DecInferLen(yyl4716, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4716 { - if yyrl4716 <= cap(yyv4716) { - yyv4716 = yyv4716[:yyrl4716] + yyrg4724 := len(yyv4724) > 0 + yyv24724 := yyv4724 + yyrl4724, yyrt4724 = z.DecInferLen(yyl4724, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4724 { + if yyrl4724 <= cap(yyv4724) { + yyv4724 = yyv4724[:yyrl4724] } else { - yyv4716 = make([]ServiceAccount, yyrl4716) + yyv4724 = make([]ServiceAccount, yyrl4724) } } else { - yyv4716 = make([]ServiceAccount, yyrl4716) + yyv4724 = make([]ServiceAccount, yyrl4724) } - yyc4716 = true - yyrr4716 = len(yyv4716) - if yyrg4716 { - copy(yyv4716, yyv24716) + yyc4724 = true + yyrr4724 = len(yyv4724) + if yyrg4724 { + copy(yyv4724, yyv24724) } - } else if yyl4716 != len(yyv4716) { - yyv4716 = yyv4716[:yyl4716] - yyc4716 = true + } else if yyl4724 != len(yyv4724) { + yyv4724 = yyv4724[:yyl4724] + yyc4724 = true } - yyj4716 := 0 - for ; yyj4716 < yyrr4716; yyj4716++ { - yyh4716.ElemContainerState(yyj4716) + yyj4724 := 0 + for ; yyj4724 < yyrr4724; yyj4724++ { + yyh4724.ElemContainerState(yyj4724) if r.TryDecodeAsNil() { - yyv4716[yyj4716] = ServiceAccount{} + yyv4724[yyj4724] = ServiceAccount{} } else { - yyv4717 := &yyv4716[yyj4716] - yyv4717.CodecDecodeSelf(d) + yyv4725 := &yyv4724[yyj4724] + yyv4725.CodecDecodeSelf(d) } } - if yyrt4716 { - for ; yyj4716 < yyl4716; yyj4716++ { - yyv4716 = append(yyv4716, ServiceAccount{}) - yyh4716.ElemContainerState(yyj4716) + if yyrt4724 { + for ; yyj4724 < yyl4724; yyj4724++ { + yyv4724 = append(yyv4724, ServiceAccount{}) + yyh4724.ElemContainerState(yyj4724) if r.TryDecodeAsNil() { - yyv4716[yyj4716] = ServiceAccount{} + yyv4724[yyj4724] = ServiceAccount{} } else { - yyv4718 := &yyv4716[yyj4716] - yyv4718.CodecDecodeSelf(d) + yyv4726 := &yyv4724[yyj4724] + yyv4726.CodecDecodeSelf(d) } } } } else { - yyj4716 := 0 - for ; !r.CheckBreak(); yyj4716++ { + yyj4724 := 0 + for ; !r.CheckBreak(); yyj4724++ { - if yyj4716 >= len(yyv4716) { - yyv4716 = append(yyv4716, ServiceAccount{}) // var yyz4716 ServiceAccount - yyc4716 = true + if yyj4724 >= len(yyv4724) { + yyv4724 = append(yyv4724, ServiceAccount{}) // var yyz4724 ServiceAccount + yyc4724 = true } - yyh4716.ElemContainerState(yyj4716) - if yyj4716 < len(yyv4716) { + yyh4724.ElemContainerState(yyj4724) + if yyj4724 < len(yyv4724) { if r.TryDecodeAsNil() { - yyv4716[yyj4716] = ServiceAccount{} + yyv4724[yyj4724] = ServiceAccount{} } else { - yyv4719 := &yyv4716[yyj4716] - yyv4719.CodecDecodeSelf(d) + yyv4727 := &yyv4724[yyj4724] + yyv4727.CodecDecodeSelf(d) } } else { @@ -60035,17 +60155,17 @@ func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec197 } } - if yyj4716 < len(yyv4716) { - yyv4716 = yyv4716[:yyj4716] - yyc4716 = true - } else if yyj4716 == 0 && yyv4716 == nil { - yyv4716 = []ServiceAccount{} - yyc4716 = true + if yyj4724 < len(yyv4724) { + yyv4724 = yyv4724[:yyj4724] + yyc4724 = true + } else if yyj4724 == 0 && yyv4724 == nil { + yyv4724 = []ServiceAccount{} + yyc4724 = true } } - yyh4716.End() - if yyc4716 { - *v = yyv4716 + yyh4724.End() + if yyc4724 { + *v = yyv4724 } } @@ -60054,10 +60174,10 @@ func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4720 := range v { + for _, yyv4728 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4721 := &yyv4720 - yy4721.CodecEncodeSelf(e) + yy4729 := &yyv4728 + yy4729.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60067,83 +60187,83 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4722 := *v - yyh4722, yyl4722 := z.DecSliceHelperStart() - var yyc4722 bool - if yyl4722 == 0 { - if yyv4722 == nil { - yyv4722 = []EndpointSubset{} - yyc4722 = true - } else if len(yyv4722) != 0 { - yyv4722 = yyv4722[:0] - yyc4722 = true + yyv4730 := *v + yyh4730, yyl4730 := z.DecSliceHelperStart() + var yyc4730 bool + if yyl4730 == 0 { + if yyv4730 == nil { + yyv4730 = []EndpointSubset{} + yyc4730 = true + } else if len(yyv4730) != 0 { + yyv4730 = yyv4730[:0] + yyc4730 = true } - } else if yyl4722 > 0 { - var yyrr4722, yyrl4722 int - var yyrt4722 bool - if yyl4722 > cap(yyv4722) { + } else if yyl4730 > 0 { + var yyrr4730, yyrl4730 int + var yyrt4730 bool + if yyl4730 > cap(yyv4730) { - yyrg4722 := len(yyv4722) > 0 - yyv24722 := yyv4722 - yyrl4722, yyrt4722 = z.DecInferLen(yyl4722, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4722 { - if yyrl4722 <= cap(yyv4722) { - yyv4722 = yyv4722[:yyrl4722] + yyrg4730 := len(yyv4730) > 0 + yyv24730 := yyv4730 + yyrl4730, yyrt4730 = z.DecInferLen(yyl4730, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4730 { + if yyrl4730 <= cap(yyv4730) { + yyv4730 = yyv4730[:yyrl4730] } else { - yyv4722 = make([]EndpointSubset, yyrl4722) + yyv4730 = make([]EndpointSubset, yyrl4730) } } else { - yyv4722 = make([]EndpointSubset, yyrl4722) + yyv4730 = make([]EndpointSubset, yyrl4730) } - yyc4722 = true - yyrr4722 = len(yyv4722) - if yyrg4722 { - copy(yyv4722, yyv24722) + yyc4730 = true + yyrr4730 = len(yyv4730) + if yyrg4730 { + copy(yyv4730, yyv24730) } - } else if yyl4722 != len(yyv4722) { - yyv4722 = yyv4722[:yyl4722] - yyc4722 = true + } else if yyl4730 != len(yyv4730) { + yyv4730 = yyv4730[:yyl4730] + yyc4730 = true } - yyj4722 := 0 - for ; yyj4722 < yyrr4722; yyj4722++ { - yyh4722.ElemContainerState(yyj4722) + yyj4730 := 0 + for ; yyj4730 < yyrr4730; yyj4730++ { + yyh4730.ElemContainerState(yyj4730) if r.TryDecodeAsNil() { - yyv4722[yyj4722] = EndpointSubset{} + yyv4730[yyj4730] = EndpointSubset{} } else { - yyv4723 := &yyv4722[yyj4722] - yyv4723.CodecDecodeSelf(d) + yyv4731 := &yyv4730[yyj4730] + yyv4731.CodecDecodeSelf(d) } } - if yyrt4722 { - for ; yyj4722 < yyl4722; yyj4722++ { - yyv4722 = append(yyv4722, EndpointSubset{}) - yyh4722.ElemContainerState(yyj4722) + if yyrt4730 { + for ; yyj4730 < yyl4730; yyj4730++ { + yyv4730 = append(yyv4730, EndpointSubset{}) + yyh4730.ElemContainerState(yyj4730) if r.TryDecodeAsNil() { - yyv4722[yyj4722] = EndpointSubset{} + yyv4730[yyj4730] = EndpointSubset{} } else { - yyv4724 := &yyv4722[yyj4722] - yyv4724.CodecDecodeSelf(d) + yyv4732 := &yyv4730[yyj4730] + yyv4732.CodecDecodeSelf(d) } } } } else { - yyj4722 := 0 - for ; !r.CheckBreak(); yyj4722++ { + yyj4730 := 0 + for ; !r.CheckBreak(); yyj4730++ { - if yyj4722 >= len(yyv4722) { - yyv4722 = append(yyv4722, EndpointSubset{}) // var yyz4722 EndpointSubset - yyc4722 = true + if yyj4730 >= len(yyv4730) { + yyv4730 = append(yyv4730, EndpointSubset{}) // var yyz4730 EndpointSubset + yyc4730 = true } - yyh4722.ElemContainerState(yyj4722) - if yyj4722 < len(yyv4722) { + yyh4730.ElemContainerState(yyj4730) + if yyj4730 < len(yyv4730) { if r.TryDecodeAsNil() { - yyv4722[yyj4722] = EndpointSubset{} + yyv4730[yyj4730] = EndpointSubset{} } else { - yyv4725 := &yyv4722[yyj4722] - yyv4725.CodecDecodeSelf(d) + yyv4733 := &yyv4730[yyj4730] + yyv4733.CodecDecodeSelf(d) } } else { @@ -60151,17 +60271,17 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 } } - if yyj4722 < len(yyv4722) { - yyv4722 = yyv4722[:yyj4722] - yyc4722 = true - } else if yyj4722 == 0 && yyv4722 == nil { - yyv4722 = []EndpointSubset{} - yyc4722 = true + if yyj4730 < len(yyv4730) { + yyv4730 = yyv4730[:yyj4730] + yyc4730 = true + } else if yyj4730 == 0 && yyv4730 == nil { + yyv4730 = []EndpointSubset{} + yyc4730 = true } } - yyh4722.End() - if yyc4722 { - *v = yyv4722 + yyh4730.End() + if yyc4730 { + *v = yyv4730 } } @@ -60170,10 +60290,10 @@ func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4726 := range v { + for _, yyv4734 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4727 := &yyv4726 - yy4727.CodecEncodeSelf(e) + yy4735 := &yyv4734 + yy4735.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60183,83 +60303,83 @@ func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4728 := *v - yyh4728, yyl4728 := z.DecSliceHelperStart() - var yyc4728 bool - if yyl4728 == 0 { - if yyv4728 == nil { - yyv4728 = []EndpointAddress{} - yyc4728 = true - } else if len(yyv4728) != 0 { - yyv4728 = yyv4728[:0] - yyc4728 = true + yyv4736 := *v + yyh4736, yyl4736 := z.DecSliceHelperStart() + var yyc4736 bool + if yyl4736 == 0 { + if yyv4736 == nil { + yyv4736 = []EndpointAddress{} + yyc4736 = true + } else if len(yyv4736) != 0 { + yyv4736 = yyv4736[:0] + yyc4736 = true } - } else if yyl4728 > 0 { - var yyrr4728, yyrl4728 int - var yyrt4728 bool - if yyl4728 > cap(yyv4728) { + } else if yyl4736 > 0 { + var yyrr4736, yyrl4736 int + var yyrt4736 bool + if yyl4736 > cap(yyv4736) { - yyrg4728 := len(yyv4728) > 0 - yyv24728 := yyv4728 - yyrl4728, yyrt4728 = z.DecInferLen(yyl4728, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4728 { - if yyrl4728 <= cap(yyv4728) { - yyv4728 = yyv4728[:yyrl4728] + yyrg4736 := len(yyv4736) > 0 + yyv24736 := yyv4736 + yyrl4736, yyrt4736 = z.DecInferLen(yyl4736, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4736 { + if yyrl4736 <= cap(yyv4736) { + yyv4736 = yyv4736[:yyrl4736] } else { - yyv4728 = make([]EndpointAddress, yyrl4728) + yyv4736 = make([]EndpointAddress, yyrl4736) } } else { - yyv4728 = make([]EndpointAddress, yyrl4728) + yyv4736 = make([]EndpointAddress, yyrl4736) } - yyc4728 = true - yyrr4728 = len(yyv4728) - if yyrg4728 { - copy(yyv4728, yyv24728) + yyc4736 = true + yyrr4736 = len(yyv4736) + if yyrg4736 { + copy(yyv4736, yyv24736) } - } else if yyl4728 != len(yyv4728) { - yyv4728 = yyv4728[:yyl4728] - yyc4728 = true + } else if yyl4736 != len(yyv4736) { + yyv4736 = yyv4736[:yyl4736] + yyc4736 = true } - yyj4728 := 0 - for ; yyj4728 < yyrr4728; yyj4728++ { - yyh4728.ElemContainerState(yyj4728) + yyj4736 := 0 + for ; yyj4736 < yyrr4736; yyj4736++ { + yyh4736.ElemContainerState(yyj4736) if r.TryDecodeAsNil() { - yyv4728[yyj4728] = EndpointAddress{} + yyv4736[yyj4736] = EndpointAddress{} } else { - yyv4729 := &yyv4728[yyj4728] - yyv4729.CodecDecodeSelf(d) + yyv4737 := &yyv4736[yyj4736] + yyv4737.CodecDecodeSelf(d) } } - if yyrt4728 { - for ; yyj4728 < yyl4728; yyj4728++ { - yyv4728 = append(yyv4728, EndpointAddress{}) - yyh4728.ElemContainerState(yyj4728) + if yyrt4736 { + for ; yyj4736 < yyl4736; yyj4736++ { + yyv4736 = append(yyv4736, EndpointAddress{}) + yyh4736.ElemContainerState(yyj4736) if r.TryDecodeAsNil() { - yyv4728[yyj4728] = EndpointAddress{} + yyv4736[yyj4736] = EndpointAddress{} } else { - yyv4730 := &yyv4728[yyj4728] - yyv4730.CodecDecodeSelf(d) + yyv4738 := &yyv4736[yyj4736] + yyv4738.CodecDecodeSelf(d) } } } } else { - yyj4728 := 0 - for ; !r.CheckBreak(); yyj4728++ { + yyj4736 := 0 + for ; !r.CheckBreak(); yyj4736++ { - if yyj4728 >= len(yyv4728) { - yyv4728 = append(yyv4728, EndpointAddress{}) // var yyz4728 EndpointAddress - yyc4728 = true + if yyj4736 >= len(yyv4736) { + yyv4736 = append(yyv4736, EndpointAddress{}) // var yyz4736 EndpointAddress + yyc4736 = true } - yyh4728.ElemContainerState(yyj4728) - if yyj4728 < len(yyv4728) { + yyh4736.ElemContainerState(yyj4736) + if yyj4736 < len(yyv4736) { if r.TryDecodeAsNil() { - yyv4728[yyj4728] = EndpointAddress{} + yyv4736[yyj4736] = EndpointAddress{} } else { - yyv4731 := &yyv4728[yyj4728] - yyv4731.CodecDecodeSelf(d) + yyv4739 := &yyv4736[yyj4736] + yyv4739.CodecDecodeSelf(d) } } else { @@ -60267,17 +60387,17 @@ func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1 } } - if yyj4728 < len(yyv4728) { - yyv4728 = yyv4728[:yyj4728] - yyc4728 = true - } else if yyj4728 == 0 && yyv4728 == nil { - yyv4728 = []EndpointAddress{} - yyc4728 = true + if yyj4736 < len(yyv4736) { + yyv4736 = yyv4736[:yyj4736] + yyc4736 = true + } else if yyj4736 == 0 && yyv4736 == nil { + yyv4736 = []EndpointAddress{} + yyc4736 = true } } - yyh4728.End() - if yyc4728 { - *v = yyv4728 + yyh4736.End() + if yyc4736 { + *v = yyv4736 } } @@ -60286,10 +60406,10 @@ func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4732 := range v { + for _, yyv4740 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4733 := &yyv4732 - yy4733.CodecEncodeSelf(e) + yy4741 := &yyv4740 + yy4741.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60299,83 +60419,83 @@ func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4734 := *v - yyh4734, yyl4734 := z.DecSliceHelperStart() - var yyc4734 bool - if yyl4734 == 0 { - if yyv4734 == nil { - yyv4734 = []EndpointPort{} - yyc4734 = true - } else if len(yyv4734) != 0 { - yyv4734 = yyv4734[:0] - yyc4734 = true + yyv4742 := *v + yyh4742, yyl4742 := z.DecSliceHelperStart() + var yyc4742 bool + if yyl4742 == 0 { + if yyv4742 == nil { + yyv4742 = []EndpointPort{} + yyc4742 = true + } else if len(yyv4742) != 0 { + yyv4742 = yyv4742[:0] + yyc4742 = true } - } else if yyl4734 > 0 { - var yyrr4734, yyrl4734 int - var yyrt4734 bool - if yyl4734 > cap(yyv4734) { + } else if yyl4742 > 0 { + var yyrr4742, yyrl4742 int + var yyrt4742 bool + if yyl4742 > cap(yyv4742) { - yyrg4734 := len(yyv4734) > 0 - yyv24734 := yyv4734 - yyrl4734, yyrt4734 = z.DecInferLen(yyl4734, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4734 { - if yyrl4734 <= cap(yyv4734) { - yyv4734 = yyv4734[:yyrl4734] + yyrg4742 := len(yyv4742) > 0 + yyv24742 := yyv4742 + yyrl4742, yyrt4742 = z.DecInferLen(yyl4742, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4742 { + if yyrl4742 <= cap(yyv4742) { + yyv4742 = yyv4742[:yyrl4742] } else { - yyv4734 = make([]EndpointPort, yyrl4734) + yyv4742 = make([]EndpointPort, yyrl4742) } } else { - yyv4734 = make([]EndpointPort, yyrl4734) + yyv4742 = make([]EndpointPort, yyrl4742) } - yyc4734 = true - yyrr4734 = len(yyv4734) - if yyrg4734 { - copy(yyv4734, yyv24734) + yyc4742 = true + yyrr4742 = len(yyv4742) + if yyrg4742 { + copy(yyv4742, yyv24742) } - } else if yyl4734 != len(yyv4734) { - yyv4734 = yyv4734[:yyl4734] - yyc4734 = true + } else if yyl4742 != len(yyv4742) { + yyv4742 = yyv4742[:yyl4742] + yyc4742 = true } - yyj4734 := 0 - for ; yyj4734 < yyrr4734; yyj4734++ { - yyh4734.ElemContainerState(yyj4734) + yyj4742 := 0 + for ; yyj4742 < yyrr4742; yyj4742++ { + yyh4742.ElemContainerState(yyj4742) if r.TryDecodeAsNil() { - yyv4734[yyj4734] = EndpointPort{} + yyv4742[yyj4742] = EndpointPort{} } else { - yyv4735 := &yyv4734[yyj4734] - yyv4735.CodecDecodeSelf(d) + yyv4743 := &yyv4742[yyj4742] + yyv4743.CodecDecodeSelf(d) } } - if yyrt4734 { - for ; yyj4734 < yyl4734; yyj4734++ { - yyv4734 = append(yyv4734, EndpointPort{}) - yyh4734.ElemContainerState(yyj4734) + if yyrt4742 { + for ; yyj4742 < yyl4742; yyj4742++ { + yyv4742 = append(yyv4742, EndpointPort{}) + yyh4742.ElemContainerState(yyj4742) if r.TryDecodeAsNil() { - yyv4734[yyj4734] = EndpointPort{} + yyv4742[yyj4742] = EndpointPort{} } else { - yyv4736 := &yyv4734[yyj4734] - yyv4736.CodecDecodeSelf(d) + yyv4744 := &yyv4742[yyj4742] + yyv4744.CodecDecodeSelf(d) } } } } else { - yyj4734 := 0 - for ; !r.CheckBreak(); yyj4734++ { + yyj4742 := 0 + for ; !r.CheckBreak(); yyj4742++ { - if yyj4734 >= len(yyv4734) { - yyv4734 = append(yyv4734, EndpointPort{}) // var yyz4734 EndpointPort - yyc4734 = true + if yyj4742 >= len(yyv4742) { + yyv4742 = append(yyv4742, EndpointPort{}) // var yyz4742 EndpointPort + yyc4742 = true } - yyh4734.ElemContainerState(yyj4734) - if yyj4734 < len(yyv4734) { + yyh4742.ElemContainerState(yyj4742) + if yyj4742 < len(yyv4742) { if r.TryDecodeAsNil() { - yyv4734[yyj4734] = EndpointPort{} + yyv4742[yyj4742] = EndpointPort{} } else { - yyv4737 := &yyv4734[yyj4734] - yyv4737.CodecDecodeSelf(d) + yyv4745 := &yyv4742[yyj4742] + yyv4745.CodecDecodeSelf(d) } } else { @@ -60383,17 +60503,17 @@ func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.De } } - if yyj4734 < len(yyv4734) { - yyv4734 = yyv4734[:yyj4734] - yyc4734 = true - } else if yyj4734 == 0 && yyv4734 == nil { - yyv4734 = []EndpointPort{} - yyc4734 = true + if yyj4742 < len(yyv4742) { + yyv4742 = yyv4742[:yyj4742] + yyc4742 = true + } else if yyj4742 == 0 && yyv4742 == nil { + yyv4742 = []EndpointPort{} + yyc4742 = true } } - yyh4734.End() - if yyc4734 { - *v = yyv4734 + yyh4742.End() + if yyc4742 { + *v = yyv4742 } } @@ -60402,10 +60522,10 @@ func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4738 := range v { + for _, yyv4746 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4739 := &yyv4738 - yy4739.CodecEncodeSelf(e) + yy4747 := &yyv4746 + yy4747.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60415,83 +60535,83 @@ func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4740 := *v - yyh4740, yyl4740 := z.DecSliceHelperStart() - var yyc4740 bool - if yyl4740 == 0 { - if yyv4740 == nil { - yyv4740 = []Endpoints{} - yyc4740 = true - } else if len(yyv4740) != 0 { - yyv4740 = yyv4740[:0] - yyc4740 = true + yyv4748 := *v + yyh4748, yyl4748 := z.DecSliceHelperStart() + var yyc4748 bool + if yyl4748 == 0 { + if yyv4748 == nil { + yyv4748 = []Endpoints{} + yyc4748 = true + } else if len(yyv4748) != 0 { + yyv4748 = yyv4748[:0] + yyc4748 = true } - } else if yyl4740 > 0 { - var yyrr4740, yyrl4740 int - var yyrt4740 bool - if yyl4740 > cap(yyv4740) { + } else if yyl4748 > 0 { + var yyrr4748, yyrl4748 int + var yyrt4748 bool + if yyl4748 > cap(yyv4748) { - yyrg4740 := len(yyv4740) > 0 - yyv24740 := yyv4740 - yyrl4740, yyrt4740 = z.DecInferLen(yyl4740, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4740 { - if yyrl4740 <= cap(yyv4740) { - yyv4740 = yyv4740[:yyrl4740] + yyrg4748 := len(yyv4748) > 0 + yyv24748 := yyv4748 + yyrl4748, yyrt4748 = z.DecInferLen(yyl4748, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4748 { + if yyrl4748 <= cap(yyv4748) { + yyv4748 = yyv4748[:yyrl4748] } else { - yyv4740 = make([]Endpoints, yyrl4740) + yyv4748 = make([]Endpoints, yyrl4748) } } else { - yyv4740 = make([]Endpoints, yyrl4740) + yyv4748 = make([]Endpoints, yyrl4748) } - yyc4740 = true - yyrr4740 = len(yyv4740) - if yyrg4740 { - copy(yyv4740, yyv24740) + yyc4748 = true + yyrr4748 = len(yyv4748) + if yyrg4748 { + copy(yyv4748, yyv24748) } - } else if yyl4740 != len(yyv4740) { - yyv4740 = yyv4740[:yyl4740] - yyc4740 = true + } else if yyl4748 != len(yyv4748) { + yyv4748 = yyv4748[:yyl4748] + yyc4748 = true } - yyj4740 := 0 - for ; yyj4740 < yyrr4740; yyj4740++ { - yyh4740.ElemContainerState(yyj4740) + yyj4748 := 0 + for ; yyj4748 < yyrr4748; yyj4748++ { + yyh4748.ElemContainerState(yyj4748) if r.TryDecodeAsNil() { - yyv4740[yyj4740] = Endpoints{} + yyv4748[yyj4748] = Endpoints{} } else { - yyv4741 := &yyv4740[yyj4740] - yyv4741.CodecDecodeSelf(d) + yyv4749 := &yyv4748[yyj4748] + yyv4749.CodecDecodeSelf(d) } } - if yyrt4740 { - for ; yyj4740 < yyl4740; yyj4740++ { - yyv4740 = append(yyv4740, Endpoints{}) - yyh4740.ElemContainerState(yyj4740) + if yyrt4748 { + for ; yyj4748 < yyl4748; yyj4748++ { + yyv4748 = append(yyv4748, Endpoints{}) + yyh4748.ElemContainerState(yyj4748) if r.TryDecodeAsNil() { - yyv4740[yyj4740] = Endpoints{} + yyv4748[yyj4748] = Endpoints{} } else { - yyv4742 := &yyv4740[yyj4740] - yyv4742.CodecDecodeSelf(d) + yyv4750 := &yyv4748[yyj4748] + yyv4750.CodecDecodeSelf(d) } } } } else { - yyj4740 := 0 - for ; !r.CheckBreak(); yyj4740++ { + yyj4748 := 0 + for ; !r.CheckBreak(); yyj4748++ { - if yyj4740 >= len(yyv4740) { - yyv4740 = append(yyv4740, Endpoints{}) // var yyz4740 Endpoints - yyc4740 = true + if yyj4748 >= len(yyv4748) { + yyv4748 = append(yyv4748, Endpoints{}) // var yyz4748 Endpoints + yyc4748 = true } - yyh4740.ElemContainerState(yyj4740) - if yyj4740 < len(yyv4740) { + yyh4748.ElemContainerState(yyj4748) + if yyj4748 < len(yyv4748) { if r.TryDecodeAsNil() { - yyv4740[yyj4740] = Endpoints{} + yyv4748[yyj4748] = Endpoints{} } else { - yyv4743 := &yyv4740[yyj4740] - yyv4743.CodecDecodeSelf(d) + yyv4751 := &yyv4748[yyj4748] + yyv4751.CodecDecodeSelf(d) } } else { @@ -60499,17 +60619,17 @@ func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) } } - if yyj4740 < len(yyv4740) { - yyv4740 = yyv4740[:yyj4740] - yyc4740 = true - } else if yyj4740 == 0 && yyv4740 == nil { - yyv4740 = []Endpoints{} - yyc4740 = true + if yyj4748 < len(yyv4748) { + yyv4748 = yyv4748[:yyj4748] + yyc4748 = true + } else if yyj4748 == 0 && yyv4748 == nil { + yyv4748 = []Endpoints{} + yyc4748 = true } } - yyh4740.End() - if yyc4740 { - *v = yyv4740 + yyh4748.End() + if yyc4748 { + *v = yyv4748 } } @@ -60518,10 +60638,10 @@ func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4744 := range v { + for _, yyv4752 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4745 := &yyv4744 - yy4745.CodecEncodeSelf(e) + yy4753 := &yyv4752 + yy4753.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60531,83 +60651,83 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4746 := *v - yyh4746, yyl4746 := z.DecSliceHelperStart() - var yyc4746 bool - if yyl4746 == 0 { - if yyv4746 == nil { - yyv4746 = []NodeCondition{} - yyc4746 = true - } else if len(yyv4746) != 0 { - yyv4746 = yyv4746[:0] - yyc4746 = true + yyv4754 := *v + yyh4754, yyl4754 := z.DecSliceHelperStart() + var yyc4754 bool + if yyl4754 == 0 { + if yyv4754 == nil { + yyv4754 = []NodeCondition{} + yyc4754 = true + } else if len(yyv4754) != 0 { + yyv4754 = yyv4754[:0] + yyc4754 = true } - } else if yyl4746 > 0 { - var yyrr4746, yyrl4746 int - var yyrt4746 bool - if yyl4746 > cap(yyv4746) { + } else if yyl4754 > 0 { + var yyrr4754, yyrl4754 int + var yyrt4754 bool + if yyl4754 > cap(yyv4754) { - yyrg4746 := len(yyv4746) > 0 - yyv24746 := yyv4746 - yyrl4746, yyrt4746 = z.DecInferLen(yyl4746, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4746 { - if yyrl4746 <= cap(yyv4746) { - yyv4746 = yyv4746[:yyrl4746] + yyrg4754 := len(yyv4754) > 0 + yyv24754 := yyv4754 + yyrl4754, yyrt4754 = z.DecInferLen(yyl4754, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4754 { + if yyrl4754 <= cap(yyv4754) { + yyv4754 = yyv4754[:yyrl4754] } else { - yyv4746 = make([]NodeCondition, yyrl4746) + yyv4754 = make([]NodeCondition, yyrl4754) } } else { - yyv4746 = make([]NodeCondition, yyrl4746) + yyv4754 = make([]NodeCondition, yyrl4754) } - yyc4746 = true - yyrr4746 = len(yyv4746) - if yyrg4746 { - copy(yyv4746, yyv24746) + yyc4754 = true + yyrr4754 = len(yyv4754) + if yyrg4754 { + copy(yyv4754, yyv24754) } - } else if yyl4746 != len(yyv4746) { - yyv4746 = yyv4746[:yyl4746] - yyc4746 = true + } else if yyl4754 != len(yyv4754) { + yyv4754 = yyv4754[:yyl4754] + yyc4754 = true } - yyj4746 := 0 - for ; yyj4746 < yyrr4746; yyj4746++ { - yyh4746.ElemContainerState(yyj4746) + yyj4754 := 0 + for ; yyj4754 < yyrr4754; yyj4754++ { + yyh4754.ElemContainerState(yyj4754) if r.TryDecodeAsNil() { - yyv4746[yyj4746] = NodeCondition{} + yyv4754[yyj4754] = NodeCondition{} } else { - yyv4747 := &yyv4746[yyj4746] - yyv4747.CodecDecodeSelf(d) + yyv4755 := &yyv4754[yyj4754] + yyv4755.CodecDecodeSelf(d) } } - if yyrt4746 { - for ; yyj4746 < yyl4746; yyj4746++ { - yyv4746 = append(yyv4746, NodeCondition{}) - yyh4746.ElemContainerState(yyj4746) + if yyrt4754 { + for ; yyj4754 < yyl4754; yyj4754++ { + yyv4754 = append(yyv4754, NodeCondition{}) + yyh4754.ElemContainerState(yyj4754) if r.TryDecodeAsNil() { - yyv4746[yyj4746] = NodeCondition{} + yyv4754[yyj4754] = NodeCondition{} } else { - yyv4748 := &yyv4746[yyj4746] - yyv4748.CodecDecodeSelf(d) + yyv4756 := &yyv4754[yyj4754] + yyv4756.CodecDecodeSelf(d) } } } } else { - yyj4746 := 0 - for ; !r.CheckBreak(); yyj4746++ { + yyj4754 := 0 + for ; !r.CheckBreak(); yyj4754++ { - if yyj4746 >= len(yyv4746) { - yyv4746 = append(yyv4746, NodeCondition{}) // var yyz4746 NodeCondition - yyc4746 = true + if yyj4754 >= len(yyv4754) { + yyv4754 = append(yyv4754, NodeCondition{}) // var yyz4754 NodeCondition + yyc4754 = true } - yyh4746.ElemContainerState(yyj4746) - if yyj4746 < len(yyv4746) { + yyh4754.ElemContainerState(yyj4754) + if yyj4754 < len(yyv4754) { if r.TryDecodeAsNil() { - yyv4746[yyj4746] = NodeCondition{} + yyv4754[yyj4754] = NodeCondition{} } else { - yyv4749 := &yyv4746[yyj4746] - yyv4749.CodecDecodeSelf(d) + yyv4757 := &yyv4754[yyj4754] + yyv4757.CodecDecodeSelf(d) } } else { @@ -60615,17 +60735,17 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. } } - if yyj4746 < len(yyv4746) { - yyv4746 = yyv4746[:yyj4746] - yyc4746 = true - } else if yyj4746 == 0 && yyv4746 == nil { - yyv4746 = []NodeCondition{} - yyc4746 = true + if yyj4754 < len(yyv4754) { + yyv4754 = yyv4754[:yyj4754] + yyc4754 = true + } else if yyj4754 == 0 && yyv4754 == nil { + yyv4754 = []NodeCondition{} + yyc4754 = true } } - yyh4746.End() - if yyc4746 { - *v = yyv4746 + yyh4754.End() + if yyc4754 { + *v = yyv4754 } } @@ -60634,10 +60754,10 @@ func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4750 := range v { + for _, yyv4758 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4751 := &yyv4750 - yy4751.CodecEncodeSelf(e) + yy4759 := &yyv4758 + yy4759.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60647,83 +60767,83 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4752 := *v - yyh4752, yyl4752 := z.DecSliceHelperStart() - var yyc4752 bool - if yyl4752 == 0 { - if yyv4752 == nil { - yyv4752 = []NodeAddress{} - yyc4752 = true - } else if len(yyv4752) != 0 { - yyv4752 = yyv4752[:0] - yyc4752 = true + yyv4760 := *v + yyh4760, yyl4760 := z.DecSliceHelperStart() + var yyc4760 bool + if yyl4760 == 0 { + if yyv4760 == nil { + yyv4760 = []NodeAddress{} + yyc4760 = true + } else if len(yyv4760) != 0 { + yyv4760 = yyv4760[:0] + yyc4760 = true } - } else if yyl4752 > 0 { - var yyrr4752, yyrl4752 int - var yyrt4752 bool - if yyl4752 > cap(yyv4752) { + } else if yyl4760 > 0 { + var yyrr4760, yyrl4760 int + var yyrt4760 bool + if yyl4760 > cap(yyv4760) { - yyrg4752 := len(yyv4752) > 0 - yyv24752 := yyv4752 - yyrl4752, yyrt4752 = z.DecInferLen(yyl4752, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4752 { - if yyrl4752 <= cap(yyv4752) { - yyv4752 = yyv4752[:yyrl4752] + yyrg4760 := len(yyv4760) > 0 + yyv24760 := yyv4760 + yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4760 { + if yyrl4760 <= cap(yyv4760) { + yyv4760 = yyv4760[:yyrl4760] } else { - yyv4752 = make([]NodeAddress, yyrl4752) + yyv4760 = make([]NodeAddress, yyrl4760) } } else { - yyv4752 = make([]NodeAddress, yyrl4752) + yyv4760 = make([]NodeAddress, yyrl4760) } - yyc4752 = true - yyrr4752 = len(yyv4752) - if yyrg4752 { - copy(yyv4752, yyv24752) + yyc4760 = true + yyrr4760 = len(yyv4760) + if yyrg4760 { + copy(yyv4760, yyv24760) } - } else if yyl4752 != len(yyv4752) { - yyv4752 = yyv4752[:yyl4752] - yyc4752 = true + } else if yyl4760 != len(yyv4760) { + yyv4760 = yyv4760[:yyl4760] + yyc4760 = true } - yyj4752 := 0 - for ; yyj4752 < yyrr4752; yyj4752++ { - yyh4752.ElemContainerState(yyj4752) + yyj4760 := 0 + for ; yyj4760 < yyrr4760; yyj4760++ { + yyh4760.ElemContainerState(yyj4760) if r.TryDecodeAsNil() { - yyv4752[yyj4752] = NodeAddress{} + yyv4760[yyj4760] = NodeAddress{} } else { - yyv4753 := &yyv4752[yyj4752] - yyv4753.CodecDecodeSelf(d) + yyv4761 := &yyv4760[yyj4760] + yyv4761.CodecDecodeSelf(d) } } - if yyrt4752 { - for ; yyj4752 < yyl4752; yyj4752++ { - yyv4752 = append(yyv4752, NodeAddress{}) - yyh4752.ElemContainerState(yyj4752) + if yyrt4760 { + for ; yyj4760 < yyl4760; yyj4760++ { + yyv4760 = append(yyv4760, NodeAddress{}) + yyh4760.ElemContainerState(yyj4760) if r.TryDecodeAsNil() { - yyv4752[yyj4752] = NodeAddress{} + yyv4760[yyj4760] = NodeAddress{} } else { - yyv4754 := &yyv4752[yyj4752] - yyv4754.CodecDecodeSelf(d) + yyv4762 := &yyv4760[yyj4760] + yyv4762.CodecDecodeSelf(d) } } } } else { - yyj4752 := 0 - for ; !r.CheckBreak(); yyj4752++ { + yyj4760 := 0 + for ; !r.CheckBreak(); yyj4760++ { - if yyj4752 >= len(yyv4752) { - yyv4752 = append(yyv4752, NodeAddress{}) // var yyz4752 NodeAddress - yyc4752 = true + if yyj4760 >= len(yyv4760) { + yyv4760 = append(yyv4760, NodeAddress{}) // var yyz4760 NodeAddress + yyc4760 = true } - yyh4752.ElemContainerState(yyj4752) - if yyj4752 < len(yyv4752) { + yyh4760.ElemContainerState(yyj4760) + if yyj4760 < len(yyv4760) { if r.TryDecodeAsNil() { - yyv4752[yyj4752] = NodeAddress{} + yyv4760[yyj4760] = NodeAddress{} } else { - yyv4755 := &yyv4752[yyj4752] - yyv4755.CodecDecodeSelf(d) + yyv4763 := &yyv4760[yyj4760] + yyv4763.CodecDecodeSelf(d) } } else { @@ -60731,17 +60851,17 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco } } - if yyj4752 < len(yyv4752) { - yyv4752 = yyv4752[:yyj4752] - yyc4752 = true - } else if yyj4752 == 0 && yyv4752 == nil { - yyv4752 = []NodeAddress{} - yyc4752 = true + if yyj4760 < len(yyv4760) { + yyv4760 = yyv4760[:yyj4760] + yyc4760 = true + } else if yyj4760 == 0 && yyv4760 == nil { + yyv4760 = []NodeAddress{} + yyc4760 = true } } - yyh4752.End() - if yyc4752 { - *v = yyv4752 + yyh4760.End() + if yyc4760 { + *v = yyv4760 } } @@ -60750,10 +60870,10 @@ func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4756 := range v { + for _, yyv4764 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4757 := &yyv4756 - yy4757.CodecEncodeSelf(e) + yy4765 := &yyv4764 + yy4765.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60763,83 +60883,83 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4758 := *v - yyh4758, yyl4758 := z.DecSliceHelperStart() - var yyc4758 bool - if yyl4758 == 0 { - if yyv4758 == nil { - yyv4758 = []ContainerImage{} - yyc4758 = true - } else if len(yyv4758) != 0 { - yyv4758 = yyv4758[:0] - yyc4758 = true + yyv4766 := *v + yyh4766, yyl4766 := z.DecSliceHelperStart() + var yyc4766 bool + if yyl4766 == 0 { + if yyv4766 == nil { + yyv4766 = []ContainerImage{} + yyc4766 = true + } else if len(yyv4766) != 0 { + yyv4766 = yyv4766[:0] + yyc4766 = true } - } else if yyl4758 > 0 { - var yyrr4758, yyrl4758 int - var yyrt4758 bool - if yyl4758 > cap(yyv4758) { + } else if yyl4766 > 0 { + var yyrr4766, yyrl4766 int + var yyrt4766 bool + if yyl4766 > cap(yyv4766) { - yyrg4758 := len(yyv4758) > 0 - yyv24758 := yyv4758 - yyrl4758, yyrt4758 = z.DecInferLen(yyl4758, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4758 { - if yyrl4758 <= cap(yyv4758) { - yyv4758 = yyv4758[:yyrl4758] + yyrg4766 := len(yyv4766) > 0 + yyv24766 := yyv4766 + yyrl4766, yyrt4766 = z.DecInferLen(yyl4766, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4766 { + if yyrl4766 <= cap(yyv4766) { + yyv4766 = yyv4766[:yyrl4766] } else { - yyv4758 = make([]ContainerImage, yyrl4758) + yyv4766 = make([]ContainerImage, yyrl4766) } } else { - yyv4758 = make([]ContainerImage, yyrl4758) + yyv4766 = make([]ContainerImage, yyrl4766) } - yyc4758 = true - yyrr4758 = len(yyv4758) - if yyrg4758 { - copy(yyv4758, yyv24758) + yyc4766 = true + yyrr4766 = len(yyv4766) + if yyrg4766 { + copy(yyv4766, yyv24766) } - } else if yyl4758 != len(yyv4758) { - yyv4758 = yyv4758[:yyl4758] - yyc4758 = true + } else if yyl4766 != len(yyv4766) { + yyv4766 = yyv4766[:yyl4766] + yyc4766 = true } - yyj4758 := 0 - for ; yyj4758 < yyrr4758; yyj4758++ { - yyh4758.ElemContainerState(yyj4758) + yyj4766 := 0 + for ; yyj4766 < yyrr4766; yyj4766++ { + yyh4766.ElemContainerState(yyj4766) if r.TryDecodeAsNil() { - yyv4758[yyj4758] = ContainerImage{} + yyv4766[yyj4766] = ContainerImage{} } else { - yyv4759 := &yyv4758[yyj4758] - yyv4759.CodecDecodeSelf(d) + yyv4767 := &yyv4766[yyj4766] + yyv4767.CodecDecodeSelf(d) } } - if yyrt4758 { - for ; yyj4758 < yyl4758; yyj4758++ { - yyv4758 = append(yyv4758, ContainerImage{}) - yyh4758.ElemContainerState(yyj4758) + if yyrt4766 { + for ; yyj4766 < yyl4766; yyj4766++ { + yyv4766 = append(yyv4766, ContainerImage{}) + yyh4766.ElemContainerState(yyj4766) if r.TryDecodeAsNil() { - yyv4758[yyj4758] = ContainerImage{} + yyv4766[yyj4766] = ContainerImage{} } else { - yyv4760 := &yyv4758[yyj4758] - yyv4760.CodecDecodeSelf(d) + yyv4768 := &yyv4766[yyj4766] + yyv4768.CodecDecodeSelf(d) } } } } else { - yyj4758 := 0 - for ; !r.CheckBreak(); yyj4758++ { + yyj4766 := 0 + for ; !r.CheckBreak(); yyj4766++ { - if yyj4758 >= len(yyv4758) { - yyv4758 = append(yyv4758, ContainerImage{}) // var yyz4758 ContainerImage - yyc4758 = true + if yyj4766 >= len(yyv4766) { + yyv4766 = append(yyv4766, ContainerImage{}) // var yyz4766 ContainerImage + yyc4766 = true } - yyh4758.ElemContainerState(yyj4758) - if yyj4758 < len(yyv4758) { + yyh4766.ElemContainerState(yyj4766) + if yyj4766 < len(yyv4766) { if r.TryDecodeAsNil() { - yyv4758[yyj4758] = ContainerImage{} + yyv4766[yyj4766] = ContainerImage{} } else { - yyv4761 := &yyv4758[yyj4758] - yyv4761.CodecDecodeSelf(d) + yyv4769 := &yyv4766[yyj4766] + yyv4769.CodecDecodeSelf(d) } } else { @@ -60847,17 +60967,17 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 } } - if yyj4758 < len(yyv4758) { - yyv4758 = yyv4758[:yyj4758] - yyc4758 = true - } else if yyj4758 == 0 && yyv4758 == nil { - yyv4758 = []ContainerImage{} - yyc4758 = true + if yyj4766 < len(yyv4766) { + yyv4766 = yyv4766[:yyj4766] + yyc4766 = true + } else if yyj4766 == 0 && yyv4766 == nil { + yyv4766 = []ContainerImage{} + yyc4766 = true } } - yyh4758.End() - if yyc4758 { - *v = yyv4758 + yyh4766.End() + if yyc4766 { + *v = yyv4766 } } @@ -60866,9 +60986,9 @@ func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4762 := range v { + for _, yyv4770 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4762.CodecEncodeSelf(e) + yyv4770.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60878,75 +60998,75 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4763 := *v - yyh4763, yyl4763 := z.DecSliceHelperStart() - var yyc4763 bool - if yyl4763 == 0 { - if yyv4763 == nil { - yyv4763 = []UniqueVolumeName{} - yyc4763 = true - } else if len(yyv4763) != 0 { - yyv4763 = yyv4763[:0] - yyc4763 = true + yyv4771 := *v + yyh4771, yyl4771 := z.DecSliceHelperStart() + var yyc4771 bool + if yyl4771 == 0 { + if yyv4771 == nil { + yyv4771 = []UniqueVolumeName{} + yyc4771 = true + } else if len(yyv4771) != 0 { + yyv4771 = yyv4771[:0] + yyc4771 = true } - } else if yyl4763 > 0 { - var yyrr4763, yyrl4763 int - var yyrt4763 bool - if yyl4763 > cap(yyv4763) { + } else if yyl4771 > 0 { + var yyrr4771, yyrl4771 int + var yyrt4771 bool + if yyl4771 > cap(yyv4771) { - yyrl4763, yyrt4763 = z.DecInferLen(yyl4763, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4763 { - if yyrl4763 <= cap(yyv4763) { - yyv4763 = yyv4763[:yyrl4763] + yyrl4771, yyrt4771 = z.DecInferLen(yyl4771, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4771 { + if yyrl4771 <= cap(yyv4771) { + yyv4771 = yyv4771[:yyrl4771] } else { - yyv4763 = make([]UniqueVolumeName, yyrl4763) + yyv4771 = make([]UniqueVolumeName, yyrl4771) } } else { - yyv4763 = make([]UniqueVolumeName, yyrl4763) + yyv4771 = make([]UniqueVolumeName, yyrl4771) } - yyc4763 = true - yyrr4763 = len(yyv4763) - } else if yyl4763 != len(yyv4763) { - yyv4763 = yyv4763[:yyl4763] - yyc4763 = true + yyc4771 = true + yyrr4771 = len(yyv4771) + } else if yyl4771 != len(yyv4771) { + yyv4771 = yyv4771[:yyl4771] + yyc4771 = true } - yyj4763 := 0 - for ; yyj4763 < yyrr4763; yyj4763++ { - yyh4763.ElemContainerState(yyj4763) + yyj4771 := 0 + for ; yyj4771 < yyrr4771; yyj4771++ { + yyh4771.ElemContainerState(yyj4771) if r.TryDecodeAsNil() { - yyv4763[yyj4763] = "" + yyv4771[yyj4771] = "" } else { - yyv4763[yyj4763] = UniqueVolumeName(r.DecodeString()) + yyv4771[yyj4771] = UniqueVolumeName(r.DecodeString()) } } - if yyrt4763 { - for ; yyj4763 < yyl4763; yyj4763++ { - yyv4763 = append(yyv4763, "") - yyh4763.ElemContainerState(yyj4763) + if yyrt4771 { + for ; yyj4771 < yyl4771; yyj4771++ { + yyv4771 = append(yyv4771, "") + yyh4771.ElemContainerState(yyj4771) if r.TryDecodeAsNil() { - yyv4763[yyj4763] = "" + yyv4771[yyj4771] = "" } else { - yyv4763[yyj4763] = UniqueVolumeName(r.DecodeString()) + yyv4771[yyj4771] = UniqueVolumeName(r.DecodeString()) } } } } else { - yyj4763 := 0 - for ; !r.CheckBreak(); yyj4763++ { + yyj4771 := 0 + for ; !r.CheckBreak(); yyj4771++ { - if yyj4763 >= len(yyv4763) { - yyv4763 = append(yyv4763, "") // var yyz4763 UniqueVolumeName - yyc4763 = true + if yyj4771 >= len(yyv4771) { + yyv4771 = append(yyv4771, "") // var yyz4771 UniqueVolumeName + yyc4771 = true } - yyh4763.ElemContainerState(yyj4763) - if yyj4763 < len(yyv4763) { + yyh4771.ElemContainerState(yyj4771) + if yyj4771 < len(yyv4771) { if r.TryDecodeAsNil() { - yyv4763[yyj4763] = "" + yyv4771[yyj4771] = "" } else { - yyv4763[yyj4763] = UniqueVolumeName(r.DecodeString()) + yyv4771[yyj4771] = UniqueVolumeName(r.DecodeString()) } } else { @@ -60954,17 +61074,17 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } - if yyj4763 < len(yyv4763) { - yyv4763 = yyv4763[:yyj4763] - yyc4763 = true - } else if yyj4763 == 0 && yyv4763 == nil { - yyv4763 = []UniqueVolumeName{} - yyc4763 = true + if yyj4771 < len(yyv4771) { + yyv4771 = yyv4771[:yyj4771] + yyc4771 = true + } else if yyj4771 == 0 && yyv4771 == nil { + yyv4771 = []UniqueVolumeName{} + yyc4771 = true } } - yyh4763.End() - if yyc4763 { - *v = yyv4763 + yyh4771.End() + if yyc4771 { + *v = yyv4771 } } @@ -60973,10 +61093,10 @@ func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4767 := range v { + for _, yyv4775 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4768 := &yyv4767 - yy4768.CodecEncodeSelf(e) + yy4776 := &yyv4775 + yy4776.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60986,83 +61106,83 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4769 := *v - yyh4769, yyl4769 := z.DecSliceHelperStart() - var yyc4769 bool - if yyl4769 == 0 { - if yyv4769 == nil { - yyv4769 = []AttachedVolume{} - yyc4769 = true - } else if len(yyv4769) != 0 { - yyv4769 = yyv4769[:0] - yyc4769 = true + yyv4777 := *v + yyh4777, yyl4777 := z.DecSliceHelperStart() + var yyc4777 bool + if yyl4777 == 0 { + if yyv4777 == nil { + yyv4777 = []AttachedVolume{} + yyc4777 = true + } else if len(yyv4777) != 0 { + yyv4777 = yyv4777[:0] + yyc4777 = true } - } else if yyl4769 > 0 { - var yyrr4769, yyrl4769 int - var yyrt4769 bool - if yyl4769 > cap(yyv4769) { + } else if yyl4777 > 0 { + var yyrr4777, yyrl4777 int + var yyrt4777 bool + if yyl4777 > cap(yyv4777) { - yyrg4769 := len(yyv4769) > 0 - yyv24769 := yyv4769 - yyrl4769, yyrt4769 = z.DecInferLen(yyl4769, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4769 { - if yyrl4769 <= cap(yyv4769) { - yyv4769 = yyv4769[:yyrl4769] + yyrg4777 := len(yyv4777) > 0 + yyv24777 := yyv4777 + yyrl4777, yyrt4777 = z.DecInferLen(yyl4777, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4777 { + if yyrl4777 <= cap(yyv4777) { + yyv4777 = yyv4777[:yyrl4777] } else { - yyv4769 = make([]AttachedVolume, yyrl4769) + yyv4777 = make([]AttachedVolume, yyrl4777) } } else { - yyv4769 = make([]AttachedVolume, yyrl4769) + yyv4777 = make([]AttachedVolume, yyrl4777) } - yyc4769 = true - yyrr4769 = len(yyv4769) - if yyrg4769 { - copy(yyv4769, yyv24769) + yyc4777 = true + yyrr4777 = len(yyv4777) + if yyrg4777 { + copy(yyv4777, yyv24777) } - } else if yyl4769 != len(yyv4769) { - yyv4769 = yyv4769[:yyl4769] - yyc4769 = true + } else if yyl4777 != len(yyv4777) { + yyv4777 = yyv4777[:yyl4777] + yyc4777 = true } - yyj4769 := 0 - for ; yyj4769 < yyrr4769; yyj4769++ { - yyh4769.ElemContainerState(yyj4769) + yyj4777 := 0 + for ; yyj4777 < yyrr4777; yyj4777++ { + yyh4777.ElemContainerState(yyj4777) if r.TryDecodeAsNil() { - yyv4769[yyj4769] = AttachedVolume{} + yyv4777[yyj4777] = AttachedVolume{} } else { - yyv4770 := &yyv4769[yyj4769] - yyv4770.CodecDecodeSelf(d) + yyv4778 := &yyv4777[yyj4777] + yyv4778.CodecDecodeSelf(d) } } - if yyrt4769 { - for ; yyj4769 < yyl4769; yyj4769++ { - yyv4769 = append(yyv4769, AttachedVolume{}) - yyh4769.ElemContainerState(yyj4769) + if yyrt4777 { + for ; yyj4777 < yyl4777; yyj4777++ { + yyv4777 = append(yyv4777, AttachedVolume{}) + yyh4777.ElemContainerState(yyj4777) if r.TryDecodeAsNil() { - yyv4769[yyj4769] = AttachedVolume{} + yyv4777[yyj4777] = AttachedVolume{} } else { - yyv4771 := &yyv4769[yyj4769] - yyv4771.CodecDecodeSelf(d) + yyv4779 := &yyv4777[yyj4777] + yyv4779.CodecDecodeSelf(d) } } } } else { - yyj4769 := 0 - for ; !r.CheckBreak(); yyj4769++ { + yyj4777 := 0 + for ; !r.CheckBreak(); yyj4777++ { - if yyj4769 >= len(yyv4769) { - yyv4769 = append(yyv4769, AttachedVolume{}) // var yyz4769 AttachedVolume - yyc4769 = true + if yyj4777 >= len(yyv4777) { + yyv4777 = append(yyv4777, AttachedVolume{}) // var yyz4777 AttachedVolume + yyc4777 = true } - yyh4769.ElemContainerState(yyj4769) - if yyj4769 < len(yyv4769) { + yyh4777.ElemContainerState(yyj4777) + if yyj4777 < len(yyv4777) { if r.TryDecodeAsNil() { - yyv4769[yyj4769] = AttachedVolume{} + yyv4777[yyj4777] = AttachedVolume{} } else { - yyv4772 := &yyv4769[yyj4769] - yyv4772.CodecDecodeSelf(d) + yyv4780 := &yyv4777[yyj4777] + yyv4780.CodecDecodeSelf(d) } } else { @@ -61070,17 +61190,17 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } } - if yyj4769 < len(yyv4769) { - yyv4769 = yyv4769[:yyj4769] - yyc4769 = true - } else if yyj4769 == 0 && yyv4769 == nil { - yyv4769 = []AttachedVolume{} - yyc4769 = true + if yyj4777 < len(yyv4777) { + yyv4777 = yyv4777[:yyj4777] + yyc4777 = true + } else if yyj4777 == 0 && yyv4777 == nil { + yyv4777 = []AttachedVolume{} + yyc4777 = true } } - yyh4769.End() - if yyc4769 { - *v = yyv4769 + yyh4777.End() + if yyc4777 { + *v = yyv4777 } } @@ -61089,10 +61209,10 @@ func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4773 := range v { + for _, yyv4781 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4774 := &yyv4773 - yy4774.CodecEncodeSelf(e) + yy4782 := &yyv4781 + yy4782.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61102,83 +61222,83 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4775 := *v - yyh4775, yyl4775 := z.DecSliceHelperStart() - var yyc4775 bool - if yyl4775 == 0 { - if yyv4775 == nil { - yyv4775 = []PreferAvoidPodsEntry{} - yyc4775 = true - } else if len(yyv4775) != 0 { - yyv4775 = yyv4775[:0] - yyc4775 = true + yyv4783 := *v + yyh4783, yyl4783 := z.DecSliceHelperStart() + var yyc4783 bool + if yyl4783 == 0 { + if yyv4783 == nil { + yyv4783 = []PreferAvoidPodsEntry{} + yyc4783 = true + } else if len(yyv4783) != 0 { + yyv4783 = yyv4783[:0] + yyc4783 = true } - } else if yyl4775 > 0 { - var yyrr4775, yyrl4775 int - var yyrt4775 bool - if yyl4775 > cap(yyv4775) { + } else if yyl4783 > 0 { + var yyrr4783, yyrl4783 int + var yyrt4783 bool + if yyl4783 > cap(yyv4783) { - yyrg4775 := len(yyv4775) > 0 - yyv24775 := yyv4775 - yyrl4775, yyrt4775 = z.DecInferLen(yyl4775, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4775 { - if yyrl4775 <= cap(yyv4775) { - yyv4775 = yyv4775[:yyrl4775] + yyrg4783 := len(yyv4783) > 0 + yyv24783 := yyv4783 + yyrl4783, yyrt4783 = z.DecInferLen(yyl4783, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4783 { + if yyrl4783 <= cap(yyv4783) { + yyv4783 = yyv4783[:yyrl4783] } else { - yyv4775 = make([]PreferAvoidPodsEntry, yyrl4775) + yyv4783 = make([]PreferAvoidPodsEntry, yyrl4783) } } else { - yyv4775 = make([]PreferAvoidPodsEntry, yyrl4775) + yyv4783 = make([]PreferAvoidPodsEntry, yyrl4783) } - yyc4775 = true - yyrr4775 = len(yyv4775) - if yyrg4775 { - copy(yyv4775, yyv24775) + yyc4783 = true + yyrr4783 = len(yyv4783) + if yyrg4783 { + copy(yyv4783, yyv24783) } - } else if yyl4775 != len(yyv4775) { - yyv4775 = yyv4775[:yyl4775] - yyc4775 = true + } else if yyl4783 != len(yyv4783) { + yyv4783 = yyv4783[:yyl4783] + yyc4783 = true } - yyj4775 := 0 - for ; yyj4775 < yyrr4775; yyj4775++ { - yyh4775.ElemContainerState(yyj4775) + yyj4783 := 0 + for ; yyj4783 < yyrr4783; yyj4783++ { + yyh4783.ElemContainerState(yyj4783) if r.TryDecodeAsNil() { - yyv4775[yyj4775] = PreferAvoidPodsEntry{} + yyv4783[yyj4783] = PreferAvoidPodsEntry{} } else { - yyv4776 := &yyv4775[yyj4775] - yyv4776.CodecDecodeSelf(d) + yyv4784 := &yyv4783[yyj4783] + yyv4784.CodecDecodeSelf(d) } } - if yyrt4775 { - for ; yyj4775 < yyl4775; yyj4775++ { - yyv4775 = append(yyv4775, PreferAvoidPodsEntry{}) - yyh4775.ElemContainerState(yyj4775) + if yyrt4783 { + for ; yyj4783 < yyl4783; yyj4783++ { + yyv4783 = append(yyv4783, PreferAvoidPodsEntry{}) + yyh4783.ElemContainerState(yyj4783) if r.TryDecodeAsNil() { - yyv4775[yyj4775] = PreferAvoidPodsEntry{} + yyv4783[yyj4783] = PreferAvoidPodsEntry{} } else { - yyv4777 := &yyv4775[yyj4775] - yyv4777.CodecDecodeSelf(d) + yyv4785 := &yyv4783[yyj4783] + yyv4785.CodecDecodeSelf(d) } } } } else { - yyj4775 := 0 - for ; !r.CheckBreak(); yyj4775++ { + yyj4783 := 0 + for ; !r.CheckBreak(); yyj4783++ { - if yyj4775 >= len(yyv4775) { - yyv4775 = append(yyv4775, PreferAvoidPodsEntry{}) // var yyz4775 PreferAvoidPodsEntry - yyc4775 = true + if yyj4783 >= len(yyv4783) { + yyv4783 = append(yyv4783, PreferAvoidPodsEntry{}) // var yyz4783 PreferAvoidPodsEntry + yyc4783 = true } - yyh4775.ElemContainerState(yyj4775) - if yyj4775 < len(yyv4775) { + yyh4783.ElemContainerState(yyj4783) + if yyj4783 < len(yyv4783) { if r.TryDecodeAsNil() { - yyv4775[yyj4775] = PreferAvoidPodsEntry{} + yyv4783[yyj4783] = PreferAvoidPodsEntry{} } else { - yyv4778 := &yyv4775[yyj4775] - yyv4778.CodecDecodeSelf(d) + yyv4786 := &yyv4783[yyj4783] + yyv4786.CodecDecodeSelf(d) } } else { @@ -61186,17 +61306,17 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } } - if yyj4775 < len(yyv4775) { - yyv4775 = yyv4775[:yyj4775] - yyc4775 = true - } else if yyj4775 == 0 && yyv4775 == nil { - yyv4775 = []PreferAvoidPodsEntry{} - yyc4775 = true + if yyj4783 < len(yyv4783) { + yyv4783 = yyv4783[:yyj4783] + yyc4783 = true + } else if yyj4783 == 0 && yyv4783 == nil { + yyv4783 = []PreferAvoidPodsEntry{} + yyc4783 = true } } - yyh4775.End() - if yyc4775 { - *v = yyv4775 + yyh4783.End() + if yyc4783 { + *v = yyv4783 } } @@ -61205,19 +61325,19 @@ func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk4779, yyv4779 := range v { + for yyk4787, yyv4787 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4779.CodecEncodeSelf(e) + yyk4787.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4780 := &yyv4779 - yym4781 := z.EncBinary() - _ = yym4781 + yy4788 := &yyv4787 + yym4789 := z.EncBinary() + _ = yym4789 if false { - } else if z.HasExtensions() && z.EncExt(yy4780) { - } else if !yym4781 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4780) + } else if z.HasExtensions() && z.EncExt(yy4788) { + } else if !yym4789 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4788) } else { - z.EncFallback(yy4780) + z.EncFallback(yy4788) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -61228,86 +61348,86 @@ func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4782 := *v - yyl4782 := r.ReadMapStart() - yybh4782 := z.DecBasicHandle() - if yyv4782 == nil { - yyrl4782, _ := z.DecInferLen(yyl4782, yybh4782.MaxInitLen, 72) - yyv4782 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4782) - *v = yyv4782 + yyv4790 := *v + yyl4790 := r.ReadMapStart() + yybh4790 := z.DecBasicHandle() + if yyv4790 == nil { + yyrl4790, _ := z.DecInferLen(yyl4790, yybh4790.MaxInitLen, 72) + yyv4790 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4790) + *v = yyv4790 } - var yymk4782 ResourceName - var yymv4782 pkg3_resource.Quantity - var yymg4782 bool - if yybh4782.MapValueReset { - yymg4782 = true + var yymk4790 ResourceName + var yymv4790 pkg3_resource.Quantity + var yymg4790 bool + if yybh4790.MapValueReset { + yymg4790 = true } - if yyl4782 > 0 { - for yyj4782 := 0; yyj4782 < yyl4782; yyj4782++ { + if yyl4790 > 0 { + for yyj4790 := 0; yyj4790 < yyl4790; yyj4790++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4782 = "" + yymk4790 = "" } else { - yymk4782 = ResourceName(r.DecodeString()) + yymk4790 = ResourceName(r.DecodeString()) } - if yymg4782 { - yymv4782 = yyv4782[yymk4782] + if yymg4790 { + yymv4790 = yyv4790[yymk4790] } else { - yymv4782 = pkg3_resource.Quantity{} + yymv4790 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4782 = pkg3_resource.Quantity{} + yymv4790 = pkg3_resource.Quantity{} } else { - yyv4784 := &yymv4782 - yym4785 := z.DecBinary() - _ = yym4785 + yyv4792 := &yymv4790 + yym4793 := z.DecBinary() + _ = yym4793 if false { - } else if z.HasExtensions() && z.DecExt(yyv4784) { - } else if !yym4785 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4784) + } else if z.HasExtensions() && z.DecExt(yyv4792) { + } else if !yym4793 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4792) } else { - z.DecFallback(yyv4784, false) + z.DecFallback(yyv4792, false) } } - if yyv4782 != nil { - yyv4782[yymk4782] = yymv4782 + if yyv4790 != nil { + yyv4790[yymk4790] = yymv4790 } } - } else if yyl4782 < 0 { - for yyj4782 := 0; !r.CheckBreak(); yyj4782++ { + } else if yyl4790 < 0 { + for yyj4790 := 0; !r.CheckBreak(); yyj4790++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4782 = "" + yymk4790 = "" } else { - yymk4782 = ResourceName(r.DecodeString()) + yymk4790 = ResourceName(r.DecodeString()) } - if yymg4782 { - yymv4782 = yyv4782[yymk4782] + if yymg4790 { + yymv4790 = yyv4790[yymk4790] } else { - yymv4782 = pkg3_resource.Quantity{} + yymv4790 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4782 = pkg3_resource.Quantity{} + yymv4790 = pkg3_resource.Quantity{} } else { - yyv4787 := &yymv4782 - yym4788 := z.DecBinary() - _ = yym4788 + yyv4795 := &yymv4790 + yym4796 := z.DecBinary() + _ = yym4796 if false { - } else if z.HasExtensions() && z.DecExt(yyv4787) { - } else if !yym4788 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4787) + } else if z.HasExtensions() && z.DecExt(yyv4795) { + } else if !yym4796 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4795) } else { - z.DecFallback(yyv4787, false) + z.DecFallback(yyv4795, false) } } - if yyv4782 != nil { - yyv4782[yymk4782] = yymv4782 + if yyv4790 != nil { + yyv4790[yymk4790] = yymv4790 } } } // else len==0: TODO: Should we clear map entries? @@ -61319,10 +61439,10 @@ func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4789 := range v { + for _, yyv4797 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4790 := &yyv4789 - yy4790.CodecEncodeSelf(e) + yy4798 := &yyv4797 + yy4798.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61332,83 +61452,83 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4791 := *v - yyh4791, yyl4791 := z.DecSliceHelperStart() - var yyc4791 bool - if yyl4791 == 0 { - if yyv4791 == nil { - yyv4791 = []Node{} - yyc4791 = true - } else if len(yyv4791) != 0 { - yyv4791 = yyv4791[:0] - yyc4791 = true + yyv4799 := *v + yyh4799, yyl4799 := z.DecSliceHelperStart() + var yyc4799 bool + if yyl4799 == 0 { + if yyv4799 == nil { + yyv4799 = []Node{} + yyc4799 = true + } else if len(yyv4799) != 0 { + yyv4799 = yyv4799[:0] + yyc4799 = true } - } else if yyl4791 > 0 { - var yyrr4791, yyrl4791 int - var yyrt4791 bool - if yyl4791 > cap(yyv4791) { + } else if yyl4799 > 0 { + var yyrr4799, yyrl4799 int + var yyrt4799 bool + if yyl4799 > cap(yyv4799) { - yyrg4791 := len(yyv4791) > 0 - yyv24791 := yyv4791 - yyrl4791, yyrt4791 = z.DecInferLen(yyl4791, z.DecBasicHandle().MaxInitLen, 632) - if yyrt4791 { - if yyrl4791 <= cap(yyv4791) { - yyv4791 = yyv4791[:yyrl4791] + yyrg4799 := len(yyv4799) > 0 + yyv24799 := yyv4799 + yyrl4799, yyrt4799 = z.DecInferLen(yyl4799, z.DecBasicHandle().MaxInitLen, 632) + if yyrt4799 { + if yyrl4799 <= cap(yyv4799) { + yyv4799 = yyv4799[:yyrl4799] } else { - yyv4791 = make([]Node, yyrl4791) + yyv4799 = make([]Node, yyrl4799) } } else { - yyv4791 = make([]Node, yyrl4791) + yyv4799 = make([]Node, yyrl4799) } - yyc4791 = true - yyrr4791 = len(yyv4791) - if yyrg4791 { - copy(yyv4791, yyv24791) + yyc4799 = true + yyrr4799 = len(yyv4799) + if yyrg4799 { + copy(yyv4799, yyv24799) } - } else if yyl4791 != len(yyv4791) { - yyv4791 = yyv4791[:yyl4791] - yyc4791 = true + } else if yyl4799 != len(yyv4799) { + yyv4799 = yyv4799[:yyl4799] + yyc4799 = true } - yyj4791 := 0 - for ; yyj4791 < yyrr4791; yyj4791++ { - yyh4791.ElemContainerState(yyj4791) + yyj4799 := 0 + for ; yyj4799 < yyrr4799; yyj4799++ { + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4791[yyj4791] = Node{} + yyv4799[yyj4799] = Node{} } else { - yyv4792 := &yyv4791[yyj4791] - yyv4792.CodecDecodeSelf(d) + yyv4800 := &yyv4799[yyj4799] + yyv4800.CodecDecodeSelf(d) } } - if yyrt4791 { - for ; yyj4791 < yyl4791; yyj4791++ { - yyv4791 = append(yyv4791, Node{}) - yyh4791.ElemContainerState(yyj4791) + if yyrt4799 { + for ; yyj4799 < yyl4799; yyj4799++ { + yyv4799 = append(yyv4799, Node{}) + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4791[yyj4791] = Node{} + yyv4799[yyj4799] = Node{} } else { - yyv4793 := &yyv4791[yyj4791] - yyv4793.CodecDecodeSelf(d) + yyv4801 := &yyv4799[yyj4799] + yyv4801.CodecDecodeSelf(d) } } } } else { - yyj4791 := 0 - for ; !r.CheckBreak(); yyj4791++ { + yyj4799 := 0 + for ; !r.CheckBreak(); yyj4799++ { - if yyj4791 >= len(yyv4791) { - yyv4791 = append(yyv4791, Node{}) // var yyz4791 Node - yyc4791 = true + if yyj4799 >= len(yyv4799) { + yyv4799 = append(yyv4799, Node{}) // var yyz4799 Node + yyc4799 = true } - yyh4791.ElemContainerState(yyj4791) - if yyj4791 < len(yyv4791) { + yyh4799.ElemContainerState(yyj4799) + if yyj4799 < len(yyv4799) { if r.TryDecodeAsNil() { - yyv4791[yyj4791] = Node{} + yyv4799[yyj4799] = Node{} } else { - yyv4794 := &yyv4791[yyj4791] - yyv4794.CodecDecodeSelf(d) + yyv4802 := &yyv4799[yyj4799] + yyv4802.CodecDecodeSelf(d) } } else { @@ -61416,17 +61536,17 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj4791 < len(yyv4791) { - yyv4791 = yyv4791[:yyj4791] - yyc4791 = true - } else if yyj4791 == 0 && yyv4791 == nil { - yyv4791 = []Node{} - yyc4791 = true + if yyj4799 < len(yyv4799) { + yyv4799 = yyv4799[:yyj4799] + yyc4799 = true + } else if yyj4799 == 0 && yyv4799 == nil { + yyv4799 = []Node{} + yyc4799 = true } } - yyh4791.End() - if yyc4791 { - *v = yyv4791 + yyh4799.End() + if yyc4799 { + *v = yyv4799 } } @@ -61435,9 +61555,9 @@ func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4795 := range v { + for _, yyv4803 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4795.CodecEncodeSelf(e) + yyv4803.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61447,75 +61567,75 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4796 := *v - yyh4796, yyl4796 := z.DecSliceHelperStart() - var yyc4796 bool - if yyl4796 == 0 { - if yyv4796 == nil { - yyv4796 = []FinalizerName{} - yyc4796 = true - } else if len(yyv4796) != 0 { - yyv4796 = yyv4796[:0] - yyc4796 = true + yyv4804 := *v + yyh4804, yyl4804 := z.DecSliceHelperStart() + var yyc4804 bool + if yyl4804 == 0 { + if yyv4804 == nil { + yyv4804 = []FinalizerName{} + yyc4804 = true + } else if len(yyv4804) != 0 { + yyv4804 = yyv4804[:0] + yyc4804 = true } - } else if yyl4796 > 0 { - var yyrr4796, yyrl4796 int - var yyrt4796 bool - if yyl4796 > cap(yyv4796) { + } else if yyl4804 > 0 { + var yyrr4804, yyrl4804 int + var yyrt4804 bool + if yyl4804 > cap(yyv4804) { - yyrl4796, yyrt4796 = z.DecInferLen(yyl4796, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4796 { - if yyrl4796 <= cap(yyv4796) { - yyv4796 = yyv4796[:yyrl4796] + yyrl4804, yyrt4804 = z.DecInferLen(yyl4804, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4804 { + if yyrl4804 <= cap(yyv4804) { + yyv4804 = yyv4804[:yyrl4804] } else { - yyv4796 = make([]FinalizerName, yyrl4796) + yyv4804 = make([]FinalizerName, yyrl4804) } } else { - yyv4796 = make([]FinalizerName, yyrl4796) + yyv4804 = make([]FinalizerName, yyrl4804) } - yyc4796 = true - yyrr4796 = len(yyv4796) - } else if yyl4796 != len(yyv4796) { - yyv4796 = yyv4796[:yyl4796] - yyc4796 = true + yyc4804 = true + yyrr4804 = len(yyv4804) + } else if yyl4804 != len(yyv4804) { + yyv4804 = yyv4804[:yyl4804] + yyc4804 = true } - yyj4796 := 0 - for ; yyj4796 < yyrr4796; yyj4796++ { - yyh4796.ElemContainerState(yyj4796) + yyj4804 := 0 + for ; yyj4804 < yyrr4804; yyj4804++ { + yyh4804.ElemContainerState(yyj4804) if r.TryDecodeAsNil() { - yyv4796[yyj4796] = "" + yyv4804[yyj4804] = "" } else { - yyv4796[yyj4796] = FinalizerName(r.DecodeString()) + yyv4804[yyj4804] = FinalizerName(r.DecodeString()) } } - if yyrt4796 { - for ; yyj4796 < yyl4796; yyj4796++ { - yyv4796 = append(yyv4796, "") - yyh4796.ElemContainerState(yyj4796) + if yyrt4804 { + for ; yyj4804 < yyl4804; yyj4804++ { + yyv4804 = append(yyv4804, "") + yyh4804.ElemContainerState(yyj4804) if r.TryDecodeAsNil() { - yyv4796[yyj4796] = "" + yyv4804[yyj4804] = "" } else { - yyv4796[yyj4796] = FinalizerName(r.DecodeString()) + yyv4804[yyj4804] = FinalizerName(r.DecodeString()) } } } } else { - yyj4796 := 0 - for ; !r.CheckBreak(); yyj4796++ { + yyj4804 := 0 + for ; !r.CheckBreak(); yyj4804++ { - if yyj4796 >= len(yyv4796) { - yyv4796 = append(yyv4796, "") // var yyz4796 FinalizerName - yyc4796 = true + if yyj4804 >= len(yyv4804) { + yyv4804 = append(yyv4804, "") // var yyz4804 FinalizerName + yyc4804 = true } - yyh4796.ElemContainerState(yyj4796) - if yyj4796 < len(yyv4796) { + yyh4804.ElemContainerState(yyj4804) + if yyj4804 < len(yyv4804) { if r.TryDecodeAsNil() { - yyv4796[yyj4796] = "" + yyv4804[yyj4804] = "" } else { - yyv4796[yyj4796] = FinalizerName(r.DecodeString()) + yyv4804[yyj4804] = FinalizerName(r.DecodeString()) } } else { @@ -61523,17 +61643,17 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj4796 < len(yyv4796) { - yyv4796 = yyv4796[:yyj4796] - yyc4796 = true - } else if yyj4796 == 0 && yyv4796 == nil { - yyv4796 = []FinalizerName{} - yyc4796 = true + if yyj4804 < len(yyv4804) { + yyv4804 = yyv4804[:yyj4804] + yyc4804 = true + } else if yyj4804 == 0 && yyv4804 == nil { + yyv4804 = []FinalizerName{} + yyc4804 = true } } - yyh4796.End() - if yyc4796 { - *v = yyv4796 + yyh4804.End() + if yyc4804 { + *v = yyv4804 } } @@ -61542,10 +61662,10 @@ func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4800 := range v { + for _, yyv4808 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4801 := &yyv4800 - yy4801.CodecEncodeSelf(e) + yy4809 := &yyv4808 + yy4809.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61555,83 +61675,83 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4802 := *v - yyh4802, yyl4802 := z.DecSliceHelperStart() - var yyc4802 bool - if yyl4802 == 0 { - if yyv4802 == nil { - yyv4802 = []Namespace{} - yyc4802 = true - } else if len(yyv4802) != 0 { - yyv4802 = yyv4802[:0] - yyc4802 = true + yyv4810 := *v + yyh4810, yyl4810 := z.DecSliceHelperStart() + var yyc4810 bool + if yyl4810 == 0 { + if yyv4810 == nil { + yyv4810 = []Namespace{} + yyc4810 = true + } else if len(yyv4810) != 0 { + yyv4810 = yyv4810[:0] + yyc4810 = true } - } else if yyl4802 > 0 { - var yyrr4802, yyrl4802 int - var yyrt4802 bool - if yyl4802 > cap(yyv4802) { + } else if yyl4810 > 0 { + var yyrr4810, yyrl4810 int + var yyrt4810 bool + if yyl4810 > cap(yyv4810) { - yyrg4802 := len(yyv4802) > 0 - yyv24802 := yyv4802 - yyrl4802, yyrt4802 = z.DecInferLen(yyl4802, z.DecBasicHandle().MaxInitLen, 296) - if yyrt4802 { - if yyrl4802 <= cap(yyv4802) { - yyv4802 = yyv4802[:yyrl4802] + yyrg4810 := len(yyv4810) > 0 + yyv24810 := yyv4810 + yyrl4810, yyrt4810 = z.DecInferLen(yyl4810, z.DecBasicHandle().MaxInitLen, 296) + if yyrt4810 { + if yyrl4810 <= cap(yyv4810) { + yyv4810 = yyv4810[:yyrl4810] } else { - yyv4802 = make([]Namespace, yyrl4802) + yyv4810 = make([]Namespace, yyrl4810) } } else { - yyv4802 = make([]Namespace, yyrl4802) + yyv4810 = make([]Namespace, yyrl4810) } - yyc4802 = true - yyrr4802 = len(yyv4802) - if yyrg4802 { - copy(yyv4802, yyv24802) + yyc4810 = true + yyrr4810 = len(yyv4810) + if yyrg4810 { + copy(yyv4810, yyv24810) } - } else if yyl4802 != len(yyv4802) { - yyv4802 = yyv4802[:yyl4802] - yyc4802 = true + } else if yyl4810 != len(yyv4810) { + yyv4810 = yyv4810[:yyl4810] + yyc4810 = true } - yyj4802 := 0 - for ; yyj4802 < yyrr4802; yyj4802++ { - yyh4802.ElemContainerState(yyj4802) + yyj4810 := 0 + for ; yyj4810 < yyrr4810; yyj4810++ { + yyh4810.ElemContainerState(yyj4810) if r.TryDecodeAsNil() { - yyv4802[yyj4802] = Namespace{} + yyv4810[yyj4810] = Namespace{} } else { - yyv4803 := &yyv4802[yyj4802] - yyv4803.CodecDecodeSelf(d) + yyv4811 := &yyv4810[yyj4810] + yyv4811.CodecDecodeSelf(d) } } - if yyrt4802 { - for ; yyj4802 < yyl4802; yyj4802++ { - yyv4802 = append(yyv4802, Namespace{}) - yyh4802.ElemContainerState(yyj4802) + if yyrt4810 { + for ; yyj4810 < yyl4810; yyj4810++ { + yyv4810 = append(yyv4810, Namespace{}) + yyh4810.ElemContainerState(yyj4810) if r.TryDecodeAsNil() { - yyv4802[yyj4802] = Namespace{} + yyv4810[yyj4810] = Namespace{} } else { - yyv4804 := &yyv4802[yyj4802] - yyv4804.CodecDecodeSelf(d) + yyv4812 := &yyv4810[yyj4810] + yyv4812.CodecDecodeSelf(d) } } } } else { - yyj4802 := 0 - for ; !r.CheckBreak(); yyj4802++ { + yyj4810 := 0 + for ; !r.CheckBreak(); yyj4810++ { - if yyj4802 >= len(yyv4802) { - yyv4802 = append(yyv4802, Namespace{}) // var yyz4802 Namespace - yyc4802 = true + if yyj4810 >= len(yyv4810) { + yyv4810 = append(yyv4810, Namespace{}) // var yyz4810 Namespace + yyc4810 = true } - yyh4802.ElemContainerState(yyj4802) - if yyj4802 < len(yyv4802) { + yyh4810.ElemContainerState(yyj4810) + if yyj4810 < len(yyv4810) { if r.TryDecodeAsNil() { - yyv4802[yyj4802] = Namespace{} + yyv4810[yyj4810] = Namespace{} } else { - yyv4805 := &yyv4802[yyj4802] - yyv4805.CodecDecodeSelf(d) + yyv4813 := &yyv4810[yyj4810] + yyv4813.CodecDecodeSelf(d) } } else { @@ -61639,17 +61759,17 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj4802 < len(yyv4802) { - yyv4802 = yyv4802[:yyj4802] - yyc4802 = true - } else if yyj4802 == 0 && yyv4802 == nil { - yyv4802 = []Namespace{} - yyc4802 = true + if yyj4810 < len(yyv4810) { + yyv4810 = yyv4810[:yyj4810] + yyc4810 = true + } else if yyj4810 == 0 && yyv4810 == nil { + yyv4810 = []Namespace{} + yyc4810 = true } } - yyh4802.End() - if yyc4802 { - *v = yyv4802 + yyh4810.End() + if yyc4810 { + *v = yyv4810 } } @@ -61658,10 +61778,10 @@ func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4806 := range v { + for _, yyv4814 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4807 := &yyv4806 - yy4807.CodecEncodeSelf(e) + yy4815 := &yyv4814 + yy4815.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61671,83 +61791,83 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4808 := *v - yyh4808, yyl4808 := z.DecSliceHelperStart() - var yyc4808 bool - if yyl4808 == 0 { - if yyv4808 == nil { - yyv4808 = []Event{} - yyc4808 = true - } else if len(yyv4808) != 0 { - yyv4808 = yyv4808[:0] - yyc4808 = true + yyv4816 := *v + yyh4816, yyl4816 := z.DecSliceHelperStart() + var yyc4816 bool + if yyl4816 == 0 { + if yyv4816 == nil { + yyv4816 = []Event{} + yyc4816 = true + } else if len(yyv4816) != 0 { + yyv4816 = yyv4816[:0] + yyc4816 = true } - } else if yyl4808 > 0 { - var yyrr4808, yyrl4808 int - var yyrt4808 bool - if yyl4808 > cap(yyv4808) { + } else if yyl4816 > 0 { + var yyrr4816, yyrl4816 int + var yyrt4816 bool + if yyl4816 > cap(yyv4816) { - yyrg4808 := len(yyv4808) > 0 - yyv24808 := yyv4808 - yyrl4808, yyrt4808 = z.DecInferLen(yyl4808, z.DecBasicHandle().MaxInitLen, 504) - if yyrt4808 { - if yyrl4808 <= cap(yyv4808) { - yyv4808 = yyv4808[:yyrl4808] + yyrg4816 := len(yyv4816) > 0 + yyv24816 := yyv4816 + yyrl4816, yyrt4816 = z.DecInferLen(yyl4816, z.DecBasicHandle().MaxInitLen, 504) + if yyrt4816 { + if yyrl4816 <= cap(yyv4816) { + yyv4816 = yyv4816[:yyrl4816] } else { - yyv4808 = make([]Event, yyrl4808) + yyv4816 = make([]Event, yyrl4816) } } else { - yyv4808 = make([]Event, yyrl4808) + yyv4816 = make([]Event, yyrl4816) } - yyc4808 = true - yyrr4808 = len(yyv4808) - if yyrg4808 { - copy(yyv4808, yyv24808) + yyc4816 = true + yyrr4816 = len(yyv4816) + if yyrg4816 { + copy(yyv4816, yyv24816) } - } else if yyl4808 != len(yyv4808) { - yyv4808 = yyv4808[:yyl4808] - yyc4808 = true + } else if yyl4816 != len(yyv4816) { + yyv4816 = yyv4816[:yyl4816] + yyc4816 = true } - yyj4808 := 0 - for ; yyj4808 < yyrr4808; yyj4808++ { - yyh4808.ElemContainerState(yyj4808) + yyj4816 := 0 + for ; yyj4816 < yyrr4816; yyj4816++ { + yyh4816.ElemContainerState(yyj4816) if r.TryDecodeAsNil() { - yyv4808[yyj4808] = Event{} + yyv4816[yyj4816] = Event{} } else { - yyv4809 := &yyv4808[yyj4808] - yyv4809.CodecDecodeSelf(d) + yyv4817 := &yyv4816[yyj4816] + yyv4817.CodecDecodeSelf(d) } } - if yyrt4808 { - for ; yyj4808 < yyl4808; yyj4808++ { - yyv4808 = append(yyv4808, Event{}) - yyh4808.ElemContainerState(yyj4808) + if yyrt4816 { + for ; yyj4816 < yyl4816; yyj4816++ { + yyv4816 = append(yyv4816, Event{}) + yyh4816.ElemContainerState(yyj4816) if r.TryDecodeAsNil() { - yyv4808[yyj4808] = Event{} + yyv4816[yyj4816] = Event{} } else { - yyv4810 := &yyv4808[yyj4808] - yyv4810.CodecDecodeSelf(d) + yyv4818 := &yyv4816[yyj4816] + yyv4818.CodecDecodeSelf(d) } } } } else { - yyj4808 := 0 - for ; !r.CheckBreak(); yyj4808++ { + yyj4816 := 0 + for ; !r.CheckBreak(); yyj4816++ { - if yyj4808 >= len(yyv4808) { - yyv4808 = append(yyv4808, Event{}) // var yyz4808 Event - yyc4808 = true + if yyj4816 >= len(yyv4816) { + yyv4816 = append(yyv4816, Event{}) // var yyz4816 Event + yyc4816 = true } - yyh4808.ElemContainerState(yyj4808) - if yyj4808 < len(yyv4808) { + yyh4816.ElemContainerState(yyj4816) + if yyj4816 < len(yyv4816) { if r.TryDecodeAsNil() { - yyv4808[yyj4808] = Event{} + yyv4816[yyj4816] = Event{} } else { - yyv4811 := &yyv4808[yyj4808] - yyv4811.CodecDecodeSelf(d) + yyv4819 := &yyv4816[yyj4816] + yyv4819.CodecDecodeSelf(d) } } else { @@ -61755,17 +61875,17 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj4808 < len(yyv4808) { - yyv4808 = yyv4808[:yyj4808] - yyc4808 = true - } else if yyj4808 == 0 && yyv4808 == nil { - yyv4808 = []Event{} - yyc4808 = true + if yyj4816 < len(yyv4816) { + yyv4816 = yyv4816[:yyj4816] + yyc4816 = true + } else if yyj4816 == 0 && yyv4816 == nil { + yyv4816 = []Event{} + yyc4816 = true } } - yyh4808.End() - if yyc4808 { - *v = yyv4808 + yyh4816.End() + if yyc4816 { + *v = yyv4816 } } @@ -61774,17 +61894,17 @@ func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtens z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4812 := range v { + for _, yyv4820 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4813 := &yyv4812 - yym4814 := z.EncBinary() - _ = yym4814 + yy4821 := &yyv4820 + yym4822 := z.EncBinary() + _ = yym4822 if false { - } else if z.HasExtensions() && z.EncExt(yy4813) { - } else if !yym4814 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4813) + } else if z.HasExtensions() && z.EncExt(yy4821) { + } else if !yym4822 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4821) } else { - z.EncFallback(yy4813) + z.EncFallback(yy4821) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -61795,78 +61915,78 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4815 := *v - yyh4815, yyl4815 := z.DecSliceHelperStart() - var yyc4815 bool - if yyl4815 == 0 { - if yyv4815 == nil { - yyv4815 = []pkg5_runtime.RawExtension{} - yyc4815 = true - } else if len(yyv4815) != 0 { - yyv4815 = yyv4815[:0] - yyc4815 = true + yyv4823 := *v + yyh4823, yyl4823 := z.DecSliceHelperStart() + var yyc4823 bool + if yyl4823 == 0 { + if yyv4823 == nil { + yyv4823 = []pkg5_runtime.RawExtension{} + yyc4823 = true + } else if len(yyv4823) != 0 { + yyv4823 = yyv4823[:0] + yyc4823 = true } - } else if yyl4815 > 0 { - var yyrr4815, yyrl4815 int - var yyrt4815 bool - if yyl4815 > cap(yyv4815) { + } else if yyl4823 > 0 { + var yyrr4823, yyrl4823 int + var yyrt4823 bool + if yyl4823 > cap(yyv4823) { - yyrg4815 := len(yyv4815) > 0 - yyv24815 := yyv4815 - yyrl4815, yyrt4815 = z.DecInferLen(yyl4815, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4815 { - if yyrl4815 <= cap(yyv4815) { - yyv4815 = yyv4815[:yyrl4815] + yyrg4823 := len(yyv4823) > 0 + yyv24823 := yyv4823 + yyrl4823, yyrt4823 = z.DecInferLen(yyl4823, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4823 { + if yyrl4823 <= cap(yyv4823) { + yyv4823 = yyv4823[:yyrl4823] } else { - yyv4815 = make([]pkg5_runtime.RawExtension, yyrl4815) + yyv4823 = make([]pkg5_runtime.RawExtension, yyrl4823) } } else { - yyv4815 = make([]pkg5_runtime.RawExtension, yyrl4815) + yyv4823 = make([]pkg5_runtime.RawExtension, yyrl4823) } - yyc4815 = true - yyrr4815 = len(yyv4815) - if yyrg4815 { - copy(yyv4815, yyv24815) + yyc4823 = true + yyrr4823 = len(yyv4823) + if yyrg4823 { + copy(yyv4823, yyv24823) } - } else if yyl4815 != len(yyv4815) { - yyv4815 = yyv4815[:yyl4815] - yyc4815 = true + } else if yyl4823 != len(yyv4823) { + yyv4823 = yyv4823[:yyl4823] + yyc4823 = true } - yyj4815 := 0 - for ; yyj4815 < yyrr4815; yyj4815++ { - yyh4815.ElemContainerState(yyj4815) + yyj4823 := 0 + for ; yyj4823 < yyrr4823; yyj4823++ { + yyh4823.ElemContainerState(yyj4823) if r.TryDecodeAsNil() { - yyv4815[yyj4815] = pkg5_runtime.RawExtension{} + yyv4823[yyj4823] = pkg5_runtime.RawExtension{} } else { - yyv4816 := &yyv4815[yyj4815] - yym4817 := z.DecBinary() - _ = yym4817 + yyv4824 := &yyv4823[yyj4823] + yym4825 := z.DecBinary() + _ = yym4825 if false { - } else if z.HasExtensions() && z.DecExt(yyv4816) { - } else if !yym4817 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4816) + } else if z.HasExtensions() && z.DecExt(yyv4824) { + } else if !yym4825 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4824) } else { - z.DecFallback(yyv4816, false) + z.DecFallback(yyv4824, false) } } } - if yyrt4815 { - for ; yyj4815 < yyl4815; yyj4815++ { - yyv4815 = append(yyv4815, pkg5_runtime.RawExtension{}) - yyh4815.ElemContainerState(yyj4815) + if yyrt4823 { + for ; yyj4823 < yyl4823; yyj4823++ { + yyv4823 = append(yyv4823, pkg5_runtime.RawExtension{}) + yyh4823.ElemContainerState(yyj4823) if r.TryDecodeAsNil() { - yyv4815[yyj4815] = pkg5_runtime.RawExtension{} + yyv4823[yyj4823] = pkg5_runtime.RawExtension{} } else { - yyv4818 := &yyv4815[yyj4815] - yym4819 := z.DecBinary() - _ = yym4819 + yyv4826 := &yyv4823[yyj4823] + yym4827 := z.DecBinary() + _ = yym4827 if false { - } else if z.HasExtensions() && z.DecExt(yyv4818) { - } else if !yym4819 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4818) + } else if z.HasExtensions() && z.DecExt(yyv4826) { + } else if !yym4827 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4826) } else { - z.DecFallback(yyv4818, false) + z.DecFallback(yyv4826, false) } } @@ -61874,27 +61994,27 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } else { - yyj4815 := 0 - for ; !r.CheckBreak(); yyj4815++ { + yyj4823 := 0 + for ; !r.CheckBreak(); yyj4823++ { - if yyj4815 >= len(yyv4815) { - yyv4815 = append(yyv4815, pkg5_runtime.RawExtension{}) // var yyz4815 pkg5_runtime.RawExtension - yyc4815 = true + if yyj4823 >= len(yyv4823) { + yyv4823 = append(yyv4823, pkg5_runtime.RawExtension{}) // var yyz4823 pkg5_runtime.RawExtension + yyc4823 = true } - yyh4815.ElemContainerState(yyj4815) - if yyj4815 < len(yyv4815) { + yyh4823.ElemContainerState(yyj4823) + if yyj4823 < len(yyv4823) { if r.TryDecodeAsNil() { - yyv4815[yyj4815] = pkg5_runtime.RawExtension{} + yyv4823[yyj4823] = pkg5_runtime.RawExtension{} } else { - yyv4820 := &yyv4815[yyj4815] - yym4821 := z.DecBinary() - _ = yym4821 + yyv4828 := &yyv4823[yyj4823] + yym4829 := z.DecBinary() + _ = yym4829 if false { - } else if z.HasExtensions() && z.DecExt(yyv4820) { - } else if !yym4821 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4820) + } else if z.HasExtensions() && z.DecExt(yyv4828) { + } else if !yym4829 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4828) } else { - z.DecFallback(yyv4820, false) + z.DecFallback(yyv4828, false) } } @@ -61903,17 +62023,17 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } - if yyj4815 < len(yyv4815) { - yyv4815 = yyv4815[:yyj4815] - yyc4815 = true - } else if yyj4815 == 0 && yyv4815 == nil { - yyv4815 = []pkg5_runtime.RawExtension{} - yyc4815 = true + if yyj4823 < len(yyv4823) { + yyv4823 = yyv4823[:yyj4823] + yyc4823 = true + } else if yyj4823 == 0 && yyv4823 == nil { + yyv4823 = []pkg5_runtime.RawExtension{} + yyc4823 = true } } - yyh4815.End() - if yyc4815 { - *v = yyv4815 + yyh4823.End() + if yyc4823 { + *v = yyv4823 } } @@ -61922,10 +62042,10 @@ func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4822 := range v { + for _, yyv4830 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4823 := &yyv4822 - yy4823.CodecEncodeSelf(e) + yy4831 := &yyv4830 + yy4831.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61935,83 +62055,83 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4824 := *v - yyh4824, yyl4824 := z.DecSliceHelperStart() - var yyc4824 bool - if yyl4824 == 0 { - if yyv4824 == nil { - yyv4824 = []LimitRangeItem{} - yyc4824 = true - } else if len(yyv4824) != 0 { - yyv4824 = yyv4824[:0] - yyc4824 = true + yyv4832 := *v + yyh4832, yyl4832 := z.DecSliceHelperStart() + var yyc4832 bool + if yyl4832 == 0 { + if yyv4832 == nil { + yyv4832 = []LimitRangeItem{} + yyc4832 = true + } else if len(yyv4832) != 0 { + yyv4832 = yyv4832[:0] + yyc4832 = true } - } else if yyl4824 > 0 { - var yyrr4824, yyrl4824 int - var yyrt4824 bool - if yyl4824 > cap(yyv4824) { + } else if yyl4832 > 0 { + var yyrr4832, yyrl4832 int + var yyrt4832 bool + if yyl4832 > cap(yyv4832) { - yyrg4824 := len(yyv4824) > 0 - yyv24824 := yyv4824 - yyrl4824, yyrt4824 = z.DecInferLen(yyl4824, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4824 { - if yyrl4824 <= cap(yyv4824) { - yyv4824 = yyv4824[:yyrl4824] + yyrg4832 := len(yyv4832) > 0 + yyv24832 := yyv4832 + yyrl4832, yyrt4832 = z.DecInferLen(yyl4832, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4832 { + if yyrl4832 <= cap(yyv4832) { + yyv4832 = yyv4832[:yyrl4832] } else { - yyv4824 = make([]LimitRangeItem, yyrl4824) + yyv4832 = make([]LimitRangeItem, yyrl4832) } } else { - yyv4824 = make([]LimitRangeItem, yyrl4824) + yyv4832 = make([]LimitRangeItem, yyrl4832) } - yyc4824 = true - yyrr4824 = len(yyv4824) - if yyrg4824 { - copy(yyv4824, yyv24824) + yyc4832 = true + yyrr4832 = len(yyv4832) + if yyrg4832 { + copy(yyv4832, yyv24832) } - } else if yyl4824 != len(yyv4824) { - yyv4824 = yyv4824[:yyl4824] - yyc4824 = true + } else if yyl4832 != len(yyv4832) { + yyv4832 = yyv4832[:yyl4832] + yyc4832 = true } - yyj4824 := 0 - for ; yyj4824 < yyrr4824; yyj4824++ { - yyh4824.ElemContainerState(yyj4824) + yyj4832 := 0 + for ; yyj4832 < yyrr4832; yyj4832++ { + yyh4832.ElemContainerState(yyj4832) if r.TryDecodeAsNil() { - yyv4824[yyj4824] = LimitRangeItem{} + yyv4832[yyj4832] = LimitRangeItem{} } else { - yyv4825 := &yyv4824[yyj4824] - yyv4825.CodecDecodeSelf(d) + yyv4833 := &yyv4832[yyj4832] + yyv4833.CodecDecodeSelf(d) } } - if yyrt4824 { - for ; yyj4824 < yyl4824; yyj4824++ { - yyv4824 = append(yyv4824, LimitRangeItem{}) - yyh4824.ElemContainerState(yyj4824) + if yyrt4832 { + for ; yyj4832 < yyl4832; yyj4832++ { + yyv4832 = append(yyv4832, LimitRangeItem{}) + yyh4832.ElemContainerState(yyj4832) if r.TryDecodeAsNil() { - yyv4824[yyj4824] = LimitRangeItem{} + yyv4832[yyj4832] = LimitRangeItem{} } else { - yyv4826 := &yyv4824[yyj4824] - yyv4826.CodecDecodeSelf(d) + yyv4834 := &yyv4832[yyj4832] + yyv4834.CodecDecodeSelf(d) } } } } else { - yyj4824 := 0 - for ; !r.CheckBreak(); yyj4824++ { + yyj4832 := 0 + for ; !r.CheckBreak(); yyj4832++ { - if yyj4824 >= len(yyv4824) { - yyv4824 = append(yyv4824, LimitRangeItem{}) // var yyz4824 LimitRangeItem - yyc4824 = true + if yyj4832 >= len(yyv4832) { + yyv4832 = append(yyv4832, LimitRangeItem{}) // var yyz4832 LimitRangeItem + yyc4832 = true } - yyh4824.ElemContainerState(yyj4824) - if yyj4824 < len(yyv4824) { + yyh4832.ElemContainerState(yyj4832) + if yyj4832 < len(yyv4832) { if r.TryDecodeAsNil() { - yyv4824[yyj4824] = LimitRangeItem{} + yyv4832[yyj4832] = LimitRangeItem{} } else { - yyv4827 := &yyv4824[yyj4824] - yyv4827.CodecDecodeSelf(d) + yyv4835 := &yyv4832[yyj4832] + yyv4835.CodecDecodeSelf(d) } } else { @@ -62019,17 +62139,17 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } } - if yyj4824 < len(yyv4824) { - yyv4824 = yyv4824[:yyj4824] - yyc4824 = true - } else if yyj4824 == 0 && yyv4824 == nil { - yyv4824 = []LimitRangeItem{} - yyc4824 = true + if yyj4832 < len(yyv4832) { + yyv4832 = yyv4832[:yyj4832] + yyc4832 = true + } else if yyj4832 == 0 && yyv4832 == nil { + yyv4832 = []LimitRangeItem{} + yyc4832 = true } } - yyh4824.End() - if yyc4824 { - *v = yyv4824 + yyh4832.End() + if yyc4832 { + *v = yyv4832 } } @@ -62038,10 +62158,10 @@ func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4828 := range v { + for _, yyv4836 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4829 := &yyv4828 - yy4829.CodecEncodeSelf(e) + yy4837 := &yyv4836 + yy4837.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62051,83 +62171,83 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4830 := *v - yyh4830, yyl4830 := z.DecSliceHelperStart() - var yyc4830 bool - if yyl4830 == 0 { - if yyv4830 == nil { - yyv4830 = []LimitRange{} - yyc4830 = true - } else if len(yyv4830) != 0 { - yyv4830 = yyv4830[:0] - yyc4830 = true + yyv4838 := *v + yyh4838, yyl4838 := z.DecSliceHelperStart() + var yyc4838 bool + if yyl4838 == 0 { + if yyv4838 == nil { + yyv4838 = []LimitRange{} + yyc4838 = true + } else if len(yyv4838) != 0 { + yyv4838 = yyv4838[:0] + yyc4838 = true } - } else if yyl4830 > 0 { - var yyrr4830, yyrl4830 int - var yyrt4830 bool - if yyl4830 > cap(yyv4830) { + } else if yyl4838 > 0 { + var yyrr4838, yyrl4838 int + var yyrt4838 bool + if yyl4838 > cap(yyv4838) { - yyrg4830 := len(yyv4830) > 0 - yyv24830 := yyv4830 - yyrl4830, yyrt4830 = z.DecInferLen(yyl4830, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4830 { - if yyrl4830 <= cap(yyv4830) { - yyv4830 = yyv4830[:yyrl4830] + yyrg4838 := len(yyv4838) > 0 + yyv24838 := yyv4838 + yyrl4838, yyrt4838 = z.DecInferLen(yyl4838, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4838 { + if yyrl4838 <= cap(yyv4838) { + yyv4838 = yyv4838[:yyrl4838] } else { - yyv4830 = make([]LimitRange, yyrl4830) + yyv4838 = make([]LimitRange, yyrl4838) } } else { - yyv4830 = make([]LimitRange, yyrl4830) + yyv4838 = make([]LimitRange, yyrl4838) } - yyc4830 = true - yyrr4830 = len(yyv4830) - if yyrg4830 { - copy(yyv4830, yyv24830) + yyc4838 = true + yyrr4838 = len(yyv4838) + if yyrg4838 { + copy(yyv4838, yyv24838) } - } else if yyl4830 != len(yyv4830) { - yyv4830 = yyv4830[:yyl4830] - yyc4830 = true + } else if yyl4838 != len(yyv4838) { + yyv4838 = yyv4838[:yyl4838] + yyc4838 = true } - yyj4830 := 0 - for ; yyj4830 < yyrr4830; yyj4830++ { - yyh4830.ElemContainerState(yyj4830) + yyj4838 := 0 + for ; yyj4838 < yyrr4838; yyj4838++ { + yyh4838.ElemContainerState(yyj4838) if r.TryDecodeAsNil() { - yyv4830[yyj4830] = LimitRange{} + yyv4838[yyj4838] = LimitRange{} } else { - yyv4831 := &yyv4830[yyj4830] - yyv4831.CodecDecodeSelf(d) + yyv4839 := &yyv4838[yyj4838] + yyv4839.CodecDecodeSelf(d) } } - if yyrt4830 { - for ; yyj4830 < yyl4830; yyj4830++ { - yyv4830 = append(yyv4830, LimitRange{}) - yyh4830.ElemContainerState(yyj4830) + if yyrt4838 { + for ; yyj4838 < yyl4838; yyj4838++ { + yyv4838 = append(yyv4838, LimitRange{}) + yyh4838.ElemContainerState(yyj4838) if r.TryDecodeAsNil() { - yyv4830[yyj4830] = LimitRange{} + yyv4838[yyj4838] = LimitRange{} } else { - yyv4832 := &yyv4830[yyj4830] - yyv4832.CodecDecodeSelf(d) + yyv4840 := &yyv4838[yyj4838] + yyv4840.CodecDecodeSelf(d) } } } } else { - yyj4830 := 0 - for ; !r.CheckBreak(); yyj4830++ { + yyj4838 := 0 + for ; !r.CheckBreak(); yyj4838++ { - if yyj4830 >= len(yyv4830) { - yyv4830 = append(yyv4830, LimitRange{}) // var yyz4830 LimitRange - yyc4830 = true + if yyj4838 >= len(yyv4838) { + yyv4838 = append(yyv4838, LimitRange{}) // var yyz4838 LimitRange + yyc4838 = true } - yyh4830.ElemContainerState(yyj4830) - if yyj4830 < len(yyv4830) { + yyh4838.ElemContainerState(yyj4838) + if yyj4838 < len(yyv4838) { if r.TryDecodeAsNil() { - yyv4830[yyj4830] = LimitRange{} + yyv4838[yyj4838] = LimitRange{} } else { - yyv4833 := &yyv4830[yyj4830] - yyv4833.CodecDecodeSelf(d) + yyv4841 := &yyv4838[yyj4838] + yyv4841.CodecDecodeSelf(d) } } else { @@ -62135,17 +62255,17 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } - if yyj4830 < len(yyv4830) { - yyv4830 = yyv4830[:yyj4830] - yyc4830 = true - } else if yyj4830 == 0 && yyv4830 == nil { - yyv4830 = []LimitRange{} - yyc4830 = true + if yyj4838 < len(yyv4838) { + yyv4838 = yyv4838[:yyj4838] + yyc4838 = true + } else if yyj4838 == 0 && yyv4838 == nil { + yyv4838 = []LimitRange{} + yyc4838 = true } } - yyh4830.End() - if yyc4830 { - *v = yyv4830 + yyh4838.End() + if yyc4838 { + *v = yyv4838 } } @@ -62154,9 +62274,9 @@ func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4834 := range v { + for _, yyv4842 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4834.CodecEncodeSelf(e) + yyv4842.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62166,75 +62286,75 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4835 := *v - yyh4835, yyl4835 := z.DecSliceHelperStart() - var yyc4835 bool - if yyl4835 == 0 { - if yyv4835 == nil { - yyv4835 = []ResourceQuotaScope{} - yyc4835 = true - } else if len(yyv4835) != 0 { - yyv4835 = yyv4835[:0] - yyc4835 = true + yyv4843 := *v + yyh4843, yyl4843 := z.DecSliceHelperStart() + var yyc4843 bool + if yyl4843 == 0 { + if yyv4843 == nil { + yyv4843 = []ResourceQuotaScope{} + yyc4843 = true + } else if len(yyv4843) != 0 { + yyv4843 = yyv4843[:0] + yyc4843 = true } - } else if yyl4835 > 0 { - var yyrr4835, yyrl4835 int - var yyrt4835 bool - if yyl4835 > cap(yyv4835) { + } else if yyl4843 > 0 { + var yyrr4843, yyrl4843 int + var yyrt4843 bool + if yyl4843 > cap(yyv4843) { - yyrl4835, yyrt4835 = z.DecInferLen(yyl4835, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4835 { - if yyrl4835 <= cap(yyv4835) { - yyv4835 = yyv4835[:yyrl4835] + yyrl4843, yyrt4843 = z.DecInferLen(yyl4843, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4843 { + if yyrl4843 <= cap(yyv4843) { + yyv4843 = yyv4843[:yyrl4843] } else { - yyv4835 = make([]ResourceQuotaScope, yyrl4835) + yyv4843 = make([]ResourceQuotaScope, yyrl4843) } } else { - yyv4835 = make([]ResourceQuotaScope, yyrl4835) + yyv4843 = make([]ResourceQuotaScope, yyrl4843) } - yyc4835 = true - yyrr4835 = len(yyv4835) - } else if yyl4835 != len(yyv4835) { - yyv4835 = yyv4835[:yyl4835] - yyc4835 = true + yyc4843 = true + yyrr4843 = len(yyv4843) + } else if yyl4843 != len(yyv4843) { + yyv4843 = yyv4843[:yyl4843] + yyc4843 = true } - yyj4835 := 0 - for ; yyj4835 < yyrr4835; yyj4835++ { - yyh4835.ElemContainerState(yyj4835) + yyj4843 := 0 + for ; yyj4843 < yyrr4843; yyj4843++ { + yyh4843.ElemContainerState(yyj4843) if r.TryDecodeAsNil() { - yyv4835[yyj4835] = "" + yyv4843[yyj4843] = "" } else { - yyv4835[yyj4835] = ResourceQuotaScope(r.DecodeString()) + yyv4843[yyj4843] = ResourceQuotaScope(r.DecodeString()) } } - if yyrt4835 { - for ; yyj4835 < yyl4835; yyj4835++ { - yyv4835 = append(yyv4835, "") - yyh4835.ElemContainerState(yyj4835) + if yyrt4843 { + for ; yyj4843 < yyl4843; yyj4843++ { + yyv4843 = append(yyv4843, "") + yyh4843.ElemContainerState(yyj4843) if r.TryDecodeAsNil() { - yyv4835[yyj4835] = "" + yyv4843[yyj4843] = "" } else { - yyv4835[yyj4835] = ResourceQuotaScope(r.DecodeString()) + yyv4843[yyj4843] = ResourceQuotaScope(r.DecodeString()) } } } } else { - yyj4835 := 0 - for ; !r.CheckBreak(); yyj4835++ { + yyj4843 := 0 + for ; !r.CheckBreak(); yyj4843++ { - if yyj4835 >= len(yyv4835) { - yyv4835 = append(yyv4835, "") // var yyz4835 ResourceQuotaScope - yyc4835 = true + if yyj4843 >= len(yyv4843) { + yyv4843 = append(yyv4843, "") // var yyz4843 ResourceQuotaScope + yyc4843 = true } - yyh4835.ElemContainerState(yyj4835) - if yyj4835 < len(yyv4835) { + yyh4843.ElemContainerState(yyj4843) + if yyj4843 < len(yyv4843) { if r.TryDecodeAsNil() { - yyv4835[yyj4835] = "" + yyv4843[yyj4843] = "" } else { - yyv4835[yyj4835] = ResourceQuotaScope(r.DecodeString()) + yyv4843[yyj4843] = ResourceQuotaScope(r.DecodeString()) } } else { @@ -62242,17 +62362,17 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } - if yyj4835 < len(yyv4835) { - yyv4835 = yyv4835[:yyj4835] - yyc4835 = true - } else if yyj4835 == 0 && yyv4835 == nil { - yyv4835 = []ResourceQuotaScope{} - yyc4835 = true + if yyj4843 < len(yyv4843) { + yyv4843 = yyv4843[:yyj4843] + yyc4843 = true + } else if yyj4843 == 0 && yyv4843 == nil { + yyv4843 = []ResourceQuotaScope{} + yyc4843 = true } } - yyh4835.End() - if yyc4835 { - *v = yyv4835 + yyh4843.End() + if yyc4843 { + *v = yyv4843 } } @@ -62261,10 +62381,10 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4839 := range v { + for _, yyv4847 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4840 := &yyv4839 - yy4840.CodecEncodeSelf(e) + yy4848 := &yyv4847 + yy4848.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62274,83 +62394,83 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4841 := *v - yyh4841, yyl4841 := z.DecSliceHelperStart() - var yyc4841 bool - if yyl4841 == 0 { - if yyv4841 == nil { - yyv4841 = []ResourceQuota{} - yyc4841 = true - } else if len(yyv4841) != 0 { - yyv4841 = yyv4841[:0] - yyc4841 = true + yyv4849 := *v + yyh4849, yyl4849 := z.DecSliceHelperStart() + var yyc4849 bool + if yyl4849 == 0 { + if yyv4849 == nil { + yyv4849 = []ResourceQuota{} + yyc4849 = true + } else if len(yyv4849) != 0 { + yyv4849 = yyv4849[:0] + yyc4849 = true } - } else if yyl4841 > 0 { - var yyrr4841, yyrl4841 int - var yyrt4841 bool - if yyl4841 > cap(yyv4841) { + } else if yyl4849 > 0 { + var yyrr4849, yyrl4849 int + var yyrt4849 bool + if yyl4849 > cap(yyv4849) { - yyrg4841 := len(yyv4841) > 0 - yyv24841 := yyv4841 - yyrl4841, yyrt4841 = z.DecInferLen(yyl4841, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4841 { - if yyrl4841 <= cap(yyv4841) { - yyv4841 = yyv4841[:yyrl4841] + yyrg4849 := len(yyv4849) > 0 + yyv24849 := yyv4849 + yyrl4849, yyrt4849 = z.DecInferLen(yyl4849, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4849 { + if yyrl4849 <= cap(yyv4849) { + yyv4849 = yyv4849[:yyrl4849] } else { - yyv4841 = make([]ResourceQuota, yyrl4841) + yyv4849 = make([]ResourceQuota, yyrl4849) } } else { - yyv4841 = make([]ResourceQuota, yyrl4841) + yyv4849 = make([]ResourceQuota, yyrl4849) } - yyc4841 = true - yyrr4841 = len(yyv4841) - if yyrg4841 { - copy(yyv4841, yyv24841) + yyc4849 = true + yyrr4849 = len(yyv4849) + if yyrg4849 { + copy(yyv4849, yyv24849) } - } else if yyl4841 != len(yyv4841) { - yyv4841 = yyv4841[:yyl4841] - yyc4841 = true + } else if yyl4849 != len(yyv4849) { + yyv4849 = yyv4849[:yyl4849] + yyc4849 = true } - yyj4841 := 0 - for ; yyj4841 < yyrr4841; yyj4841++ { - yyh4841.ElemContainerState(yyj4841) + yyj4849 := 0 + for ; yyj4849 < yyrr4849; yyj4849++ { + yyh4849.ElemContainerState(yyj4849) if r.TryDecodeAsNil() { - yyv4841[yyj4841] = ResourceQuota{} + yyv4849[yyj4849] = ResourceQuota{} } else { - yyv4842 := &yyv4841[yyj4841] - yyv4842.CodecDecodeSelf(d) + yyv4850 := &yyv4849[yyj4849] + yyv4850.CodecDecodeSelf(d) } } - if yyrt4841 { - for ; yyj4841 < yyl4841; yyj4841++ { - yyv4841 = append(yyv4841, ResourceQuota{}) - yyh4841.ElemContainerState(yyj4841) + if yyrt4849 { + for ; yyj4849 < yyl4849; yyj4849++ { + yyv4849 = append(yyv4849, ResourceQuota{}) + yyh4849.ElemContainerState(yyj4849) if r.TryDecodeAsNil() { - yyv4841[yyj4841] = ResourceQuota{} + yyv4849[yyj4849] = ResourceQuota{} } else { - yyv4843 := &yyv4841[yyj4841] - yyv4843.CodecDecodeSelf(d) + yyv4851 := &yyv4849[yyj4849] + yyv4851.CodecDecodeSelf(d) } } } } else { - yyj4841 := 0 - for ; !r.CheckBreak(); yyj4841++ { + yyj4849 := 0 + for ; !r.CheckBreak(); yyj4849++ { - if yyj4841 >= len(yyv4841) { - yyv4841 = append(yyv4841, ResourceQuota{}) // var yyz4841 ResourceQuota - yyc4841 = true + if yyj4849 >= len(yyv4849) { + yyv4849 = append(yyv4849, ResourceQuota{}) // var yyz4849 ResourceQuota + yyc4849 = true } - yyh4841.ElemContainerState(yyj4841) - if yyj4841 < len(yyv4841) { + yyh4849.ElemContainerState(yyj4849) + if yyj4849 < len(yyv4849) { if r.TryDecodeAsNil() { - yyv4841[yyj4841] = ResourceQuota{} + yyv4849[yyj4849] = ResourceQuota{} } else { - yyv4844 := &yyv4841[yyj4841] - yyv4844.CodecDecodeSelf(d) + yyv4852 := &yyv4849[yyj4849] + yyv4852.CodecDecodeSelf(d) } } else { @@ -62358,17 +62478,17 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } - if yyj4841 < len(yyv4841) { - yyv4841 = yyv4841[:yyj4841] - yyc4841 = true - } else if yyj4841 == 0 && yyv4841 == nil { - yyv4841 = []ResourceQuota{} - yyc4841 = true + if yyj4849 < len(yyv4849) { + yyv4849 = yyv4849[:yyj4849] + yyc4849 = true + } else if yyj4849 == 0 && yyv4849 == nil { + yyv4849 = []ResourceQuota{} + yyc4849 = true } } - yyh4841.End() - if yyc4841 { - *v = yyv4841 + yyh4849.End() + if yyc4849 { + *v = yyv4849 } } @@ -62377,23 +62497,23 @@ func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk4845, yyv4845 := range v { + for yyk4853, yyv4853 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4846 := z.EncBinary() - _ = yym4846 + yym4854 := z.EncBinary() + _ = yym4854 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4845)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4853)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4845 == nil { + if yyv4853 == nil { r.EncodeNil() } else { - yym4847 := z.EncBinary() - _ = yym4847 + yym4855 := z.EncBinary() + _ = yym4855 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4845)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4853)) } } } @@ -62405,80 +62525,80 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4848 := *v - yyl4848 := r.ReadMapStart() - yybh4848 := z.DecBasicHandle() - if yyv4848 == nil { - yyrl4848, _ := z.DecInferLen(yyl4848, yybh4848.MaxInitLen, 40) - yyv4848 = make(map[string][]uint8, yyrl4848) - *v = yyv4848 + yyv4856 := *v + yyl4856 := r.ReadMapStart() + yybh4856 := z.DecBasicHandle() + if yyv4856 == nil { + yyrl4856, _ := z.DecInferLen(yyl4856, yybh4856.MaxInitLen, 40) + yyv4856 = make(map[string][]uint8, yyrl4856) + *v = yyv4856 } - var yymk4848 string - var yymv4848 []uint8 - var yymg4848 bool - if yybh4848.MapValueReset { - yymg4848 = true + var yymk4856 string + var yymv4856 []uint8 + var yymg4856 bool + if yybh4856.MapValueReset { + yymg4856 = true } - if yyl4848 > 0 { - for yyj4848 := 0; yyj4848 < yyl4848; yyj4848++ { + if yyl4856 > 0 { + for yyj4856 := 0; yyj4856 < yyl4856; yyj4856++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4848 = "" + yymk4856 = "" } else { - yymk4848 = string(r.DecodeString()) + yymk4856 = string(r.DecodeString()) } - if yymg4848 { - yymv4848 = yyv4848[yymk4848] + if yymg4856 { + yymv4856 = yyv4856[yymk4856] } else { - yymv4848 = nil + yymv4856 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4848 = nil + yymv4856 = nil } else { - yyv4850 := &yymv4848 - yym4851 := z.DecBinary() - _ = yym4851 + yyv4858 := &yymv4856 + yym4859 := z.DecBinary() + _ = yym4859 if false { } else { - *yyv4850 = r.DecodeBytes(*(*[]byte)(yyv4850), false, false) + *yyv4858 = r.DecodeBytes(*(*[]byte)(yyv4858), false, false) } } - if yyv4848 != nil { - yyv4848[yymk4848] = yymv4848 + if yyv4856 != nil { + yyv4856[yymk4856] = yymv4856 } } - } else if yyl4848 < 0 { - for yyj4848 := 0; !r.CheckBreak(); yyj4848++ { + } else if yyl4856 < 0 { + for yyj4856 := 0; !r.CheckBreak(); yyj4856++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4848 = "" + yymk4856 = "" } else { - yymk4848 = string(r.DecodeString()) + yymk4856 = string(r.DecodeString()) } - if yymg4848 { - yymv4848 = yyv4848[yymk4848] + if yymg4856 { + yymv4856 = yyv4856[yymk4856] } else { - yymv4848 = nil + yymv4856 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4848 = nil + yymv4856 = nil } else { - yyv4853 := &yymv4848 - yym4854 := z.DecBinary() - _ = yym4854 + yyv4861 := &yymv4856 + yym4862 := z.DecBinary() + _ = yym4862 if false { } else { - *yyv4853 = r.DecodeBytes(*(*[]byte)(yyv4853), false, false) + *yyv4861 = r.DecodeBytes(*(*[]byte)(yyv4861), false, false) } } - if yyv4848 != nil { - yyv4848[yymk4848] = yymv4848 + if yyv4856 != nil { + yyv4856[yymk4856] = yymv4856 } } } // else len==0: TODO: Should we clear map entries? @@ -62490,10 +62610,10 @@ func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4855 := range v { + for _, yyv4863 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4856 := &yyv4855 - yy4856.CodecEncodeSelf(e) + yy4864 := &yyv4863 + yy4864.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62503,83 +62623,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4857 := *v - yyh4857, yyl4857 := z.DecSliceHelperStart() - var yyc4857 bool - if yyl4857 == 0 { - if yyv4857 == nil { - yyv4857 = []Secret{} - yyc4857 = true - } else if len(yyv4857) != 0 { - yyv4857 = yyv4857[:0] - yyc4857 = true + yyv4865 := *v + yyh4865, yyl4865 := z.DecSliceHelperStart() + var yyc4865 bool + if yyl4865 == 0 { + if yyv4865 == nil { + yyv4865 = []Secret{} + yyc4865 = true + } else if len(yyv4865) != 0 { + yyv4865 = yyv4865[:0] + yyc4865 = true } - } else if yyl4857 > 0 { - var yyrr4857, yyrl4857 int - var yyrt4857 bool - if yyl4857 > cap(yyv4857) { + } else if yyl4865 > 0 { + var yyrr4865, yyrl4865 int + var yyrt4865 bool + if yyl4865 > cap(yyv4865) { - yyrg4857 := len(yyv4857) > 0 - yyv24857 := yyv4857 - yyrl4857, yyrt4857 = z.DecInferLen(yyl4857, z.DecBasicHandle().MaxInitLen, 288) - if yyrt4857 { - if yyrl4857 <= cap(yyv4857) { - yyv4857 = yyv4857[:yyrl4857] + yyrg4865 := len(yyv4865) > 0 + yyv24865 := yyv4865 + yyrl4865, yyrt4865 = z.DecInferLen(yyl4865, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4865 { + if yyrl4865 <= cap(yyv4865) { + yyv4865 = yyv4865[:yyrl4865] } else { - yyv4857 = make([]Secret, yyrl4857) + yyv4865 = make([]Secret, yyrl4865) } } else { - yyv4857 = make([]Secret, yyrl4857) + yyv4865 = make([]Secret, yyrl4865) } - yyc4857 = true - yyrr4857 = len(yyv4857) - if yyrg4857 { - copy(yyv4857, yyv24857) + yyc4865 = true + yyrr4865 = len(yyv4865) + if yyrg4865 { + copy(yyv4865, yyv24865) } - } else if yyl4857 != len(yyv4857) { - yyv4857 = yyv4857[:yyl4857] - yyc4857 = true + } else if yyl4865 != len(yyv4865) { + yyv4865 = yyv4865[:yyl4865] + yyc4865 = true } - yyj4857 := 0 - for ; yyj4857 < yyrr4857; yyj4857++ { - yyh4857.ElemContainerState(yyj4857) + yyj4865 := 0 + for ; yyj4865 < yyrr4865; yyj4865++ { + yyh4865.ElemContainerState(yyj4865) if r.TryDecodeAsNil() { - yyv4857[yyj4857] = Secret{} + yyv4865[yyj4865] = Secret{} } else { - yyv4858 := &yyv4857[yyj4857] - yyv4858.CodecDecodeSelf(d) + yyv4866 := &yyv4865[yyj4865] + yyv4866.CodecDecodeSelf(d) } } - if yyrt4857 { - for ; yyj4857 < yyl4857; yyj4857++ { - yyv4857 = append(yyv4857, Secret{}) - yyh4857.ElemContainerState(yyj4857) + if yyrt4865 { + for ; yyj4865 < yyl4865; yyj4865++ { + yyv4865 = append(yyv4865, Secret{}) + yyh4865.ElemContainerState(yyj4865) if r.TryDecodeAsNil() { - yyv4857[yyj4857] = Secret{} + yyv4865[yyj4865] = Secret{} } else { - yyv4859 := &yyv4857[yyj4857] - yyv4859.CodecDecodeSelf(d) + yyv4867 := &yyv4865[yyj4865] + yyv4867.CodecDecodeSelf(d) } } } } else { - yyj4857 := 0 - for ; !r.CheckBreak(); yyj4857++ { + yyj4865 := 0 + for ; !r.CheckBreak(); yyj4865++ { - if yyj4857 >= len(yyv4857) { - yyv4857 = append(yyv4857, Secret{}) // var yyz4857 Secret - yyc4857 = true + if yyj4865 >= len(yyv4865) { + yyv4865 = append(yyv4865, Secret{}) // var yyz4865 Secret + yyc4865 = true } - yyh4857.ElemContainerState(yyj4857) - if yyj4857 < len(yyv4857) { + yyh4865.ElemContainerState(yyj4865) + if yyj4865 < len(yyv4865) { if r.TryDecodeAsNil() { - yyv4857[yyj4857] = Secret{} + yyv4865[yyj4865] = Secret{} } else { - yyv4860 := &yyv4857[yyj4857] - yyv4860.CodecDecodeSelf(d) + yyv4868 := &yyv4865[yyj4865] + yyv4868.CodecDecodeSelf(d) } } else { @@ -62587,17 +62707,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj4857 < len(yyv4857) { - yyv4857 = yyv4857[:yyj4857] - yyc4857 = true - } else if yyj4857 == 0 && yyv4857 == nil { - yyv4857 = []Secret{} - yyc4857 = true + if yyj4865 < len(yyv4865) { + yyv4865 = yyv4865[:yyj4865] + yyc4865 = true + } else if yyj4865 == 0 && yyv4865 == nil { + yyv4865 = []Secret{} + yyc4865 = true } } - yyh4857.End() - if yyc4857 { - *v = yyv4857 + yyh4865.End() + if yyc4865 { + *v = yyv4865 } } @@ -62606,10 +62726,10 @@ func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4861 := range v { + for _, yyv4869 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4862 := &yyv4861 - yy4862.CodecEncodeSelf(e) + yy4870 := &yyv4869 + yy4870.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62619,83 +62739,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4863 := *v - yyh4863, yyl4863 := z.DecSliceHelperStart() - var yyc4863 bool - if yyl4863 == 0 { - if yyv4863 == nil { - yyv4863 = []ConfigMap{} - yyc4863 = true - } else if len(yyv4863) != 0 { - yyv4863 = yyv4863[:0] - yyc4863 = true + yyv4871 := *v + yyh4871, yyl4871 := z.DecSliceHelperStart() + var yyc4871 bool + if yyl4871 == 0 { + if yyv4871 == nil { + yyv4871 = []ConfigMap{} + yyc4871 = true + } else if len(yyv4871) != 0 { + yyv4871 = yyv4871[:0] + yyc4871 = true } - } else if yyl4863 > 0 { - var yyrr4863, yyrl4863 int - var yyrt4863 bool - if yyl4863 > cap(yyv4863) { + } else if yyl4871 > 0 { + var yyrr4871, yyrl4871 int + var yyrt4871 bool + if yyl4871 > cap(yyv4871) { - yyrg4863 := len(yyv4863) > 0 - yyv24863 := yyv4863 - yyrl4863, yyrt4863 = z.DecInferLen(yyl4863, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4863 { - if yyrl4863 <= cap(yyv4863) { - yyv4863 = yyv4863[:yyrl4863] + yyrg4871 := len(yyv4871) > 0 + yyv24871 := yyv4871 + yyrl4871, yyrt4871 = z.DecInferLen(yyl4871, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4871 { + if yyrl4871 <= cap(yyv4871) { + yyv4871 = yyv4871[:yyrl4871] } else { - yyv4863 = make([]ConfigMap, yyrl4863) + yyv4871 = make([]ConfigMap, yyrl4871) } } else { - yyv4863 = make([]ConfigMap, yyrl4863) + yyv4871 = make([]ConfigMap, yyrl4871) } - yyc4863 = true - yyrr4863 = len(yyv4863) - if yyrg4863 { - copy(yyv4863, yyv24863) + yyc4871 = true + yyrr4871 = len(yyv4871) + if yyrg4871 { + copy(yyv4871, yyv24871) } - } else if yyl4863 != len(yyv4863) { - yyv4863 = yyv4863[:yyl4863] - yyc4863 = true + } else if yyl4871 != len(yyv4871) { + yyv4871 = yyv4871[:yyl4871] + yyc4871 = true } - yyj4863 := 0 - for ; yyj4863 < yyrr4863; yyj4863++ { - yyh4863.ElemContainerState(yyj4863) + yyj4871 := 0 + for ; yyj4871 < yyrr4871; yyj4871++ { + yyh4871.ElemContainerState(yyj4871) if r.TryDecodeAsNil() { - yyv4863[yyj4863] = ConfigMap{} + yyv4871[yyj4871] = ConfigMap{} } else { - yyv4864 := &yyv4863[yyj4863] - yyv4864.CodecDecodeSelf(d) + yyv4872 := &yyv4871[yyj4871] + yyv4872.CodecDecodeSelf(d) } } - if yyrt4863 { - for ; yyj4863 < yyl4863; yyj4863++ { - yyv4863 = append(yyv4863, ConfigMap{}) - yyh4863.ElemContainerState(yyj4863) + if yyrt4871 { + for ; yyj4871 < yyl4871; yyj4871++ { + yyv4871 = append(yyv4871, ConfigMap{}) + yyh4871.ElemContainerState(yyj4871) if r.TryDecodeAsNil() { - yyv4863[yyj4863] = ConfigMap{} + yyv4871[yyj4871] = ConfigMap{} } else { - yyv4865 := &yyv4863[yyj4863] - yyv4865.CodecDecodeSelf(d) + yyv4873 := &yyv4871[yyj4871] + yyv4873.CodecDecodeSelf(d) } } } } else { - yyj4863 := 0 - for ; !r.CheckBreak(); yyj4863++ { + yyj4871 := 0 + for ; !r.CheckBreak(); yyj4871++ { - if yyj4863 >= len(yyv4863) { - yyv4863 = append(yyv4863, ConfigMap{}) // var yyz4863 ConfigMap - yyc4863 = true + if yyj4871 >= len(yyv4871) { + yyv4871 = append(yyv4871, ConfigMap{}) // var yyz4871 ConfigMap + yyc4871 = true } - yyh4863.ElemContainerState(yyj4863) - if yyj4863 < len(yyv4863) { + yyh4871.ElemContainerState(yyj4871) + if yyj4871 < len(yyv4871) { if r.TryDecodeAsNil() { - yyv4863[yyj4863] = ConfigMap{} + yyv4871[yyj4871] = ConfigMap{} } else { - yyv4866 := &yyv4863[yyj4863] - yyv4866.CodecDecodeSelf(d) + yyv4874 := &yyv4871[yyj4871] + yyv4874.CodecDecodeSelf(d) } } else { @@ -62703,17 +62823,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj4863 < len(yyv4863) { - yyv4863 = yyv4863[:yyj4863] - yyc4863 = true - } else if yyj4863 == 0 && yyv4863 == nil { - yyv4863 = []ConfigMap{} - yyc4863 = true + if yyj4871 < len(yyv4871) { + yyv4871 = yyv4871[:yyj4871] + yyc4871 = true + } else if yyj4871 == 0 && yyv4871 == nil { + yyv4871 = []ConfigMap{} + yyc4871 = true } } - yyh4863.End() - if yyc4863 { - *v = yyv4863 + yyh4871.End() + if yyc4871 { + *v = yyv4871 } } @@ -62722,10 +62842,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4867 := range v { + for _, yyv4875 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4868 := &yyv4867 - yy4868.CodecEncodeSelf(e) + yy4876 := &yyv4875 + yy4876.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62735,83 +62855,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4869 := *v - yyh4869, yyl4869 := z.DecSliceHelperStart() - var yyc4869 bool - if yyl4869 == 0 { - if yyv4869 == nil { - yyv4869 = []ComponentCondition{} - yyc4869 = true - } else if len(yyv4869) != 0 { - yyv4869 = yyv4869[:0] - yyc4869 = true + yyv4877 := *v + yyh4877, yyl4877 := z.DecSliceHelperStart() + var yyc4877 bool + if yyl4877 == 0 { + if yyv4877 == nil { + yyv4877 = []ComponentCondition{} + yyc4877 = true + } else if len(yyv4877) != 0 { + yyv4877 = yyv4877[:0] + yyc4877 = true } - } else if yyl4869 > 0 { - var yyrr4869, yyrl4869 int - var yyrt4869 bool - if yyl4869 > cap(yyv4869) { + } else if yyl4877 > 0 { + var yyrr4877, yyrl4877 int + var yyrt4877 bool + if yyl4877 > cap(yyv4877) { - yyrg4869 := len(yyv4869) > 0 - yyv24869 := yyv4869 - yyrl4869, yyrt4869 = z.DecInferLen(yyl4869, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4869 { - if yyrl4869 <= cap(yyv4869) { - yyv4869 = yyv4869[:yyrl4869] + yyrg4877 := len(yyv4877) > 0 + yyv24877 := yyv4877 + yyrl4877, yyrt4877 = z.DecInferLen(yyl4877, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4877 { + if yyrl4877 <= cap(yyv4877) { + yyv4877 = yyv4877[:yyrl4877] } else { - yyv4869 = make([]ComponentCondition, yyrl4869) + yyv4877 = make([]ComponentCondition, yyrl4877) } } else { - yyv4869 = make([]ComponentCondition, yyrl4869) + yyv4877 = make([]ComponentCondition, yyrl4877) } - yyc4869 = true - yyrr4869 = len(yyv4869) - if yyrg4869 { - copy(yyv4869, yyv24869) + yyc4877 = true + yyrr4877 = len(yyv4877) + if yyrg4877 { + copy(yyv4877, yyv24877) } - } else if yyl4869 != len(yyv4869) { - yyv4869 = yyv4869[:yyl4869] - yyc4869 = true + } else if yyl4877 != len(yyv4877) { + yyv4877 = yyv4877[:yyl4877] + yyc4877 = true } - yyj4869 := 0 - for ; yyj4869 < yyrr4869; yyj4869++ { - yyh4869.ElemContainerState(yyj4869) + yyj4877 := 0 + for ; yyj4877 < yyrr4877; yyj4877++ { + yyh4877.ElemContainerState(yyj4877) if r.TryDecodeAsNil() { - yyv4869[yyj4869] = ComponentCondition{} + yyv4877[yyj4877] = ComponentCondition{} } else { - yyv4870 := &yyv4869[yyj4869] - yyv4870.CodecDecodeSelf(d) + yyv4878 := &yyv4877[yyj4877] + yyv4878.CodecDecodeSelf(d) } } - if yyrt4869 { - for ; yyj4869 < yyl4869; yyj4869++ { - yyv4869 = append(yyv4869, ComponentCondition{}) - yyh4869.ElemContainerState(yyj4869) + if yyrt4877 { + for ; yyj4877 < yyl4877; yyj4877++ { + yyv4877 = append(yyv4877, ComponentCondition{}) + yyh4877.ElemContainerState(yyj4877) if r.TryDecodeAsNil() { - yyv4869[yyj4869] = ComponentCondition{} + yyv4877[yyj4877] = ComponentCondition{} } else { - yyv4871 := &yyv4869[yyj4869] - yyv4871.CodecDecodeSelf(d) + yyv4879 := &yyv4877[yyj4877] + yyv4879.CodecDecodeSelf(d) } } } } else { - yyj4869 := 0 - for ; !r.CheckBreak(); yyj4869++ { + yyj4877 := 0 + for ; !r.CheckBreak(); yyj4877++ { - if yyj4869 >= len(yyv4869) { - yyv4869 = append(yyv4869, ComponentCondition{}) // var yyz4869 ComponentCondition - yyc4869 = true + if yyj4877 >= len(yyv4877) { + yyv4877 = append(yyv4877, ComponentCondition{}) // var yyz4877 ComponentCondition + yyc4877 = true } - yyh4869.ElemContainerState(yyj4869) - if yyj4869 < len(yyv4869) { + yyh4877.ElemContainerState(yyj4877) + if yyj4877 < len(yyv4877) { if r.TryDecodeAsNil() { - yyv4869[yyj4869] = ComponentCondition{} + yyv4877[yyj4877] = ComponentCondition{} } else { - yyv4872 := &yyv4869[yyj4869] - yyv4872.CodecDecodeSelf(d) + yyv4880 := &yyv4877[yyj4877] + yyv4880.CodecDecodeSelf(d) } } else { @@ -62819,17 +62939,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj4869 < len(yyv4869) { - yyv4869 = yyv4869[:yyj4869] - yyc4869 = true - } else if yyj4869 == 0 && yyv4869 == nil { - yyv4869 = []ComponentCondition{} - yyc4869 = true + if yyj4877 < len(yyv4877) { + yyv4877 = yyv4877[:yyj4877] + yyc4877 = true + } else if yyj4877 == 0 && yyv4877 == nil { + yyv4877 = []ComponentCondition{} + yyc4877 = true } } - yyh4869.End() - if yyc4869 { - *v = yyv4869 + yyh4877.End() + if yyc4877 { + *v = yyv4877 } } @@ -62838,10 +62958,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4873 := range v { + for _, yyv4881 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4874 := &yyv4873 - yy4874.CodecEncodeSelf(e) + yy4882 := &yyv4881 + yy4882.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62851,83 +62971,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4875 := *v - yyh4875, yyl4875 := z.DecSliceHelperStart() - var yyc4875 bool - if yyl4875 == 0 { - if yyv4875 == nil { - yyv4875 = []ComponentStatus{} - yyc4875 = true - } else if len(yyv4875) != 0 { - yyv4875 = yyv4875[:0] - yyc4875 = true + yyv4883 := *v + yyh4883, yyl4883 := z.DecSliceHelperStart() + var yyc4883 bool + if yyl4883 == 0 { + if yyv4883 == nil { + yyv4883 = []ComponentStatus{} + yyc4883 = true + } else if len(yyv4883) != 0 { + yyv4883 = yyv4883[:0] + yyc4883 = true } - } else if yyl4875 > 0 { - var yyrr4875, yyrl4875 int - var yyrt4875 bool - if yyl4875 > cap(yyv4875) { + } else if yyl4883 > 0 { + var yyrr4883, yyrl4883 int + var yyrt4883 bool + if yyl4883 > cap(yyv4883) { - yyrg4875 := len(yyv4875) > 0 - yyv24875 := yyv4875 - yyrl4875, yyrt4875 = z.DecInferLen(yyl4875, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4875 { - if yyrl4875 <= cap(yyv4875) { - yyv4875 = yyv4875[:yyrl4875] + 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 { - yyv4875 = make([]ComponentStatus, yyrl4875) + yyv4883 = make([]ComponentStatus, yyrl4883) } } else { - yyv4875 = make([]ComponentStatus, yyrl4875) + yyv4883 = make([]ComponentStatus, yyrl4883) } - yyc4875 = true - yyrr4875 = len(yyv4875) - if yyrg4875 { - copy(yyv4875, yyv24875) + yyc4883 = true + yyrr4883 = len(yyv4883) + if yyrg4883 { + copy(yyv4883, yyv24883) } - } else if yyl4875 != len(yyv4875) { - yyv4875 = yyv4875[:yyl4875] - yyc4875 = true + } else if yyl4883 != len(yyv4883) { + yyv4883 = yyv4883[:yyl4883] + yyc4883 = true } - yyj4875 := 0 - for ; yyj4875 < yyrr4875; yyj4875++ { - yyh4875.ElemContainerState(yyj4875) + yyj4883 := 0 + for ; yyj4883 < yyrr4883; yyj4883++ { + yyh4883.ElemContainerState(yyj4883) if r.TryDecodeAsNil() { - yyv4875[yyj4875] = ComponentStatus{} + yyv4883[yyj4883] = ComponentStatus{} } else { - yyv4876 := &yyv4875[yyj4875] - yyv4876.CodecDecodeSelf(d) + yyv4884 := &yyv4883[yyj4883] + yyv4884.CodecDecodeSelf(d) } } - if yyrt4875 { - for ; yyj4875 < yyl4875; yyj4875++ { - yyv4875 = append(yyv4875, ComponentStatus{}) - yyh4875.ElemContainerState(yyj4875) + if yyrt4883 { + for ; yyj4883 < yyl4883; yyj4883++ { + yyv4883 = append(yyv4883, ComponentStatus{}) + yyh4883.ElemContainerState(yyj4883) if r.TryDecodeAsNil() { - yyv4875[yyj4875] = ComponentStatus{} + yyv4883[yyj4883] = ComponentStatus{} } else { - yyv4877 := &yyv4875[yyj4875] - yyv4877.CodecDecodeSelf(d) + yyv4885 := &yyv4883[yyj4883] + yyv4885.CodecDecodeSelf(d) } } } } else { - yyj4875 := 0 - for ; !r.CheckBreak(); yyj4875++ { + yyj4883 := 0 + for ; !r.CheckBreak(); yyj4883++ { - if yyj4875 >= len(yyv4875) { - yyv4875 = append(yyv4875, ComponentStatus{}) // var yyz4875 ComponentStatus - yyc4875 = true + if yyj4883 >= len(yyv4883) { + yyv4883 = append(yyv4883, ComponentStatus{}) // var yyz4883 ComponentStatus + yyc4883 = true } - yyh4875.ElemContainerState(yyj4875) - if yyj4875 < len(yyv4875) { + yyh4883.ElemContainerState(yyj4883) + if yyj4883 < len(yyv4883) { if r.TryDecodeAsNil() { - yyv4875[yyj4875] = ComponentStatus{} + yyv4883[yyj4883] = ComponentStatus{} } else { - yyv4878 := &yyv4875[yyj4875] - yyv4878.CodecDecodeSelf(d) + yyv4886 := &yyv4883[yyj4883] + yyv4886.CodecDecodeSelf(d) } } else { @@ -62935,17 +63055,17 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj4875 < len(yyv4875) { - yyv4875 = yyv4875[:yyj4875] - yyc4875 = true - } else if yyj4875 == 0 && yyv4875 == nil { - yyv4875 = []ComponentStatus{} - yyc4875 = true + if yyj4883 < len(yyv4883) { + yyv4883 = yyv4883[:yyj4883] + yyc4883 = true + } else if yyj4883 == 0 && yyv4883 == nil { + yyv4883 = []ComponentStatus{} + yyc4883 = true } } - yyh4875.End() - if yyc4875 { - *v = yyv4875 + yyh4883.End() + if yyc4883 { + *v = yyv4883 } } @@ -62954,10 +63074,10 @@ func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4879 := range v { + for _, yyv4887 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4880 := &yyv4879 - yy4880.CodecEncodeSelf(e) + yy4888 := &yyv4887 + yy4888.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62967,83 +63087,83 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4881 := *v - yyh4881, yyl4881 := z.DecSliceHelperStart() - var yyc4881 bool - if yyl4881 == 0 { - if yyv4881 == nil { - yyv4881 = []DownwardAPIVolumeFile{} - yyc4881 = true - } else if len(yyv4881) != 0 { - yyv4881 = yyv4881[:0] - yyc4881 = true + yyv4889 := *v + yyh4889, yyl4889 := z.DecSliceHelperStart() + var yyc4889 bool + if yyl4889 == 0 { + if yyv4889 == nil { + yyv4889 = []DownwardAPIVolumeFile{} + yyc4889 = true + } else if len(yyv4889) != 0 { + yyv4889 = yyv4889[:0] + yyc4889 = true } - } else if yyl4881 > 0 { - var yyrr4881, yyrl4881 int - var yyrt4881 bool - if yyl4881 > cap(yyv4881) { + } else if yyl4889 > 0 { + var yyrr4889, yyrl4889 int + var yyrt4889 bool + if yyl4889 > cap(yyv4889) { - yyrg4881 := len(yyv4881) > 0 - yyv24881 := yyv4881 - yyrl4881, yyrt4881 = z.DecInferLen(yyl4881, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4881 { - if yyrl4881 <= cap(yyv4881) { - yyv4881 = yyv4881[:yyrl4881] + yyrg4889 := len(yyv4889) > 0 + yyv24889 := yyv4889 + yyrl4889, yyrt4889 = z.DecInferLen(yyl4889, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4889 { + if yyrl4889 <= cap(yyv4889) { + yyv4889 = yyv4889[:yyrl4889] } else { - yyv4881 = make([]DownwardAPIVolumeFile, yyrl4881) + yyv4889 = make([]DownwardAPIVolumeFile, yyrl4889) } } else { - yyv4881 = make([]DownwardAPIVolumeFile, yyrl4881) + yyv4889 = make([]DownwardAPIVolumeFile, yyrl4889) } - yyc4881 = true - yyrr4881 = len(yyv4881) - if yyrg4881 { - copy(yyv4881, yyv24881) + yyc4889 = true + yyrr4889 = len(yyv4889) + if yyrg4889 { + copy(yyv4889, yyv24889) } - } else if yyl4881 != len(yyv4881) { - yyv4881 = yyv4881[:yyl4881] - yyc4881 = true + } else if yyl4889 != len(yyv4889) { + yyv4889 = yyv4889[:yyl4889] + yyc4889 = true } - yyj4881 := 0 - for ; yyj4881 < yyrr4881; yyj4881++ { - yyh4881.ElemContainerState(yyj4881) + yyj4889 := 0 + for ; yyj4889 < yyrr4889; yyj4889++ { + yyh4889.ElemContainerState(yyj4889) if r.TryDecodeAsNil() { - yyv4881[yyj4881] = DownwardAPIVolumeFile{} + yyv4889[yyj4889] = DownwardAPIVolumeFile{} } else { - yyv4882 := &yyv4881[yyj4881] - yyv4882.CodecDecodeSelf(d) + yyv4890 := &yyv4889[yyj4889] + yyv4890.CodecDecodeSelf(d) } } - if yyrt4881 { - for ; yyj4881 < yyl4881; yyj4881++ { - yyv4881 = append(yyv4881, DownwardAPIVolumeFile{}) - yyh4881.ElemContainerState(yyj4881) + if yyrt4889 { + for ; yyj4889 < yyl4889; yyj4889++ { + yyv4889 = append(yyv4889, DownwardAPIVolumeFile{}) + yyh4889.ElemContainerState(yyj4889) if r.TryDecodeAsNil() { - yyv4881[yyj4881] = DownwardAPIVolumeFile{} + yyv4889[yyj4889] = DownwardAPIVolumeFile{} } else { - yyv4883 := &yyv4881[yyj4881] - yyv4883.CodecDecodeSelf(d) + yyv4891 := &yyv4889[yyj4889] + yyv4891.CodecDecodeSelf(d) } } } } else { - yyj4881 := 0 - for ; !r.CheckBreak(); yyj4881++ { + yyj4889 := 0 + for ; !r.CheckBreak(); yyj4889++ { - if yyj4881 >= len(yyv4881) { - yyv4881 = append(yyv4881, DownwardAPIVolumeFile{}) // var yyz4881 DownwardAPIVolumeFile - yyc4881 = true + if yyj4889 >= len(yyv4889) { + yyv4889 = append(yyv4889, DownwardAPIVolumeFile{}) // var yyz4889 DownwardAPIVolumeFile + yyc4889 = true } - yyh4881.ElemContainerState(yyj4881) - if yyj4881 < len(yyv4881) { + yyh4889.ElemContainerState(yyj4889) + if yyj4889 < len(yyv4889) { if r.TryDecodeAsNil() { - yyv4881[yyj4881] = DownwardAPIVolumeFile{} + yyv4889[yyj4889] = DownwardAPIVolumeFile{} } else { - yyv4884 := &yyv4881[yyj4881] - yyv4884.CodecDecodeSelf(d) + yyv4892 := &yyv4889[yyj4889] + yyv4892.CodecDecodeSelf(d) } } else { @@ -63051,16 +63171,16 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil } } - if yyj4881 < len(yyv4881) { - yyv4881 = yyv4881[:yyj4881] - yyc4881 = true - } else if yyj4881 == 0 && yyv4881 == nil { - yyv4881 = []DownwardAPIVolumeFile{} - yyc4881 = true + if yyj4889 < len(yyv4889) { + yyv4889 = yyv4889[:yyj4889] + yyc4889 = true + } else if yyj4889 == 0 && yyv4889 == nil { + yyv4889 = []DownwardAPIVolumeFile{} + yyc4889 = true } } - yyh4881.End() - if yyc4881 { - *v = yyv4881 + yyh4889.End() + if yyc4889 { + *v = yyv4889 } } diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/types.go b/staging/src/k8s.io/client-go/pkg/api/v1/types.go index 4ff20a108e8..9f2cf1126c9 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/types.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/types.go @@ -2108,6 +2108,7 @@ type PodSpec struct { // +optional Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` // If specified, the pod's scheduling constraints + // +optional Affinity *Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` } @@ -2155,6 +2156,18 @@ type PodSecurityContext struct { FSGroup *int64 `json:"fsGroup,omitempty" protobuf:"varint,5,opt,name=fsGroup"` } +// PodQOSClass defines the supported qos classes of Pods. +type PodQOSClass string + +const ( + // PodQOSGuaranteed is the Guaranteed qos class. + PodQOSGuaranteed PodQOSClass = "Guaranteed" + // PodQOSBurstable is the Burstable qos class. + PodQOSBurstable PodQOSClass = "Burstable" + // PodQOSBestEffort is the BestEffort qos class. + PodQOSBestEffort PodQOSClass = "BestEffort" +) + // PodStatus represents information about the status of a pod. Status may trail the actual // state of a system. type PodStatus struct { @@ -2198,6 +2211,11 @@ type PodStatus struct { // More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses // +optional ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` + // The Quality of Service (QOS) classification assigned to the pod based on resource requirements + // See PodQOSClass type for available QOS classes + // More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md + // +optional + QOSClass PodQOSClass `json:"qosClass,omitempty" protobuf:"bytes,9,rep,name=qosClass"` } // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded @@ -3105,6 +3123,7 @@ type NodeList struct { Items []Node `json:"items" protobuf:"bytes,2,rep,name=items"` } +// FinalizerName is the name identifying a finalizer during namespace lifecycle. type FinalizerName string // These are internal finalizer values to Kubernetes, must be qualified name unless defined here diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go b/staging/src/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go index 58c374a4551..d7dbcea4006 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go @@ -1274,6 +1274,7 @@ var map_PodSpec = map[string]string{ "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.", + "affinity": "If specified, the pod's scheduling constraints", } func (PodSpec) SwaggerDoc() map[string]string { @@ -1290,6 +1291,7 @@ var map_PodStatus = map[string]string{ "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://kubernetes.io/docs/user-guide/pod-states#container-statuses", + "qosClass": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md", } func (PodStatus) SwaggerDoc() map[string]string { diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go b/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go index bc3bc505746..aad7d80e446 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go @@ -3064,6 +3064,7 @@ func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conv out.ImagePullSecrets = *(*[]api.LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.Hostname = in.Hostname out.Subdomain = in.Subdomain + out.Affinity = (*api.Affinity)(unsafe.Pointer(in.Affinity)) return nil } @@ -3100,6 +3101,7 @@ func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conv out.ImagePullSecrets = *(*[]LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.Hostname = in.Hostname out.Subdomain = in.Subdomain + out.Affinity = (*Affinity)(unsafe.Pointer(in.Affinity)) return nil } @@ -3113,6 +3115,7 @@ func autoConvert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus out.StartTime = (*meta_v1.Time)(unsafe.Pointer(in.StartTime)) out.InitContainerStatuses = *(*[]api.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) out.ContainerStatuses = *(*[]api.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) + out.QOSClass = api.PodQOSClass(in.QOSClass) return nil } @@ -3128,6 +3131,7 @@ func autoConvert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus out.HostIP = in.HostIP out.PodIP = in.PodIP out.StartTime = (*meta_v1.Time)(unsafe.Pointer(in.StartTime)) + out.QOSClass = PodQOSClass(in.QOSClass) out.InitContainerStatuses = *(*[]ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) out.ContainerStatuses = *(*[]ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) return nil diff --git a/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go b/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go index 528d452c9df..7ab30e66864 100644 --- a/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go +++ b/staging/src/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go @@ -2660,6 +2660,15 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) } out.Hostname = in.Hostname out.Subdomain = in.Subdomain + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(Affinity) + if err := DeepCopy_v1_Affinity(*in, *out, c); err != nil { + return err + } + } else { + out.Affinity = nil + } return nil } } @@ -2713,6 +2722,7 @@ func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner } else { out.ContainerStatuses = nil } + out.QOSClass = in.QOSClass return nil } } diff --git a/staging/src/k8s.io/client-go/pkg/api/validation/path/name.go b/staging/src/k8s.io/client-go/pkg/api/validation/path/name.go index 981d9bb465c..a50cd089dfb 100644 --- a/staging/src/k8s.io/client-go/pkg/api/validation/path/name.go +++ b/staging/src/k8s.io/client-go/pkg/api/validation/path/name.go @@ -35,25 +35,27 @@ func IsValidPathSegmentName(name string) []string { } } + var errors []string for _, illegalContent := range NameMayNotContain { if strings.Contains(name, illegalContent) { - return []string{fmt.Sprintf(`may not contain '%s'`, illegalContent)} + errors = append(errors, fmt.Sprintf(`may not contain '%s'`, illegalContent)) } } - return nil + return errors } // IsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment // It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid func IsValidPathSegmentPrefix(name string) []string { + var errors []string for _, illegalContent := range NameMayNotContain { if strings.Contains(name, illegalContent) { - return []string{fmt.Sprintf(`may not contain '%s'`, illegalContent)} + errors = append(errors, fmt.Sprintf(`may not contain '%s'`, illegalContent)) } } - return nil + return errors } // ValidatePathSegmentName validates the name can be safely encoded as a path segment diff --git a/staging/src/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go b/staging/src/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go index bc2b59aebd4..16ecb643af6 100644 --- a/staging/src/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go +++ b/staging/src/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go @@ -2699,6 +2699,15 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) } out.Hostname = in.Hostname out.Subdomain = in.Subdomain + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(Affinity) + if err := DeepCopy_api_Affinity(*in, *out, c); err != nil { + return err + } + } else { + out.Affinity = nil + } return nil } } @@ -2730,6 +2739,7 @@ func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Clone } else { out.StartTime = nil } + out.QOSClass = in.QOSClass if in.InitContainerStatuses != nil { in, out := &in.InitContainerStatuses, &out.InitContainerStatuses *out = make([]ContainerStatus, len(*in)) diff --git a/staging/src/k8s.io/client-go/pkg/apimachinery/types.go b/staging/src/k8s.io/client-go/pkg/apimachinery/types.go index 0bab7077270..2d7017c955e 100644 --- a/staging/src/k8s.io/client-go/pkg/apimachinery/types.go +++ b/staging/src/k8s.io/client-go/pkg/apimachinery/types.go @@ -32,12 +32,6 @@ type GroupMeta struct { // GroupVersions is Group + all versions in that group. GroupVersions []schema.GroupVersion - // Codec is the default codec for serializing output that should use - // the preferred version. Use this Codec when writing to - // disk, a data store that is not dynamically versioned, or in tests. - // This codec can decode any object that the schema is aware of. - Codec runtime.Codec - // SelfLinker can set or get the SelfLink field of all API types. // TODO: when versioning changes, make this part of each API definition. // TODO(lavalamp): Combine SelfLinker & ResourceVersioner interfaces, force all uses diff --git a/staging/src/k8s.io/client-go/pkg/apis/apps/doc.go b/staging/src/k8s.io/client-go/pkg/apis/apps/doc.go index 2f123702e3d..bca1ff4ef01 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/apps/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/apps/doc.go @@ -15,7 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true -// +groupName=apps.k8s.io package apps diff --git a/staging/src/k8s.io/client-go/pkg/apis/apps/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/apps/types.generated.go deleted file mode 100644 index 261dbdd952d..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/apps/types.generated.go +++ /dev/null @@ -1,1628 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package apps - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg4_resource "k8s.io/client-go/pkg/api/resource" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - pkg5_intstr "k8s.io/client-go/pkg/util/intstr" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg4_resource.Quantity - var v2 pkg1_v1.TypeMeta - var v3 pkg3_types.UID - var v4 pkg5_intstr.IntOrString - var v5 time.Time - _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 - } -} - -func (x *StatefulSet) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true - yyq2[3] = true - yyq2[4] = true - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.ObjectMeta - yy10.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.ObjectMeta - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.Spec - yy13.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Spec - yy14.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.Status - yy16.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Status - yy17.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StatefulSet) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct19 := r.ContainerType() - if yyct19 == codecSelferValueTypeMap1234 { - yyl19 := r.ReadMapStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl19, d) - } - } else if yyct19 == codecSelferValueTypeArray1234 { - yyl19 := r.ReadArrayStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl19, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StatefulSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys20Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys20Slc - var yyhl20 bool = l >= 0 - for yyj20 := 0; ; yyj20++ { - if yyhl20 { - if yyj20 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys20Slc = r.DecodeBytes(yys20Slc, true, true) - yys20 := string(yys20Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys20 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv23 := &x.ObjectMeta - yyv23.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = StatefulSetSpec{} - } else { - yyv24 := &x.Spec - yyv24.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = StatefulSetStatus{} - } else { - yyv25 := &x.Status - yyv25.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys20) - } // end switch yys20 - } // end for yyj20 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj26 int - var yyb26 bool - var yyhl26 bool = l >= 0 - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv29 := &x.ObjectMeta - yyv29.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = StatefulSetSpec{} - } else { - yyv30 := &x.Spec - yyv30.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = StatefulSetStatus{} - } else { - yyv31 := &x.Status - yyv31.CodecDecodeSelf(d) - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *StatefulSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep33 := !z.EncBinary() - yy2arr33 := z.EncBasicHandle().StructToArray - var yyq33 [5]bool - _, _, _ = yysep33, yyq33, yy2arr33 - const yyr33 bool = false - yyq33[0] = x.Replicas != 0 - yyq33[1] = x.Selector != nil - yyq33[3] = len(x.VolumeClaimTemplates) != 0 - var yynn33 int - if yyr33 || yy2arr33 { - r.EncodeArrayStart(5) - } else { - yynn33 = 2 - for _, b := range yyq33 { - if b { - yynn33++ - } - } - r.EncodeMapStart(yynn33) - yynn33 = 0 - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[0] { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq33[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[1] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq33[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym39 := z.EncBinary() - _ = yym39 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy41 := &x.Template - yy41.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy42 := &x.Template - yy42.CodecEncodeSelf(e) - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[3] { - if x.VolumeClaimTemplates == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - h.encSliceapi_PersistentVolumeClaim(([]pkg2_api.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq33[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeClaimTemplates")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.VolumeClaimTemplates == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - h.encSliceapi_PersistentVolumeClaim(([]pkg2_api.PersistentVolumeClaim)(x.VolumeClaimTemplates), e) - } - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StatefulSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym49 := z.DecBinary() - _ = yym49 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct50 := r.ContainerType() - if yyct50 == codecSelferValueTypeMap1234 { - yyl50 := r.ReadMapStart() - if yyl50 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl50, d) - } - } else if yyct50 == codecSelferValueTypeArray1234 { - yyl50 := r.ReadArrayStart() - if yyl50 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl50, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StatefulSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys51Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys51Slc - var yyhl51 bool = l >= 0 - for yyj51 := 0; ; yyj51++ { - if yyhl51 { - if yyj51 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys51Slc = r.DecodeBytes(yys51Slc, true, true) - yys51 := string(yys51Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys51 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym54 := z.DecBinary() - _ = yym54 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv55 := &x.Template - yyv55.CodecDecodeSelf(d) - } - case "volumeClaimTemplates": - if r.TryDecodeAsNil() { - x.VolumeClaimTemplates = nil - } else { - yyv56 := &x.VolumeClaimTemplates - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv56), d) - } - } - case "serviceName": - if r.TryDecodeAsNil() { - x.ServiceName = "" - } else { - x.ServiceName = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys51) - } // end switch yys51 - } // end for yyj51 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StatefulSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj59 int - var yyb59 bool - var yyhl59 bool = l >= 0 - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym62 := z.DecBinary() - _ = yym62 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv63 := &x.Template - yyv63.CodecDecodeSelf(d) - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeClaimTemplates = nil - } else { - yyv64 := &x.VolumeClaimTemplates - yym65 := z.DecBinary() - _ = yym65 - if false { - } else { - h.decSliceapi_PersistentVolumeClaim((*[]pkg2_api.PersistentVolumeClaim)(yyv64), d) - } - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceName = "" - } else { - x.ServiceName = string(r.DecodeString()) - } - for { - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj59-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *StatefulSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym67 := z.EncBinary() - _ = yym67 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep68 := !z.EncBinary() - yy2arr68 := z.EncBasicHandle().StructToArray - var yyq68 [2]bool - _, _, _ = yysep68, yyq68, yy2arr68 - const yyr68 bool = false - yyq68[0] = x.ObservedGeneration != nil - var yynn68 int - if yyr68 || yy2arr68 { - r.EncodeArrayStart(2) - } else { - yynn68 = 1 - for _, b := range yyq68 { - if b { - yynn68++ - } - } - r.EncodeMapStart(yynn68) - yynn68 = 0 - } - if yyr68 || yy2arr68 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq68[0] { - if x.ObservedGeneration == nil { - r.EncodeNil() - } else { - yy70 := *x.ObservedGeneration - yym71 := z.EncBinary() - _ = yym71 - if false { - } else { - r.EncodeInt(int64(yy70)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq68[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ObservedGeneration == nil { - r.EncodeNil() - } else { - yy72 := *x.ObservedGeneration - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeInt(int64(yy72)) - } - } - } - } - if yyr68 || yy2arr68 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym75 := z.EncBinary() - _ = yym75 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym76 := z.EncBinary() - _ = yym76 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr68 || yy2arr68 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StatefulSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym77 := z.DecBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct78 := r.ContainerType() - if yyct78 == codecSelferValueTypeMap1234 { - yyl78 := r.ReadMapStart() - if yyl78 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl78, d) - } - } else if yyct78 == codecSelferValueTypeArray1234 { - yyl78 := r.ReadArrayStart() - if yyl78 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl78, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StatefulSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys79Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys79Slc - var yyhl79 bool = l >= 0 - for yyj79 := 0; ; yyj79++ { - if yyhl79 { - if yyj79 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys79Slc = r.DecodeBytes(yys79Slc, true, true) - yys79 := string(yys79Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys79 { - case "observedGeneration": - if r.TryDecodeAsNil() { - if x.ObservedGeneration != nil { - x.ObservedGeneration = nil - } - } else { - if x.ObservedGeneration == nil { - x.ObservedGeneration = new(int64) - } - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) - } - } - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys79) - } // end switch yys79 - } // end for yyj79 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StatefulSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj83 int - var yyb83 bool - var yyhl83 bool = l >= 0 - yyj83++ - if yyhl83 { - yyb83 = yyj83 > l - } else { - yyb83 = r.CheckBreak() - } - if yyb83 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ObservedGeneration != nil { - x.ObservedGeneration = nil - } - } else { - if x.ObservedGeneration == nil { - x.ObservedGeneration = new(int64) - } - yym85 := z.DecBinary() - _ = yym85 - if false { - } else { - *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) - } - } - yyj83++ - if yyhl83 { - yyb83 = yyj83 > l - } else { - yyb83 = r.CheckBreak() - } - if yyb83 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - for { - yyj83++ - if yyhl83 { - yyb83 = yyj83 > l - } else { - yyb83 = r.CheckBreak() - } - if yyb83 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj83-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *StatefulSetList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym87 := z.EncBinary() - _ = yym87 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep88 := !z.EncBinary() - yy2arr88 := z.EncBasicHandle().StructToArray - var yyq88 [4]bool - _, _, _ = yysep88, yyq88, yy2arr88 - const yyr88 bool = false - yyq88[0] = x.Kind != "" - yyq88[1] = x.APIVersion != "" - yyq88[2] = true - var yynn88 int - if yyr88 || yy2arr88 { - r.EncodeArrayStart(4) - } else { - yynn88 = 1 - for _, b := range yyq88 { - if b { - yynn88++ - } - } - r.EncodeMapStart(yynn88) - yynn88 = 0 - } - if yyr88 || yy2arr88 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq88[0] { - yym90 := z.EncBinary() - _ = yym90 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq88[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym91 := z.EncBinary() - _ = yym91 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr88 || yy2arr88 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq88[1] { - yym93 := z.EncBinary() - _ = yym93 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq88[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym94 := z.EncBinary() - _ = yym94 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr88 || yy2arr88 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq88[2] { - yy96 := &x.ListMeta - yym97 := z.EncBinary() - _ = yym97 - if false { - } else if z.HasExtensions() && z.EncExt(yy96) { - } else { - z.EncFallback(yy96) - } - } else { - r.EncodeNil() - } - } else { - if yyq88[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy98 := &x.ListMeta - yym99 := z.EncBinary() - _ = yym99 - if false { - } else if z.HasExtensions() && z.EncExt(yy98) { - } else { - z.EncFallback(yy98) - } - } - } - if yyr88 || yy2arr88 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym101 := z.EncBinary() - _ = yym101 - if false { - } else { - h.encSliceStatefulSet(([]StatefulSet)(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 { - yym102 := z.EncBinary() - _ = yym102 - if false { - } else { - h.encSliceStatefulSet(([]StatefulSet)(x.Items), e) - } - } - } - if yyr88 || yy2arr88 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StatefulSetList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym103 := z.DecBinary() - _ = yym103 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct104 := r.ContainerType() - if yyct104 == codecSelferValueTypeMap1234 { - yyl104 := r.ReadMapStart() - if yyl104 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl104, d) - } - } else if yyct104 == codecSelferValueTypeArray1234 { - yyl104 := r.ReadArrayStart() - if yyl104 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl104, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StatefulSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys105Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys105Slc - var yyhl105 bool = l >= 0 - for yyj105 := 0; ; yyj105++ { - if yyhl105 { - if yyj105 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys105Slc = r.DecodeBytes(yys105Slc, true, true) - yys105 := string(yys105Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys105 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv108 := &x.ListMeta - yym109 := z.DecBinary() - _ = yym109 - if false { - } else if z.HasExtensions() && z.DecExt(yyv108) { - } else { - z.DecFallback(yyv108, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv110 := &x.Items - yym111 := z.DecBinary() - _ = yym111 - if false { - } else { - h.decSliceStatefulSet((*[]StatefulSet)(yyv110), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys105) - } // end switch yys105 - } // end for yyj105 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StatefulSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj112 int - var yyb112 bool - var yyhl112 bool = l >= 0 - yyj112++ - if yyhl112 { - yyb112 = yyj112 > l - } else { - yyb112 = r.CheckBreak() - } - if yyb112 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj112++ - if yyhl112 { - yyb112 = yyj112 > l - } else { - yyb112 = r.CheckBreak() - } - if yyb112 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj112++ - if yyhl112 { - yyb112 = yyj112 > l - } else { - yyb112 = r.CheckBreak() - } - if yyb112 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv115 := &x.ListMeta - yym116 := z.DecBinary() - _ = yym116 - if false { - } else if z.HasExtensions() && z.DecExt(yyv115) { - } else { - z.DecFallback(yyv115, false) - } - } - yyj112++ - if yyhl112 { - yyb112 = yyj112 > l - } else { - yyb112 = r.CheckBreak() - } - if yyb112 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv117 := &x.Items - yym118 := z.DecBinary() - _ = yym118 - if false { - } else { - h.decSliceStatefulSet((*[]StatefulSet)(yyv117), d) - } - } - for { - yyj112++ - if yyhl112 { - yyb112 = yyj112 > l - } else { - yyb112 = r.CheckBreak() - } - if yyb112 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj112-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceapi_PersistentVolumeClaim(v []pkg2_api.PersistentVolumeClaim, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv119 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy120 := &yyv119 - yy120.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.PersistentVolumeClaim, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv121 := *v - yyh121, yyl121 := z.DecSliceHelperStart() - var yyc121 bool - if yyl121 == 0 { - if yyv121 == nil { - yyv121 = []pkg2_api.PersistentVolumeClaim{} - yyc121 = true - } else if len(yyv121) != 0 { - yyv121 = yyv121[:0] - yyc121 = true - } - } else if yyl121 > 0 { - var yyrr121, yyrl121 int - var yyrt121 bool - if yyl121 > cap(yyv121) { - - yyrg121 := len(yyv121) > 0 - yyv2121 := yyv121 - yyrl121, yyrt121 = z.DecInferLen(yyl121, z.DecBasicHandle().MaxInitLen, 368) - if yyrt121 { - if yyrl121 <= cap(yyv121) { - yyv121 = yyv121[:yyrl121] - } else { - yyv121 = make([]pkg2_api.PersistentVolumeClaim, yyrl121) - } - } else { - yyv121 = make([]pkg2_api.PersistentVolumeClaim, yyrl121) - } - yyc121 = true - yyrr121 = len(yyv121) - if yyrg121 { - copy(yyv121, yyv2121) - } - } else if yyl121 != len(yyv121) { - yyv121 = yyv121[:yyl121] - yyc121 = true - } - yyj121 := 0 - for ; yyj121 < yyrr121; yyj121++ { - yyh121.ElemContainerState(yyj121) - if r.TryDecodeAsNil() { - yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} - } else { - yyv122 := &yyv121[yyj121] - yyv122.CodecDecodeSelf(d) - } - - } - if yyrt121 { - for ; yyj121 < yyl121; yyj121++ { - yyv121 = append(yyv121, pkg2_api.PersistentVolumeClaim{}) - yyh121.ElemContainerState(yyj121) - if r.TryDecodeAsNil() { - yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} - } else { - yyv123 := &yyv121[yyj121] - yyv123.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj121 := 0 - for ; !r.CheckBreak(); yyj121++ { - - if yyj121 >= len(yyv121) { - yyv121 = append(yyv121, pkg2_api.PersistentVolumeClaim{}) // var yyz121 pkg2_api.PersistentVolumeClaim - yyc121 = true - } - yyh121.ElemContainerState(yyj121) - if yyj121 < len(yyv121) { - if r.TryDecodeAsNil() { - yyv121[yyj121] = pkg2_api.PersistentVolumeClaim{} - } else { - yyv124 := &yyv121[yyj121] - yyv124.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj121 < len(yyv121) { - yyv121 = yyv121[:yyj121] - yyc121 = true - } else if yyj121 == 0 && yyv121 == nil { - yyv121 = []pkg2_api.PersistentVolumeClaim{} - yyc121 = true - } - } - yyh121.End() - if yyc121 { - *v = yyv121 - } -} - -func (x codecSelfer1234) encSliceStatefulSet(v []StatefulSet, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv125 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy126 := &yyv125 - yy126.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceStatefulSet(v *[]StatefulSet, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv127 := *v - yyh127, yyl127 := z.DecSliceHelperStart() - var yyc127 bool - if yyl127 == 0 { - if yyv127 == nil { - yyv127 = []StatefulSet{} - yyc127 = true - } else if len(yyv127) != 0 { - yyv127 = yyv127[:0] - yyc127 = true - } - } else if yyl127 > 0 { - var yyrr127, yyrl127 int - var yyrt127 bool - if yyl127 > cap(yyv127) { - - yyrg127 := len(yyv127) > 0 - yyv2127 := yyv127 - yyrl127, yyrt127 = z.DecInferLen(yyl127, z.DecBasicHandle().MaxInitLen, 784) - if yyrt127 { - if yyrl127 <= cap(yyv127) { - yyv127 = yyv127[:yyrl127] - } else { - yyv127 = make([]StatefulSet, yyrl127) - } - } else { - yyv127 = make([]StatefulSet, yyrl127) - } - yyc127 = true - yyrr127 = len(yyv127) - if yyrg127 { - copy(yyv127, yyv2127) - } - } else if yyl127 != len(yyv127) { - yyv127 = yyv127[:yyl127] - yyc127 = true - } - yyj127 := 0 - for ; yyj127 < yyrr127; yyj127++ { - yyh127.ElemContainerState(yyj127) - if r.TryDecodeAsNil() { - yyv127[yyj127] = StatefulSet{} - } else { - yyv128 := &yyv127[yyj127] - yyv128.CodecDecodeSelf(d) - } - - } - if yyrt127 { - for ; yyj127 < yyl127; yyj127++ { - yyv127 = append(yyv127, StatefulSet{}) - yyh127.ElemContainerState(yyj127) - if r.TryDecodeAsNil() { - yyv127[yyj127] = StatefulSet{} - } else { - yyv129 := &yyv127[yyj127] - yyv129.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj127 := 0 - for ; !r.CheckBreak(); yyj127++ { - - if yyj127 >= len(yyv127) { - yyv127 = append(yyv127, StatefulSet{}) // var yyz127 StatefulSet - yyc127 = true - } - yyh127.ElemContainerState(yyj127) - if yyj127 < len(yyv127) { - if r.TryDecodeAsNil() { - yyv127[yyj127] = StatefulSet{} - } else { - yyv130 := &yyv127[yyj127] - yyv130.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj127 < len(yyv127) { - yyv127 = yyv127[:yyj127] - yyc127 = true - } else if yyj127 == 0 && yyv127 == nil { - yyv127 = []StatefulSet{} - yyc127 = true - } - } - yyh127.End() - if yyc127 { - *v = yyv127 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/apps/types.go b/staging/src/k8s.io/client-go/pkg/apis/apps/types.go index a6afd769954..811853b6370 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/apps/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/apps/types.go @@ -30,18 +30,18 @@ import ( // The StatefulSet guarantees that a given network identity will always // map to the same storage identity. type StatefulSet struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Spec defines the desired identities of pods in this set. // +optional - Spec StatefulSetSpec `json:"spec,omitempty"` + Spec StatefulSetSpec // Status is the current status of Pods in this StatefulSet. This data // may be out of date by some window of time. // +optional - Status StatefulSetStatus `json:"status,omitempty"` + Status StatefulSetStatus } // A StatefulSetSpec is the specification of a StatefulSet. @@ -52,19 +52,19 @@ type StatefulSetSpec struct { // If unspecified, defaults to 1. // TODO: Consider a rename of this field. // +optional - Replicas int32 `json:"replicas,omitempty"` + Replicas int32 // 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 // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // 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. - Template api.PodTemplateSpec `json:"template"` + Template api.PodTemplateSpec // VolumeClaimTemplates is a list of claims that pods are allowed to reference. // The StatefulSet controller is responsible for mapping network identities to @@ -74,30 +74,30 @@ type StatefulSetSpec struct { // 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"` + VolumeClaimTemplates []api.PersistentVolumeClaim // 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"` + ServiceName string } // StatefulSetStatus represents the current state of a StatefulSet. type StatefulSetStatus struct { // most recent generation observed by this autoscaler. // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + ObservedGeneration *int64 // Replicas is the number of actual replicas. - Replicas int32 `json:"replicas"` + Replicas int32 } // StatefulSetList is a collection of StatefulSets. type StatefulSetList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` - Items []StatefulSet `json:"items"` + metav1.ListMeta + Items []StatefulSet } diff --git a/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go b/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go index 6e3d4176151..b60cd06caec 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go @@ -18,6 +18,5 @@ limitations under the License. // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/apps // +k8s:openapi-gen=true // +k8s:defaulter-gen=TypeMeta -// +groupName=apps.k8s.io package v1beta1 diff --git a/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go index 5415acadc67..742ac8dd622 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go +++ b/staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go @@ -1577,7 +1577,7 @@ func (x codecSelfer1234) decSliceStatefulSet(v *[]StatefulSet, d *codec1978.Deco yyrg131 := len(yyv131) > 0 yyv2131 := yyv131 - yyrl131, yyrt131 = z.DecInferLen(yyl131, z.DecBasicHandle().MaxInitLen, 800) + yyrl131, yyrt131 = z.DecInferLen(yyl131, z.DecBasicHandle().MaxInitLen, 808) if yyrt131 { if yyrl131 <= cap(yyv131) { yyv131 = yyv131[:yyrl131] diff --git a/staging/src/k8s.io/client-go/pkg/apis/authentication/doc.go b/staging/src/k8s.io/client-go/pkg/apis/authentication/doc.go index 35cb18de8bc..7a8a65b77ff 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/authentication/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/authentication/doc.go @@ -16,5 +16,4 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +groupName=authentication.k8s.io -// +k8s:openapi-gen=true package authentication diff --git a/staging/src/k8s.io/client-go/pkg/apis/authentication/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/authentication/types.generated.go deleted file mode 100644 index 876ebce865e..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/authentication/types.generated.go +++ /dev/null @@ -1,2418 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package authentication - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [19]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = x.Name != "" - yyq2[3] = x.GenerateName != "" - yyq2[4] = x.Namespace != "" - yyq2[5] = x.SelfLink != "" - yyq2[6] = x.UID != "" - yyq2[7] = x.ResourceVersion != "" - yyq2[8] = x.Generation != 0 - yyq2[9] = true - yyq2[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq2[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq2[12] = len(x.Labels) != 0 - yyq2[13] = len(x.Annotations) != 0 - yyq2[14] = len(x.OwnerReferences) != 0 - yyq2[15] = len(x.Finalizers) != 0 - yyq2[16] = x.ClusterName != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(19) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yy31 := &x.CreationTimestamp - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(yy31) { - } else if yym32 { - z.EncBinaryMarshal(yy31) - } else if !yym32 && z.IsJSONHandle() { - z.EncJSONMarshal(yy31) - } else { - z.EncFallback(yy31) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy33 := &x.CreationTimestamp - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(yy33) { - } else if yym34 { - z.EncBinaryMarshal(yy33) - } else if !yym34 && z.IsJSONHandle() { - z.EncJSONMarshal(yy33) - } else { - z.EncFallback(yy33) - } - } - } - var yyn35 bool - if x.ObjectMeta.DeletionTimestamp == nil { - yyn35 = true - goto LABEL35 - } - LABEL35: - if yyr2 || yy2arr2 { - if yyn35 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym36 := z.EncBinary() - _ = yym36 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym36 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym36 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn35 { - r.EncodeNil() - } else { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym37 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym37 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - } - var yyn38 bool - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn38 = true - goto LABEL38 - } - LABEL38: - if yyr2 || yy2arr2 { - if yyn38 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy39 := *x.DeletionGracePeriodSeconds - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeInt(int64(yy39)) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn38 { - r.EncodeNil() - } else { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy41 := *x.DeletionGracePeriodSeconds - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeInt(int64(yy41)) - } - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym54 := z.EncBinary() - _ = yym54 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym57 := z.EncBinary() - _ = yym57 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy59 := &x.Spec - yy59.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy60 := &x.Spec - yy60.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy62 := &x.Status - yy62.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy63 := &x.Status - yy63.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym64 := z.DecBinary() - _ = yym64 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct65 := r.ContainerType() - if yyct65 == codecSelferValueTypeMap1234 { - yyl65 := r.ReadMapStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl65, d) - } - } else if yyct65 == codecSelferValueTypeArray1234 { - yyl65 := r.ReadArrayStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl65, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys66Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys66Slc - var yyhl66 bool = l >= 0 - for yyj66 := 0; ; yyj66++ { - if yyhl66 { - if yyj66 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys66Slc = r.DecodeBytes(yys66Slc, true, true) - yys66 := string(yys66Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys66 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv76 := &x.CreationTimestamp - yym77 := z.DecBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.DecExt(yyv76) { - } else if yym77 { - z.DecBinaryUnmarshal(yyv76) - } else if !yym77 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv76) - } else { - z.DecFallback(yyv76, false) - } - } - case "deletionTimestamp": - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym79 := z.DecBinary() - _ = yym79 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym79 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym79 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv82 := &x.Labels - yym83 := z.DecBinary() - _ = yym83 - if false { - } else { - z.F.DecMapStringStringX(yyv82, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv84 := &x.Annotations - yym85 := z.DecBinary() - _ = yym85 - if false { - } else { - z.F.DecMapStringStringX(yyv84, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv86 := &x.OwnerReferences - yym87 := z.DecBinary() - _ = yym87 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv86), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv88 := &x.Finalizers - yym89 := z.DecBinary() - _ = yym89 - if false { - } else { - z.F.DecSliceStringX(yyv88, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} - } else { - yyv91 := &x.Spec - yyv91.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} - } else { - yyv92 := &x.Status - yyv92.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys66) - } // end switch yys66 - } // end for yyj66 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj93 int - var yyb93 bool - var yyhl93 bool = l >= 0 - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv103 := &x.CreationTimestamp - yym104 := z.DecBinary() - _ = yym104 - if false { - } else if z.HasExtensions() && z.DecExt(yyv103) { - } else if yym104 { - z.DecBinaryUnmarshal(yyv103) - } else if !yym104 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv103) - } else { - z.DecFallback(yyv103, false) - } - } - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym106 := z.DecBinary() - _ = yym106 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym106 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym106 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym108 := z.DecBinary() - _ = yym108 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv109 := &x.Labels - yym110 := z.DecBinary() - _ = yym110 - if false { - } else { - z.F.DecMapStringStringX(yyv109, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv111 := &x.Annotations - yym112 := z.DecBinary() - _ = yym112 - if false { - } else { - z.F.DecMapStringStringX(yyv111, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv113 := &x.OwnerReferences - yym114 := z.DecBinary() - _ = yym114 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv113), d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv115 := &x.Finalizers - yym116 := z.DecBinary() - _ = yym116 - if false { - } else { - z.F.DecSliceStringX(yyv115, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = TokenReviewSpec{} - } else { - yyv118 := &x.Spec - yyv118.CodecDecodeSelf(d) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = TokenReviewStatus{} - } else { - yyv119 := &x.Status - yyv119.CodecDecodeSelf(d) - } - for { - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj93-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym120 := z.EncBinary() - _ = yym120 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep121 := !z.EncBinary() - yy2arr121 := z.EncBasicHandle().StructToArray - var yyq121 [1]bool - _, _, _ = yysep121, yyq121, yy2arr121 - const yyr121 bool = false - var yynn121 int - if yyr121 || yy2arr121 { - r.EncodeArrayStart(1) - } else { - yynn121 = 1 - for _, b := range yyq121 { - if b { - yynn121++ - } - } - r.EncodeMapStart(yynn121) - yynn121 = 0 - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym123 := z.EncBinary() - _ = yym123 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Token)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym124 := z.EncBinary() - _ = yym124 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Token)) - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym125 := z.DecBinary() - _ = yym125 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct126 := r.ContainerType() - if yyct126 == codecSelferValueTypeMap1234 { - yyl126 := r.ReadMapStart() - if yyl126 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl126, d) - } - } else if yyct126 == codecSelferValueTypeArray1234 { - yyl126 := r.ReadArrayStart() - if yyl126 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl126, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys127Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys127Slc - var yyhl127 bool = l >= 0 - for yyj127 := 0; ; yyj127++ { - if yyhl127 { - if yyj127 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys127Slc = r.DecodeBytes(yys127Slc, true, true) - yys127 := string(yys127Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys127 { - case "Token": - if r.TryDecodeAsNil() { - x.Token = "" - } else { - x.Token = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys127) - } // end switch yys127 - } // end for yyj127 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj129 int - var yyb129 bool - var yyhl129 bool = l >= 0 - yyj129++ - if yyhl129 { - yyb129 = yyj129 > l - } else { - yyb129 = r.CheckBreak() - } - if yyb129 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Token = "" - } else { - x.Token = string(r.DecodeString()) - } - for { - yyj129++ - if yyhl129 { - yyb129 = yyj129 > l - } else { - yyb129 = r.CheckBreak() - } - if yyb129 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj129-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym131 := z.EncBinary() - _ = yym131 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep132 := !z.EncBinary() - yy2arr132 := z.EncBasicHandle().StructToArray - var yyq132 [3]bool - _, _, _ = yysep132, yyq132, yy2arr132 - const yyr132 bool = false - var yynn132 int - if yyr132 || yy2arr132 { - r.EncodeArrayStart(3) - } else { - yynn132 = 3 - for _, b := range yyq132 { - if b { - yynn132++ - } - } - r.EncodeMapStart(yynn132) - yynn132 = 0 - } - if yyr132 || yy2arr132 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym134 := z.EncBinary() - _ = yym134 - if false { - } else { - r.EncodeBool(bool(x.Authenticated)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Authenticated")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym135 := z.EncBinary() - _ = yym135 - if false { - } else { - r.EncodeBool(bool(x.Authenticated)) - } - } - if yyr132 || yy2arr132 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy137 := &x.User - yy137.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("User")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy138 := &x.User - yy138.CodecEncodeSelf(e) - } - if yyr132 || yy2arr132 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym140 := z.EncBinary() - _ = yym140 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Error)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Error")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym141 := z.EncBinary() - _ = yym141 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Error)) - } - } - if yyr132 || yy2arr132 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym142 := z.DecBinary() - _ = yym142 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct143 := r.ContainerType() - if yyct143 == codecSelferValueTypeMap1234 { - yyl143 := r.ReadMapStart() - if yyl143 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl143, d) - } - } else if yyct143 == codecSelferValueTypeArray1234 { - yyl143 := r.ReadArrayStart() - if yyl143 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl143, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys144Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys144Slc - var yyhl144 bool = l >= 0 - for yyj144 := 0; ; yyj144++ { - if yyhl144 { - if yyj144 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys144Slc = r.DecodeBytes(yys144Slc, true, true) - yys144 := string(yys144Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys144 { - case "Authenticated": - if r.TryDecodeAsNil() { - x.Authenticated = false - } else { - x.Authenticated = bool(r.DecodeBool()) - } - case "User": - if r.TryDecodeAsNil() { - x.User = UserInfo{} - } else { - yyv146 := &x.User - yyv146.CodecDecodeSelf(d) - } - case "Error": - if r.TryDecodeAsNil() { - x.Error = "" - } else { - x.Error = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys144) - } // end switch yys144 - } // end for yyj144 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj148 int - var yyb148 bool - var yyhl148 bool = l >= 0 - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authenticated = false - } else { - x.Authenticated = bool(r.DecodeBool()) - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = UserInfo{} - } else { - yyv150 := &x.User - yyv150.CodecDecodeSelf(d) - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Error = "" - } else { - x.Error = string(r.DecodeString()) - } - for { - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj148-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym152 := z.EncBinary() - _ = yym152 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep153 := !z.EncBinary() - yy2arr153 := z.EncBasicHandle().StructToArray - var yyq153 [4]bool - _, _, _ = yysep153, yyq153, yy2arr153 - const yyr153 bool = false - var yynn153 int - if yyr153 || yy2arr153 { - r.EncodeArrayStart(4) - } else { - yynn153 = 4 - for _, b := range yyq153 { - if b { - yynn153++ - } - } - r.EncodeMapStart(yynn153) - yynn153 = 0 - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym155 := z.EncBinary() - _ = yym155 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Username")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym156 := z.EncBinary() - _ = yym156 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym158 := z.EncBinary() - _ = yym158 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("UID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym161 := z.EncBinary() - _ = yym161 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Groups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym162 := z.EncBinary() - _ = yym162 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym164 := z.EncBinary() - _ = yym164 - if false { - } else { - h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Extra")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym165 := z.EncBinary() - _ = yym165 - if false { - } else { - h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym166 := z.DecBinary() - _ = yym166 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct167 := r.ContainerType() - if yyct167 == codecSelferValueTypeMap1234 { - yyl167 := r.ReadMapStart() - if yyl167 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl167, d) - } - } else if yyct167 == codecSelferValueTypeArray1234 { - yyl167 := r.ReadArrayStart() - if yyl167 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl167, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys168Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys168Slc - var yyhl168 bool = l >= 0 - for yyj168 := 0; ; yyj168++ { - if yyhl168 { - if yyj168 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys168Slc = r.DecodeBytes(yys168Slc, true, true) - yys168 := string(yys168Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys168 { - case "Username": - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - case "UID": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - case "Groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv171 := &x.Groups - yym172 := z.DecBinary() - _ = yym172 - if false { - } else { - z.F.DecSliceStringX(yyv171, false, d) - } - } - case "Extra": - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv173 := &x.Extra - yym174 := z.DecBinary() - _ = yym174 - if false { - } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv173), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys168) - } // end switch yys168 - } // end for yyj168 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj175 int - var yyb175 bool - var yyhl175 bool = l >= 0 - yyj175++ - if yyhl175 { - yyb175 = yyj175 > l - } else { - yyb175 = r.CheckBreak() - } - if yyb175 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - yyj175++ - if yyhl175 { - yyb175 = yyj175 > l - } else { - yyb175 = r.CheckBreak() - } - if yyb175 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - yyj175++ - if yyhl175 { - yyb175 = yyj175 > l - } else { - yyb175 = r.CheckBreak() - } - if yyb175 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv178 := &x.Groups - yym179 := z.DecBinary() - _ = yym179 - if false { - } else { - z.F.DecSliceStringX(yyv178, false, d) - } - } - yyj175++ - if yyhl175 { - yyb175 = yyj175 > l - } else { - yyb175 = r.CheckBreak() - } - if yyb175 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv180 := &x.Extra - yym181 := z.DecBinary() - _ = yym181 - if false { - } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv180), d) - } - } - for { - yyj175++ - if yyhl175 { - yyb175 = yyj175 > l - } else { - yyb175 = r.CheckBreak() - } - if yyb175 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj175-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym182 := z.EncBinary() - _ = yym182 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - h.encExtraValue((ExtraValue)(x), e) - } - } -} - -func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym183 := z.DecBinary() - _ = yym183 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - h.decExtraValue((*ExtraValue)(x), d) - } -} - -func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg1_v1.OwnerReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv184 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy185 := &yyv184 - yym186 := z.EncBinary() - _ = yym186 - if false { - } else if z.HasExtensions() && z.EncExt(yy185) { - } else { - z.EncFallback(yy185) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg1_v1.OwnerReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv187 := *v - yyh187, yyl187 := z.DecSliceHelperStart() - var yyc187 bool - if yyl187 == 0 { - if yyv187 == nil { - yyv187 = []pkg1_v1.OwnerReference{} - yyc187 = true - } else if len(yyv187) != 0 { - yyv187 = yyv187[:0] - yyc187 = true - } - } else if yyl187 > 0 { - var yyrr187, yyrl187 int - var yyrt187 bool - if yyl187 > cap(yyv187) { - - yyrg187 := len(yyv187) > 0 - yyv2187 := yyv187 - yyrl187, yyrt187 = z.DecInferLen(yyl187, z.DecBasicHandle().MaxInitLen, 72) - if yyrt187 { - if yyrl187 <= cap(yyv187) { - yyv187 = yyv187[:yyrl187] - } else { - yyv187 = make([]pkg1_v1.OwnerReference, yyrl187) - } - } else { - yyv187 = make([]pkg1_v1.OwnerReference, yyrl187) - } - yyc187 = true - yyrr187 = len(yyv187) - if yyrg187 { - copy(yyv187, yyv2187) - } - } else if yyl187 != len(yyv187) { - yyv187 = yyv187[:yyl187] - yyc187 = true - } - yyj187 := 0 - for ; yyj187 < yyrr187; yyj187++ { - yyh187.ElemContainerState(yyj187) - if r.TryDecodeAsNil() { - yyv187[yyj187] = pkg1_v1.OwnerReference{} - } else { - yyv188 := &yyv187[yyj187] - yym189 := z.DecBinary() - _ = yym189 - if false { - } else if z.HasExtensions() && z.DecExt(yyv188) { - } else { - z.DecFallback(yyv188, false) - } - } - - } - if yyrt187 { - for ; yyj187 < yyl187; yyj187++ { - yyv187 = append(yyv187, pkg1_v1.OwnerReference{}) - yyh187.ElemContainerState(yyj187) - if r.TryDecodeAsNil() { - yyv187[yyj187] = pkg1_v1.OwnerReference{} - } else { - yyv190 := &yyv187[yyj187] - yym191 := z.DecBinary() - _ = yym191 - if false { - } else if z.HasExtensions() && z.DecExt(yyv190) { - } else { - z.DecFallback(yyv190, false) - } - } - - } - } - - } else { - yyj187 := 0 - for ; !r.CheckBreak(); yyj187++ { - - if yyj187 >= len(yyv187) { - yyv187 = append(yyv187, pkg1_v1.OwnerReference{}) // var yyz187 pkg1_v1.OwnerReference - yyc187 = true - } - yyh187.ElemContainerState(yyj187) - if yyj187 < len(yyv187) { - if r.TryDecodeAsNil() { - yyv187[yyj187] = pkg1_v1.OwnerReference{} - } else { - yyv192 := &yyv187[yyj187] - yym193 := z.DecBinary() - _ = yym193 - if false { - } else if z.HasExtensions() && z.DecExt(yyv192) { - } else { - z.DecFallback(yyv192, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj187 < len(yyv187) { - yyv187 = yyv187[:yyj187] - yyc187 = true - } else if yyj187 == 0 && yyv187 == nil { - yyv187 = []pkg1_v1.OwnerReference{} - yyc187 = true - } - } - yyh187.End() - if yyc187 { - *v = yyv187 - } -} - -func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk194, yyv194 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym195 := z.EncBinary() - _ = yym195 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk194)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv194 == nil { - r.EncodeNil() - } else { - yyv194.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv196 := *v - yyl196 := r.ReadMapStart() - yybh196 := z.DecBasicHandle() - if yyv196 == nil { - yyrl196, _ := z.DecInferLen(yyl196, yybh196.MaxInitLen, 40) - yyv196 = make(map[string]ExtraValue, yyrl196) - *v = yyv196 - } - var yymk196 string - var yymv196 ExtraValue - var yymg196 bool - if yybh196.MapValueReset { - yymg196 = true - } - if yyl196 > 0 { - for yyj196 := 0; yyj196 < yyl196; yyj196++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk196 = "" - } else { - yymk196 = string(r.DecodeString()) - } - - if yymg196 { - yymv196 = yyv196[yymk196] - } else { - yymv196 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv196 = nil - } else { - yyv198 := &yymv196 - yyv198.CodecDecodeSelf(d) - } - - if yyv196 != nil { - yyv196[yymk196] = yymv196 - } - } - } else if yyl196 < 0 { - for yyj196 := 0; !r.CheckBreak(); yyj196++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk196 = "" - } else { - yymk196 = string(r.DecodeString()) - } - - if yymg196 { - yymv196 = yyv196[yymk196] - } else { - yymv196 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv196 = nil - } else { - yyv200 := &yymv196 - yyv200.CodecDecodeSelf(d) - } - - if yyv196 != nil { - yyv196[yymk196] = yymv196 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv201 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym202 := z.EncBinary() - _ = yym202 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv201)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv203 := *v - yyh203, yyl203 := z.DecSliceHelperStart() - var yyc203 bool - if yyl203 == 0 { - if yyv203 == nil { - yyv203 = []string{} - yyc203 = true - } else if len(yyv203) != 0 { - yyv203 = yyv203[:0] - yyc203 = true - } - } else if yyl203 > 0 { - var yyrr203, yyrl203 int - var yyrt203 bool - if yyl203 > cap(yyv203) { - - yyrl203, yyrt203 = z.DecInferLen(yyl203, z.DecBasicHandle().MaxInitLen, 16) - if yyrt203 { - if yyrl203 <= cap(yyv203) { - yyv203 = yyv203[:yyrl203] - } else { - yyv203 = make([]string, yyrl203) - } - } else { - yyv203 = make([]string, yyrl203) - } - yyc203 = true - yyrr203 = len(yyv203) - } else if yyl203 != len(yyv203) { - yyv203 = yyv203[:yyl203] - yyc203 = true - } - yyj203 := 0 - for ; yyj203 < yyrr203; yyj203++ { - yyh203.ElemContainerState(yyj203) - if r.TryDecodeAsNil() { - yyv203[yyj203] = "" - } else { - yyv203[yyj203] = string(r.DecodeString()) - } - - } - if yyrt203 { - for ; yyj203 < yyl203; yyj203++ { - yyv203 = append(yyv203, "") - yyh203.ElemContainerState(yyj203) - if r.TryDecodeAsNil() { - yyv203[yyj203] = "" - } else { - yyv203[yyj203] = string(r.DecodeString()) - } - - } - } - - } else { - yyj203 := 0 - for ; !r.CheckBreak(); yyj203++ { - - if yyj203 >= len(yyv203) { - yyv203 = append(yyv203, "") // var yyz203 string - yyc203 = true - } - yyh203.ElemContainerState(yyj203) - if yyj203 < len(yyv203) { - if r.TryDecodeAsNil() { - yyv203[yyj203] = "" - } else { - yyv203[yyj203] = string(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj203 < len(yyv203) { - yyv203 = yyv203[:yyj203] - yyc203 = true - } else if yyj203 == 0 && yyv203 == nil { - yyv203 = []string{} - yyc203 = true - } - } - yyh203.End() - if yyc203 { - *v = yyv203 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/authorization/doc.go b/staging/src/k8s.io/client-go/pkg/apis/authorization/doc.go index 4e2deb516e5..df9046f03cb 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/authorization/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/authorization/doc.go @@ -15,7 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true - // +groupName=authorization.k8s.io package authorization diff --git a/staging/src/k8s.io/client-go/pkg/apis/authorization/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/authorization/types.generated.go deleted file mode 100644 index d4b16df2c30..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/authorization/types.generated.go +++ /dev/null @@ -1,5631 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package authorization - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [19]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = x.Name != "" - yyq2[3] = x.GenerateName != "" - yyq2[4] = x.Namespace != "" - yyq2[5] = x.SelfLink != "" - yyq2[6] = x.UID != "" - yyq2[7] = x.ResourceVersion != "" - yyq2[8] = x.Generation != 0 - yyq2[9] = true - yyq2[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq2[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq2[12] = len(x.Labels) != 0 - yyq2[13] = len(x.Annotations) != 0 - yyq2[14] = len(x.OwnerReferences) != 0 - yyq2[15] = len(x.Finalizers) != 0 - yyq2[16] = x.ClusterName != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(19) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yy31 := &x.CreationTimestamp - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(yy31) { - } else if yym32 { - z.EncBinaryMarshal(yy31) - } else if !yym32 && z.IsJSONHandle() { - z.EncJSONMarshal(yy31) - } else { - z.EncFallback(yy31) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy33 := &x.CreationTimestamp - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(yy33) { - } else if yym34 { - z.EncBinaryMarshal(yy33) - } else if !yym34 && z.IsJSONHandle() { - z.EncJSONMarshal(yy33) - } else { - z.EncFallback(yy33) - } - } - } - var yyn35 bool - if x.ObjectMeta.DeletionTimestamp == nil { - yyn35 = true - goto LABEL35 - } - LABEL35: - if yyr2 || yy2arr2 { - if yyn35 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym36 := z.EncBinary() - _ = yym36 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym36 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym36 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn35 { - r.EncodeNil() - } else { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym37 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym37 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - } - var yyn38 bool - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn38 = true - goto LABEL38 - } - LABEL38: - if yyr2 || yy2arr2 { - if yyn38 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy39 := *x.DeletionGracePeriodSeconds - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeInt(int64(yy39)) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn38 { - r.EncodeNil() - } else { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy41 := *x.DeletionGracePeriodSeconds - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeInt(int64(yy41)) - } - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym54 := z.EncBinary() - _ = yym54 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym57 := z.EncBinary() - _ = yym57 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy59 := &x.Spec - yy59.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy60 := &x.Spec - yy60.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy62 := &x.Status - yy62.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy63 := &x.Status - yy63.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym64 := z.DecBinary() - _ = yym64 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct65 := r.ContainerType() - if yyct65 == codecSelferValueTypeMap1234 { - yyl65 := r.ReadMapStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl65, d) - } - } else if yyct65 == codecSelferValueTypeArray1234 { - yyl65 := r.ReadArrayStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl65, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys66Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys66Slc - var yyhl66 bool = l >= 0 - for yyj66 := 0; ; yyj66++ { - if yyhl66 { - if yyj66 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys66Slc = r.DecodeBytes(yys66Slc, true, true) - yys66 := string(yys66Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys66 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv76 := &x.CreationTimestamp - yym77 := z.DecBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.DecExt(yyv76) { - } else if yym77 { - z.DecBinaryUnmarshal(yyv76) - } else if !yym77 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv76) - } else { - z.DecFallback(yyv76, false) - } - } - case "deletionTimestamp": - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym79 := z.DecBinary() - _ = yym79 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym79 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym79 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv82 := &x.Labels - yym83 := z.DecBinary() - _ = yym83 - if false { - } else { - z.F.DecMapStringStringX(yyv82, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv84 := &x.Annotations - yym85 := z.DecBinary() - _ = yym85 - if false { - } else { - z.F.DecMapStringStringX(yyv84, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv86 := &x.OwnerReferences - yym87 := z.DecBinary() - _ = yym87 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv86), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv88 := &x.Finalizers - yym89 := z.DecBinary() - _ = yym89 - if false { - } else { - z.F.DecSliceStringX(yyv88, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv91 := &x.Spec - yyv91.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv92 := &x.Status - yyv92.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys66) - } // end switch yys66 - } // end for yyj66 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj93 int - var yyb93 bool - var yyhl93 bool = l >= 0 - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv103 := &x.CreationTimestamp - yym104 := z.DecBinary() - _ = yym104 - if false { - } else if z.HasExtensions() && z.DecExt(yyv103) { - } else if yym104 { - z.DecBinaryUnmarshal(yyv103) - } else if !yym104 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv103) - } else { - z.DecFallback(yyv103, false) - } - } - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym106 := z.DecBinary() - _ = yym106 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym106 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym106 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym108 := z.DecBinary() - _ = yym108 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv109 := &x.Labels - yym110 := z.DecBinary() - _ = yym110 - if false { - } else { - z.F.DecMapStringStringX(yyv109, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv111 := &x.Annotations - yym112 := z.DecBinary() - _ = yym112 - if false { - } else { - z.F.DecMapStringStringX(yyv111, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv113 := &x.OwnerReferences - yym114 := z.DecBinary() - _ = yym114 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv113), d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv115 := &x.Finalizers - yym116 := z.DecBinary() - _ = yym116 - if false { - } else { - z.F.DecSliceStringX(yyv115, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv118 := &x.Spec - yyv118.CodecDecodeSelf(d) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv119 := &x.Status - yyv119.CodecDecodeSelf(d) - } - for { - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj93-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym120 := z.EncBinary() - _ = yym120 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep121 := !z.EncBinary() - yy2arr121 := z.EncBasicHandle().StructToArray - var yyq121 [19]bool - _, _, _ = yysep121, yyq121, yy2arr121 - const yyr121 bool = false - yyq121[0] = x.Kind != "" - yyq121[1] = x.APIVersion != "" - yyq121[2] = x.Name != "" - yyq121[3] = x.GenerateName != "" - yyq121[4] = x.Namespace != "" - yyq121[5] = x.SelfLink != "" - yyq121[6] = x.UID != "" - yyq121[7] = x.ResourceVersion != "" - yyq121[8] = x.Generation != 0 - yyq121[9] = true - yyq121[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq121[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq121[12] = len(x.Labels) != 0 - yyq121[13] = len(x.Annotations) != 0 - yyq121[14] = len(x.OwnerReferences) != 0 - yyq121[15] = len(x.Finalizers) != 0 - yyq121[16] = x.ClusterName != "" - var yynn121 int - if yyr121 || yy2arr121 { - r.EncodeArrayStart(19) - } else { - yynn121 = 2 - for _, b := range yyq121 { - if b { - yynn121++ - } - } - r.EncodeMapStart(yynn121) - yynn121 = 0 - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[0] { - yym123 := z.EncBinary() - _ = yym123 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym124 := z.EncBinary() - _ = yym124 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[1] { - yym126 := z.EncBinary() - _ = yym126 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym127 := z.EncBinary() - _ = yym127 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[2] { - yym129 := z.EncBinary() - _ = yym129 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym130 := z.EncBinary() - _ = yym130 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[3] { - yym132 := z.EncBinary() - _ = yym132 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym133 := z.EncBinary() - _ = yym133 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[4] { - yym135 := z.EncBinary() - _ = yym135 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym136 := z.EncBinary() - _ = yym136 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[5] { - yym138 := z.EncBinary() - _ = yym138 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym139 := z.EncBinary() - _ = yym139 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[6] { - yym141 := z.EncBinary() - _ = yym141 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym142 := z.EncBinary() - _ = yym142 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[7] { - yym144 := z.EncBinary() - _ = yym144 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym145 := z.EncBinary() - _ = yym145 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[8] { - yym147 := z.EncBinary() - _ = yym147 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq121[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym148 := z.EncBinary() - _ = yym148 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[9] { - yy150 := &x.CreationTimestamp - yym151 := z.EncBinary() - _ = yym151 - if false { - } else if z.HasExtensions() && z.EncExt(yy150) { - } else if yym151 { - z.EncBinaryMarshal(yy150) - } else if !yym151 && z.IsJSONHandle() { - z.EncJSONMarshal(yy150) - } else { - z.EncFallback(yy150) - } - } else { - r.EncodeNil() - } - } else { - if yyq121[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy152 := &x.CreationTimestamp - yym153 := z.EncBinary() - _ = yym153 - if false { - } else if z.HasExtensions() && z.EncExt(yy152) { - } else if yym153 { - z.EncBinaryMarshal(yy152) - } else if !yym153 && z.IsJSONHandle() { - z.EncJSONMarshal(yy152) - } else { - z.EncFallback(yy152) - } - } - } - var yyn154 bool - if x.ObjectMeta.DeletionTimestamp == nil { - yyn154 = true - goto LABEL154 - } - LABEL154: - if yyr121 || yy2arr121 { - if yyn154 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[10] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym155 := z.EncBinary() - _ = yym155 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym155 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym155 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq121[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn154 { - r.EncodeNil() - } else { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym156 := z.EncBinary() - _ = yym156 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym156 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym156 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - } - var yyn157 bool - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn157 = true - goto LABEL157 - } - LABEL157: - if yyr121 || yy2arr121 { - if yyn157 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[11] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy158 := *x.DeletionGracePeriodSeconds - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - r.EncodeInt(int64(yy158)) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq121[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn157 { - r.EncodeNil() - } else { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy160 := *x.DeletionGracePeriodSeconds - yym161 := z.EncBinary() - _ = yym161 - if false { - } else { - r.EncodeInt(int64(yy160)) - } - } - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[12] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym163 := z.EncBinary() - _ = yym163 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq121[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym164 := z.EncBinary() - _ = yym164 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym166 := z.EncBinary() - _ = yym166 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq121[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym167 := z.EncBinary() - _ = yym167 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym169 := z.EncBinary() - _ = yym169 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq121[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym170 := z.EncBinary() - _ = yym170 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym172 := z.EncBinary() - _ = yym172 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq121[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym173 := z.EncBinary() - _ = yym173 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq121[16] { - yym175 := z.EncBinary() - _ = yym175 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq121[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym176 := z.EncBinary() - _ = yym176 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy178 := &x.Spec - yy178.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy179 := &x.Spec - yy179.CodecEncodeSelf(e) - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy181 := &x.Status - yy181.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy182 := &x.Status - yy182.CodecEncodeSelf(e) - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym183 := z.DecBinary() - _ = yym183 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct184 := r.ContainerType() - if yyct184 == codecSelferValueTypeMap1234 { - yyl184 := r.ReadMapStart() - if yyl184 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl184, d) - } - } else if yyct184 == codecSelferValueTypeArray1234 { - yyl184 := r.ReadArrayStart() - if yyl184 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl184, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys185Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys185Slc - var yyhl185 bool = l >= 0 - for yyj185 := 0; ; yyj185++ { - if yyhl185 { - if yyj185 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys185Slc = r.DecodeBytes(yys185Slc, true, true) - yys185 := string(yys185Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys185 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv195 := &x.CreationTimestamp - yym196 := z.DecBinary() - _ = yym196 - if false { - } else if z.HasExtensions() && z.DecExt(yyv195) { - } else if yym196 { - z.DecBinaryUnmarshal(yyv195) - } else if !yym196 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv195) - } else { - z.DecFallback(yyv195, false) - } - } - case "deletionTimestamp": - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym198 := z.DecBinary() - _ = yym198 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym198 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym198 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym200 := z.DecBinary() - _ = yym200 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv201 := &x.Labels - yym202 := z.DecBinary() - _ = yym202 - if false { - } else { - z.F.DecMapStringStringX(yyv201, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv203 := &x.Annotations - yym204 := z.DecBinary() - _ = yym204 - if false { - } else { - z.F.DecMapStringStringX(yyv203, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv205 := &x.OwnerReferences - yym206 := z.DecBinary() - _ = yym206 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv205), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv207 := &x.Finalizers - yym208 := z.DecBinary() - _ = yym208 - if false { - } else { - z.F.DecSliceStringX(yyv207, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} - } else { - yyv210 := &x.Spec - yyv210.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv211 := &x.Status - yyv211.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys185) - } // end switch yys185 - } // end for yyj185 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj212 int - var yyb212 bool - var yyhl212 bool = l >= 0 - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv222 := &x.CreationTimestamp - yym223 := z.DecBinary() - _ = yym223 - if false { - } else if z.HasExtensions() && z.DecExt(yyv222) { - } else if yym223 { - z.DecBinaryUnmarshal(yyv222) - } else if !yym223 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv222) - } else { - z.DecFallback(yyv222, false) - } - } - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym225 := z.DecBinary() - _ = yym225 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym225 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym225 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym227 := z.DecBinary() - _ = yym227 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv228 := &x.Labels - yym229 := z.DecBinary() - _ = yym229 - if false { - } else { - z.F.DecMapStringStringX(yyv228, false, d) - } - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv230 := &x.Annotations - yym231 := z.DecBinary() - _ = yym231 - if false { - } else { - z.F.DecMapStringStringX(yyv230, false, d) - } - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv232 := &x.OwnerReferences - yym233 := z.DecBinary() - _ = yym233 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv232), d) - } - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv234 := &x.Finalizers - yym235 := z.DecBinary() - _ = yym235 - if false { - } else { - z.F.DecSliceStringX(yyv234, false, d) - } - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = SelfSubjectAccessReviewSpec{} - } else { - yyv237 := &x.Spec - yyv237.CodecDecodeSelf(d) - } - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv238 := &x.Status - yyv238.CodecDecodeSelf(d) - } - for { - yyj212++ - if yyhl212 { - yyb212 = yyj212 > l - } else { - yyb212 = r.CheckBreak() - } - if yyb212 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj212-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym239 := z.EncBinary() - _ = yym239 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep240 := !z.EncBinary() - yy2arr240 := z.EncBasicHandle().StructToArray - var yyq240 [19]bool - _, _, _ = yysep240, yyq240, yy2arr240 - const yyr240 bool = false - yyq240[0] = x.Kind != "" - yyq240[1] = x.APIVersion != "" - yyq240[2] = x.Name != "" - yyq240[3] = x.GenerateName != "" - yyq240[4] = x.Namespace != "" - yyq240[5] = x.SelfLink != "" - yyq240[6] = x.UID != "" - yyq240[7] = x.ResourceVersion != "" - yyq240[8] = x.Generation != 0 - yyq240[9] = true - yyq240[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq240[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq240[12] = len(x.Labels) != 0 - yyq240[13] = len(x.Annotations) != 0 - yyq240[14] = len(x.OwnerReferences) != 0 - yyq240[15] = len(x.Finalizers) != 0 - yyq240[16] = x.ClusterName != "" - var yynn240 int - if yyr240 || yy2arr240 { - r.EncodeArrayStart(19) - } else { - yynn240 = 2 - for _, b := range yyq240 { - if b { - yynn240++ - } - } - r.EncodeMapStart(yynn240) - yynn240 = 0 - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[0] { - yym242 := z.EncBinary() - _ = yym242 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym243 := z.EncBinary() - _ = yym243 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[1] { - yym245 := z.EncBinary() - _ = yym245 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym246 := z.EncBinary() - _ = yym246 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[2] { - yym248 := z.EncBinary() - _ = yym248 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym249 := z.EncBinary() - _ = yym249 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[3] { - yym251 := z.EncBinary() - _ = yym251 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym252 := z.EncBinary() - _ = yym252 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[4] { - yym254 := z.EncBinary() - _ = yym254 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym255 := z.EncBinary() - _ = yym255 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[5] { - yym257 := z.EncBinary() - _ = yym257 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym258 := z.EncBinary() - _ = yym258 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[6] { - yym260 := z.EncBinary() - _ = yym260 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym261 := z.EncBinary() - _ = yym261 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[7] { - yym263 := z.EncBinary() - _ = yym263 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym264 := z.EncBinary() - _ = yym264 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[8] { - yym266 := z.EncBinary() - _ = yym266 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq240[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym267 := z.EncBinary() - _ = yym267 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[9] { - yy269 := &x.CreationTimestamp - yym270 := z.EncBinary() - _ = yym270 - if false { - } else if z.HasExtensions() && z.EncExt(yy269) { - } else if yym270 { - z.EncBinaryMarshal(yy269) - } else if !yym270 && z.IsJSONHandle() { - z.EncJSONMarshal(yy269) - } else { - z.EncFallback(yy269) - } - } else { - r.EncodeNil() - } - } else { - if yyq240[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy271 := &x.CreationTimestamp - yym272 := z.EncBinary() - _ = yym272 - if false { - } else if z.HasExtensions() && z.EncExt(yy271) { - } else if yym272 { - z.EncBinaryMarshal(yy271) - } else if !yym272 && z.IsJSONHandle() { - z.EncJSONMarshal(yy271) - } else { - z.EncFallback(yy271) - } - } - } - var yyn273 bool - if x.ObjectMeta.DeletionTimestamp == nil { - yyn273 = true - goto LABEL273 - } - LABEL273: - if yyr240 || yy2arr240 { - if yyn273 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[10] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym274 := z.EncBinary() - _ = yym274 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym274 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym274 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq240[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn273 { - r.EncodeNil() - } else { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym275 := z.EncBinary() - _ = yym275 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym275 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym275 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - } - var yyn276 bool - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn276 = true - goto LABEL276 - } - LABEL276: - if yyr240 || yy2arr240 { - if yyn276 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[11] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy277 := *x.DeletionGracePeriodSeconds - yym278 := z.EncBinary() - _ = yym278 - if false { - } else { - r.EncodeInt(int64(yy277)) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq240[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn276 { - r.EncodeNil() - } else { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy279 := *x.DeletionGracePeriodSeconds - yym280 := z.EncBinary() - _ = yym280 - if false { - } else { - r.EncodeInt(int64(yy279)) - } - } - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[12] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym282 := z.EncBinary() - _ = yym282 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq240[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym283 := z.EncBinary() - _ = yym283 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym285 := z.EncBinary() - _ = yym285 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq240[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym286 := z.EncBinary() - _ = yym286 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym288 := z.EncBinary() - _ = yym288 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq240[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym289 := z.EncBinary() - _ = yym289 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym291 := z.EncBinary() - _ = yym291 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq240[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym292 := z.EncBinary() - _ = yym292 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq240[16] { - yym294 := z.EncBinary() - _ = yym294 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq240[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym295 := z.EncBinary() - _ = yym295 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy297 := &x.Spec - yy297.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy298 := &x.Spec - yy298.CodecEncodeSelf(e) - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy300 := &x.Status - yy300.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy301 := &x.Status - yy301.CodecEncodeSelf(e) - } - if yyr240 || yy2arr240 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym302 := z.DecBinary() - _ = yym302 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct303 := r.ContainerType() - if yyct303 == codecSelferValueTypeMap1234 { - yyl303 := r.ReadMapStart() - if yyl303 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl303, d) - } - } else if yyct303 == codecSelferValueTypeArray1234 { - yyl303 := r.ReadArrayStart() - if yyl303 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl303, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys304Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys304Slc - var yyhl304 bool = l >= 0 - for yyj304 := 0; ; yyj304++ { - if yyhl304 { - if yyj304 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys304Slc = r.DecodeBytes(yys304Slc, true, true) - yys304 := string(yys304Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys304 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv314 := &x.CreationTimestamp - yym315 := z.DecBinary() - _ = yym315 - if false { - } else if z.HasExtensions() && z.DecExt(yyv314) { - } else if yym315 { - z.DecBinaryUnmarshal(yyv314) - } else if !yym315 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv314) - } else { - z.DecFallback(yyv314, false) - } - } - case "deletionTimestamp": - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym317 := z.DecBinary() - _ = yym317 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym317 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym317 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym319 := z.DecBinary() - _ = yym319 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv320 := &x.Labels - yym321 := z.DecBinary() - _ = yym321 - if false { - } else { - z.F.DecMapStringStringX(yyv320, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv322 := &x.Annotations - yym323 := z.DecBinary() - _ = yym323 - if false { - } else { - z.F.DecMapStringStringX(yyv322, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv324 := &x.OwnerReferences - yym325 := z.DecBinary() - _ = yym325 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv324), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv326 := &x.Finalizers - yym327 := z.DecBinary() - _ = yym327 - if false { - } else { - z.F.DecSliceStringX(yyv326, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv329 := &x.Spec - yyv329.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv330 := &x.Status - yyv330.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys304) - } // end switch yys304 - } // end for yyj304 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj331 int - var yyb331 bool - var yyhl331 bool = l >= 0 - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv341 := &x.CreationTimestamp - yym342 := z.DecBinary() - _ = yym342 - if false { - } else if z.HasExtensions() && z.DecExt(yyv341) { - } else if yym342 { - z.DecBinaryUnmarshal(yyv341) - } else if !yym342 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv341) - } else { - z.DecFallback(yyv341, false) - } - } - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym344 := z.DecBinary() - _ = yym344 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym344 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym344 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym346 := z.DecBinary() - _ = yym346 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv347 := &x.Labels - yym348 := z.DecBinary() - _ = yym348 - if false { - } else { - z.F.DecMapStringStringX(yyv347, false, d) - } - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv349 := &x.Annotations - yym350 := z.DecBinary() - _ = yym350 - if false { - } else { - z.F.DecMapStringStringX(yyv349, false, d) - } - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv351 := &x.OwnerReferences - yym352 := z.DecBinary() - _ = yym352 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv351), d) - } - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv353 := &x.Finalizers - yym354 := z.DecBinary() - _ = yym354 - if false { - } else { - z.F.DecSliceStringX(yyv353, false, d) - } - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = SubjectAccessReviewSpec{} - } else { - yyv356 := &x.Spec - yyv356.CodecDecodeSelf(d) - } - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = SubjectAccessReviewStatus{} - } else { - yyv357 := &x.Status - yyv357.CodecDecodeSelf(d) - } - for { - yyj331++ - if yyhl331 { - yyb331 = yyj331 > l - } else { - yyb331 = r.CheckBreak() - } - if yyb331 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj331-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym358 := z.EncBinary() - _ = yym358 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep359 := !z.EncBinary() - yy2arr359 := z.EncBasicHandle().StructToArray - var yyq359 [7]bool - _, _, _ = yysep359, yyq359, yy2arr359 - const yyr359 bool = false - var yynn359 int - if yyr359 || yy2arr359 { - r.EncodeArrayStart(7) - } else { - yynn359 = 7 - for _, b := range yyq359 { - if b { - yynn359++ - } - } - r.EncodeMapStart(yynn359) - yynn359 = 0 - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym361 := z.EncBinary() - _ = yym361 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym362 := z.EncBinary() - _ = yym362 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym364 := z.EncBinary() - _ = yym364 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Verb")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym365 := z.EncBinary() - _ = yym365 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym367 := z.EncBinary() - _ = yym367 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Group)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Group")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym368 := z.EncBinary() - _ = yym368 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Group)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym370 := z.EncBinary() - _ = yym370 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Version)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Version")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym371 := z.EncBinary() - _ = yym371 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Version)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym373 := z.EncBinary() - _ = yym373 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Resource")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym374 := z.EncBinary() - _ = yym374 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym376 := z.EncBinary() - _ = yym376 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Subresource")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym377 := z.EncBinary() - _ = yym377 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym379 := z.EncBinary() - _ = yym379 - 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) - yym380 := z.EncBinary() - _ = yym380 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr359 || yy2arr359 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym381 := z.DecBinary() - _ = yym381 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct382 := r.ContainerType() - if yyct382 == codecSelferValueTypeMap1234 { - yyl382 := r.ReadMapStart() - if yyl382 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl382, d) - } - } else if yyct382 == codecSelferValueTypeArray1234 { - yyl382 := r.ReadArrayStart() - if yyl382 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl382, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys383Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys383Slc - var yyhl383 bool = l >= 0 - for yyj383 := 0; ; yyj383++ { - if yyhl383 { - if yyj383 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys383Slc = r.DecodeBytes(yys383Slc, true, true) - yys383 := string(yys383Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys383 { - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "Verb": - if r.TryDecodeAsNil() { - x.Verb = "" - } else { - x.Verb = string(r.DecodeString()) - } - case "Group": - if r.TryDecodeAsNil() { - x.Group = "" - } else { - x.Group = string(r.DecodeString()) - } - case "Version": - if r.TryDecodeAsNil() { - x.Version = "" - } else { - x.Version = string(r.DecodeString()) - } - case "Resource": - if r.TryDecodeAsNil() { - x.Resource = "" - } else { - x.Resource = string(r.DecodeString()) - } - case "Subresource": - if r.TryDecodeAsNil() { - x.Subresource = "" - } else { - x.Subresource = string(r.DecodeString()) - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys383) - } // end switch yys383 - } // end for yyj383 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj391 int - var yyb391 bool - var yyhl391 bool = l >= 0 - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Verb = "" - } else { - x.Verb = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Group = "" - } else { - x.Group = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Version = "" - } else { - x.Version = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Resource = "" - } else { - x.Resource = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Subresource = "" - } else { - x.Subresource = string(r.DecodeString()) - } - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - for { - yyj391++ - if yyhl391 { - yyb391 = yyj391 > l - } else { - yyb391 = r.CheckBreak() - } - if yyb391 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj391-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym399 := z.EncBinary() - _ = yym399 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep400 := !z.EncBinary() - yy2arr400 := z.EncBasicHandle().StructToArray - var yyq400 [2]bool - _, _, _ = yysep400, yyq400, yy2arr400 - const yyr400 bool = false - var yynn400 int - if yyr400 || yy2arr400 { - r.EncodeArrayStart(2) - } else { - yynn400 = 2 - for _, b := range yyq400 { - if b { - yynn400++ - } - } - r.EncodeMapStart(yynn400) - yynn400 = 0 - } - if yyr400 || yy2arr400 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym402 := z.EncBinary() - _ = yym402 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym403 := z.EncBinary() - _ = yym403 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr400 || yy2arr400 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym405 := z.EncBinary() - _ = yym405 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Verb")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym406 := z.EncBinary() - _ = yym406 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) - } - } - if yyr400 || yy2arr400 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NonResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym407 := z.DecBinary() - _ = yym407 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct408 := r.ContainerType() - if yyct408 == codecSelferValueTypeMap1234 { - yyl408 := r.ReadMapStart() - if yyl408 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl408, d) - } - } else if yyct408 == codecSelferValueTypeArray1234 { - yyl408 := r.ReadArrayStart() - if yyl408 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl408, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys409Slc = r.DecodeBytes(yys409Slc, true, true) - yys409 := string(yys409Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys409 { - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "Verb": - if r.TryDecodeAsNil() { - x.Verb = "" - } else { - x.Verb = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys409) - } // end switch yys409 - } // end for yyj409 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj412 int - var yyb412 bool - var yyhl412 bool = l >= 0 - yyj412++ - if yyhl412 { - yyb412 = yyj412 > l - } else { - yyb412 = r.CheckBreak() - } - if yyb412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj412++ - if yyhl412 { - yyb412 = yyj412 > l - } else { - yyb412 = r.CheckBreak() - } - if yyb412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Verb = "" - } else { - x.Verb = string(r.DecodeString()) - } - for { - yyj412++ - if yyhl412 { - yyb412 = yyj412 > l - } else { - yyb412 = r.CheckBreak() - } - if yyb412 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj412-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym415 := z.EncBinary() - _ = yym415 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep416 := !z.EncBinary() - yy2arr416 := z.EncBasicHandle().StructToArray - var yyq416 [5]bool - _, _, _ = yysep416, yyq416, yy2arr416 - const yyr416 bool = false - var yynn416 int - if yyr416 || yy2arr416 { - r.EncodeArrayStart(5) - } else { - yynn416 = 5 - for _, b := range yyq416 { - if b { - yynn416++ - } - } - r.EncodeMapStart(yynn416) - yynn416 = 0 - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.ResourceAttributes == nil { - r.EncodeNil() - } else { - x.ResourceAttributes.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ResourceAttributes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ResourceAttributes == nil { - r.EncodeNil() - } else { - x.ResourceAttributes.CodecEncodeSelf(e) - } - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NonResourceAttributes == nil { - r.EncodeNil() - } else { - x.NonResourceAttributes.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("NonResourceAttributes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NonResourceAttributes == nil { - r.EncodeNil() - } else { - x.NonResourceAttributes.CodecEncodeSelf(e) - } - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym420 := z.EncBinary() - _ = yym420 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("User")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym421 := z.EncBinary() - _ = yym421 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) - } - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym423 := z.EncBinary() - _ = yym423 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Groups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym424 := z.EncBinary() - _ = yym424 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym426 := z.EncBinary() - _ = yym426 - if false { - } else { - h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Extra")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Extra == nil { - r.EncodeNil() - } else { - yym427 := z.EncBinary() - _ = yym427 - if false { - } else { - h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) - } - } - } - if yyr416 || yy2arr416 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym428 := z.DecBinary() - _ = yym428 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct429 := r.ContainerType() - if yyct429 == codecSelferValueTypeMap1234 { - yyl429 := r.ReadMapStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl429, d) - } - } else if yyct429 == codecSelferValueTypeArray1234 { - yyl429 := r.ReadArrayStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl429, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys430Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys430Slc - var yyhl430 bool = l >= 0 - for yyj430 := 0; ; yyj430++ { - if yyhl430 { - if yyj430 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys430Slc = r.DecodeBytes(yys430Slc, true, true) - yys430 := string(yys430Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys430 { - case "ResourceAttributes": - if r.TryDecodeAsNil() { - if x.ResourceAttributes != nil { - x.ResourceAttributes = nil - } - } else { - if x.ResourceAttributes == nil { - x.ResourceAttributes = new(ResourceAttributes) - } - x.ResourceAttributes.CodecDecodeSelf(d) - } - case "NonResourceAttributes": - if r.TryDecodeAsNil() { - if x.NonResourceAttributes != nil { - x.NonResourceAttributes = nil - } - } else { - if x.NonResourceAttributes == nil { - x.NonResourceAttributes = new(NonResourceAttributes) - } - x.NonResourceAttributes.CodecDecodeSelf(d) - } - case "User": - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - case "Groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv434 := &x.Groups - yym435 := z.DecBinary() - _ = yym435 - if false { - } else { - z.F.DecSliceStringX(yyv434, false, d) - } - } - case "Extra": - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv436 := &x.Extra - yym437 := z.DecBinary() - _ = yym437 - if false { - } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv436), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys430) - } // end switch yys430 - } // end for yyj430 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj438 int - var yyb438 bool - var yyhl438 bool = l >= 0 - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ResourceAttributes != nil { - x.ResourceAttributes = nil - } - } else { - if x.ResourceAttributes == nil { - x.ResourceAttributes = new(ResourceAttributes) - } - x.ResourceAttributes.CodecDecodeSelf(d) - } - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.NonResourceAttributes != nil { - x.NonResourceAttributes = nil - } - } else { - if x.NonResourceAttributes == nil { - x.NonResourceAttributes = new(NonResourceAttributes) - } - x.NonResourceAttributes.CodecDecodeSelf(d) - } - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.User = "" - } else { - x.User = string(r.DecodeString()) - } - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv442 := &x.Groups - yym443 := z.DecBinary() - _ = yym443 - if false { - } else { - z.F.DecSliceStringX(yyv442, false, d) - } - } - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Extra = nil - } else { - yyv444 := &x.Extra - yym445 := z.DecBinary() - _ = yym445 - if false { - } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv444), d) - } - } - for { - yyj438++ - if yyhl438 { - yyb438 = yyj438 > l - } else { - yyb438 = r.CheckBreak() - } - if yyb438 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj438-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym446 := z.EncBinary() - _ = yym446 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - h.encExtraValue((ExtraValue)(x), e) - } - } -} - -func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym447 := z.DecBinary() - _ = yym447 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - h.decExtraValue((*ExtraValue)(x), d) - } -} - -func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym448 := z.EncBinary() - _ = yym448 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep449 := !z.EncBinary() - yy2arr449 := z.EncBasicHandle().StructToArray - var yyq449 [2]bool - _, _, _ = yysep449, yyq449, yy2arr449 - const yyr449 bool = false - var yynn449 int - if yyr449 || yy2arr449 { - r.EncodeArrayStart(2) - } else { - yynn449 = 2 - for _, b := range yyq449 { - if b { - yynn449++ - } - } - r.EncodeMapStart(yynn449) - yynn449 = 0 - } - if yyr449 || yy2arr449 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.ResourceAttributes == nil { - r.EncodeNil() - } else { - x.ResourceAttributes.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ResourceAttributes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ResourceAttributes == nil { - r.EncodeNil() - } else { - x.ResourceAttributes.CodecEncodeSelf(e) - } - } - if yyr449 || yy2arr449 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NonResourceAttributes == nil { - r.EncodeNil() - } else { - x.NonResourceAttributes.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("NonResourceAttributes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NonResourceAttributes == nil { - r.EncodeNil() - } else { - x.NonResourceAttributes.CodecEncodeSelf(e) - } - } - if yyr449 || yy2arr449 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SelfSubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym452 := z.DecBinary() - _ = yym452 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct453 := r.ContainerType() - if yyct453 == codecSelferValueTypeMap1234 { - yyl453 := r.ReadMapStart() - if yyl453 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl453, d) - } - } else if yyct453 == codecSelferValueTypeArray1234 { - yyl453 := r.ReadArrayStart() - if yyl453 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl453, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys454Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys454Slc - var yyhl454 bool = l >= 0 - for yyj454 := 0; ; yyj454++ { - if yyhl454 { - if yyj454 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys454Slc = r.DecodeBytes(yys454Slc, true, true) - yys454 := string(yys454Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys454 { - case "ResourceAttributes": - if r.TryDecodeAsNil() { - if x.ResourceAttributes != nil { - x.ResourceAttributes = nil - } - } else { - if x.ResourceAttributes == nil { - x.ResourceAttributes = new(ResourceAttributes) - } - x.ResourceAttributes.CodecDecodeSelf(d) - } - case "NonResourceAttributes": - if r.TryDecodeAsNil() { - if x.NonResourceAttributes != nil { - x.NonResourceAttributes = nil - } - } else { - if x.NonResourceAttributes == nil { - x.NonResourceAttributes = new(NonResourceAttributes) - } - x.NonResourceAttributes.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys454) - } // end switch yys454 - } // end for yyj454 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj457 int - var yyb457 bool - var yyhl457 bool = l >= 0 - yyj457++ - if yyhl457 { - yyb457 = yyj457 > l - } else { - yyb457 = r.CheckBreak() - } - if yyb457 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ResourceAttributes != nil { - x.ResourceAttributes = nil - } - } else { - if x.ResourceAttributes == nil { - x.ResourceAttributes = new(ResourceAttributes) - } - x.ResourceAttributes.CodecDecodeSelf(d) - } - yyj457++ - if yyhl457 { - yyb457 = yyj457 > l - } else { - yyb457 = r.CheckBreak() - } - if yyb457 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.NonResourceAttributes != nil { - x.NonResourceAttributes = nil - } - } else { - if x.NonResourceAttributes == nil { - x.NonResourceAttributes = new(NonResourceAttributes) - } - x.NonResourceAttributes.CodecDecodeSelf(d) - } - for { - yyj457++ - if yyhl457 { - yyb457 = yyj457 > l - } else { - yyb457 = r.CheckBreak() - } - if yyb457 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj457-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym460 := z.EncBinary() - _ = yym460 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep461 := !z.EncBinary() - yy2arr461 := z.EncBasicHandle().StructToArray - var yyq461 [3]bool - _, _, _ = yysep461, yyq461, yy2arr461 - const yyr461 bool = false - var yynn461 int - if yyr461 || yy2arr461 { - r.EncodeArrayStart(3) - } else { - yynn461 = 3 - for _, b := range yyq461 { - if b { - yynn461++ - } - } - r.EncodeMapStart(yynn461) - yynn461 = 0 - } - if yyr461 || yy2arr461 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym463 := z.EncBinary() - _ = yym463 - if false { - } else { - r.EncodeBool(bool(x.Allowed)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Allowed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym464 := z.EncBinary() - _ = yym464 - if false { - } else { - r.EncodeBool(bool(x.Allowed)) - } - } - if yyr461 || yy2arr461 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym466 := z.EncBinary() - _ = yym466 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym467 := z.EncBinary() - _ = yym467 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - if yyr461 || yy2arr461 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym469 := z.EncBinary() - _ = yym469 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("EvaluationError")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym470 := z.EncBinary() - _ = yym470 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) - } - } - if yyr461 || yy2arr461 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SubjectAccessReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym471 := z.DecBinary() - _ = yym471 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct472 := r.ContainerType() - if yyct472 == codecSelferValueTypeMap1234 { - yyl472 := r.ReadMapStart() - if yyl472 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl472, d) - } - } else if yyct472 == codecSelferValueTypeArray1234 { - yyl472 := r.ReadArrayStart() - if yyl472 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl472, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys473Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys473Slc - var yyhl473 bool = l >= 0 - for yyj473 := 0; ; yyj473++ { - if yyhl473 { - if yyj473 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys473Slc = r.DecodeBytes(yys473Slc, true, true) - yys473 := string(yys473Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys473 { - case "Allowed": - if r.TryDecodeAsNil() { - x.Allowed = false - } else { - x.Allowed = bool(r.DecodeBool()) - } - case "Reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "EvaluationError": - if r.TryDecodeAsNil() { - x.EvaluationError = "" - } else { - x.EvaluationError = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys473) - } // end switch yys473 - } // end for yyj473 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj477 int - var yyb477 bool - var yyhl477 bool = l >= 0 - yyj477++ - if yyhl477 { - yyb477 = yyj477 > l - } else { - yyb477 = r.CheckBreak() - } - if yyb477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Allowed = false - } else { - x.Allowed = bool(r.DecodeBool()) - } - yyj477++ - if yyhl477 { - yyb477 = yyj477 > l - } else { - yyb477 = r.CheckBreak() - } - if yyb477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj477++ - if yyhl477 { - yyb477 = yyj477 > l - } else { - yyb477 = r.CheckBreak() - } - if yyb477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvaluationError = "" - } else { - x.EvaluationError = string(r.DecodeString()) - } - for { - yyj477++ - if yyhl477 { - yyb477 = yyj477 > l - } else { - yyb477 = r.CheckBreak() - } - if yyb477 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj477-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg1_v1.OwnerReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv481 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy482 := &yyv481 - yym483 := z.EncBinary() - _ = yym483 - if false { - } else if z.HasExtensions() && z.EncExt(yy482) { - } else { - z.EncFallback(yy482) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg1_v1.OwnerReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv484 := *v - yyh484, yyl484 := z.DecSliceHelperStart() - var yyc484 bool - if yyl484 == 0 { - if yyv484 == nil { - yyv484 = []pkg1_v1.OwnerReference{} - yyc484 = true - } else if len(yyv484) != 0 { - yyv484 = yyv484[:0] - yyc484 = true - } - } else if yyl484 > 0 { - var yyrr484, yyrl484 int - var yyrt484 bool - if yyl484 > cap(yyv484) { - - yyrg484 := len(yyv484) > 0 - yyv2484 := yyv484 - yyrl484, yyrt484 = z.DecInferLen(yyl484, z.DecBasicHandle().MaxInitLen, 72) - if yyrt484 { - if yyrl484 <= cap(yyv484) { - yyv484 = yyv484[:yyrl484] - } else { - yyv484 = make([]pkg1_v1.OwnerReference, yyrl484) - } - } else { - yyv484 = make([]pkg1_v1.OwnerReference, yyrl484) - } - yyc484 = true - yyrr484 = len(yyv484) - if yyrg484 { - copy(yyv484, yyv2484) - } - } else if yyl484 != len(yyv484) { - yyv484 = yyv484[:yyl484] - yyc484 = true - } - yyj484 := 0 - for ; yyj484 < yyrr484; yyj484++ { - yyh484.ElemContainerState(yyj484) - if r.TryDecodeAsNil() { - yyv484[yyj484] = pkg1_v1.OwnerReference{} - } else { - yyv485 := &yyv484[yyj484] - yym486 := z.DecBinary() - _ = yym486 - if false { - } else if z.HasExtensions() && z.DecExt(yyv485) { - } else { - z.DecFallback(yyv485, false) - } - } - - } - if yyrt484 { - for ; yyj484 < yyl484; yyj484++ { - yyv484 = append(yyv484, pkg1_v1.OwnerReference{}) - yyh484.ElemContainerState(yyj484) - if r.TryDecodeAsNil() { - yyv484[yyj484] = pkg1_v1.OwnerReference{} - } else { - yyv487 := &yyv484[yyj484] - yym488 := z.DecBinary() - _ = yym488 - if false { - } else if z.HasExtensions() && z.DecExt(yyv487) { - } else { - z.DecFallback(yyv487, false) - } - } - - } - } - - } else { - yyj484 := 0 - for ; !r.CheckBreak(); yyj484++ { - - if yyj484 >= len(yyv484) { - yyv484 = append(yyv484, pkg1_v1.OwnerReference{}) // var yyz484 pkg1_v1.OwnerReference - yyc484 = true - } - yyh484.ElemContainerState(yyj484) - if yyj484 < len(yyv484) { - if r.TryDecodeAsNil() { - yyv484[yyj484] = pkg1_v1.OwnerReference{} - } else { - yyv489 := &yyv484[yyj484] - yym490 := z.DecBinary() - _ = yym490 - if false { - } else if z.HasExtensions() && z.DecExt(yyv489) { - } else { - z.DecFallback(yyv489, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj484 < len(yyv484) { - yyv484 = yyv484[:yyj484] - yyc484 = true - } else if yyj484 == 0 && yyv484 == nil { - yyv484 = []pkg1_v1.OwnerReference{} - yyc484 = true - } - } - yyh484.End() - if yyc484 { - *v = yyv484 - } -} - -func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk491, yyv491 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym492 := z.EncBinary() - _ = yym492 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk491)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv491 == nil { - r.EncodeNil() - } else { - yyv491.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv493 := *v - yyl493 := r.ReadMapStart() - yybh493 := z.DecBasicHandle() - if yyv493 == nil { - yyrl493, _ := z.DecInferLen(yyl493, yybh493.MaxInitLen, 40) - yyv493 = make(map[string]ExtraValue, yyrl493) - *v = yyv493 - } - var yymk493 string - var yymv493 ExtraValue - var yymg493 bool - if yybh493.MapValueReset { - yymg493 = true - } - if yyl493 > 0 { - for yyj493 := 0; yyj493 < yyl493; yyj493++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk493 = "" - } else { - yymk493 = string(r.DecodeString()) - } - - if yymg493 { - yymv493 = yyv493[yymk493] - } else { - yymv493 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv493 = nil - } else { - yyv495 := &yymv493 - yyv495.CodecDecodeSelf(d) - } - - if yyv493 != nil { - yyv493[yymk493] = yymv493 - } - } - } else if yyl493 < 0 { - for yyj493 := 0; !r.CheckBreak(); yyj493++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk493 = "" - } else { - yymk493 = string(r.DecodeString()) - } - - if yymg493 { - yymv493 = yyv493[yymk493] - } else { - yymv493 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv493 = nil - } else { - yyv497 := &yymv493 - yyv497.CodecDecodeSelf(d) - } - - if yyv493 != nil { - yyv493[yymk493] = yymv493 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv498 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym499 := z.EncBinary() - _ = yym499 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv498)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv500 := *v - yyh500, yyl500 := z.DecSliceHelperStart() - var yyc500 bool - if yyl500 == 0 { - if yyv500 == nil { - yyv500 = []string{} - yyc500 = true - } else if len(yyv500) != 0 { - yyv500 = yyv500[:0] - yyc500 = true - } - } else if yyl500 > 0 { - var yyrr500, yyrl500 int - var yyrt500 bool - if yyl500 > cap(yyv500) { - - yyrl500, yyrt500 = z.DecInferLen(yyl500, z.DecBasicHandle().MaxInitLen, 16) - if yyrt500 { - if yyrl500 <= cap(yyv500) { - yyv500 = yyv500[:yyrl500] - } else { - yyv500 = make([]string, yyrl500) - } - } else { - yyv500 = make([]string, yyrl500) - } - yyc500 = true - yyrr500 = len(yyv500) - } else if yyl500 != len(yyv500) { - yyv500 = yyv500[:yyl500] - yyc500 = true - } - yyj500 := 0 - for ; yyj500 < yyrr500; yyj500++ { - yyh500.ElemContainerState(yyj500) - if r.TryDecodeAsNil() { - yyv500[yyj500] = "" - } else { - yyv500[yyj500] = string(r.DecodeString()) - } - - } - if yyrt500 { - for ; yyj500 < yyl500; yyj500++ { - yyv500 = append(yyv500, "") - yyh500.ElemContainerState(yyj500) - if r.TryDecodeAsNil() { - yyv500[yyj500] = "" - } else { - yyv500[yyj500] = string(r.DecodeString()) - } - - } - } - - } else { - yyj500 := 0 - for ; !r.CheckBreak(); yyj500++ { - - if yyj500 >= len(yyv500) { - yyv500 = append(yyv500, "") // var yyz500 string - yyc500 = true - } - yyh500.ElemContainerState(yyj500) - if yyj500 < len(yyv500) { - if r.TryDecodeAsNil() { - yyv500[yyj500] = "" - } else { - yyv500[yyj500] = string(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj500 < len(yyv500) { - yyv500 = yyv500[:yyj500] - yyc500 = true - } else if yyj500 == 0 && yyv500 == nil { - yyv500 = []string{} - yyc500 = true - } - } - yyh500.End() - if yyc500 { - *v = yyv500 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/doc.go b/staging/src/k8s.io/client-go/pkg/apis/autoscaling/doc.go index 7550f9d2b24..2c770186ba7 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/autoscaling/doc.go @@ -15,6 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true package autoscaling diff --git a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go deleted file mode 100644 index 19568b49f59..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go +++ /dev/null @@ -1,2656 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package autoscaling - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true - yyq2[3] = true - yyq2[4] = true - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.ObjectMeta - yy10.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.ObjectMeta - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.Spec - yy13.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Spec - yy14.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.Status - yy16.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Status - yy17.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct19 := r.ContainerType() - if yyct19 == codecSelferValueTypeMap1234 { - yyl19 := r.ReadMapStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl19, d) - } - } else if yyct19 == codecSelferValueTypeArray1234 { - yyl19 := r.ReadArrayStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl19, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys20Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys20Slc - var yyhl20 bool = l >= 0 - for yyj20 := 0; ; yyj20++ { - if yyhl20 { - if yyj20 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys20Slc = r.DecodeBytes(yys20Slc, true, true) - yys20 := string(yys20Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys20 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv23 := &x.ObjectMeta - yyv23.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} - } else { - yyv24 := &x.Spec - yyv24.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} - } else { - yyv25 := &x.Status - yyv25.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys20) - } // end switch yys20 - } // end for yyj20 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj26 int - var yyb26 bool - var yyhl26 bool = l >= 0 - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv29 := &x.ObjectMeta - yyv29.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} - } else { - yyv30 := &x.Spec - yyv30.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} - } else { - yyv31 := &x.Status - yyv31.CodecDecodeSelf(d) - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep33 := !z.EncBinary() - yy2arr33 := z.EncBasicHandle().StructToArray - var yyq33 [1]bool - _, _, _ = yysep33, yyq33, yy2arr33 - const yyr33 bool = false - yyq33[0] = x.Replicas != 0 - var yynn33 int - if yyr33 || yy2arr33 { - r.EncodeArrayStart(1) - } else { - yynn33 = 0 - for _, b := range yyq33 { - if b { - yynn33++ - } - } - r.EncodeMapStart(yynn33) - yynn33 = 0 - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[0] { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq33[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym37 := z.DecBinary() - _ = yym37 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct38 := r.ContainerType() - if yyct38 == codecSelferValueTypeMap1234 { - yyl38 := r.ReadMapStart() - if yyl38 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl38, d) - } - } else if yyct38 == codecSelferValueTypeArray1234 { - yyl38 := r.ReadArrayStart() - if yyl38 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl38, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys39Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys39Slc - var yyhl39 bool = l >= 0 - for yyj39 := 0; ; yyj39++ { - if yyhl39 { - if yyj39 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys39Slc = r.DecodeBytes(yys39Slc, true, true) - yys39 := string(yys39Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys39 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys39) - } // end switch yys39 - } // end for yyj39 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj41 int - var yyb41 bool - var yyhl41 bool = l >= 0 - yyj41++ - if yyhl41 { - yyb41 = yyj41 > l - } else { - yyb41 = r.CheckBreak() - } - if yyb41 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - for { - yyj41++ - if yyhl41 { - yyb41 = yyj41 > l - } else { - yyb41 = r.CheckBreak() - } - if yyb41 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj41-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym43 := z.EncBinary() - _ = yym43 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep44 := !z.EncBinary() - yy2arr44 := z.EncBasicHandle().StructToArray - var yyq44 [2]bool - _, _, _ = yysep44, yyq44, yy2arr44 - const yyr44 bool = false - yyq44[1] = x.Selector != "" - var yynn44 int - if yyr44 || yy2arr44 { - r.EncodeArrayStart(2) - } else { - yynn44 = 1 - for _, b := range yyq44 { - if b { - yynn44++ - } - } - r.EncodeMapStart(yynn44) - yynn44 = 0 - } - if yyr44 || yy2arr44 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr44 || yy2arr44 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq44[1] { - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq44[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Selector)) - } - } - } - if yyr44 || yy2arr44 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym51 := z.DecBinary() - _ = yym51 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct52 := r.ContainerType() - if yyct52 == codecSelferValueTypeMap1234 { - yyl52 := r.ReadMapStart() - if yyl52 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl52, d) - } - } else if yyct52 == codecSelferValueTypeArray1234 { - yyl52 := r.ReadArrayStart() - if yyl52 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl52, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys53Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys53Slc - var yyhl53 bool = l >= 0 - for yyj53 := 0; ; yyj53++ { - if yyhl53 { - if yyj53 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys53Slc = r.DecodeBytes(yys53Slc, true, true) - yys53 := string(yys53Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys53 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "selector": - if r.TryDecodeAsNil() { - x.Selector = "" - } else { - x.Selector = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys53) - } // end switch yys53 - } // end for yyj53 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj56 int - var yyb56 bool - var yyhl56 bool = l >= 0 - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Selector = "" - } else { - x.Selector = string(r.DecodeString()) - } - for { - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj56-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym59 := z.EncBinary() - _ = yym59 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep60 := !z.EncBinary() - yy2arr60 := z.EncBasicHandle().StructToArray - var yyq60 [3]bool - _, _, _ = yysep60, yyq60, yy2arr60 - const yyr60 bool = false - yyq60[2] = x.APIVersion != "" - var yynn60 int - if yyr60 || yy2arr60 { - r.EncodeArrayStart(3) - } else { - yynn60 = 2 - for _, b := range yyq60 { - if b { - yynn60++ - } - } - r.EncodeMapStart(yynn60) - yynn60 = 0 - } - if yyr60 || yy2arr60 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym62 := z.EncBinary() - _ = yym62 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym63 := z.EncBinary() - _ = yym63 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - if yyr60 || yy2arr60 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym66 := z.EncBinary() - _ = yym66 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr60 || yy2arr60 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq60[2] { - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq60[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym69 := z.EncBinary() - _ = yym69 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr60 || yy2arr60 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym70 := z.DecBinary() - _ = yym70 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct71 := r.ContainerType() - if yyct71 == codecSelferValueTypeMap1234 { - yyl71 := r.ReadMapStart() - if yyl71 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl71, d) - } - } else if yyct71 == codecSelferValueTypeArray1234 { - yyl71 := r.ReadArrayStart() - if yyl71 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl71, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CrossVersionObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys72Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys72Slc - var yyhl72 bool = l >= 0 - for yyj72 := 0; ; yyj72++ { - if yyhl72 { - if yyj72 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys72Slc = r.DecodeBytes(yys72Slc, true, true) - yys72 := string(yys72Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys72 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys72) - } // end switch yys72 - } // end for yyj72 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CrossVersionObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj76 int - var yyb76 bool - var yyhl76 bool = l >= 0 - yyj76++ - if yyhl76 { - yyb76 = yyj76 > l - } else { - yyb76 = r.CheckBreak() - } - if yyb76 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj76++ - if yyhl76 { - yyb76 = yyj76 > l - } else { - yyb76 = r.CheckBreak() - } - if yyb76 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj76++ - if yyhl76 { - yyb76 = yyj76 > l - } else { - yyb76 = r.CheckBreak() - } - if yyb76 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - for { - yyj76++ - if yyhl76 { - yyb76 = yyj76 > l - } else { - yyb76 = r.CheckBreak() - } - if yyb76 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj76-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym80 := z.EncBinary() - _ = yym80 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep81 := !z.EncBinary() - yy2arr81 := z.EncBasicHandle().StructToArray - var yyq81 [4]bool - _, _, _ = yysep81, yyq81, yy2arr81 - const yyr81 bool = false - yyq81[1] = x.MinReplicas != nil - yyq81[3] = x.TargetCPUUtilizationPercentage != nil - var yynn81 int - if yyr81 || yy2arr81 { - r.EncodeArrayStart(4) - } else { - yynn81 = 2 - for _, b := range yyq81 { - if b { - yynn81++ - } - } - r.EncodeMapStart(yynn81) - yynn81 = 0 - } - if yyr81 || yy2arr81 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy83 := &x.ScaleTargetRef - yy83.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("scaleTargetRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy84 := &x.ScaleTargetRef - yy84.CodecEncodeSelf(e) - } - if yyr81 || yy2arr81 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[1] { - if x.MinReplicas == nil { - r.EncodeNil() - } else { - yy86 := *x.MinReplicas - yym87 := z.EncBinary() - _ = yym87 - if false { - } else { - r.EncodeInt(int64(yy86)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq81[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MinReplicas == nil { - r.EncodeNil() - } else { - yy88 := *x.MinReplicas - yym89 := z.EncBinary() - _ = yym89 - if false { - } else { - r.EncodeInt(int64(yy88)) - } - } - } - } - if yyr81 || yy2arr81 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym91 := z.EncBinary() - _ = yym91 - if false { - } else { - r.EncodeInt(int64(x.MaxReplicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym92 := z.EncBinary() - _ = yym92 - if false { - } else { - r.EncodeInt(int64(x.MaxReplicas)) - } - } - if yyr81 || yy2arr81 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[3] { - if x.TargetCPUUtilizationPercentage == nil { - r.EncodeNil() - } else { - yy94 := *x.TargetCPUUtilizationPercentage - yym95 := z.EncBinary() - _ = yym95 - if false { - } else { - r.EncodeInt(int64(yy94)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq81[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("targetCPUUtilizationPercentage")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TargetCPUUtilizationPercentage == nil { - r.EncodeNil() - } else { - yy96 := *x.TargetCPUUtilizationPercentage - yym97 := z.EncBinary() - _ = yym97 - if false { - } else { - r.EncodeInt(int64(yy96)) - } - } - } - } - if yyr81 || yy2arr81 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym98 := z.DecBinary() - _ = yym98 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct99 := r.ContainerType() - if yyct99 == codecSelferValueTypeMap1234 { - yyl99 := r.ReadMapStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl99, d) - } - } else if yyct99 == codecSelferValueTypeArray1234 { - yyl99 := r.ReadArrayStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl99, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys100Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys100Slc - var yyhl100 bool = l >= 0 - for yyj100 := 0; ; yyj100++ { - if yyhl100 { - if yyj100 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys100Slc = r.DecodeBytes(yys100Slc, true, true) - yys100 := string(yys100Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys100 { - case "scaleTargetRef": - if r.TryDecodeAsNil() { - x.ScaleTargetRef = CrossVersionObjectReference{} - } else { - yyv101 := &x.ScaleTargetRef - yyv101.CodecDecodeSelf(d) - } - case "minReplicas": - if r.TryDecodeAsNil() { - if x.MinReplicas != nil { - x.MinReplicas = nil - } - } else { - if x.MinReplicas == nil { - x.MinReplicas = new(int32) - } - yym103 := z.DecBinary() - _ = yym103 - if false { - } else { - *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) - } - } - case "maxReplicas": - if r.TryDecodeAsNil() { - x.MaxReplicas = 0 - } else { - x.MaxReplicas = int32(r.DecodeInt(32)) - } - case "targetCPUUtilizationPercentage": - if r.TryDecodeAsNil() { - if x.TargetCPUUtilizationPercentage != nil { - x.TargetCPUUtilizationPercentage = nil - } - } else { - if x.TargetCPUUtilizationPercentage == nil { - x.TargetCPUUtilizationPercentage = new(int32) - } - yym106 := z.DecBinary() - _ = yym106 - if false { - } else { - *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys100) - } // end switch yys100 - } // end for yyj100 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj107 int - var yyb107 bool - var yyhl107 bool = l >= 0 - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ScaleTargetRef = CrossVersionObjectReference{} - } else { - yyv108 := &x.ScaleTargetRef - yyv108.CodecDecodeSelf(d) - } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.MinReplicas != nil { - x.MinReplicas = nil - } - } else { - if x.MinReplicas == nil { - x.MinReplicas = new(int32) - } - yym110 := z.DecBinary() - _ = yym110 - if false { - } else { - *((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32)) - } - } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxReplicas = 0 - } else { - x.MaxReplicas = int32(r.DecodeInt(32)) - } - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.TargetCPUUtilizationPercentage != nil { - x.TargetCPUUtilizationPercentage = nil - } - } else { - if x.TargetCPUUtilizationPercentage == nil { - x.TargetCPUUtilizationPercentage = new(int32) - } - yym113 := z.DecBinary() - _ = yym113 - if false { - } else { - *((*int32)(x.TargetCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) - } - } - for { - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj107-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym114 := z.EncBinary() - _ = yym114 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep115 := !z.EncBinary() - yy2arr115 := z.EncBasicHandle().StructToArray - var yyq115 [5]bool - _, _, _ = yysep115, yyq115, yy2arr115 - const yyr115 bool = false - yyq115[0] = x.ObservedGeneration != nil - yyq115[1] = x.LastScaleTime != nil - yyq115[4] = x.CurrentCPUUtilizationPercentage != nil - var yynn115 int - if yyr115 || yy2arr115 { - r.EncodeArrayStart(5) - } else { - yynn115 = 2 - for _, b := range yyq115 { - if b { - yynn115++ - } - } - r.EncodeMapStart(yynn115) - yynn115 = 0 - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[0] { - if x.ObservedGeneration == nil { - r.EncodeNil() - } else { - yy117 := *x.ObservedGeneration - yym118 := z.EncBinary() - _ = yym118 - if false { - } else { - r.EncodeInt(int64(yy117)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq115[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ObservedGeneration == nil { - r.EncodeNil() - } else { - yy119 := *x.ObservedGeneration - yym120 := z.EncBinary() - _ = yym120 - if false { - } else { - r.EncodeInt(int64(yy119)) - } - } - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[1] { - if x.LastScaleTime == nil { - r.EncodeNil() - } else { - yym122 := z.EncBinary() - _ = yym122 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym122 { - z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym122 && z.IsJSONHandle() { - z.EncJSONMarshal(x.LastScaleTime) - } else { - z.EncFallback(x.LastScaleTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq115[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LastScaleTime == nil { - r.EncodeNil() - } else { - yym123 := z.EncBinary() - _ = yym123 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastScaleTime) { - } else if yym123 { - z.EncBinaryMarshal(x.LastScaleTime) - } else if !yym123 && z.IsJSONHandle() { - z.EncJSONMarshal(x.LastScaleTime) - } else { - z.EncFallback(x.LastScaleTime) - } - } - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym125 := z.EncBinary() - _ = yym125 - if false { - } else { - r.EncodeInt(int64(x.CurrentReplicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym126 := z.EncBinary() - _ = yym126 - if false { - } else { - r.EncodeInt(int64(x.CurrentReplicas)) - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym128 := z.EncBinary() - _ = yym128 - if false { - } else { - r.EncodeInt(int64(x.DesiredReplicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym129 := z.EncBinary() - _ = yym129 - if false { - } else { - r.EncodeInt(int64(x.DesiredReplicas)) - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[4] { - if x.CurrentCPUUtilizationPercentage == nil { - r.EncodeNil() - } else { - yy131 := *x.CurrentCPUUtilizationPercentage - yym132 := z.EncBinary() - _ = yym132 - if false { - } else { - r.EncodeInt(int64(yy131)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq115[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CurrentCPUUtilizationPercentage == nil { - r.EncodeNil() - } else { - yy133 := *x.CurrentCPUUtilizationPercentage - yym134 := z.EncBinary() - _ = yym134 - if false { - } else { - r.EncodeInt(int64(yy133)) - } - } - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym135 := z.DecBinary() - _ = yym135 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct136 := r.ContainerType() - if yyct136 == codecSelferValueTypeMap1234 { - yyl136 := r.ReadMapStart() - if yyl136 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl136, d) - } - } else if yyct136 == codecSelferValueTypeArray1234 { - yyl136 := r.ReadArrayStart() - if yyl136 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl136, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys137Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys137Slc - var yyhl137 bool = l >= 0 - for yyj137 := 0; ; yyj137++ { - if yyhl137 { - if yyj137 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys137Slc = r.DecodeBytes(yys137Slc, true, true) - yys137 := string(yys137Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys137 { - case "observedGeneration": - if r.TryDecodeAsNil() { - if x.ObservedGeneration != nil { - x.ObservedGeneration = nil - } - } else { - if x.ObservedGeneration == nil { - x.ObservedGeneration = new(int64) - } - yym139 := z.DecBinary() - _ = yym139 - if false { - } else { - *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) - } - } - case "lastScaleTime": - if r.TryDecodeAsNil() { - if x.LastScaleTime != nil { - x.LastScaleTime = nil - } - } else { - if x.LastScaleTime == nil { - x.LastScaleTime = new(pkg1_v1.Time) - } - yym141 := z.DecBinary() - _ = yym141 - if false { - } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym141 { - z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym141 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.LastScaleTime) - } else { - z.DecFallback(x.LastScaleTime, false) - } - } - case "currentReplicas": - if r.TryDecodeAsNil() { - x.CurrentReplicas = 0 - } else { - x.CurrentReplicas = int32(r.DecodeInt(32)) - } - case "desiredReplicas": - if r.TryDecodeAsNil() { - x.DesiredReplicas = 0 - } else { - x.DesiredReplicas = int32(r.DecodeInt(32)) - } - case "currentCPUUtilizationPercentage": - if r.TryDecodeAsNil() { - if x.CurrentCPUUtilizationPercentage != nil { - x.CurrentCPUUtilizationPercentage = nil - } - } else { - if x.CurrentCPUUtilizationPercentage == nil { - x.CurrentCPUUtilizationPercentage = new(int32) - } - yym145 := z.DecBinary() - _ = yym145 - if false { - } else { - *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) - } - } - default: - z.DecStructFieldNotFound(-1, yys137) - } // end switch yys137 - } // end for yyj137 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj146 int - var yyb146 bool - var yyhl146 bool = l >= 0 - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ObservedGeneration != nil { - x.ObservedGeneration = nil - } - } else { - if x.ObservedGeneration == nil { - x.ObservedGeneration = new(int64) - } - yym148 := z.DecBinary() - _ = yym148 - if false { - } else { - *((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64)) - } - } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.LastScaleTime != nil { - x.LastScaleTime = nil - } - } else { - if x.LastScaleTime == nil { - x.LastScaleTime = new(pkg1_v1.Time) - } - yym150 := z.DecBinary() - _ = yym150 - if false { - } else if z.HasExtensions() && z.DecExt(x.LastScaleTime) { - } else if yym150 { - z.DecBinaryUnmarshal(x.LastScaleTime) - } else if !yym150 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.LastScaleTime) - } else { - z.DecFallback(x.LastScaleTime, false) - } - } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CurrentReplicas = 0 - } else { - x.CurrentReplicas = int32(r.DecodeInt(32)) - } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DesiredReplicas = 0 - } else { - x.DesiredReplicas = int32(r.DecodeInt(32)) - } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.CurrentCPUUtilizationPercentage != nil { - x.CurrentCPUUtilizationPercentage = nil - } - } else { - if x.CurrentCPUUtilizationPercentage == nil { - x.CurrentCPUUtilizationPercentage = new(int32) - } - yym154 := z.DecBinary() - _ = yym154 - if false { - } else { - *((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32)) - } - } - for { - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l - } else { - yyb146 = r.CheckBreak() - } - if yyb146 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj146-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym155 := z.EncBinary() - _ = yym155 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep156 := !z.EncBinary() - yy2arr156 := z.EncBasicHandle().StructToArray - var yyq156 [5]bool - _, _, _ = yysep156, yyq156, yy2arr156 - const yyr156 bool = false - yyq156[0] = x.Kind != "" - yyq156[1] = x.APIVersion != "" - yyq156[2] = true - yyq156[3] = true - yyq156[4] = true - var yynn156 int - if yyr156 || yy2arr156 { - r.EncodeArrayStart(5) - } else { - yynn156 = 0 - for _, b := range yyq156 { - if b { - yynn156++ - } - } - r.EncodeMapStart(yynn156) - yynn156 = 0 - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq156[0] { - yym158 := z.EncBinary() - _ = yym158 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq156[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq156[1] { - yym161 := z.EncBinary() - _ = yym161 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq156[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym162 := z.EncBinary() - _ = yym162 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq156[2] { - yy164 := &x.ObjectMeta - yy164.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq156[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy165 := &x.ObjectMeta - yy165.CodecEncodeSelf(e) - } - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq156[3] { - yy167 := &x.Spec - yy167.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq156[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy168 := &x.Spec - yy168.CodecEncodeSelf(e) - } - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq156[4] { - yy170 := &x.Status - yy170.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq156[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy171 := &x.Status - yy171.CodecEncodeSelf(e) - } - } - if yyr156 || yy2arr156 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym172 := z.DecBinary() - _ = yym172 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct173 := r.ContainerType() - if yyct173 == codecSelferValueTypeMap1234 { - yyl173 := r.ReadMapStart() - if yyl173 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl173, d) - } - } else if yyct173 == codecSelferValueTypeArray1234 { - yyl173 := r.ReadArrayStart() - if yyl173 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl173, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys174Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys174Slc - var yyhl174 bool = l >= 0 - for yyj174 := 0; ; yyj174++ { - if yyhl174 { - if yyj174 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys174Slc = r.DecodeBytes(yys174Slc, true, true) - yys174 := string(yys174Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys174 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv177 := &x.ObjectMeta - yyv177.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} - } else { - yyv178 := &x.Spec - yyv178.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} - } else { - yyv179 := &x.Status - yyv179.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys174) - } // end switch yys174 - } // end for yyj174 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj180 int - var yyb180 bool - var yyhl180 bool = l >= 0 - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv183 := &x.ObjectMeta - yyv183.CodecDecodeSelf(d) - } - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = HorizontalPodAutoscalerSpec{} - } else { - yyv184 := &x.Spec - yyv184.CodecDecodeSelf(d) - } - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = HorizontalPodAutoscalerStatus{} - } else { - yyv185 := &x.Status - yyv185.CodecDecodeSelf(d) - } - for { - yyj180++ - if yyhl180 { - yyb180 = yyj180 > l - } else { - yyb180 = r.CheckBreak() - } - if yyb180 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj180-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym186 := z.EncBinary() - _ = yym186 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep187 := !z.EncBinary() - yy2arr187 := z.EncBasicHandle().StructToArray - var yyq187 [4]bool - _, _, _ = yysep187, yyq187, yy2arr187 - const yyr187 bool = false - yyq187[0] = x.Kind != "" - yyq187[1] = x.APIVersion != "" - yyq187[2] = true - var yynn187 int - if yyr187 || yy2arr187 { - r.EncodeArrayStart(4) - } else { - yynn187 = 1 - for _, b := range yyq187 { - if b { - yynn187++ - } - } - r.EncodeMapStart(yynn187) - yynn187 = 0 - } - if yyr187 || yy2arr187 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq187[0] { - yym189 := z.EncBinary() - _ = yym189 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq187[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym190 := z.EncBinary() - _ = yym190 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr187 || yy2arr187 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq187[1] { - yym192 := z.EncBinary() - _ = yym192 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq187[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym193 := z.EncBinary() - _ = yym193 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr187 || yy2arr187 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq187[2] { - yy195 := &x.ListMeta - yym196 := z.EncBinary() - _ = yym196 - if false { - } else if z.HasExtensions() && z.EncExt(yy195) { - } else { - z.EncFallback(yy195) - } - } else { - r.EncodeNil() - } - } else { - if yyq187[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy197 := &x.ListMeta - yym198 := z.EncBinary() - _ = yym198 - if false { - } else if z.HasExtensions() && z.EncExt(yy197) { - } else { - z.EncFallback(yy197) - } - } - } - if yyr187 || yy2arr187 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym200 := z.EncBinary() - _ = yym200 - if false { - } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym201 := z.EncBinary() - _ = yym201 - if false { - } else { - h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e) - } - } - } - if yyr187 || yy2arr187 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym202 := z.DecBinary() - _ = yym202 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct203 := r.ContainerType() - if yyct203 == codecSelferValueTypeMap1234 { - yyl203 := r.ReadMapStart() - if yyl203 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl203, d) - } - } else if yyct203 == codecSelferValueTypeArray1234 { - yyl203 := r.ReadArrayStart() - if yyl203 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl203, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys204Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys204Slc - var yyhl204 bool = l >= 0 - for yyj204 := 0; ; yyj204++ { - if yyhl204 { - if yyj204 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys204Slc = r.DecodeBytes(yys204Slc, true, true) - yys204 := string(yys204Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys204 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv207 := &x.ListMeta - yym208 := z.DecBinary() - _ = yym208 - if false { - } else if z.HasExtensions() && z.DecExt(yyv207) { - } else { - z.DecFallback(yyv207, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv209 := &x.Items - yym210 := z.DecBinary() - _ = yym210 - if false { - } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv209), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys204) - } // end switch yys204 - } // end for yyj204 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj211 int - var yyb211 bool - var yyhl211 bool = l >= 0 - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() - } - if yyb211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() - } - if yyb211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() - } - if yyb211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv214 := &x.ListMeta - yym215 := z.DecBinary() - _ = yym215 - if false { - } else if z.HasExtensions() && z.DecExt(yyv214) { - } else { - z.DecFallback(yyv214, false) - } - } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() - } - if yyb211 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv216 := &x.Items - yym217 := z.DecBinary() - _ = yym217 - if false { - } else { - h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv216), d) - } - } - for { - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() - } - if yyb211 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj211-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutoscaler, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv218 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy219 := &yyv218 - yy219.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutoscaler, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv220 := *v - yyh220, yyl220 := z.DecSliceHelperStart() - var yyc220 bool - if yyl220 == 0 { - if yyv220 == nil { - yyv220 = []HorizontalPodAutoscaler{} - yyc220 = true - } else if len(yyv220) != 0 { - yyv220 = yyv220[:0] - yyc220 = true - } - } else if yyl220 > 0 { - var yyrr220, yyrl220 int - var yyrt220 bool - if yyl220 > cap(yyv220) { - - yyrg220 := len(yyv220) > 0 - yyv2220 := yyv220 - yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 360) - if yyrt220 { - if yyrl220 <= cap(yyv220) { - yyv220 = yyv220[:yyrl220] - } else { - yyv220 = make([]HorizontalPodAutoscaler, yyrl220) - } - } else { - yyv220 = make([]HorizontalPodAutoscaler, yyrl220) - } - yyc220 = true - yyrr220 = len(yyv220) - if yyrg220 { - copy(yyv220, yyv2220) - } - } else if yyl220 != len(yyv220) { - yyv220 = yyv220[:yyl220] - yyc220 = true - } - yyj220 := 0 - for ; yyj220 < yyrr220; yyj220++ { - yyh220.ElemContainerState(yyj220) - if r.TryDecodeAsNil() { - yyv220[yyj220] = HorizontalPodAutoscaler{} - } else { - yyv221 := &yyv220[yyj220] - yyv221.CodecDecodeSelf(d) - } - - } - if yyrt220 { - for ; yyj220 < yyl220; yyj220++ { - yyv220 = append(yyv220, HorizontalPodAutoscaler{}) - yyh220.ElemContainerState(yyj220) - if r.TryDecodeAsNil() { - yyv220[yyj220] = HorizontalPodAutoscaler{} - } else { - yyv222 := &yyv220[yyj220] - yyv222.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj220 := 0 - for ; !r.CheckBreak(); yyj220++ { - - if yyj220 >= len(yyv220) { - yyv220 = append(yyv220, HorizontalPodAutoscaler{}) // var yyz220 HorizontalPodAutoscaler - yyc220 = true - } - yyh220.ElemContainerState(yyj220) - if yyj220 < len(yyv220) { - if r.TryDecodeAsNil() { - yyv220[yyj220] = HorizontalPodAutoscaler{} - } else { - yyv223 := &yyv220[yyj220] - yyv223.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj220 < len(yyv220) { - yyv220 = yyv220[:yyj220] - yyc220 = true - } else if yyj220 == 0 && yyv220 == nil { - yyv220 = []HorizontalPodAutoscaler{} - yyc220 = true - } - } - yyh220.End() - if yyc220 { - *v = yyv220 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.go b/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.go index 4c1a4ff22d8..01cbd71d459 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/autoscaling/types.go @@ -23,113 +23,113 @@ import ( // Scale represents a scaling request for a resource. type Scale struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Spec ScaleSpec // 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"` + Status ScaleStatus } // 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"` + Replicas int32 } // ScaleStatus represents the current status of a scale subresource. type ScaleStatus struct { // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas"` + Replicas int32 // 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://kubernetes.io/docs/user-guide/labels#label-selectors // +optional - Selector string `json:"selector,omitempty"` + Selector string } // 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"` + Kind string // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` + Name string // API version of the referent // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` + APIVersion string } // specification of a horizontal pod autoscaler. type HorizontalPodAutoscalerSpec struct { // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption // and will set the desired number of pods by using its Scale subresource. - ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef"` + ScaleTargetRef CrossVersionObjectReference // lower limit for the number of pods that can be set by the autoscaler, default 1. // +optional - MinReplicas *int32 `json:"minReplicas,omitempty"` + MinReplicas *int32 // upper limit for the number of pods that can be set by the autoscaler. It cannot be smaller than MinReplicas. - MaxReplicas int32 `json:"maxReplicas"` + MaxReplicas int32 // 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"` + TargetCPUUtilizationPercentage *int32 } // current status of a horizontal pod autoscaler type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + ObservedGeneration *int64 // 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 *metav1.Time `json:"lastScaleTime,omitempty"` + LastScaleTime *metav1.Time // current number of replicas of pods managed by this autoscaler. - CurrentReplicas int32 `json:"currentReplicas"` + CurrentReplicas int32 // desired number of replicas of pods managed by this autoscaler. - DesiredReplicas int32 `json:"desiredReplicas"` + DesiredReplicas int32 // 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"` + CurrentCPUUtilizationPercentage *int32 } // +genclient=true // configuration of a horizontal pod autoscaler. type HorizontalPodAutoscaler struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // +optional - Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty"` + Spec HorizontalPodAutoscalerSpec // current information about the autoscaler. // +optional - Status HorizontalPodAutoscalerStatus `json:"status,omitempty"` + Status HorizontalPodAutoscalerStatus } // list of horizontal pod autoscaler objects. type HorizontalPodAutoscalerList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // list of horizontal pod autoscaler objects. - Items []HorizontalPodAutoscaler `json:"items"` + Items []HorizontalPodAutoscaler } diff --git a/staging/src/k8s.io/client-go/pkg/apis/batch/doc.go b/staging/src/k8s.io/client-go/pkg/apis/batch/doc.go index f8774e80ad3..c6b203cd8eb 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/batch/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/batch/doc.go @@ -15,6 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true package batch diff --git a/staging/src/k8s.io/client-go/pkg/apis/batch/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/batch/types.generated.go deleted file mode 100644 index 18a4f98051e..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/batch/types.generated.go +++ /dev/null @@ -1,4676 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package batch - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg4_resource "k8s.io/client-go/pkg/api/resource" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - pkg5_intstr "k8s.io/client-go/pkg/util/intstr" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg4_resource.Quantity - var v2 pkg1_v1.TypeMeta - var v3 pkg3_types.UID - var v4 pkg5_intstr.IntOrString - var v5 time.Time - _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 - } -} - -func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true - yyq2[3] = true - yyq2[4] = true - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.ObjectMeta - yy10.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.ObjectMeta - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.Spec - yy13.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Spec - yy14.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.Status - yy16.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Status - yy17.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct19 := r.ContainerType() - if yyct19 == codecSelferValueTypeMap1234 { - yyl19 := r.ReadMapStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl19, d) - } - } else if yyct19 == codecSelferValueTypeArray1234 { - yyl19 := r.ReadArrayStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl19, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys20Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys20Slc - var yyhl20 bool = l >= 0 - for yyj20 := 0; ; yyj20++ { - if yyhl20 { - if yyj20 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys20Slc = r.DecodeBytes(yys20Slc, true, true) - yys20 := string(yys20Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys20 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv23 := &x.ObjectMeta - yyv23.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = JobSpec{} - } else { - yyv24 := &x.Spec - yyv24.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = JobStatus{} - } else { - yyv25 := &x.Status - yyv25.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys20) - } // end switch yys20 - } // end for yyj20 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj26 int - var yyb26 bool - var yyhl26 bool = l >= 0 - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv29 := &x.ObjectMeta - yyv29.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = JobSpec{} - } else { - yyv30 := &x.Spec - yyv30.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = JobStatus{} - } else { - yyv31 := &x.Status - yyv31.CodecDecodeSelf(d) - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep33 := !z.EncBinary() - yy2arr33 := z.EncBasicHandle().StructToArray - var yyq33 [4]bool - _, _, _ = yysep33, yyq33, yy2arr33 - const yyr33 bool = false - yyq33[0] = x.Kind != "" - yyq33[1] = x.APIVersion != "" - yyq33[2] = true - var yynn33 int - if yyr33 || yy2arr33 { - r.EncodeArrayStart(4) - } else { - yynn33 = 1 - for _, b := range yyq33 { - if b { - yynn33++ - } - } - r.EncodeMapStart(yynn33) - yynn33 = 0 - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[0] { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq33[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[1] { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq33[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[2] { - yy41 := &x.ListMeta - yym42 := z.EncBinary() - _ = yym42 - if false { - } else if z.HasExtensions() && z.EncExt(yy41) { - } else { - z.EncFallback(yy41) - } - } else { - r.EncodeNil() - } - } else { - if yyq33[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy43 := &x.ListMeta - yym44 := z.EncBinary() - _ = yym44 - if false { - } else if z.HasExtensions() && z.EncExt(yy43) { - } else { - z.EncFallback(yy43) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - h.encSliceJob(([]Job)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - h.encSliceJob(([]Job)(x.Items), e) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym48 := z.DecBinary() - _ = yym48 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct49 := r.ContainerType() - if yyct49 == codecSelferValueTypeMap1234 { - yyl49 := r.ReadMapStart() - if yyl49 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl49, d) - } - } else if yyct49 == codecSelferValueTypeArray1234 { - yyl49 := r.ReadArrayStart() - if yyl49 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl49, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys50Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys50Slc - var yyhl50 bool = l >= 0 - for yyj50 := 0; ; yyj50++ { - if yyhl50 { - if yyj50 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys50Slc = r.DecodeBytes(yys50Slc, true, true) - yys50 := string(yys50Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys50 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv53 := &x.ListMeta - yym54 := z.DecBinary() - _ = yym54 - if false { - } else if z.HasExtensions() && z.DecExt(yyv53) { - } else { - z.DecFallback(yyv53, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv55 := &x.Items - yym56 := z.DecBinary() - _ = yym56 - if false { - } else { - h.decSliceJob((*[]Job)(yyv55), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys50) - } // end switch yys50 - } // end for yyj50 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj57 int - var yyb57 bool - var yyhl57 bool = l >= 0 - yyj57++ - if yyhl57 { - yyb57 = yyj57 > l - } else { - yyb57 = r.CheckBreak() - } - if yyb57 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj57++ - if yyhl57 { - yyb57 = yyj57 > l - } else { - yyb57 = r.CheckBreak() - } - if yyb57 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj57++ - if yyhl57 { - yyb57 = yyj57 > l - } else { - yyb57 = r.CheckBreak() - } - if yyb57 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv60 := &x.ListMeta - yym61 := z.DecBinary() - _ = yym61 - if false { - } else if z.HasExtensions() && z.DecExt(yyv60) { - } else { - z.DecFallback(yyv60, false) - } - } - yyj57++ - if yyhl57 { - yyb57 = yyj57 > l - } else { - yyb57 = r.CheckBreak() - } - if yyb57 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv62 := &x.Items - yym63 := z.DecBinary() - _ = yym63 - if false { - } else { - h.decSliceJob((*[]Job)(yyv62), d) - } - } - for { - yyj57++ - if yyhl57 { - yyb57 = yyj57 > l - } else { - yyb57 = r.CheckBreak() - } - if yyb57 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj57-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym64 := z.EncBinary() - _ = yym64 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep65 := !z.EncBinary() - yy2arr65 := z.EncBasicHandle().StructToArray - var yyq65 [4]bool - _, _, _ = yysep65, yyq65, yy2arr65 - const yyr65 bool = false - yyq65[0] = x.Kind != "" - yyq65[1] = x.APIVersion != "" - yyq65[2] = true - yyq65[3] = true - var yynn65 int - if yyr65 || yy2arr65 { - r.EncodeArrayStart(4) - } else { - yynn65 = 0 - for _, b := range yyq65 { - if b { - yynn65++ - } - } - r.EncodeMapStart(yynn65) - yynn65 = 0 - } - if yyr65 || yy2arr65 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq65[0] { - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq65[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr65 || yy2arr65 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq65[1] { - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq65[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym71 := z.EncBinary() - _ = yym71 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr65 || yy2arr65 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq65[2] { - yy73 := &x.ObjectMeta - yy73.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq65[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy74 := &x.ObjectMeta - yy74.CodecEncodeSelf(e) - } - } - if yyr65 || yy2arr65 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq65[3] { - yy76 := &x.Template - yy76.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq65[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy77 := &x.Template - yy77.CodecEncodeSelf(e) - } - } - if yyr65 || yy2arr65 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobTemplate) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym78 := z.DecBinary() - _ = yym78 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct79 := r.ContainerType() - if yyct79 == codecSelferValueTypeMap1234 { - yyl79 := r.ReadMapStart() - if yyl79 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl79, d) - } - } else if yyct79 == codecSelferValueTypeArray1234 { - yyl79 := r.ReadArrayStart() - if yyl79 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl79, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys80Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys80Slc - var yyhl80 bool = l >= 0 - for yyj80 := 0; ; yyj80++ { - if yyhl80 { - if yyj80 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys80Slc = r.DecodeBytes(yys80Slc, true, true) - yys80 := string(yys80Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys80 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv83 := &x.ObjectMeta - yyv83.CodecDecodeSelf(d) - } - case "template": - if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} - } else { - yyv84 := &x.Template - yyv84.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys80) - } // end switch yys80 - } // end for yyj80 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj85 int - var yyb85 bool - var yyhl85 bool = l >= 0 - yyj85++ - if yyhl85 { - yyb85 = yyj85 > l - } else { - yyb85 = r.CheckBreak() - } - if yyb85 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj85++ - if yyhl85 { - yyb85 = yyj85 > l - } else { - yyb85 = r.CheckBreak() - } - if yyb85 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj85++ - if yyhl85 { - yyb85 = yyj85 > l - } else { - yyb85 = r.CheckBreak() - } - if yyb85 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv88 := &x.ObjectMeta - yyv88.CodecDecodeSelf(d) - } - yyj85++ - if yyhl85 { - yyb85 = yyj85 > l - } else { - yyb85 = r.CheckBreak() - } - if yyb85 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = JobTemplateSpec{} - } else { - yyv89 := &x.Template - yyv89.CodecDecodeSelf(d) - } - for { - yyj85++ - if yyhl85 { - yyb85 = yyj85 > l - } else { - yyb85 = r.CheckBreak() - } - if yyb85 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj85-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym90 := z.EncBinary() - _ = yym90 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep91 := !z.EncBinary() - yy2arr91 := z.EncBasicHandle().StructToArray - var yyq91 [2]bool - _, _, _ = yysep91, yyq91, yy2arr91 - const yyr91 bool = false - yyq91[0] = true - yyq91[1] = true - var yynn91 int - if yyr91 || yy2arr91 { - r.EncodeArrayStart(2) - } else { - yynn91 = 0 - for _, b := range yyq91 { - if b { - yynn91++ - } - } - r.EncodeMapStart(yynn91) - yynn91 = 0 - } - if yyr91 || yy2arr91 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq91[0] { - yy93 := &x.ObjectMeta - yy93.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq91[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy94 := &x.ObjectMeta - yy94.CodecEncodeSelf(e) - } - } - if yyr91 || yy2arr91 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq91[1] { - yy96 := &x.Spec - yy96.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq91[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy97 := &x.Spec - yy97.CodecEncodeSelf(e) - } - } - if yyr91 || yy2arr91 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym98 := z.DecBinary() - _ = yym98 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct99 := r.ContainerType() - if yyct99 == codecSelferValueTypeMap1234 { - yyl99 := r.ReadMapStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl99, d) - } - } else if yyct99 == codecSelferValueTypeArray1234 { - yyl99 := r.ReadArrayStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl99, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys100Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys100Slc - var yyhl100 bool = l >= 0 - for yyj100 := 0; ; yyj100++ { - if yyhl100 { - if yyj100 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys100Slc = r.DecodeBytes(yys100Slc, true, true) - yys100 := string(yys100Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys100 { - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv101 := &x.ObjectMeta - yyv101.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = JobSpec{} - } else { - yyv102 := &x.Spec - yyv102.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys100) - } // end switch yys100 - } // end for yyj100 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj103 int - var yyb103 bool - var yyhl103 bool = l >= 0 - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l - } else { - yyb103 = r.CheckBreak() - } - if yyb103 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv104 := &x.ObjectMeta - yyv104.CodecDecodeSelf(d) - } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l - } else { - yyb103 = r.CheckBreak() - } - if yyb103 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = JobSpec{} - } else { - yyv105 := &x.Spec - yyv105.CodecDecodeSelf(d) - } - for { - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l - } else { - yyb103 = r.CheckBreak() - } - if yyb103 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj103-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym106 := z.EncBinary() - _ = yym106 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep107 := !z.EncBinary() - yy2arr107 := z.EncBasicHandle().StructToArray - var yyq107 [6]bool - _, _, _ = yysep107, yyq107, yy2arr107 - const yyr107 bool = false - yyq107[0] = x.Parallelism != nil - yyq107[1] = x.Completions != nil - yyq107[2] = x.ActiveDeadlineSeconds != nil - yyq107[3] = x.Selector != nil - yyq107[4] = x.ManualSelector != nil - var yynn107 int - if yyr107 || yy2arr107 { - r.EncodeArrayStart(6) - } else { - yynn107 = 1 - for _, b := range yyq107 { - if b { - yynn107++ - } - } - r.EncodeMapStart(yynn107) - yynn107 = 0 - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq107[0] { - if x.Parallelism == nil { - r.EncodeNil() - } else { - yy109 := *x.Parallelism - yym110 := z.EncBinary() - _ = yym110 - if false { - } else { - r.EncodeInt(int64(yy109)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq107[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("parallelism")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Parallelism == nil { - r.EncodeNil() - } else { - yy111 := *x.Parallelism - yym112 := z.EncBinary() - _ = yym112 - if false { - } else { - r.EncodeInt(int64(yy111)) - } - } - } - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq107[1] { - if x.Completions == nil { - r.EncodeNil() - } else { - yy114 := *x.Completions - yym115 := z.EncBinary() - _ = yym115 - if false { - } else { - r.EncodeInt(int64(yy114)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq107[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("completions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Completions == nil { - r.EncodeNil() - } else { - yy116 := *x.Completions - yym117 := z.EncBinary() - _ = yym117 - if false { - } else { - r.EncodeInt(int64(yy116)) - } - } - } - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq107[2] { - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy119 := *x.ActiveDeadlineSeconds - yym120 := z.EncBinary() - _ = yym120 - if false { - } else { - r.EncodeInt(int64(yy119)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq107[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy121 := *x.ActiveDeadlineSeconds - yym122 := z.EncBinary() - _ = yym122 - if false { - } else { - r.EncodeInt(int64(yy121)) - } - } - } - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq107[3] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym124 := z.EncBinary() - _ = yym124 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq107[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym125 := z.EncBinary() - _ = yym125 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq107[4] { - if x.ManualSelector == nil { - r.EncodeNil() - } else { - yy127 := *x.ManualSelector - yym128 := z.EncBinary() - _ = yym128 - if false { - } else { - r.EncodeBool(bool(yy127)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq107[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("manualSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ManualSelector == nil { - r.EncodeNil() - } else { - yy129 := *x.ManualSelector - yym130 := z.EncBinary() - _ = yym130 - if false { - } else { - r.EncodeBool(bool(yy129)) - } - } - } - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy132 := &x.Template - yy132.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy133 := &x.Template - yy133.CodecEncodeSelf(e) - } - if yyr107 || yy2arr107 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym134 := z.DecBinary() - _ = yym134 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct135 := r.ContainerType() - if yyct135 == codecSelferValueTypeMap1234 { - yyl135 := r.ReadMapStart() - if yyl135 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl135, d) - } - } else if yyct135 == codecSelferValueTypeArray1234 { - yyl135 := r.ReadArrayStart() - if yyl135 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl135, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys136Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys136Slc - var yyhl136 bool = l >= 0 - for yyj136 := 0; ; yyj136++ { - if yyhl136 { - if yyj136 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys136Slc = r.DecodeBytes(yys136Slc, true, true) - yys136 := string(yys136Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys136 { - case "parallelism": - if r.TryDecodeAsNil() { - if x.Parallelism != nil { - x.Parallelism = nil - } - } else { - if x.Parallelism == nil { - x.Parallelism = new(int32) - } - yym138 := z.DecBinary() - _ = yym138 - if false { - } else { - *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) - } - } - case "completions": - if r.TryDecodeAsNil() { - if x.Completions != nil { - x.Completions = nil - } - } else { - if x.Completions == nil { - x.Completions = new(int32) - } - yym140 := z.DecBinary() - _ = yym140 - if false { - } else { - *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) - } - } - case "activeDeadlineSeconds": - if r.TryDecodeAsNil() { - if x.ActiveDeadlineSeconds != nil { - x.ActiveDeadlineSeconds = nil - } - } else { - if x.ActiveDeadlineSeconds == nil { - x.ActiveDeadlineSeconds = new(int64) - } - yym142 := z.DecBinary() - _ = yym142 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym144 := z.DecBinary() - _ = yym144 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "manualSelector": - if r.TryDecodeAsNil() { - if x.ManualSelector != nil { - x.ManualSelector = nil - } - } else { - if x.ManualSelector == nil { - x.ManualSelector = new(bool) - } - yym146 := z.DecBinary() - _ = yym146 - if false { - } else { - *((*bool)(x.ManualSelector)) = r.DecodeBool() - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv147 := &x.Template - yyv147.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys136) - } // end switch yys136 - } // end for yyj136 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj148 int - var yyb148 bool - var yyhl148 bool = l >= 0 - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Parallelism != nil { - x.Parallelism = nil - } - } else { - if x.Parallelism == nil { - x.Parallelism = new(int32) - } - yym150 := z.DecBinary() - _ = yym150 - if false { - } else { - *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) - } - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Completions != nil { - x.Completions = nil - } - } else { - if x.Completions == nil { - x.Completions = new(int32) - } - yym152 := z.DecBinary() - _ = yym152 - if false { - } else { - *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) - } - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ActiveDeadlineSeconds != nil { - x.ActiveDeadlineSeconds = nil - } - } else { - if x.ActiveDeadlineSeconds == nil { - x.ActiveDeadlineSeconds = new(int64) - } - yym154 := z.DecBinary() - _ = yym154 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym156 := z.DecBinary() - _ = yym156 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ManualSelector != nil { - x.ManualSelector = nil - } - } else { - if x.ManualSelector == nil { - x.ManualSelector = new(bool) - } - yym158 := z.DecBinary() - _ = yym158 - if false { - } else { - *((*bool)(x.ManualSelector)) = r.DecodeBool() - } - } - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv159 := &x.Template - yyv159.CodecDecodeSelf(d) - } - for { - yyj148++ - if yyhl148 { - yyb148 = yyj148 > l - } else { - yyb148 = r.CheckBreak() - } - if yyb148 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj148-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym160 := z.EncBinary() - _ = yym160 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep161 := !z.EncBinary() - yy2arr161 := z.EncBasicHandle().StructToArray - var yyq161 [6]bool - _, _, _ = yysep161, yyq161, yy2arr161 - const yyr161 bool = false - yyq161[0] = len(x.Conditions) != 0 - yyq161[1] = x.StartTime != nil - yyq161[2] = x.CompletionTime != nil - yyq161[3] = x.Active != 0 - yyq161[4] = x.Succeeded != 0 - yyq161[5] = x.Failed != 0 - var yynn161 int - if yyr161 || yy2arr161 { - r.EncodeArrayStart(6) - } else { - yynn161 = 0 - for _, b := range yyq161 { - if b { - yynn161++ - } - } - r.EncodeMapStart(yynn161) - yynn161 = 0 - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[0] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym163 := z.EncBinary() - _ = yym163 - if false { - } else { - h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq161[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym164 := z.EncBinary() - _ = yym164 - if false { - } else { - h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) - } - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[1] { - if x.StartTime == nil { - r.EncodeNil() - } else { - yym166 := z.EncBinary() - _ = yym166 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym166 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym166 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq161[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.StartTime == nil { - r.EncodeNil() - } else { - yym167 := z.EncBinary() - _ = yym167 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym167 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym167 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[2] { - if x.CompletionTime == nil { - r.EncodeNil() - } else { - yym169 := z.EncBinary() - _ = yym169 - if false { - } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym169 { - z.EncBinaryMarshal(x.CompletionTime) - } else if !yym169 && z.IsJSONHandle() { - z.EncJSONMarshal(x.CompletionTime) - } else { - z.EncFallback(x.CompletionTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq161[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("completionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CompletionTime == nil { - r.EncodeNil() - } else { - yym170 := z.EncBinary() - _ = yym170 - if false { - } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym170 { - z.EncBinaryMarshal(x.CompletionTime) - } else if !yym170 && z.IsJSONHandle() { - z.EncJSONMarshal(x.CompletionTime) - } else { - z.EncFallback(x.CompletionTime) - } - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[3] { - yym172 := z.EncBinary() - _ = yym172 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq161[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("active")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym173 := z.EncBinary() - _ = yym173 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[4] { - yym175 := z.EncBinary() - _ = yym175 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq161[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("succeeded")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym176 := z.EncBinary() - _ = yym176 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq161[5] { - yym178 := z.EncBinary() - _ = yym178 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq161[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym179 := z.EncBinary() - _ = yym179 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } - } - if yyr161 || yy2arr161 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym180 := z.DecBinary() - _ = yym180 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct181 := r.ContainerType() - if yyct181 == codecSelferValueTypeMap1234 { - yyl181 := r.ReadMapStart() - if yyl181 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl181, d) - } - } else if yyct181 == codecSelferValueTypeArray1234 { - yyl181 := r.ReadArrayStart() - if yyl181 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl181, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys182Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys182Slc - var yyhl182 bool = l >= 0 - for yyj182 := 0; ; yyj182++ { - if yyhl182 { - if yyj182 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys182Slc = r.DecodeBytes(yys182Slc, true, true) - yys182 := string(yys182Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys182 { - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv183 := &x.Conditions - yym184 := z.DecBinary() - _ = yym184 - if false { - } else { - h.decSliceJobCondition((*[]JobCondition)(yyv183), d) - } - } - case "startTime": - if r.TryDecodeAsNil() { - if x.StartTime != nil { - x.StartTime = nil - } - } else { - if x.StartTime == nil { - x.StartTime = new(pkg1_v1.Time) - } - yym186 := z.DecBinary() - _ = yym186 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym186 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym186 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - case "completionTime": - if r.TryDecodeAsNil() { - if x.CompletionTime != nil { - x.CompletionTime = nil - } - } else { - if x.CompletionTime == nil { - x.CompletionTime = new(pkg1_v1.Time) - } - yym188 := z.DecBinary() - _ = yym188 - if false { - } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym188 { - z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym188 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.CompletionTime) - } else { - z.DecFallback(x.CompletionTime, false) - } - } - case "active": - if r.TryDecodeAsNil() { - x.Active = 0 - } else { - x.Active = int32(r.DecodeInt(32)) - } - case "succeeded": - if r.TryDecodeAsNil() { - x.Succeeded = 0 - } else { - x.Succeeded = int32(r.DecodeInt(32)) - } - case "failed": - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - x.Failed = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys182) - } // end switch yys182 - } // end for yyj182 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj192 int - var yyb192 bool - var yyhl192 bool = l >= 0 - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv193 := &x.Conditions - yym194 := z.DecBinary() - _ = yym194 - if false { - } else { - h.decSliceJobCondition((*[]JobCondition)(yyv193), d) - } - } - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.StartTime != nil { - x.StartTime = nil - } - } else { - if x.StartTime == nil { - x.StartTime = new(pkg1_v1.Time) - } - yym196 := z.DecBinary() - _ = yym196 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym196 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym196 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.CompletionTime != nil { - x.CompletionTime = nil - } - } else { - if x.CompletionTime == nil { - x.CompletionTime = new(pkg1_v1.Time) - } - yym198 := z.DecBinary() - _ = yym198 - if false { - } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym198 { - z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym198 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.CompletionTime) - } else { - z.DecFallback(x.CompletionTime, false) - } - } - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Active = 0 - } else { - x.Active = int32(r.DecodeInt(32)) - } - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Succeeded = 0 - } else { - x.Succeeded = int32(r.DecodeInt(32)) - } - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - x.Failed = int32(r.DecodeInt(32)) - } - for { - yyj192++ - if yyhl192 { - yyb192 = yyj192 > l - } else { - yyb192 = r.CheckBreak() - } - if yyb192 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj192-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym202 := z.EncBinary() - _ = yym202 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym203 := z.DecBinary() - _ = yym203 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym204 := z.EncBinary() - _ = yym204 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep205 := !z.EncBinary() - yy2arr205 := z.EncBasicHandle().StructToArray - var yyq205 [6]bool - _, _, _ = yysep205, yyq205, yy2arr205 - const yyr205 bool = false - yyq205[2] = true - yyq205[3] = true - yyq205[4] = x.Reason != "" - yyq205[5] = x.Message != "" - var yynn205 int - if yyr205 || yy2arr205 { - r.EncodeArrayStart(6) - } else { - yynn205 = 2 - for _, b := range yyq205 { - if b { - yynn205++ - } - } - r.EncodeMapStart(yynn205) - yynn205 = 0 - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Type.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym208 := z.EncBinary() - _ = yym208 - if false { - } else if z.HasExtensions() && z.EncExt(x.Status) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym209 := z.EncBinary() - _ = yym209 - if false { - } else if z.HasExtensions() && z.EncExt(x.Status) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Status)) - } - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq205[2] { - yy211 := &x.LastProbeTime - yym212 := z.EncBinary() - _ = yym212 - if false { - } else if z.HasExtensions() && z.EncExt(yy211) { - } else if yym212 { - z.EncBinaryMarshal(yy211) - } else if !yym212 && z.IsJSONHandle() { - z.EncJSONMarshal(yy211) - } else { - z.EncFallback(yy211) - } - } else { - r.EncodeNil() - } - } else { - if yyq205[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy213 := &x.LastProbeTime - yym214 := z.EncBinary() - _ = yym214 - if false { - } else if z.HasExtensions() && z.EncExt(yy213) { - } else if yym214 { - z.EncBinaryMarshal(yy213) - } else if !yym214 && z.IsJSONHandle() { - z.EncJSONMarshal(yy213) - } else { - z.EncFallback(yy213) - } - } - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq205[3] { - yy216 := &x.LastTransitionTime - yym217 := z.EncBinary() - _ = yym217 - if false { - } else if z.HasExtensions() && z.EncExt(yy216) { - } else if yym217 { - z.EncBinaryMarshal(yy216) - } else if !yym217 && z.IsJSONHandle() { - z.EncJSONMarshal(yy216) - } else { - z.EncFallback(yy216) - } - } else { - r.EncodeNil() - } - } else { - if yyq205[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy218 := &x.LastTransitionTime - yym219 := z.EncBinary() - _ = yym219 - if false { - } else if z.HasExtensions() && z.EncExt(yy218) { - } else if yym219 { - z.EncBinaryMarshal(yy218) - } else if !yym219 && z.IsJSONHandle() { - z.EncJSONMarshal(yy218) - } else { - z.EncFallback(yy218) - } - } - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq205[4] { - yym221 := z.EncBinary() - _ = yym221 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq205[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym222 := z.EncBinary() - _ = yym222 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq205[5] { - yym224 := z.EncBinary() - _ = yym224 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq205[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym225 := z.EncBinary() - _ = yym225 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr205 || yy2arr205 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym226 := z.DecBinary() - _ = yym226 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct227 := r.ContainerType() - if yyct227 == codecSelferValueTypeMap1234 { - yyl227 := r.ReadMapStart() - if yyl227 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl227, d) - } - } else if yyct227 == codecSelferValueTypeArray1234 { - yyl227 := r.ReadArrayStart() - if yyl227 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl227, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys228Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys228Slc - var yyhl228 bool = l >= 0 - for yyj228 := 0; ; yyj228++ { - if yyhl228 { - if yyj228 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys228Slc = r.DecodeBytes(yys228Slc, true, true) - yys228 := string(yys228Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys228 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = JobConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg2_api.ConditionStatus(r.DecodeString()) - } - case "lastProbeTime": - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg1_v1.Time{} - } else { - yyv231 := &x.LastProbeTime - yym232 := z.DecBinary() - _ = yym232 - if false { - } else if z.HasExtensions() && z.DecExt(yyv231) { - } else if yym232 { - z.DecBinaryUnmarshal(yyv231) - } else if !yym232 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv231) - } else { - z.DecFallback(yyv231, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} - } else { - yyv233 := &x.LastTransitionTime - yym234 := z.DecBinary() - _ = yym234 - if false { - } else if z.HasExtensions() && z.DecExt(yyv233) { - } else if yym234 { - z.DecBinaryUnmarshal(yyv233) - } else if !yym234 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv233) - } else { - z.DecFallback(yyv233, false) - } - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys228) - } // end switch yys228 - } // end for yyj228 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj237 int - var yyb237 bool - var yyhl237 bool = l >= 0 - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = JobConditionType(r.DecodeString()) - } - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg2_api.ConditionStatus(r.DecodeString()) - } - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg1_v1.Time{} - } else { - yyv240 := &x.LastProbeTime - yym241 := z.DecBinary() - _ = yym241 - if false { - } else if z.HasExtensions() && z.DecExt(yyv240) { - } else if yym241 { - z.DecBinaryUnmarshal(yyv240) - } else if !yym241 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv240) - } else { - z.DecFallback(yyv240, false) - } - } - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} - } else { - yyv242 := &x.LastTransitionTime - yym243 := z.DecBinary() - _ = yym243 - if false { - } else if z.HasExtensions() && z.DecExt(yyv242) { - } else if yym243 { - z.DecBinaryUnmarshal(yyv242) - } else if !yym243 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv242) - } else { - z.DecFallback(yyv242, false) - } - } - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj237++ - if yyhl237 { - yyb237 = yyj237 > l - } else { - yyb237 = r.CheckBreak() - } - if yyb237 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj237-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym246 := z.EncBinary() - _ = yym246 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep247 := !z.EncBinary() - yy2arr247 := z.EncBasicHandle().StructToArray - var yyq247 [5]bool - _, _, _ = yysep247, yyq247, yy2arr247 - const yyr247 bool = false - yyq247[0] = x.Kind != "" - yyq247[1] = x.APIVersion != "" - yyq247[2] = true - yyq247[3] = true - yyq247[4] = true - var yynn247 int - if yyr247 || yy2arr247 { - r.EncodeArrayStart(5) - } else { - yynn247 = 0 - for _, b := range yyq247 { - if b { - yynn247++ - } - } - r.EncodeMapStart(yynn247) - yynn247 = 0 - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq247[0] { - yym249 := z.EncBinary() - _ = yym249 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq247[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym250 := z.EncBinary() - _ = yym250 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq247[1] { - yym252 := z.EncBinary() - _ = yym252 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq247[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym253 := z.EncBinary() - _ = yym253 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq247[2] { - yy255 := &x.ObjectMeta - yy255.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq247[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy256 := &x.ObjectMeta - yy256.CodecEncodeSelf(e) - } - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq247[3] { - yy258 := &x.Spec - yy258.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq247[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy259 := &x.Spec - yy259.CodecEncodeSelf(e) - } - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq247[4] { - yy261 := &x.Status - yy261.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq247[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy262 := &x.Status - yy262.CodecEncodeSelf(e) - } - } - if yyr247 || yy2arr247 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CronJob) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym263 := z.DecBinary() - _ = yym263 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct264 := r.ContainerType() - if yyct264 == codecSelferValueTypeMap1234 { - yyl264 := r.ReadMapStart() - if yyl264 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl264, d) - } - } else if yyct264 == codecSelferValueTypeArray1234 { - yyl264 := r.ReadArrayStart() - if yyl264 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl264, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CronJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys265Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys265Slc - var yyhl265 bool = l >= 0 - for yyj265 := 0; ; yyj265++ { - if yyhl265 { - if yyj265 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys265Slc = r.DecodeBytes(yys265Slc, true, true) - yys265 := string(yys265Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys265 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv268 := &x.ObjectMeta - yyv268.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = CronJobSpec{} - } else { - yyv269 := &x.Spec - yyv269.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = CronJobStatus{} - } else { - yyv270 := &x.Status - yyv270.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys265) - } // end switch yys265 - } // end for yyj265 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj271 int - var yyb271 bool - var yyhl271 bool = l >= 0 - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv274 := &x.ObjectMeta - yyv274.CodecDecodeSelf(d) - } - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = CronJobSpec{} - } else { - yyv275 := &x.Spec - yyv275.CodecDecodeSelf(d) - } - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = CronJobStatus{} - } else { - yyv276 := &x.Status - yyv276.CodecDecodeSelf(d) - } - for { - yyj271++ - if yyhl271 { - yyb271 = yyj271 > l - } else { - yyb271 = r.CheckBreak() - } - if yyb271 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj271-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CronJobList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym277 := z.EncBinary() - _ = yym277 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep278 := !z.EncBinary() - yy2arr278 := z.EncBasicHandle().StructToArray - var yyq278 [4]bool - _, _, _ = yysep278, yyq278, yy2arr278 - const yyr278 bool = false - yyq278[0] = x.Kind != "" - yyq278[1] = x.APIVersion != "" - yyq278[2] = true - var yynn278 int - if yyr278 || yy2arr278 { - r.EncodeArrayStart(4) - } else { - yynn278 = 1 - for _, b := range yyq278 { - if b { - yynn278++ - } - } - r.EncodeMapStart(yynn278) - yynn278 = 0 - } - if yyr278 || yy2arr278 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq278[0] { - yym280 := z.EncBinary() - _ = yym280 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq278[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym281 := z.EncBinary() - _ = yym281 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr278 || yy2arr278 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq278[1] { - yym283 := z.EncBinary() - _ = yym283 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq278[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym284 := z.EncBinary() - _ = yym284 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr278 || yy2arr278 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq278[2] { - yy286 := &x.ListMeta - yym287 := z.EncBinary() - _ = yym287 - if false { - } else if z.HasExtensions() && z.EncExt(yy286) { - } else { - z.EncFallback(yy286) - } - } else { - r.EncodeNil() - } - } else { - if yyq278[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy288 := &x.ListMeta - yym289 := z.EncBinary() - _ = yym289 - if false { - } else if z.HasExtensions() && z.EncExt(yy288) { - } else { - z.EncFallback(yy288) - } - } - } - if yyr278 || yy2arr278 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym291 := z.EncBinary() - _ = yym291 - if false { - } else { - h.encSliceCronJob(([]CronJob)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym292 := z.EncBinary() - _ = yym292 - if false { - } else { - h.encSliceCronJob(([]CronJob)(x.Items), e) - } - } - } - if yyr278 || yy2arr278 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CronJobList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym293 := z.DecBinary() - _ = yym293 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct294 := r.ContainerType() - if yyct294 == codecSelferValueTypeMap1234 { - yyl294 := r.ReadMapStart() - if yyl294 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl294, d) - } - } else if yyct294 == codecSelferValueTypeArray1234 { - yyl294 := r.ReadArrayStart() - if yyl294 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl294, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CronJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys295Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys295Slc - var yyhl295 bool = l >= 0 - for yyj295 := 0; ; yyj295++ { - if yyhl295 { - if yyj295 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys295Slc = r.DecodeBytes(yys295Slc, true, true) - yys295 := string(yys295Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys295 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv298 := &x.ListMeta - yym299 := z.DecBinary() - _ = yym299 - if false { - } else if z.HasExtensions() && z.DecExt(yyv298) { - } else { - z.DecFallback(yyv298, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv300 := &x.Items - yym301 := z.DecBinary() - _ = yym301 - if false { - } else { - h.decSliceCronJob((*[]CronJob)(yyv300), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys295) - } // end switch yys295 - } // end for yyj295 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CronJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj302 int - var yyb302 bool - var yyhl302 bool = l >= 0 - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() - } - if yyb302 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() - } - if yyb302 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() - } - if yyb302 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv305 := &x.ListMeta - yym306 := z.DecBinary() - _ = yym306 - if false { - } else if z.HasExtensions() && z.DecExt(yyv305) { - } else { - z.DecFallback(yyv305, false) - } - } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() - } - if yyb302 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv307 := &x.Items - yym308 := z.DecBinary() - _ = yym308 - if false { - } else { - h.decSliceCronJob((*[]CronJob)(yyv307), d) - } - } - for { - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() - } - if yyb302 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj302-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CronJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym309 := z.EncBinary() - _ = yym309 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep310 := !z.EncBinary() - yy2arr310 := z.EncBasicHandle().StructToArray - var yyq310 [5]bool - _, _, _ = yysep310, yyq310, yy2arr310 - const yyr310 bool = false - yyq310[1] = x.StartingDeadlineSeconds != nil - yyq310[2] = x.ConcurrencyPolicy != "" - yyq310[3] = x.Suspend != nil - var yynn310 int - if yyr310 || yy2arr310 { - r.EncodeArrayStart(5) - } else { - yynn310 = 2 - for _, b := range yyq310 { - if b { - yynn310++ - } - } - r.EncodeMapStart(yynn310) - yynn310 = 0 - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym312 := z.EncBinary() - _ = yym312 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("schedule")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym313 := z.EncBinary() - _ = yym313 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) - } - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq310[1] { - if x.StartingDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy315 := *x.StartingDeadlineSeconds - yym316 := z.EncBinary() - _ = yym316 - if false { - } else { - r.EncodeInt(int64(yy315)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq310[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startingDeadlineSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.StartingDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy317 := *x.StartingDeadlineSeconds - yym318 := z.EncBinary() - _ = yym318 - if false { - } else { - r.EncodeInt(int64(yy317)) - } - } - } - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq310[2] { - x.ConcurrencyPolicy.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq310[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrencyPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.ConcurrencyPolicy.CodecEncodeSelf(e) - } - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq310[3] { - if x.Suspend == nil { - r.EncodeNil() - } else { - yy321 := *x.Suspend - yym322 := z.EncBinary() - _ = yym322 - if false { - } else { - r.EncodeBool(bool(yy321)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq310[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("suspend")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Suspend == nil { - r.EncodeNil() - } else { - yy323 := *x.Suspend - yym324 := z.EncBinary() - _ = yym324 - if false { - } else { - r.EncodeBool(bool(yy323)) - } - } - } - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy326 := &x.JobTemplate - yy326.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("jobTemplate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy327 := &x.JobTemplate - yy327.CodecEncodeSelf(e) - } - if yyr310 || yy2arr310 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CronJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym328 := z.DecBinary() - _ = yym328 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct329 := r.ContainerType() - if yyct329 == codecSelferValueTypeMap1234 { - yyl329 := r.ReadMapStart() - if yyl329 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl329, d) - } - } else if yyct329 == codecSelferValueTypeArray1234 { - yyl329 := r.ReadArrayStart() - if yyl329 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl329, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CronJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys330Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys330Slc - var yyhl330 bool = l >= 0 - for yyj330 := 0; ; yyj330++ { - if yyhl330 { - if yyj330 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys330Slc = r.DecodeBytes(yys330Slc, true, true) - yys330 := string(yys330Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys330 { - case "schedule": - if r.TryDecodeAsNil() { - x.Schedule = "" - } else { - x.Schedule = string(r.DecodeString()) - } - case "startingDeadlineSeconds": - if r.TryDecodeAsNil() { - if x.StartingDeadlineSeconds != nil { - x.StartingDeadlineSeconds = nil - } - } else { - if x.StartingDeadlineSeconds == nil { - x.StartingDeadlineSeconds = new(int64) - } - yym333 := z.DecBinary() - _ = yym333 - if false { - } else { - *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - case "concurrencyPolicy": - if r.TryDecodeAsNil() { - x.ConcurrencyPolicy = "" - } else { - x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) - } - case "suspend": - if r.TryDecodeAsNil() { - if x.Suspend != nil { - x.Suspend = nil - } - } else { - if x.Suspend == nil { - x.Suspend = new(bool) - } - yym336 := z.DecBinary() - _ = yym336 - if false { - } else { - *((*bool)(x.Suspend)) = r.DecodeBool() - } - } - case "jobTemplate": - if r.TryDecodeAsNil() { - x.JobTemplate = JobTemplateSpec{} - } else { - yyv337 := &x.JobTemplate - yyv337.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys330) - } // end switch yys330 - } // end for yyj330 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CronJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj338 int - var yyb338 bool - var yyhl338 bool = l >= 0 - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Schedule = "" - } else { - x.Schedule = string(r.DecodeString()) - } - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.StartingDeadlineSeconds != nil { - x.StartingDeadlineSeconds = nil - } - } else { - if x.StartingDeadlineSeconds == nil { - x.StartingDeadlineSeconds = new(int64) - } - yym341 := z.DecBinary() - _ = yym341 - if false { - } else { - *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrencyPolicy = "" - } else { - x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) - } - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Suspend != nil { - x.Suspend = nil - } - } else { - if x.Suspend == nil { - x.Suspend = new(bool) - } - yym344 := z.DecBinary() - _ = yym344 - if false { - } else { - *((*bool)(x.Suspend)) = r.DecodeBool() - } - } - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.JobTemplate = JobTemplateSpec{} - } else { - yyv345 := &x.JobTemplate - yyv345.CodecDecodeSelf(d) - } - for { - yyj338++ - if yyhl338 { - yyb338 = yyj338 > l - } else { - yyb338 = r.CheckBreak() - } - if yyb338 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj338-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym346 := z.EncBinary() - _ = yym346 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym347 := z.DecBinary() - _ = yym347 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym348 := z.EncBinary() - _ = yym348 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep349 := !z.EncBinary() - yy2arr349 := z.EncBasicHandle().StructToArray - var yyq349 [2]bool - _, _, _ = yysep349, yyq349, yy2arr349 - const yyr349 bool = false - yyq349[0] = len(x.Active) != 0 - yyq349[1] = x.LastScheduleTime != nil - var yynn349 int - if yyr349 || yy2arr349 { - r.EncodeArrayStart(2) - } else { - yynn349 = 0 - for _, b := range yyq349 { - if b { - yynn349++ - } - } - r.EncodeMapStart(yynn349) - yynn349 = 0 - } - if yyr349 || yy2arr349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq349[0] { - if x.Active == nil { - r.EncodeNil() - } else { - yym351 := z.EncBinary() - _ = yym351 - if false { - } else { - h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq349[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("active")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Active == nil { - r.EncodeNil() - } else { - yym352 := z.EncBinary() - _ = yym352 - if false { - } else { - h.encSliceapi_ObjectReference(([]pkg2_api.ObjectReference)(x.Active), e) - } - } - } - } - if yyr349 || yy2arr349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq349[1] { - if x.LastScheduleTime == nil { - r.EncodeNil() - } else { - yym354 := z.EncBinary() - _ = yym354 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym354 { - z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym354 && z.IsJSONHandle() { - z.EncJSONMarshal(x.LastScheduleTime) - } else { - z.EncFallback(x.LastScheduleTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq349[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastScheduleTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.LastScheduleTime == nil { - r.EncodeNil() - } else { - yym355 := z.EncBinary() - _ = yym355 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym355 { - z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym355 && z.IsJSONHandle() { - z.EncJSONMarshal(x.LastScheduleTime) - } else { - z.EncFallback(x.LastScheduleTime) - } - } - } - } - if yyr349 || yy2arr349 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CronJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym356 := z.DecBinary() - _ = yym356 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct357 := r.ContainerType() - if yyct357 == codecSelferValueTypeMap1234 { - yyl357 := r.ReadMapStart() - if yyl357 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl357, d) - } - } else if yyct357 == codecSelferValueTypeArray1234 { - yyl357 := r.ReadArrayStart() - if yyl357 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl357, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CronJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys358Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys358Slc - var yyhl358 bool = l >= 0 - for yyj358 := 0; ; yyj358++ { - if yyhl358 { - if yyj358 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys358Slc = r.DecodeBytes(yys358Slc, true, true) - yys358 := string(yys358Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys358 { - case "active": - if r.TryDecodeAsNil() { - x.Active = nil - } else { - yyv359 := &x.Active - yym360 := z.DecBinary() - _ = yym360 - if false { - } else { - h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv359), d) - } - } - case "lastScheduleTime": - if r.TryDecodeAsNil() { - if x.LastScheduleTime != nil { - x.LastScheduleTime = nil - } - } else { - if x.LastScheduleTime == nil { - x.LastScheduleTime = new(pkg1_v1.Time) - } - yym362 := z.DecBinary() - _ = yym362 - if false { - } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym362 { - z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym362 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.LastScheduleTime) - } else { - z.DecFallback(x.LastScheduleTime, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys358) - } // end switch yys358 - } // end for yyj358 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CronJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj363 int - var yyb363 bool - var yyhl363 bool = l >= 0 - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Active = nil - } else { - yyv364 := &x.Active - yym365 := z.DecBinary() - _ = yym365 - if false { - } else { - h.decSliceapi_ObjectReference((*[]pkg2_api.ObjectReference)(yyv364), d) - } - } - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.LastScheduleTime != nil { - x.LastScheduleTime = nil - } - } else { - if x.LastScheduleTime == nil { - x.LastScheduleTime = new(pkg1_v1.Time) - } - yym367 := z.DecBinary() - _ = yym367 - if false { - } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym367 { - z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym367 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.LastScheduleTime) - } else { - z.DecFallback(x.LastScheduleTime, false) - } - } - for { - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj363-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv368 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy369 := &yyv368 - yy369.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv370 := *v - yyh370, yyl370 := z.DecSliceHelperStart() - var yyc370 bool - if yyl370 == 0 { - if yyv370 == nil { - yyv370 = []Job{} - yyc370 = true - } else if len(yyv370) != 0 { - yyv370 = yyv370[:0] - yyc370 = true - } - } else if yyl370 > 0 { - var yyrr370, yyrl370 int - var yyrt370 bool - if yyl370 > cap(yyv370) { - - yyrg370 := len(yyv370) > 0 - yyv2370 := yyv370 - yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 808) - if yyrt370 { - if yyrl370 <= cap(yyv370) { - yyv370 = yyv370[:yyrl370] - } else { - yyv370 = make([]Job, yyrl370) - } - } else { - yyv370 = make([]Job, yyrl370) - } - yyc370 = true - yyrr370 = len(yyv370) - if yyrg370 { - copy(yyv370, yyv2370) - } - } else if yyl370 != len(yyv370) { - yyv370 = yyv370[:yyl370] - yyc370 = true - } - yyj370 := 0 - for ; yyj370 < yyrr370; yyj370++ { - yyh370.ElemContainerState(yyj370) - if r.TryDecodeAsNil() { - yyv370[yyj370] = Job{} - } else { - yyv371 := &yyv370[yyj370] - yyv371.CodecDecodeSelf(d) - } - - } - if yyrt370 { - for ; yyj370 < yyl370; yyj370++ { - yyv370 = append(yyv370, Job{}) - yyh370.ElemContainerState(yyj370) - if r.TryDecodeAsNil() { - yyv370[yyj370] = Job{} - } else { - yyv372 := &yyv370[yyj370] - yyv372.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj370 := 0 - for ; !r.CheckBreak(); yyj370++ { - - if yyj370 >= len(yyv370) { - yyv370 = append(yyv370, Job{}) // var yyz370 Job - yyc370 = true - } - yyh370.ElemContainerState(yyj370) - if yyj370 < len(yyv370) { - if r.TryDecodeAsNil() { - yyv370[yyj370] = Job{} - } else { - yyv373 := &yyv370[yyj370] - yyv373.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj370 < len(yyv370) { - yyv370 = yyv370[:yyj370] - yyc370 = true - } else if yyj370 == 0 && yyv370 == nil { - yyv370 = []Job{} - yyc370 = true - } - } - yyh370.End() - if yyc370 { - *v = yyv370 - } -} - -func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv374 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy375 := &yyv374 - yy375.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv376 := *v - yyh376, yyl376 := z.DecSliceHelperStart() - var yyc376 bool - if yyl376 == 0 { - if yyv376 == nil { - yyv376 = []JobCondition{} - yyc376 = true - } else if len(yyv376) != 0 { - yyv376 = yyv376[:0] - yyc376 = true - } - } else if yyl376 > 0 { - var yyrr376, yyrl376 int - var yyrt376 bool - if yyl376 > cap(yyv376) { - - yyrg376 := len(yyv376) > 0 - yyv2376 := yyv376 - yyrl376, yyrt376 = z.DecInferLen(yyl376, z.DecBasicHandle().MaxInitLen, 112) - if yyrt376 { - if yyrl376 <= cap(yyv376) { - yyv376 = yyv376[:yyrl376] - } else { - yyv376 = make([]JobCondition, yyrl376) - } - } else { - yyv376 = make([]JobCondition, yyrl376) - } - yyc376 = true - yyrr376 = len(yyv376) - if yyrg376 { - copy(yyv376, yyv2376) - } - } else if yyl376 != len(yyv376) { - yyv376 = yyv376[:yyl376] - yyc376 = true - } - yyj376 := 0 - for ; yyj376 < yyrr376; yyj376++ { - yyh376.ElemContainerState(yyj376) - if r.TryDecodeAsNil() { - yyv376[yyj376] = JobCondition{} - } else { - yyv377 := &yyv376[yyj376] - yyv377.CodecDecodeSelf(d) - } - - } - if yyrt376 { - for ; yyj376 < yyl376; yyj376++ { - yyv376 = append(yyv376, JobCondition{}) - yyh376.ElemContainerState(yyj376) - if r.TryDecodeAsNil() { - yyv376[yyj376] = JobCondition{} - } else { - yyv378 := &yyv376[yyj376] - yyv378.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj376 := 0 - for ; !r.CheckBreak(); yyj376++ { - - if yyj376 >= len(yyv376) { - yyv376 = append(yyv376, JobCondition{}) // var yyz376 JobCondition - yyc376 = true - } - yyh376.ElemContainerState(yyj376) - if yyj376 < len(yyv376) { - if r.TryDecodeAsNil() { - yyv376[yyj376] = JobCondition{} - } else { - yyv379 := &yyv376[yyj376] - yyv379.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj376 < len(yyv376) { - yyv376 = yyv376[:yyj376] - yyc376 = true - } else if yyj376 == 0 && yyv376 == nil { - yyv376 = []JobCondition{} - yyc376 = true - } - } - yyh376.End() - if yyc376 { - *v = yyv376 - } -} - -func (x codecSelfer1234) encSliceCronJob(v []CronJob, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv380 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy381 := &yyv380 - yy381.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCronJob(v *[]CronJob, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv382 := *v - yyh382, yyl382 := z.DecSliceHelperStart() - var yyc382 bool - if yyl382 == 0 { - if yyv382 == nil { - yyv382 = []CronJob{} - yyc382 = true - } else if len(yyv382) != 0 { - yyv382 = yyv382[:0] - yyc382 = true - } - } else if yyl382 > 0 { - var yyrr382, yyrl382 int - var yyrt382 bool - if yyl382 > cap(yyv382) { - - yyrg382 := len(yyv382) > 0 - yyv2382 := yyv382 - yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1056) - if yyrt382 { - if yyrl382 <= cap(yyv382) { - yyv382 = yyv382[:yyrl382] - } else { - yyv382 = make([]CronJob, yyrl382) - } - } else { - yyv382 = make([]CronJob, yyrl382) - } - yyc382 = true - yyrr382 = len(yyv382) - if yyrg382 { - copy(yyv382, yyv2382) - } - } else if yyl382 != len(yyv382) { - yyv382 = yyv382[:yyl382] - yyc382 = true - } - yyj382 := 0 - for ; yyj382 < yyrr382; yyj382++ { - yyh382.ElemContainerState(yyj382) - if r.TryDecodeAsNil() { - yyv382[yyj382] = CronJob{} - } else { - yyv383 := &yyv382[yyj382] - yyv383.CodecDecodeSelf(d) - } - - } - if yyrt382 { - for ; yyj382 < yyl382; yyj382++ { - yyv382 = append(yyv382, CronJob{}) - yyh382.ElemContainerState(yyj382) - if r.TryDecodeAsNil() { - yyv382[yyj382] = CronJob{} - } else { - yyv384 := &yyv382[yyj382] - yyv384.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj382 := 0 - for ; !r.CheckBreak(); yyj382++ { - - if yyj382 >= len(yyv382) { - yyv382 = append(yyv382, CronJob{}) // var yyz382 CronJob - yyc382 = true - } - yyh382.ElemContainerState(yyj382) - if yyj382 < len(yyv382) { - if r.TryDecodeAsNil() { - yyv382[yyj382] = CronJob{} - } else { - yyv385 := &yyv382[yyj382] - yyv385.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj382 < len(yyv382) { - yyv382 = yyv382[:yyj382] - yyc382 = true - } else if yyj382 == 0 && yyv382 == nil { - yyv382 = []CronJob{} - yyc382 = true - } - } - yyh382.End() - if yyc382 { - *v = yyv382 - } -} - -func (x codecSelfer1234) encSliceapi_ObjectReference(v []pkg2_api.ObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv386 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy387 := &yyv386 - yy387.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceapi_ObjectReference(v *[]pkg2_api.ObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv388 := *v - yyh388, yyl388 := z.DecSliceHelperStart() - var yyc388 bool - if yyl388 == 0 { - if yyv388 == nil { - yyv388 = []pkg2_api.ObjectReference{} - yyc388 = true - } else if len(yyv388) != 0 { - yyv388 = yyv388[:0] - yyc388 = true - } - } else if yyl388 > 0 { - var yyrr388, yyrl388 int - var yyrt388 bool - if yyl388 > cap(yyv388) { - - yyrg388 := len(yyv388) > 0 - yyv2388 := yyv388 - yyrl388, yyrt388 = z.DecInferLen(yyl388, z.DecBasicHandle().MaxInitLen, 112) - if yyrt388 { - if yyrl388 <= cap(yyv388) { - yyv388 = yyv388[:yyrl388] - } else { - yyv388 = make([]pkg2_api.ObjectReference, yyrl388) - } - } else { - yyv388 = make([]pkg2_api.ObjectReference, yyrl388) - } - yyc388 = true - yyrr388 = len(yyv388) - if yyrg388 { - copy(yyv388, yyv2388) - } - } else if yyl388 != len(yyv388) { - yyv388 = yyv388[:yyl388] - yyc388 = true - } - yyj388 := 0 - for ; yyj388 < yyrr388; yyj388++ { - yyh388.ElemContainerState(yyj388) - if r.TryDecodeAsNil() { - yyv388[yyj388] = pkg2_api.ObjectReference{} - } else { - yyv389 := &yyv388[yyj388] - yyv389.CodecDecodeSelf(d) - } - - } - if yyrt388 { - for ; yyj388 < yyl388; yyj388++ { - yyv388 = append(yyv388, pkg2_api.ObjectReference{}) - yyh388.ElemContainerState(yyj388) - if r.TryDecodeAsNil() { - yyv388[yyj388] = pkg2_api.ObjectReference{} - } else { - yyv390 := &yyv388[yyj388] - yyv390.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj388 := 0 - for ; !r.CheckBreak(); yyj388++ { - - if yyj388 >= len(yyv388) { - yyv388 = append(yyv388, pkg2_api.ObjectReference{}) // var yyz388 pkg2_api.ObjectReference - yyc388 = true - } - yyh388.ElemContainerState(yyj388) - if yyj388 < len(yyv388) { - if r.TryDecodeAsNil() { - yyv388[yyj388] = pkg2_api.ObjectReference{} - } else { - yyv391 := &yyv388[yyj388] - yyv391.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj388 < len(yyv388) { - yyv388 = yyv388[:yyj388] - yyc388 = true - } else if yyj388 == 0 && yyv388 == nil { - yyv388 = []pkg2_api.ObjectReference{} - yyc388 = true - } - } - yyh388.End() - if yyc388 { - *v = yyv388 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/batch/types.go b/staging/src/k8s.io/client-go/pkg/apis/batch/types.go index 74a6f6abe01..6904b24a385 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/batch/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/batch/types.go @@ -25,47 +25,47 @@ import ( // Job represents the configuration of a single job. type Job struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Spec JobSpec // 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"` + Status JobStatus } // JobList is a collection of jobs. type JobList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of Job. - Items []Job `json:"items"` + Items []Job } // JobTemplate describes a template for creating copies of a predefined pod. type JobTemplate struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Template JobTemplateSpec } // JobTemplateSpec describes the data a Job should have when created from a template @@ -73,12 +73,12 @@ 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"` + api.ObjectMeta // 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"` + Spec JobSpec } // JobSpec describes how the job execution will look like. @@ -89,7 +89,7 @@ type JobSpec struct { // 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"` + Parallelism *int32 // Completions specifies the desired number of successfully finished pods the // job should be run with. Setting to nil means that the success of any @@ -97,17 +97,17 @@ type JobSpec struct { // 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"` + Completions *int32 // 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"` + ActiveDeadlineSeconds *int64 // Selector is a label query over pods that should match the pod count. // Normally, the system sets this field for you. // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // ManualSelector controls generation of pod labels and pod selectors. // Leave `manualSelector` unset unless you are certain what you are doing. @@ -119,11 +119,11 @@ type JobSpec struct { // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` // API. // +optional - ManualSelector *bool `json:"manualSelector,omitempty"` + ManualSelector *bool // Template is the object that describes the pod that will be created when // executing a job. - Template api.PodTemplateSpec `json:"template"` + Template api.PodTemplateSpec } // JobStatus represents the current state of a Job. @@ -131,31 +131,31 @@ 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"` + Conditions []JobCondition // 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 *metav1.Time `json:"startTime,omitempty"` + StartTime *metav1.Time // 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 *metav1.Time `json:"completionTime,omitempty"` + CompletionTime *metav1.Time // Active is the number of actively running pods. // +optional - Active int32 `json:"active,omitempty"` + Active int32 // Succeeded is the number of pods which reached Phase Succeeded. // +optional - Succeeded int32 `json:"succeeded,omitempty"` + Succeeded int32 // Failed is the number of pods which reached Phase Failed. // +optional - Failed int32 `json:"failed,omitempty"` + Failed int32 } type JobConditionType string @@ -171,79 +171,79 @@ const ( // JobCondition describes current state of a job. type JobCondition struct { // Type of job condition, Complete or Failed. - Type JobConditionType `json:"type"` + Type JobConditionType // Status of the condition, one of True, False, Unknown. - Status api.ConditionStatus `json:"status"` + Status api.ConditionStatus // Last time the condition was checked. // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` + LastProbeTime metav1.Time // Last time the condition transit from one status to another. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // (brief) reason for the condition's last transition. // +optional - Reason string `json:"reason,omitempty"` + Reason string // Human readable message indicating details about last transition. // +optional - Message string `json:"message,omitempty"` + Message string } // +genclient=true // CronJob represents the configuration of a single cron job. type CronJob struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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 // +optional - Spec CronJobSpec `json:"spec,omitempty"` + Spec CronJobSpec // 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 CronJobStatus `json:"status,omitempty"` + Status CronJobStatus } // CronJobList is a collection of cron jobs. type CronJobList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of CronJob. - Items []CronJob `json:"items"` + Items []CronJob } // 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"` + Schedule string // 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"` + StartingDeadlineSeconds *int64 // ConcurrencyPolicy specifies how to treat concurrent executions of a Job. // +optional - ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` + ConcurrencyPolicy 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"` + Suspend *bool // JobTemplate is the object that describes the job that will be created when // executing a CronJob. - JobTemplate JobTemplateSpec `json:"jobTemplate"` + JobTemplate JobTemplateSpec } // ConcurrencyPolicy describes how the job will be handled. @@ -268,9 +268,9 @@ const ( type CronJobStatus struct { // Active holds pointers to currently running jobs. // +optional - Active []api.ObjectReference `json:"active,omitempty"` + Active []api.ObjectReference // LastScheduleTime keeps information of when was the last time the job was successfully scheduled. // +optional - LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` + LastScheduleTime *metav1.Time } diff --git a/staging/src/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go index 92469a099ed..ecd70456c8d 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go +++ b/staging/src/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go @@ -2352,7 +2352,7 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { yyrg206 := len(yyv206) > 0 yyv2206 := yyv206 - yyrl206, yyrt206 = z.DecInferLen(yyl206, z.DecBasicHandle().MaxInitLen, 824) + yyrl206, yyrt206 = z.DecInferLen(yyl206, z.DecBasicHandle().MaxInitLen, 832) if yyrt206 { if yyrl206 <= cap(yyv206) { yyv206 = yyv206[:yyrl206] diff --git a/staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go index 41cbc653b2b..40535b9794b 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go +++ b/staging/src/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go @@ -4247,7 +4247,7 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { yyrg370 := len(yyv370) > 0 yyv2370 := yyv370 - yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 824) + yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 832) if yyrt370 { if yyrl370 <= cap(yyv370) { yyv370 = yyv370[:yyrl370] @@ -4479,7 +4479,7 @@ func (x codecSelfer1234) decSliceCronJob(v *[]CronJob, d *codec1978.Decoder) { yyrg382 := len(yyv382) > 0 yyv2382 := yyv382 - yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1072) + yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1080) if yyrt382 { if yyrl382 <= cap(yyv382) { yyv382 = yyv382[:yyrl382] diff --git a/staging/src/k8s.io/client-go/pkg/apis/certificates/doc.go b/staging/src/k8s.io/client-go/pkg/apis/certificates/doc.go index 3a1b77095af..5bd58b490fb 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/certificates/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/certificates/doc.go @@ -15,7 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true - // +groupName=certificates.k8s.io package certificates diff --git a/staging/src/k8s.io/client-go/pkg/apis/certificates/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/certificates/types.generated.go deleted file mode 100644 index a07f656a0f8..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/certificates/types.generated.go +++ /dev/null @@ -1,1957 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package certificates - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *CertificateSigningRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true - yyq2[3] = true - yyq2[4] = true - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.ObjectMeta - yy10.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.ObjectMeta - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yy13 := &x.Spec - yy13.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy14 := &x.Spec - yy14.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yy16 := &x.Status - yy16.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Status - yy17.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CertificateSigningRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct19 := r.ContainerType() - if yyct19 == codecSelferValueTypeMap1234 { - yyl19 := r.ReadMapStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl19, d) - } - } else if yyct19 == codecSelferValueTypeArray1234 { - yyl19 := r.ReadArrayStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl19, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CertificateSigningRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys20Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys20Slc - var yyhl20 bool = l >= 0 - for yyj20 := 0; ; yyj20++ { - if yyhl20 { - if yyj20 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys20Slc = r.DecodeBytes(yys20Slc, true, true) - yys20 := string(yys20Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys20 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv23 := &x.ObjectMeta - yyv23.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} - } else { - yyv24 := &x.Spec - yyv24.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} - } else { - yyv25 := &x.Status - yyv25.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys20) - } // end switch yys20 - } // end for yyj20 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CertificateSigningRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj26 int - var yyb26 bool - var yyhl26 bool = l >= 0 - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv29 := &x.ObjectMeta - yyv29.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = CertificateSigningRequestSpec{} - } else { - yyv30 := &x.Spec - yyv30.CodecDecodeSelf(d) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = CertificateSigningRequestStatus{} - } else { - yyv31 := &x.Status - yyv31.CodecDecodeSelf(d) - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CertificateSigningRequestSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep33 := !z.EncBinary() - yy2arr33 := z.EncBasicHandle().StructToArray - var yyq33 [4]bool - _, _, _ = yysep33, yyq33, yy2arr33 - const yyr33 bool = false - yyq33[1] = x.Username != "" - yyq33[2] = x.UID != "" - yyq33[3] = len(x.Groups) != 0 - var yynn33 int - if yyr33 || yy2arr33 { - r.EncodeArrayStart(4) - } else { - yynn33 = 1 - for _, b := range yyq33 { - if b { - yynn33++ - } - } - r.EncodeMapStart(yynn33) - yynn33 = 0 - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Request == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("request")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Request == nil { - r.EncodeNil() - } else { - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Request)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[1] { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq33[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("username")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Username)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[2] { - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq33[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq33[3] { - if x.Groups == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq33[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("groups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Groups == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - } - if yyr33 || yy2arr33 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CertificateSigningRequestSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym46 := z.DecBinary() - _ = yym46 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct47 := r.ContainerType() - if yyct47 == codecSelferValueTypeMap1234 { - yyl47 := r.ReadMapStart() - if yyl47 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl47, d) - } - } else if yyct47 == codecSelferValueTypeArray1234 { - yyl47 := r.ReadArrayStart() - if yyl47 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl47, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CertificateSigningRequestSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys48Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys48Slc - var yyhl48 bool = l >= 0 - for yyj48 := 0; ; yyj48++ { - if yyhl48 { - if yyj48 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys48Slc = r.DecodeBytes(yys48Slc, true, true) - yys48 := string(yys48Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys48 { - case "request": - if r.TryDecodeAsNil() { - x.Request = nil - } else { - yyv49 := &x.Request - yym50 := z.DecBinary() - _ = yym50 - if false { - } else { - *yyv49 = r.DecodeBytes(*(*[]byte)(yyv49), false, false) - } - } - case "username": - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - case "groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv53 := &x.Groups - yym54 := z.DecBinary() - _ = yym54 - if false { - } else { - z.F.DecSliceStringX(yyv53, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys48) - } // end switch yys48 - } // end for yyj48 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CertificateSigningRequestSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj55 int - var yyb55 bool - var yyhl55 bool = l >= 0 - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Request = nil - } else { - yyv56 := &x.Request - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - *yyv56 = r.DecodeBytes(*(*[]byte)(yyv56), false, false) - } - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Username = "" - } else { - x.Username = string(r.DecodeString()) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = string(r.DecodeString()) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv60 := &x.Groups - yym61 := z.DecBinary() - _ = yym61 - if false { - } else { - z.F.DecSliceStringX(yyv60, false, d) - } - } - for { - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj55-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CertificateSigningRequestStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym62 := z.EncBinary() - _ = yym62 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep63 := !z.EncBinary() - yy2arr63 := z.EncBasicHandle().StructToArray - var yyq63 [2]bool - _, _, _ = yysep63, yyq63, yy2arr63 - const yyr63 bool = false - yyq63[0] = len(x.Conditions) != 0 - yyq63[1] = len(x.Certificate) != 0 - var yynn63 int - if yyr63 || yy2arr63 { - r.EncodeArrayStart(2) - } else { - yynn63 = 0 - for _, b := range yyq63 { - if b { - yynn63++ - } - } - r.EncodeMapStart(yynn63) - yynn63 = 0 - } - if yyr63 || yy2arr63 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq63[0] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq63[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym66 := z.EncBinary() - _ = yym66 - if false { - } else { - h.encSliceCertificateSigningRequestCondition(([]CertificateSigningRequestCondition)(x.Conditions), e) - } - } - } - } - if yyr63 || yy2arr63 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq63[1] { - if x.Certificate == nil { - r.EncodeNil() - } else { - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq63[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("certificate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Certificate == nil { - r.EncodeNil() - } else { - yym69 := z.EncBinary() - _ = yym69 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Certificate)) - } - } - } - } - if yyr63 || yy2arr63 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CertificateSigningRequestStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym70 := z.DecBinary() - _ = yym70 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct71 := r.ContainerType() - if yyct71 == codecSelferValueTypeMap1234 { - yyl71 := r.ReadMapStart() - if yyl71 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl71, d) - } - } else if yyct71 == codecSelferValueTypeArray1234 { - yyl71 := r.ReadArrayStart() - if yyl71 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl71, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CertificateSigningRequestStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys72Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys72Slc - var yyhl72 bool = l >= 0 - for yyj72 := 0; ; yyj72++ { - if yyhl72 { - if yyj72 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys72Slc = r.DecodeBytes(yys72Slc, true, true) - yys72 := string(yys72Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys72 { - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv73 := &x.Conditions - yym74 := z.DecBinary() - _ = yym74 - if false { - } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv73), d) - } - } - case "certificate": - if r.TryDecodeAsNil() { - x.Certificate = nil - } else { - yyv75 := &x.Certificate - yym76 := z.DecBinary() - _ = yym76 - if false { - } else { - *yyv75 = r.DecodeBytes(*(*[]byte)(yyv75), false, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys72) - } // end switch yys72 - } // end for yyj72 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CertificateSigningRequestStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj77 int - var yyb77 bool - var yyhl77 bool = l >= 0 - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv78 := &x.Conditions - yym79 := z.DecBinary() - _ = yym79 - if false { - } else { - h.decSliceCertificateSigningRequestCondition((*[]CertificateSigningRequestCondition)(yyv78), d) - } - } - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Certificate = nil - } else { - yyv80 := &x.Certificate - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *yyv80 = r.DecodeBytes(*(*[]byte)(yyv80), false, false) - } - } - for { - yyj77++ - if yyhl77 { - yyb77 = yyj77 > l - } else { - yyb77 = r.CheckBreak() - } - if yyb77 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj77-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x RequestConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym82 := z.EncBinary() - _ = yym82 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *RequestConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym83 := z.DecBinary() - _ = yym83 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *CertificateSigningRequestCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym84 := z.EncBinary() - _ = yym84 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep85 := !z.EncBinary() - yy2arr85 := z.EncBasicHandle().StructToArray - var yyq85 [4]bool - _, _, _ = yysep85, yyq85, yy2arr85 - const yyr85 bool = false - yyq85[1] = x.Reason != "" - yyq85[2] = x.Message != "" - yyq85[3] = true - var yynn85 int - if yyr85 || yy2arr85 { - r.EncodeArrayStart(4) - } else { - yynn85 = 1 - for _, b := range yyq85 { - if b { - yynn85++ - } - } - r.EncodeMapStart(yynn85) - yynn85 = 0 - } - if yyr85 || yy2arr85 { - 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 yyr85 || yy2arr85 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq85[1] { - yym88 := z.EncBinary() - _ = yym88 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq85[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym89 := z.EncBinary() - _ = yym89 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr85 || yy2arr85 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq85[2] { - yym91 := z.EncBinary() - _ = yym91 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq85[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym92 := z.EncBinary() - _ = yym92 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr85 || yy2arr85 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq85[3] { - yy94 := &x.LastUpdateTime - yym95 := z.EncBinary() - _ = yym95 - if false { - } else if z.HasExtensions() && z.EncExt(yy94) { - } else if yym95 { - z.EncBinaryMarshal(yy94) - } else if !yym95 && z.IsJSONHandle() { - z.EncJSONMarshal(yy94) - } else { - z.EncFallback(yy94) - } - } else { - r.EncodeNil() - } - } else { - if yyq85[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy96 := &x.LastUpdateTime - yym97 := z.EncBinary() - _ = yym97 - if false { - } else if z.HasExtensions() && z.EncExt(yy96) { - } else if yym97 { - z.EncBinaryMarshal(yy96) - } else if !yym97 && z.IsJSONHandle() { - z.EncJSONMarshal(yy96) - } else { - z.EncFallback(yy96) - } - } - } - if yyr85 || yy2arr85 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CertificateSigningRequestCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym98 := z.DecBinary() - _ = yym98 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct99 := r.ContainerType() - if yyct99 == codecSelferValueTypeMap1234 { - yyl99 := r.ReadMapStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl99, d) - } - } else if yyct99 == codecSelferValueTypeArray1234 { - yyl99 := r.ReadArrayStart() - if yyl99 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl99, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CertificateSigningRequestCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys100Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys100Slc - var yyhl100 bool = l >= 0 - for yyj100 := 0; ; yyj100++ { - if yyhl100 { - if yyj100 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys100Slc = r.DecodeBytes(yys100Slc, true, true) - yys100 := string(yys100Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys100 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = RequestConditionType(r.DecodeString()) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "lastUpdateTime": - if r.TryDecodeAsNil() { - x.LastUpdateTime = pkg1_v1.Time{} - } else { - yyv104 := &x.LastUpdateTime - yym105 := z.DecBinary() - _ = yym105 - if false { - } else if z.HasExtensions() && z.DecExt(yyv104) { - } else if yym105 { - z.DecBinaryUnmarshal(yyv104) - } else if !yym105 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv104) - } else { - z.DecFallback(yyv104, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys100) - } // end switch yys100 - } // end for yyj100 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CertificateSigningRequestCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj106 int - var yyb106 bool - var yyhl106 bool = l >= 0 - yyj106++ - if yyhl106 { - yyb106 = yyj106 > l - } else { - yyb106 = r.CheckBreak() - } - if yyb106 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = RequestConditionType(r.DecodeString()) - } - yyj106++ - if yyhl106 { - yyb106 = yyj106 > l - } else { - yyb106 = r.CheckBreak() - } - if yyb106 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj106++ - if yyhl106 { - yyb106 = yyj106 > l - } else { - yyb106 = r.CheckBreak() - } - if yyb106 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj106++ - if yyhl106 { - yyb106 = yyj106 > l - } else { - yyb106 = r.CheckBreak() - } - if yyb106 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastUpdateTime = pkg1_v1.Time{} - } else { - yyv110 := &x.LastUpdateTime - yym111 := z.DecBinary() - _ = yym111 - if false { - } else if z.HasExtensions() && z.DecExt(yyv110) { - } else if yym111 { - z.DecBinaryUnmarshal(yyv110) - } else if !yym111 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv110) - } else { - z.DecFallback(yyv110, false) - } - } - for { - yyj106++ - if yyhl106 { - yyb106 = yyj106 > l - } else { - yyb106 = r.CheckBreak() - } - if yyb106 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj106-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CertificateSigningRequestList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym112 := z.EncBinary() - _ = yym112 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep113 := !z.EncBinary() - yy2arr113 := z.EncBasicHandle().StructToArray - var yyq113 [4]bool - _, _, _ = yysep113, yyq113, yy2arr113 - const yyr113 bool = false - yyq113[0] = x.Kind != "" - yyq113[1] = x.APIVersion != "" - yyq113[2] = true - yyq113[3] = len(x.Items) != 0 - var yynn113 int - if yyr113 || yy2arr113 { - r.EncodeArrayStart(4) - } else { - yynn113 = 0 - for _, b := range yyq113 { - if b { - yynn113++ - } - } - r.EncodeMapStart(yynn113) - yynn113 = 0 - } - if yyr113 || yy2arr113 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[0] { - yym115 := z.EncBinary() - _ = yym115 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq113[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym116 := z.EncBinary() - _ = yym116 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr113 || yy2arr113 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[1] { - yym118 := z.EncBinary() - _ = yym118 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq113[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym119 := z.EncBinary() - _ = yym119 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr113 || yy2arr113 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[2] { - yy121 := &x.ListMeta - yym122 := z.EncBinary() - _ = yym122 - if false { - } else if z.HasExtensions() && z.EncExt(yy121) { - } else { - z.EncFallback(yy121) - } - } else { - r.EncodeNil() - } - } else { - if yyq113[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy123 := &x.ListMeta - yym124 := z.EncBinary() - _ = yym124 - if false { - } else if z.HasExtensions() && z.EncExt(yy123) { - } else { - z.EncFallback(yy123) - } - } - } - if yyr113 || yy2arr113 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[3] { - if x.Items == nil { - r.EncodeNil() - } else { - yym126 := z.EncBinary() - _ = yym126 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq113[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym127 := z.EncBinary() - _ = yym127 - if false { - } else { - h.encSliceCertificateSigningRequest(([]CertificateSigningRequest)(x.Items), e) - } - } - } - } - if yyr113 || yy2arr113 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CertificateSigningRequestList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym128 := z.DecBinary() - _ = yym128 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct129 := r.ContainerType() - if yyct129 == codecSelferValueTypeMap1234 { - yyl129 := r.ReadMapStart() - if yyl129 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl129, d) - } - } else if yyct129 == codecSelferValueTypeArray1234 { - yyl129 := r.ReadArrayStart() - if yyl129 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl129, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CertificateSigningRequestList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys130Slc = r.DecodeBytes(yys130Slc, true, true) - yys130 := string(yys130Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys130 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv133 := &x.ListMeta - yym134 := z.DecBinary() - _ = yym134 - if false { - } else if z.HasExtensions() && z.DecExt(yyv133) { - } else { - z.DecFallback(yyv133, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv135 := &x.Items - yym136 := z.DecBinary() - _ = yym136 - if false { - } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv135), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys130) - } // end switch yys130 - } // end for yyj130 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CertificateSigningRequestList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj137 int - var yyb137 bool - var yyhl137 bool = l >= 0 - yyj137++ - if yyhl137 { - yyb137 = yyj137 > l - } else { - yyb137 = r.CheckBreak() - } - if yyb137 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj137++ - if yyhl137 { - yyb137 = yyj137 > l - } else { - yyb137 = r.CheckBreak() - } - if yyb137 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj137++ - if yyhl137 { - yyb137 = yyj137 > l - } else { - yyb137 = r.CheckBreak() - } - if yyb137 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv140 := &x.ListMeta - yym141 := z.DecBinary() - _ = yym141 - if false { - } else if z.HasExtensions() && z.DecExt(yyv140) { - } else { - z.DecFallback(yyv140, false) - } - } - yyj137++ - if yyhl137 { - yyb137 = yyj137 > l - } else { - yyb137 = r.CheckBreak() - } - if yyb137 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv142 := &x.Items - yym143 := z.DecBinary() - _ = yym143 - if false { - } else { - h.decSliceCertificateSigningRequest((*[]CertificateSigningRequest)(yyv142), d) - } - } - for { - yyj137++ - if yyhl137 { - yyb137 = yyj137 > l - } else { - yyb137 = r.CheckBreak() - } - if yyb137 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj137-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceCertificateSigningRequestCondition(v []CertificateSigningRequestCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv144 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy145 := &yyv144 - yy145.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCertificateSigningRequestCondition(v *[]CertificateSigningRequestCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv146 := *v - yyh146, yyl146 := z.DecSliceHelperStart() - var yyc146 bool - if yyl146 == 0 { - if yyv146 == nil { - yyv146 = []CertificateSigningRequestCondition{} - yyc146 = true - } else if len(yyv146) != 0 { - yyv146 = yyv146[:0] - yyc146 = true - } - } else if yyl146 > 0 { - var yyrr146, yyrl146 int - var yyrt146 bool - if yyl146 > cap(yyv146) { - - yyrg146 := len(yyv146) > 0 - yyv2146 := yyv146 - yyrl146, yyrt146 = z.DecInferLen(yyl146, z.DecBasicHandle().MaxInitLen, 72) - if yyrt146 { - if yyrl146 <= cap(yyv146) { - yyv146 = yyv146[:yyrl146] - } else { - yyv146 = make([]CertificateSigningRequestCondition, yyrl146) - } - } else { - yyv146 = make([]CertificateSigningRequestCondition, yyrl146) - } - yyc146 = true - yyrr146 = len(yyv146) - if yyrg146 { - copy(yyv146, yyv2146) - } - } else if yyl146 != len(yyv146) { - yyv146 = yyv146[:yyl146] - yyc146 = true - } - yyj146 := 0 - for ; yyj146 < yyrr146; yyj146++ { - yyh146.ElemContainerState(yyj146) - if r.TryDecodeAsNil() { - yyv146[yyj146] = CertificateSigningRequestCondition{} - } else { - yyv147 := &yyv146[yyj146] - yyv147.CodecDecodeSelf(d) - } - - } - if yyrt146 { - for ; yyj146 < yyl146; yyj146++ { - yyv146 = append(yyv146, CertificateSigningRequestCondition{}) - yyh146.ElemContainerState(yyj146) - if r.TryDecodeAsNil() { - yyv146[yyj146] = CertificateSigningRequestCondition{} - } else { - yyv148 := &yyv146[yyj146] - yyv148.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj146 := 0 - for ; !r.CheckBreak(); yyj146++ { - - if yyj146 >= len(yyv146) { - yyv146 = append(yyv146, CertificateSigningRequestCondition{}) // var yyz146 CertificateSigningRequestCondition - yyc146 = true - } - yyh146.ElemContainerState(yyj146) - if yyj146 < len(yyv146) { - if r.TryDecodeAsNil() { - yyv146[yyj146] = CertificateSigningRequestCondition{} - } else { - yyv149 := &yyv146[yyj146] - yyv149.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj146 < len(yyv146) { - yyv146 = yyv146[:yyj146] - yyc146 = true - } else if yyj146 == 0 && yyv146 == nil { - yyv146 = []CertificateSigningRequestCondition{} - yyc146 = true - } - } - yyh146.End() - if yyc146 { - *v = yyv146 - } -} - -func (x codecSelfer1234) encSliceCertificateSigningRequest(v []CertificateSigningRequest, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv150 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy151 := &yyv150 - yy151.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigningRequest, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv152 := *v - yyh152, yyl152 := z.DecSliceHelperStart() - var yyc152 bool - if yyl152 == 0 { - if yyv152 == nil { - yyv152 = []CertificateSigningRequest{} - yyc152 = true - } else if len(yyv152) != 0 { - yyv152 = yyv152[:0] - yyc152 = true - } - } else if yyl152 > 0 { - var yyrr152, yyrl152 int - var yyrt152 bool - if yyl152 > cap(yyv152) { - - yyrg152 := len(yyv152) > 0 - yyv2152 := yyv152 - yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 384) - if yyrt152 { - if yyrl152 <= cap(yyv152) { - yyv152 = yyv152[:yyrl152] - } else { - yyv152 = make([]CertificateSigningRequest, yyrl152) - } - } else { - yyv152 = make([]CertificateSigningRequest, yyrl152) - } - yyc152 = true - yyrr152 = len(yyv152) - if yyrg152 { - copy(yyv152, yyv2152) - } - } else if yyl152 != len(yyv152) { - yyv152 = yyv152[:yyl152] - yyc152 = true - } - yyj152 := 0 - for ; yyj152 < yyrr152; yyj152++ { - yyh152.ElemContainerState(yyj152) - if r.TryDecodeAsNil() { - yyv152[yyj152] = CertificateSigningRequest{} - } else { - yyv153 := &yyv152[yyj152] - yyv153.CodecDecodeSelf(d) - } - - } - if yyrt152 { - for ; yyj152 < yyl152; yyj152++ { - yyv152 = append(yyv152, CertificateSigningRequest{}) - yyh152.ElemContainerState(yyj152) - if r.TryDecodeAsNil() { - yyv152[yyj152] = CertificateSigningRequest{} - } else { - yyv154 := &yyv152[yyj152] - yyv154.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj152 := 0 - for ; !r.CheckBreak(); yyj152++ { - - if yyj152 >= len(yyv152) { - yyv152 = append(yyv152, CertificateSigningRequest{}) // var yyz152 CertificateSigningRequest - yyc152 = true - } - yyh152.ElemContainerState(yyj152) - if yyj152 < len(yyv152) { - if r.TryDecodeAsNil() { - yyv152[yyj152] = CertificateSigningRequest{} - } else { - yyv155 := &yyv152[yyj152] - yyv155.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj152 < len(yyv152) { - yyv152 = yyv152[:yyj152] - yyc152 = true - } else if yyj152 == 0 && yyv152 == nil { - yyv152 = []CertificateSigningRequest{} - yyc152 = true - } - } - yyh152.End() - if yyc152 { - *v = yyv152 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/certificates/types.go b/staging/src/k8s.io/client-go/pkg/apis/certificates/types.go index 2624acd5abe..be538cf99bf 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/certificates/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/certificates/types.go @@ -26,17 +26,17 @@ import ( // Describes a certificate signing request type CertificateSigningRequest struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // The certificate request itself and any additional information. // +optional - Spec CertificateSigningRequestSpec `json:"spec,omitempty"` + Spec CertificateSigningRequestSpec // Derived information about the request. // +optional - Status CertificateSigningRequestStatus `json:"status,omitempty"` + Status CertificateSigningRequestStatus } // This information is immutable after the request is created. Only the Request @@ -44,26 +44,26 @@ type CertificateSigningRequest struct { // Kubernetes and cannot be modified by users. type CertificateSigningRequestSpec struct { // Base64-encoded PKCS#10 CSR data - Request []byte `json:"request"` + Request []byte // Information about the requesting user (if relevant) // See user.Info interface for details // +optional - Username string `json:"username,omitempty"` + Username string // +optional - UID string `json:"uid,omitempty"` + UID string // +optional - Groups []string `json:"groups,omitempty"` + Groups []string } type CertificateSigningRequestStatus struct { // Conditions applied to the request, such as approval or denial. // +optional - Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty"` + Conditions []CertificateSigningRequestCondition // If request was approved, the controller will place the issued certificate here. // +optional - Certificate []byte `json:"certificate,omitempty"` + Certificate []byte } type RequestConditionType string @@ -76,23 +76,23 @@ const ( type CertificateSigningRequestCondition struct { // request approval state, currently Approved or Denied. - Type RequestConditionType `json:"type"` + Type RequestConditionType // brief reason for the request state // +optional - Reason string `json:"reason,omitempty"` + Reason string // human readable message with details about the request state // +optional - Message string `json:"message,omitempty"` + Message string // timestamp for the last update to this condition // +optional - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` + LastUpdateTime metav1.Time } type CertificateSigningRequestList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // +optional - Items []CertificateSigningRequest `json:"items,omitempty"` + Items []CertificateSigningRequest } diff --git a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/doc.go b/staging/src/k8s.io/client-go/pkg/apis/componentconfig/doc.go index 98ea9b555d6..d044b16db39 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/componentconfig/doc.go @@ -15,6 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true package componentconfig diff --git a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.generated.go deleted file mode 100644 index dcb7169c25a..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.generated.go +++ /dev/null @@ -1,13160 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package componentconfig - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_config "k8s.io/client-go/pkg/util/config" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.Taint - var v1 pkg1_v1.TypeMeta - var v2 pkg3_config.ConfigurationMap - var v3 time.Duration - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *KubeProxyConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [23]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(23) - } else { - yynn2 = 21 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("bindAddress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.IPTablesMasqueradeBit == nil { - r.EncodeNil() - } else { - yy25 := *x.IPTablesMasqueradeBit - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeInt(int64(yy25)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.IPTablesMasqueradeBit == nil { - r.EncodeNil() - } else { - yy27 := *x.IPTablesMasqueradeBit - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeInt(int64(yy27)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy30 := &x.IPTablesSyncPeriod - yym31 := z.EncBinary() - _ = yym31 - if false { - } else if z.HasExtensions() && z.EncExt(yy30) { - } else if !yym31 && z.IsJSONHandle() { - z.EncJSONMarshal(yy30) - } else { - z.EncFallback(yy30) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesSyncPeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy32 := &x.IPTablesSyncPeriod - yym33 := z.EncBinary() - _ = yym33 - if false { - } else if z.HasExtensions() && z.EncExt(yy32) { - } else if !yym33 && z.IsJSONHandle() { - z.EncJSONMarshal(yy32) - } else { - z.EncFallback(yy32) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy35 := &x.IPTablesMinSyncPeriod - yym36 := z.EncBinary() - _ = yym36 - if false { - } else if z.HasExtensions() && z.EncExt(yy35) { - } else if !yym36 && z.IsJSONHandle() { - z.EncJSONMarshal(yy35) - } else { - z.EncFallback(yy35) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesMinSyncPeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy37 := &x.IPTablesMinSyncPeriod - yym38 := z.EncBinary() - _ = yym38 - if false { - } else if z.HasExtensions() && z.EncExt(yy37) { - } else if !yym38 && z.IsJSONHandle() { - z.EncJSONMarshal(yy37) - } else { - z.EncFallback(yy37) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeconfigPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeBool(bool(x.MasqueradeAll)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("masqueradeAll")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeBool(bool(x.MasqueradeAll)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Master)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("master")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Master)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.OOMScoreAdj == nil { - r.EncodeNil() - } else { - yy49 := *x.OOMScoreAdj - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeInt(int64(yy49)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OOMScoreAdj == nil { - r.EncodeNil() - } else { - yy51 := *x.OOMScoreAdj - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeInt(int64(yy51)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Mode.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("mode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Mode.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("portRange")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceContainer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym59 := z.EncBinary() - _ = yym59 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy61 := &x.UDPIdleTimeout - yym62 := z.EncBinary() - _ = yym62 - if false { - } else if z.HasExtensions() && z.EncExt(yy61) { - } else if !yym62 && z.IsJSONHandle() { - z.EncJSONMarshal(yy61) - } else { - z.EncFallback(yy61) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("udpTimeoutMilliseconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy63 := &x.UDPIdleTimeout - yym64 := z.EncBinary() - _ = yym64 - if false { - } else if z.HasExtensions() && z.EncExt(yy63) { - } else if !yym64 && z.IsJSONHandle() { - z.EncJSONMarshal(yy63) - } else { - z.EncFallback(yy63) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym66 := z.EncBinary() - _ = yym66 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMax)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMax")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMax)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym69 := z.EncBinary() - _ = yym69 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMaxPerCore)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMaxPerCore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMaxPerCore)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym72 := z.EncBinary() - _ = yym72 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMin)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMin)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy75 := &x.ConntrackTCPEstablishedTimeout - yym76 := z.EncBinary() - _ = yym76 - if false { - } else if z.HasExtensions() && z.EncExt(yy75) { - } else if !yym76 && z.IsJSONHandle() { - z.EncJSONMarshal(yy75) - } else { - z.EncFallback(yy75) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy77 := &x.ConntrackTCPEstablishedTimeout - yym78 := z.EncBinary() - _ = yym78 - if false { - } else if z.HasExtensions() && z.EncExt(yy77) { - } else if !yym78 && z.IsJSONHandle() { - z.EncJSONMarshal(yy77) - } else { - z.EncFallback(yy77) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy80 := &x.ConntrackTCPCloseWaitTimeout - yym81 := z.EncBinary() - _ = yym81 - if false { - } else if z.HasExtensions() && z.EncExt(yy80) { - } else if !yym81 && z.IsJSONHandle() { - z.EncJSONMarshal(yy80) - } else { - z.EncFallback(yy80) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPCloseWaitTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy82 := &x.ConntrackTCPCloseWaitTimeout - yym83 := z.EncBinary() - _ = yym83 - if false { - } else if z.HasExtensions() && z.EncExt(yy82) { - } else if !yym83 && z.IsJSONHandle() { - z.EncJSONMarshal(yy82) - } else { - z.EncFallback(yy82) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeProxyConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym84 := z.DecBinary() - _ = yym84 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct85 := r.ContainerType() - if yyct85 == codecSelferValueTypeMap1234 { - yyl85 := r.ReadMapStart() - if yyl85 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl85, d) - } - } else if yyct85 == codecSelferValueTypeArray1234 { - yyl85 := r.ReadArrayStart() - if yyl85 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl85, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys86Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys86Slc - var yyhl86 bool = l >= 0 - for yyj86 := 0; ; yyj86++ { - if yyhl86 { - if yyj86 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys86Slc = r.DecodeBytes(yys86Slc, true, true) - yys86 := string(yys86Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys86 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "bindAddress": - if r.TryDecodeAsNil() { - x.BindAddress = "" - } else { - x.BindAddress = string(r.DecodeString()) - } - case "clusterCIDR": - if r.TryDecodeAsNil() { - x.ClusterCIDR = "" - } else { - x.ClusterCIDR = string(r.DecodeString()) - } - case "healthzBindAddress": - if r.TryDecodeAsNil() { - x.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - case "healthzPort": - if r.TryDecodeAsNil() { - x.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - case "hostnameOverride": - if r.TryDecodeAsNil() { - x.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - case "iptablesMasqueradeBit": - if r.TryDecodeAsNil() { - if x.IPTablesMasqueradeBit != nil { - x.IPTablesMasqueradeBit = nil - } - } else { - if x.IPTablesMasqueradeBit == nil { - x.IPTablesMasqueradeBit = new(int32) - } - yym95 := z.DecBinary() - _ = yym95 - if false { - } else { - *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) - } - } - case "iptablesSyncPeriodSeconds": - if r.TryDecodeAsNil() { - x.IPTablesSyncPeriod = pkg1_v1.Duration{} - } else { - yyv96 := &x.IPTablesSyncPeriod - yym97 := z.DecBinary() - _ = yym97 - if false { - } else if z.HasExtensions() && z.DecExt(yyv96) { - } else if !yym97 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv96) - } else { - z.DecFallback(yyv96, false) - } - } - case "iptablesMinSyncPeriodSeconds": - if r.TryDecodeAsNil() { - x.IPTablesMinSyncPeriod = pkg1_v1.Duration{} - } else { - yyv98 := &x.IPTablesMinSyncPeriod - yym99 := z.DecBinary() - _ = yym99 - if false { - } else if z.HasExtensions() && z.DecExt(yyv98) { - } else if !yym99 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv98) - } else { - z.DecFallback(yyv98, false) - } - } - case "kubeconfigPath": - if r.TryDecodeAsNil() { - x.KubeconfigPath = "" - } else { - x.KubeconfigPath = string(r.DecodeString()) - } - case "masqueradeAll": - if r.TryDecodeAsNil() { - x.MasqueradeAll = false - } else { - x.MasqueradeAll = bool(r.DecodeBool()) - } - case "master": - if r.TryDecodeAsNil() { - x.Master = "" - } else { - x.Master = string(r.DecodeString()) - } - case "oomScoreAdj": - if r.TryDecodeAsNil() { - if x.OOMScoreAdj != nil { - x.OOMScoreAdj = nil - } - } else { - if x.OOMScoreAdj == nil { - x.OOMScoreAdj = new(int32) - } - yym104 := z.DecBinary() - _ = yym104 - if false { - } else { - *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) - } - } - case "mode": - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = ProxyMode(r.DecodeString()) - } - case "portRange": - if r.TryDecodeAsNil() { - x.PortRange = "" - } else { - x.PortRange = string(r.DecodeString()) - } - case "resourceContainer": - if r.TryDecodeAsNil() { - x.ResourceContainer = "" - } else { - x.ResourceContainer = string(r.DecodeString()) - } - case "udpTimeoutMilliseconds": - if r.TryDecodeAsNil() { - x.UDPIdleTimeout = pkg1_v1.Duration{} - } else { - yyv108 := &x.UDPIdleTimeout - yym109 := z.DecBinary() - _ = yym109 - if false { - } else if z.HasExtensions() && z.DecExt(yyv108) { - } else if !yym109 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv108) - } else { - z.DecFallback(yyv108, false) - } - } - case "conntrackMax": - if r.TryDecodeAsNil() { - x.ConntrackMax = 0 - } else { - x.ConntrackMax = int32(r.DecodeInt(32)) - } - case "conntrackMaxPerCore": - if r.TryDecodeAsNil() { - x.ConntrackMaxPerCore = 0 - } else { - x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) - } - case "conntrackMin": - if r.TryDecodeAsNil() { - x.ConntrackMin = 0 - } else { - x.ConntrackMin = int32(r.DecodeInt(32)) - } - case "conntrackTCPEstablishedTimeout": - if r.TryDecodeAsNil() { - x.ConntrackTCPEstablishedTimeout = pkg1_v1.Duration{} - } else { - yyv113 := &x.ConntrackTCPEstablishedTimeout - yym114 := z.DecBinary() - _ = yym114 - if false { - } else if z.HasExtensions() && z.DecExt(yyv113) { - } else if !yym114 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv113) - } else { - z.DecFallback(yyv113, false) - } - } - case "conntrackTCPCloseWaitTimeout": - if r.TryDecodeAsNil() { - x.ConntrackTCPCloseWaitTimeout = pkg1_v1.Duration{} - } else { - yyv115 := &x.ConntrackTCPCloseWaitTimeout - yym116 := z.DecBinary() - _ = yym116 - if false { - } else if z.HasExtensions() && z.DecExt(yyv115) { - } else if !yym116 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv115) - } else { - z.DecFallback(yyv115, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys86) - } // end switch yys86 - } // end for yyj86 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj117 int - var yyb117 bool - var yyhl117 bool = l >= 0 - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.BindAddress = "" - } else { - x.BindAddress = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterCIDR = "" - } else { - x.ClusterCIDR = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.IPTablesMasqueradeBit != nil { - x.IPTablesMasqueradeBit = nil - } - } else { - if x.IPTablesMasqueradeBit == nil { - x.IPTablesMasqueradeBit = new(int32) - } - yym126 := z.DecBinary() - _ = yym126 - if false { - } else { - *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesSyncPeriod = pkg1_v1.Duration{} - } else { - yyv127 := &x.IPTablesSyncPeriod - yym128 := z.DecBinary() - _ = yym128 - if false { - } else if z.HasExtensions() && z.DecExt(yyv127) { - } else if !yym128 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv127) - } else { - z.DecFallback(yyv127, false) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesMinSyncPeriod = pkg1_v1.Duration{} - } else { - yyv129 := &x.IPTablesMinSyncPeriod - yym130 := z.DecBinary() - _ = yym130 - if false { - } else if z.HasExtensions() && z.DecExt(yyv129) { - } else if !yym130 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv129) - } else { - z.DecFallback(yyv129, false) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeconfigPath = "" - } else { - x.KubeconfigPath = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MasqueradeAll = false - } else { - x.MasqueradeAll = bool(r.DecodeBool()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Master = "" - } else { - x.Master = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.OOMScoreAdj != nil { - x.OOMScoreAdj = nil - } - } else { - if x.OOMScoreAdj == nil { - x.OOMScoreAdj = new(int32) - } - yym135 := z.DecBinary() - _ = yym135 - if false { - } else { - *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = ProxyMode(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PortRange = "" - } else { - x.PortRange = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceContainer = "" - } else { - x.ResourceContainer = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UDPIdleTimeout = pkg1_v1.Duration{} - } else { - yyv139 := &x.UDPIdleTimeout - yym140 := z.DecBinary() - _ = yym140 - if false { - } else if z.HasExtensions() && z.DecExt(yyv139) { - } else if !yym140 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv139) - } else { - z.DecFallback(yyv139, false) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackMax = 0 - } else { - x.ConntrackMax = int32(r.DecodeInt(32)) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackMaxPerCore = 0 - } else { - x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackMin = 0 - } else { - x.ConntrackMin = int32(r.DecodeInt(32)) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackTCPEstablishedTimeout = pkg1_v1.Duration{} - } else { - yyv144 := &x.ConntrackTCPEstablishedTimeout - yym145 := z.DecBinary() - _ = yym145 - if false { - } else if z.HasExtensions() && z.DecExt(yyv144) { - } else if !yym145 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv144) - } else { - z.DecFallback(yyv144, false) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConntrackTCPCloseWaitTimeout = pkg1_v1.Duration{} - } else { - yyv146 := &x.ConntrackTCPCloseWaitTimeout - yym147 := z.DecBinary() - _ = yym147 - if false { - } else if z.HasExtensions() && z.DecExt(yyv146) { - } else if !yym147 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv146) - } else { - z.DecFallback(yyv146, false) - } - } - for { - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj117-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym148 := z.EncBinary() - _ = yym148 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ProxyMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym149 := z.DecBinary() - _ = yym149 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x HairpinMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym150 := z.EncBinary() - _ = yym150 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *HairpinMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym151 := z.DecBinary() - _ = yym151 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym152 := z.EncBinary() - _ = yym152 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep153 := !z.EncBinary() - yy2arr153 := z.EncBasicHandle().StructToArray - var yyq153 [116]bool - _, _, _ = yysep153, yyq153, yy2arr153 - const yyr153 bool = false - yyq153[0] = x.Kind != "" - yyq153[1] = x.APIVersion != "" - yyq153[55] = x.CloudProvider != "" - yyq153[56] = x.CloudConfigFile != "" - yyq153[57] = x.KubeletCgroups != "" - yyq153[58] = x.ExperimentalCgroupsPerQOS != false - yyq153[59] = x.CgroupDriver != "" - yyq153[60] = x.RuntimeCgroups != "" - yyq153[61] = x.SystemCgroups != "" - yyq153[62] = x.CgroupRoot != "" - yyq153[66] = true - yyq153[67] = true - yyq153[68] = x.RktPath != "" - yyq153[69] = x.ExperimentalMounterPath != "" - yyq153[70] = x.RktAPIEndpoint != "" - yyq153[71] = x.RktStage1Image != "" - yyq153[91] = true - yyq153[92] = x.NodeIP != "" - yyq153[96] = x.EvictionHard != "" - yyq153[97] = x.EvictionSoft != "" - yyq153[98] = x.EvictionSoftGracePeriod != "" - yyq153[99] = true - yyq153[100] = x.EvictionMaxPodGracePeriod != 0 - yyq153[101] = x.EvictionMinimumReclaim != "" - yyq153[111] = len(x.AllowedUnsafeSysctls) != 0 - yyq153[113] = x.EnableCRI != false - yyq153[114] = x.ExperimentalFailSwapOn != false - yyq153[115] = x.ExperimentalCheckNodeCapabilitiesBeforeMount != false - var yynn153 int - if yyr153 || yy2arr153 { - r.EncodeArrayStart(116) - } else { - yynn153 = 88 - for _, b := range yyq153 { - if b { - yynn153++ - } - } - r.EncodeMapStart(yynn153) - yynn153 = 0 - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[0] { - yym155 := z.EncBinary() - _ = yym155 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym156 := z.EncBinary() - _ = yym156 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[1] { - yym158 := z.EncBinary() - _ = yym158 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym161 := z.EncBinary() - _ = yym161 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podManifestPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym162 := z.EncBinary() - _ = yym162 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy164 := &x.SyncFrequency - yym165 := z.EncBinary() - _ = yym165 - if false { - } else if z.HasExtensions() && z.EncExt(yy164) { - } else if !yym165 && z.IsJSONHandle() { - z.EncJSONMarshal(yy164) - } else { - z.EncFallback(yy164) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("syncFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy166 := &x.SyncFrequency - yym167 := z.EncBinary() - _ = yym167 - if false { - } else if z.HasExtensions() && z.EncExt(yy166) { - } else if !yym167 && z.IsJSONHandle() { - z.EncJSONMarshal(yy166) - } else { - z.EncFallback(yy166) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy169 := &x.FileCheckFrequency - yym170 := z.EncBinary() - _ = yym170 - if false { - } else if z.HasExtensions() && z.EncExt(yy169) { - } else if !yym170 && z.IsJSONHandle() { - z.EncJSONMarshal(yy169) - } else { - z.EncFallback(yy169) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fileCheckFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy171 := &x.FileCheckFrequency - yym172 := z.EncBinary() - _ = yym172 - if false { - } else if z.HasExtensions() && z.EncExt(yy171) { - } else if !yym172 && z.IsJSONHandle() { - z.EncJSONMarshal(yy171) - } else { - z.EncFallback(yy171) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy174 := &x.HTTPCheckFrequency - yym175 := z.EncBinary() - _ = yym175 - if false { - } else if z.HasExtensions() && z.EncExt(yy174) { - } else if !yym175 && z.IsJSONHandle() { - z.EncJSONMarshal(yy174) - } else { - z.EncFallback(yy174) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpCheckFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy176 := &x.HTTPCheckFrequency - yym177 := z.EncBinary() - _ = yym177 - if false { - } else if z.HasExtensions() && z.EncExt(yy176) { - } else if !yym177 && z.IsJSONHandle() { - z.EncJSONMarshal(yy176) - } else { - z.EncFallback(yy176) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym179 := z.EncBinary() - _ = yym179 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("manifestURL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym180 := z.EncBinary() - _ = yym180 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym182 := z.EncBinary() - _ = yym182 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("manifestURLHeader")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym183 := z.EncBinary() - _ = yym183 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym185 := z.EncBinary() - _ = yym185 - if false { - } else { - r.EncodeBool(bool(x.EnableServer)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableServer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym186 := z.EncBinary() - _ = yym186 - if false { - } else { - r.EncodeBool(bool(x.EnableServer)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym188 := z.EncBinary() - _ = yym188 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("address")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym189 := z.EncBinary() - _ = yym189 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym191 := z.EncBinary() - _ = yym191 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym192 := z.EncBinary() - _ = yym192 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym194 := z.EncBinary() - _ = yym194 - if false { - } else { - r.EncodeInt(int64(x.ReadOnlyPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnlyPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym195 := z.EncBinary() - _ = yym195 - if false { - } else { - r.EncodeInt(int64(x.ReadOnlyPort)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym197 := z.EncBinary() - _ = yym197 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tlsCertFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym198 := z.EncBinary() - _ = yym198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym200 := z.EncBinary() - _ = yym200 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tlsPrivateKeyFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym201 := z.EncBinary() - _ = yym201 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym203 := z.EncBinary() - _ = yym203 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("certDirectory")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym204 := z.EncBinary() - _ = yym204 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy206 := &x.Authentication - yy206.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("authentication")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy207 := &x.Authentication - yy207.CodecEncodeSelf(e) - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy209 := &x.Authorization - yy209.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("authorization")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy210 := &x.Authorization - yy210.CodecEncodeSelf(e) - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym212 := z.EncBinary() - _ = yym212 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym213 := z.EncBinary() - _ = yym213 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym215 := z.EncBinary() - _ = yym215 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podInfraContainerImage")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym216 := z.EncBinary() - _ = yym216 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym218 := z.EncBinary() - _ = yym218 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("dockerEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym219 := z.EncBinary() - _ = yym219 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym221 := z.EncBinary() - _ = yym221 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rootDirectory")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym222 := z.EncBinary() - _ = yym222 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym224 := z.EncBinary() - _ = yym224 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seccompProfileRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym225 := z.EncBinary() - _ = yym225 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym227 := z.EncBinary() - _ = yym227 - if false { - } else { - r.EncodeBool(bool(x.AllowPrivileged)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allowPrivileged")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym228 := z.EncBinary() - _ = yym228 - if false { - } else { - r.EncodeBool(bool(x.AllowPrivileged)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostNetworkSources == nil { - r.EncodeNil() - } else { - yym230 := z.EncBinary() - _ = yym230 - if false { - } else { - z.F.EncSliceStringV(x.HostNetworkSources, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostNetworkSources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostNetworkSources == nil { - r.EncodeNil() - } else { - yym231 := z.EncBinary() - _ = yym231 - if false { - } else { - z.F.EncSliceStringV(x.HostNetworkSources, false, e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostPIDSources == nil { - r.EncodeNil() - } else { - yym233 := z.EncBinary() - _ = yym233 - if false { - } else { - z.F.EncSliceStringV(x.HostPIDSources, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPIDSources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostPIDSources == nil { - r.EncodeNil() - } else { - yym234 := z.EncBinary() - _ = yym234 - if false { - } else { - z.F.EncSliceStringV(x.HostPIDSources, false, e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostIPCSources == nil { - r.EncodeNil() - } else { - yym236 := z.EncBinary() - _ = yym236 - if false { - } else { - z.F.EncSliceStringV(x.HostIPCSources, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIPCSources")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostIPCSources == nil { - r.EncodeNil() - } else { - yym237 := z.EncBinary() - _ = yym237 - if false { - } else { - z.F.EncSliceStringV(x.HostIPCSources, false, e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym239 := z.EncBinary() - _ = yym239 - if false { - } else { - r.EncodeInt(int64(x.RegistryPullQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registryPullQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym240 := z.EncBinary() - _ = yym240 - if false { - } else { - r.EncodeInt(int64(x.RegistryPullQPS)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym242 := z.EncBinary() - _ = yym242 - if false { - } else { - r.EncodeInt(int64(x.RegistryBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registryBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym243 := z.EncBinary() - _ = yym243 - if false { - } else { - r.EncodeInt(int64(x.RegistryBurst)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym245 := z.EncBinary() - _ = yym245 - if false { - } else { - r.EncodeInt(int64(x.EventRecordQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("eventRecordQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym246 := z.EncBinary() - _ = yym246 - if false { - } else { - r.EncodeInt(int64(x.EventRecordQPS)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym248 := z.EncBinary() - _ = yym248 - if false { - } else { - r.EncodeInt(int64(x.EventBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("eventBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym249 := z.EncBinary() - _ = yym249 - if false { - } else { - r.EncodeInt(int64(x.EventBurst)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym251 := z.EncBinary() - _ = yym251 - if false { - } else { - r.EncodeBool(bool(x.EnableDebuggingHandlers)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableDebuggingHandlers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym252 := z.EncBinary() - _ = yym252 - if false { - } else { - r.EncodeBool(bool(x.EnableDebuggingHandlers)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy254 := &x.MinimumGCAge - yym255 := z.EncBinary() - _ = yym255 - if false { - } else if z.HasExtensions() && z.EncExt(yy254) { - } else if !yym255 && z.IsJSONHandle() { - z.EncJSONMarshal(yy254) - } else { - z.EncFallback(yy254) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumGCAge")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy256 := &x.MinimumGCAge - yym257 := z.EncBinary() - _ = yym257 - if false { - } else if z.HasExtensions() && z.EncExt(yy256) { - } else if !yym257 && z.IsJSONHandle() { - z.EncJSONMarshal(yy256) - } else { - z.EncFallback(yy256) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym259 := z.EncBinary() - _ = yym259 - if false { - } else { - r.EncodeInt(int64(x.MaxPerPodContainerCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxPerPodContainerCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym260 := z.EncBinary() - _ = yym260 - if false { - } else { - r.EncodeInt(int64(x.MaxPerPodContainerCount)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym262 := z.EncBinary() - _ = yym262 - if false { - } else { - r.EncodeInt(int64(x.MaxContainerCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxContainerCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym263 := z.EncBinary() - _ = yym263 - if false { - } else { - r.EncodeInt(int64(x.MaxContainerCount)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym265 := z.EncBinary() - _ = yym265 - if false { - } else { - r.EncodeInt(int64(x.CAdvisorPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cAdvisorPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym266 := z.EncBinary() - _ = yym266 - if false { - } else { - r.EncodeInt(int64(x.CAdvisorPort)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym268 := z.EncBinary() - _ = yym268 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym269 := z.EncBinary() - _ = yym269 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym271 := z.EncBinary() - _ = yym271 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym272 := z.EncBinary() - _ = yym272 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym274 := z.EncBinary() - _ = yym274 - if false { - } else { - r.EncodeInt(int64(x.OOMScoreAdj)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym275 := z.EncBinary() - _ = yym275 - if false { - } else { - r.EncodeInt(int64(x.OOMScoreAdj)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym277 := z.EncBinary() - _ = yym277 - if false { - } else { - r.EncodeBool(bool(x.RegisterNode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerNode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym278 := z.EncBinary() - _ = yym278 - if false { - } else { - r.EncodeBool(bool(x.RegisterNode)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym280 := z.EncBinary() - _ = yym280 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterDomain")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym281 := z.EncBinary() - _ = yym281 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym283 := z.EncBinary() - _ = yym283 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("masterServiceNamespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym284 := z.EncBinary() - _ = yym284 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym286 := z.EncBinary() - _ = yym286 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterDNS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym287 := z.EncBinary() - _ = yym287 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy289 := &x.StreamingConnectionIdleTimeout - yym290 := z.EncBinary() - _ = yym290 - if false { - } else if z.HasExtensions() && z.EncExt(yy289) { - } else if !yym290 && z.IsJSONHandle() { - z.EncJSONMarshal(yy289) - } else { - z.EncFallback(yy289) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("streamingConnectionIdleTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy291 := &x.StreamingConnectionIdleTimeout - yym292 := z.EncBinary() - _ = yym292 - if false { - } else if z.HasExtensions() && z.EncExt(yy291) { - } else if !yym292 && z.IsJSONHandle() { - z.EncJSONMarshal(yy291) - } else { - z.EncFallback(yy291) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy294 := &x.NodeStatusUpdateFrequency - yym295 := z.EncBinary() - _ = yym295 - if false { - } else if z.HasExtensions() && z.EncExt(yy294) { - } else if !yym295 && z.IsJSONHandle() { - z.EncJSONMarshal(yy294) - } else { - z.EncFallback(yy294) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeStatusUpdateFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy296 := &x.NodeStatusUpdateFrequency - yym297 := z.EncBinary() - _ = yym297 - if false { - } else if z.HasExtensions() && z.EncExt(yy296) { - } else if !yym297 && z.IsJSONHandle() { - z.EncJSONMarshal(yy296) - } else { - z.EncFallback(yy296) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy299 := &x.ImageMinimumGCAge - yym300 := z.EncBinary() - _ = yym300 - if false { - } else if z.HasExtensions() && z.EncExt(yy299) { - } else if !yym300 && z.IsJSONHandle() { - z.EncJSONMarshal(yy299) - } else { - z.EncFallback(yy299) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageMinimumGCAge")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy301 := &x.ImageMinimumGCAge - yym302 := z.EncBinary() - _ = yym302 - if false { - } else if z.HasExtensions() && z.EncExt(yy301) { - } else if !yym302 && z.IsJSONHandle() { - z.EncJSONMarshal(yy301) - } else { - z.EncFallback(yy301) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym304 := z.EncBinary() - _ = yym304 - if false { - } else { - r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageGCHighThresholdPercent")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym305 := z.EncBinary() - _ = yym305 - if false { - } else { - r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym307 := z.EncBinary() - _ = yym307 - if false { - } else { - r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageGCLowThresholdPercent")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym308 := z.EncBinary() - _ = yym308 - if false { - } else { - r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym310 := z.EncBinary() - _ = yym310 - if false { - } else { - r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lowDiskSpaceThresholdMB")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym311 := z.EncBinary() - _ = yym311 - if false { - } else { - r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy313 := &x.VolumeStatsAggPeriod - yym314 := z.EncBinary() - _ = yym314 - if false { - } else if z.HasExtensions() && z.EncExt(yy313) { - } else if !yym314 && z.IsJSONHandle() { - z.EncJSONMarshal(yy313) - } else { - z.EncFallback(yy313) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeStatsAggPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy315 := &x.VolumeStatsAggPeriod - yym316 := z.EncBinary() - _ = yym316 - if false { - } else if z.HasExtensions() && z.EncExt(yy315) { - } else if !yym316 && z.IsJSONHandle() { - z.EncJSONMarshal(yy315) - } else { - z.EncFallback(yy315) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym318 := z.EncBinary() - _ = yym318 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("networkPluginName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym319 := z.EncBinary() - _ = yym319 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym321 := z.EncBinary() - _ = yym321 - if false { - } else { - r.EncodeInt(int64(x.NetworkPluginMTU)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("networkPluginMTU")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym322 := z.EncBinary() - _ = yym322 - if false { - } else { - r.EncodeInt(int64(x.NetworkPluginMTU)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym324 := z.EncBinary() - _ = yym324 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("networkPluginDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym325 := z.EncBinary() - _ = yym325 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym327 := z.EncBinary() - _ = yym327 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIConfDir)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cniConfDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym328 := z.EncBinary() - _ = yym328 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIConfDir)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym330 := z.EncBinary() - _ = yym330 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIBinDir)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cniBinDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym331 := z.EncBinary() - _ = yym331 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIBinDir)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym333 := z.EncBinary() - _ = yym333 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumePluginDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym334 := z.EncBinary() - _ = yym334 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[55] { - yym336 := z.EncBinary() - _ = yym336 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[55] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym337 := z.EncBinary() - _ = yym337 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[56] { - yym339 := z.EncBinary() - _ = yym339 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[56] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym340 := z.EncBinary() - _ = yym340 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[57] { - yym342 := z.EncBinary() - _ = yym342 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[57] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym343 := z.EncBinary() - _ = yym343 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[58] { - yym345 := z.EncBinary() - _ = yym345 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalCgroupsPerQOS)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq153[58] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalCgroupsPerQOS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym346 := z.EncBinary() - _ = yym346 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalCgroupsPerQOS)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[59] { - yym348 := z.EncBinary() - _ = yym348 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[59] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupDriver")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym349 := z.EncBinary() - _ = yym349 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[60] { - yym351 := z.EncBinary() - _ = yym351 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[60] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym352 := z.EncBinary() - _ = yym352 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[61] { - yym354 := z.EncBinary() - _ = yym354 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[61] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym355 := z.EncBinary() - _ = yym355 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[62] { - yym357 := z.EncBinary() - _ = yym357 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[62] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym358 := z.EncBinary() - _ = yym358 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym360 := z.EncBinary() - _ = yym360 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerRuntime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym361 := z.EncBinary() - _ = yym361 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym363 := z.EncBinary() - _ = yym363 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("remoteRuntimeEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym364 := z.EncBinary() - _ = yym364 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym366 := z.EncBinary() - _ = yym366 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("remoteImageEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym367 := z.EncBinary() - _ = yym367 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[66] { - yy369 := &x.RuntimeRequestTimeout - yym370 := z.EncBinary() - _ = yym370 - if false { - } else if z.HasExtensions() && z.EncExt(yy369) { - } else if !yym370 && z.IsJSONHandle() { - z.EncJSONMarshal(yy369) - } else { - z.EncFallback(yy369) - } - } else { - r.EncodeNil() - } - } else { - if yyq153[66] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy371 := &x.RuntimeRequestTimeout - yym372 := z.EncBinary() - _ = yym372 - if false { - } else if z.HasExtensions() && z.EncExt(yy371) { - } else if !yym372 && z.IsJSONHandle() { - z.EncJSONMarshal(yy371) - } else { - z.EncFallback(yy371) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[67] { - yy374 := &x.ImagePullProgressDeadline - yym375 := z.EncBinary() - _ = yym375 - if false { - } else if z.HasExtensions() && z.EncExt(yy374) { - } else if !yym375 && z.IsJSONHandle() { - z.EncJSONMarshal(yy374) - } else { - z.EncFallback(yy374) - } - } else { - r.EncodeNil() - } - } else { - if yyq153[67] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imagePullProgressDeadline")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy376 := &x.ImagePullProgressDeadline - yym377 := z.EncBinary() - _ = yym377 - if false { - } else if z.HasExtensions() && z.EncExt(yy376) { - } else if !yym377 && z.IsJSONHandle() { - z.EncJSONMarshal(yy376) - } else { - z.EncFallback(yy376) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[68] { - yym379 := z.EncBinary() - _ = yym379 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[68] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym380 := z.EncBinary() - _ = yym380 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[69] { - yym382 := z.EncBinary() - _ = yym382 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[69] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalMounterPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym383 := z.EncBinary() - _ = yym383 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[70] { - yym385 := z.EncBinary() - _ = yym385 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[70] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym386 := z.EncBinary() - _ = yym386 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[71] { - yym388 := z.EncBinary() - _ = yym388 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[71] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym389 := z.EncBinary() - _ = yym389 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym391 := z.EncBinary() - _ = yym391 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lockFilePath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym392 := z.EncBinary() - _ = yym392 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym394 := z.EncBinary() - _ = yym394 - if false { - } else { - r.EncodeBool(bool(x.ExitOnLockContention)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym395 := z.EncBinary() - _ = yym395 - if false { - } else { - r.EncodeBool(bool(x.ExitOnLockContention)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym397 := z.EncBinary() - _ = yym397 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hairpinMode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym398 := z.EncBinary() - _ = yym398 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym400 := z.EncBinary() - _ = yym400 - if false { - } else { - r.EncodeBool(bool(x.BabysitDaemons)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym401 := z.EncBinary() - _ = yym401 - if false { - } else { - r.EncodeBool(bool(x.BabysitDaemons)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym403 := z.EncBinary() - _ = yym403 - if false { - } else { - r.EncodeInt(int64(x.MaxPods)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym404 := z.EncBinary() - _ = yym404 - if false { - } else { - r.EncodeInt(int64(x.MaxPods)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym406 := z.EncBinary() - _ = yym406 - if false { - } else { - r.EncodeInt(int64(x.NvidiaGPUs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym407 := z.EncBinary() - _ = yym407 - if false { - } else { - r.EncodeInt(int64(x.NvidiaGPUs)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym409 := z.EncBinary() - _ = yym409 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("dockerExecHandlerName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym410 := z.EncBinary() - _ = yym410 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym412 := z.EncBinary() - _ = yym412 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym413 := z.EncBinary() - _ = yym413 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym415 := z.EncBinary() - _ = yym415 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resolvConf")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym416 := z.EncBinary() - _ = yym416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym418 := z.EncBinary() - _ = yym418 - if false { - } else { - r.EncodeBool(bool(x.CPUCFSQuota)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym419 := z.EncBinary() - _ = yym419 - if false { - } else { - r.EncodeBool(bool(x.CPUCFSQuota)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym421 := z.EncBinary() - _ = yym421 - if false { - } else { - r.EncodeBool(bool(x.Containerized)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerized")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym422 := z.EncBinary() - _ = yym422 - if false { - } else { - r.EncodeBool(bool(x.Containerized)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym424 := z.EncBinary() - _ = yym424 - if false { - } else { - r.EncodeInt(int64(x.MaxOpenFiles)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym425 := z.EncBinary() - _ = yym425 - if false { - } else { - r.EncodeInt(int64(x.MaxOpenFiles)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym427 := z.EncBinary() - _ = yym427 - if false { - } else { - r.EncodeBool(bool(x.ReconcileCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym428 := z.EncBinary() - _ = yym428 - if false { - } else { - r.EncodeBool(bool(x.ReconcileCIDR)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym430 := z.EncBinary() - _ = yym430 - if false { - } else { - r.EncodeBool(bool(x.RegisterSchedulable)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym431 := z.EncBinary() - _ = yym431 - if false { - } else { - r.EncodeBool(bool(x.RegisterSchedulable)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.RegisterWithTaints == nil { - r.EncodeNil() - } else { - yym433 := z.EncBinary() - _ = yym433 - if false { - } else { - h.encSliceapi_Taint(([]pkg2_api.Taint)(x.RegisterWithTaints), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerWithTaints")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RegisterWithTaints == nil { - r.EncodeNil() - } else { - yym434 := z.EncBinary() - _ = yym434 - if false { - } else { - h.encSliceapi_Taint(([]pkg2_api.Taint)(x.RegisterWithTaints), e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym436 := z.EncBinary() - _ = yym436 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("contentType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym437 := z.EncBinary() - _ = yym437 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym439 := z.EncBinary() - _ = yym439 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym440 := z.EncBinary() - _ = yym440 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIQPS)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym442 := z.EncBinary() - _ = yym442 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym443 := z.EncBinary() - _ = yym443 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym445 := z.EncBinary() - _ = yym445 - if false { - } else { - r.EncodeBool(bool(x.SerializeImagePulls)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym446 := z.EncBinary() - _ = yym446 - if false { - } else { - r.EncodeBool(bool(x.SerializeImagePulls)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[91] { - yy448 := &x.OutOfDiskTransitionFrequency - yym449 := z.EncBinary() - _ = yym449 - if false { - } else if z.HasExtensions() && z.EncExt(yy448) { - } else if !yym449 && z.IsJSONHandle() { - z.EncJSONMarshal(yy448) - } else { - z.EncFallback(yy448) - } - } else { - r.EncodeNil() - } - } else { - if yyq153[91] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy450 := &x.OutOfDiskTransitionFrequency - yym451 := z.EncBinary() - _ = yym451 - if false { - } else if z.HasExtensions() && z.EncExt(yy450) { - } else if !yym451 && z.IsJSONHandle() { - z.EncJSONMarshal(yy450) - } else { - z.EncFallback(yy450) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[92] { - yym453 := z.EncBinary() - _ = yym453 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[92] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym454 := z.EncBinary() - _ = yym454 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NodeLabels == nil { - r.EncodeNil() - } else { - yym456 := z.EncBinary() - _ = yym456 - if false { - } else { - z.F.EncMapStringStringV(x.NodeLabels, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeLabels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NodeLabels == nil { - r.EncodeNil() - } else { - yym457 := z.EncBinary() - _ = yym457 - if false { - } else { - z.F.EncMapStringStringV(x.NodeLabels, false, e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym459 := z.EncBinary() - _ = yym459 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nonMasqueradeCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym460 := z.EncBinary() - _ = yym460 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym462 := z.EncBinary() - _ = yym462 - if false { - } else { - r.EncodeBool(bool(x.EnableCustomMetrics)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym463 := z.EncBinary() - _ = yym463 - if false { - } else { - r.EncodeBool(bool(x.EnableCustomMetrics)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[96] { - yym465 := z.EncBinary() - _ = yym465 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[96] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionHard")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym466 := z.EncBinary() - _ = yym466 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[97] { - yym468 := z.EncBinary() - _ = yym468 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[97] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym469 := z.EncBinary() - _ = yym469 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[98] { - yym471 := z.EncBinary() - _ = yym471 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[98] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym472 := z.EncBinary() - _ = yym472 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[99] { - yy474 := &x.EvictionPressureTransitionPeriod - yym475 := z.EncBinary() - _ = yym475 - if false { - } else if z.HasExtensions() && z.EncExt(yy474) { - } else if !yym475 && z.IsJSONHandle() { - z.EncJSONMarshal(yy474) - } else { - z.EncFallback(yy474) - } - } else { - r.EncodeNil() - } - } else { - if yyq153[99] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy476 := &x.EvictionPressureTransitionPeriod - yym477 := z.EncBinary() - _ = yym477 - if false { - } else if z.HasExtensions() && z.EncExt(yy476) { - } else if !yym477 && z.IsJSONHandle() { - z.EncJSONMarshal(yy476) - } else { - z.EncFallback(yy476) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[100] { - yym479 := z.EncBinary() - _ = yym479 - if false { - } else { - r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq153[100] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym480 := z.EncBinary() - _ = yym480 - if false { - } else { - r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[101] { - yym482 := z.EncBinary() - _ = yym482 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq153[101] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionMinimumReclaim")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym483 := z.EncBinary() - _ = yym483 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym485 := z.EncBinary() - _ = yym485 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalKernelMemcgNotification)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalKernelMemcgNotification")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym486 := z.EncBinary() - _ = yym486 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalKernelMemcgNotification)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym488 := z.EncBinary() - _ = yym488 - if false { - } else { - r.EncodeInt(int64(x.PodsPerCore)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podsPerCore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym489 := z.EncBinary() - _ = yym489 - if false { - } else { - r.EncodeInt(int64(x.PodsPerCore)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym491 := z.EncBinary() - _ = yym491 - if false { - } else { - r.EncodeBool(bool(x.EnableControllerAttachDetach)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym492 := z.EncBinary() - _ = yym492 - if false { - } else { - r.EncodeBool(bool(x.EnableControllerAttachDetach)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.SystemReserved == nil { - r.EncodeNil() - } else { - yym494 := z.EncBinary() - _ = yym494 - if false { - } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { - } else { - h.encconfig_ConfigurationMap((pkg3_config.ConfigurationMap)(x.SystemReserved), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemReserved")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SystemReserved == nil { - r.EncodeNil() - } else { - yym495 := z.EncBinary() - _ = yym495 - if false { - } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { - } else { - h.encconfig_ConfigurationMap((pkg3_config.ConfigurationMap)(x.SystemReserved), e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.KubeReserved == nil { - r.EncodeNil() - } else { - yym497 := z.EncBinary() - _ = yym497 - if false { - } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { - } else { - h.encconfig_ConfigurationMap((pkg3_config.ConfigurationMap)(x.KubeReserved), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeReserved")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.KubeReserved == nil { - r.EncodeNil() - } else { - yym498 := z.EncBinary() - _ = yym498 - if false { - } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { - } else { - h.encconfig_ConfigurationMap((pkg3_config.ConfigurationMap)(x.KubeReserved), e) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym500 := z.EncBinary() - _ = yym500 - if false { - } else { - r.EncodeBool(bool(x.ProtectKernelDefaults)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("protectKernelDefaults")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym501 := z.EncBinary() - _ = yym501 - if false { - } else { - r.EncodeBool(bool(x.ProtectKernelDefaults)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym503 := z.EncBinary() - _ = yym503 - if false { - } else { - r.EncodeBool(bool(x.MakeIPTablesUtilChains)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("makeIPTablesUtilChains")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym504 := z.EncBinary() - _ = yym504 - if false { - } else { - r.EncodeBool(bool(x.MakeIPTablesUtilChains)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym506 := z.EncBinary() - _ = yym506 - if false { - } else { - r.EncodeInt(int64(x.IPTablesMasqueradeBit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym507 := z.EncBinary() - _ = yym507 - if false { - } else { - r.EncodeInt(int64(x.IPTablesMasqueradeBit)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym509 := z.EncBinary() - _ = yym509 - if false { - } else { - r.EncodeInt(int64(x.IPTablesDropBit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesDropBit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym510 := z.EncBinary() - _ = yym510 - if false { - } else { - r.EncodeInt(int64(x.IPTablesDropBit)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[111] { - if x.AllowedUnsafeSysctls == nil { - r.EncodeNil() - } else { - yym512 := z.EncBinary() - _ = yym512 - if false { - } else { - z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq153[111] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalAllowedUnsafeSysctls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AllowedUnsafeSysctls == nil { - r.EncodeNil() - } else { - yym513 := z.EncBinary() - _ = yym513 - if false { - } else { - z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) - } - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym515 := z.EncBinary() - _ = yym515 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FeatureGates)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("featureGates")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym516 := z.EncBinary() - _ = yym516 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FeatureGates)) - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[113] { - yym518 := z.EncBinary() - _ = yym518 - if false { - } else { - r.EncodeBool(bool(x.EnableCRI)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq153[113] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableCRI")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym519 := z.EncBinary() - _ = yym519 - if false { - } else { - r.EncodeBool(bool(x.EnableCRI)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[114] { - yym521 := z.EncBinary() - _ = yym521 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalFailSwapOn)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq153[114] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalFailSwapOn")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym522 := z.EncBinary() - _ = yym522 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalFailSwapOn)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq153[115] { - yym524 := z.EncBinary() - _ = yym524 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalCheckNodeCapabilitiesBeforeMount)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq153[115] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ExperimentalCheckNodeCapabilitiesBeforeMount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym525 := z.EncBinary() - _ = yym525 - if false { - } else { - r.EncodeBool(bool(x.ExperimentalCheckNodeCapabilitiesBeforeMount)) - } - } - } - if yyr153 || yy2arr153 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym526 := z.DecBinary() - _ = yym526 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct527 := r.ContainerType() - if yyct527 == codecSelferValueTypeMap1234 { - yyl527 := r.ReadMapStart() - if yyl527 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl527, d) - } - } else if yyct527 == codecSelferValueTypeArray1234 { - yyl527 := r.ReadArrayStart() - if yyl527 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl527, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys528Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys528Slc - var yyhl528 bool = l >= 0 - for yyj528 := 0; ; yyj528++ { - if yyhl528 { - if yyj528 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys528Slc = r.DecodeBytes(yys528Slc, true, true) - yys528 := string(yys528Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys528 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "podManifestPath": - if r.TryDecodeAsNil() { - x.PodManifestPath = "" - } else { - x.PodManifestPath = string(r.DecodeString()) - } - case "syncFrequency": - if r.TryDecodeAsNil() { - x.SyncFrequency = pkg1_v1.Duration{} - } else { - yyv532 := &x.SyncFrequency - yym533 := z.DecBinary() - _ = yym533 - if false { - } else if z.HasExtensions() && z.DecExt(yyv532) { - } else if !yym533 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv532) - } else { - z.DecFallback(yyv532, false) - } - } - case "fileCheckFrequency": - if r.TryDecodeAsNil() { - x.FileCheckFrequency = pkg1_v1.Duration{} - } else { - yyv534 := &x.FileCheckFrequency - yym535 := z.DecBinary() - _ = yym535 - if false { - } else if z.HasExtensions() && z.DecExt(yyv534) { - } else if !yym535 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv534) - } else { - z.DecFallback(yyv534, false) - } - } - case "httpCheckFrequency": - if r.TryDecodeAsNil() { - x.HTTPCheckFrequency = pkg1_v1.Duration{} - } else { - yyv536 := &x.HTTPCheckFrequency - yym537 := z.DecBinary() - _ = yym537 - if false { - } else if z.HasExtensions() && z.DecExt(yyv536) { - } else if !yym537 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv536) - } else { - z.DecFallback(yyv536, false) - } - } - case "manifestURL": - if r.TryDecodeAsNil() { - x.ManifestURL = "" - } else { - x.ManifestURL = string(r.DecodeString()) - } - case "manifestURLHeader": - if r.TryDecodeAsNil() { - x.ManifestURLHeader = "" - } else { - x.ManifestURLHeader = string(r.DecodeString()) - } - case "enableServer": - if r.TryDecodeAsNil() { - x.EnableServer = false - } else { - x.EnableServer = bool(r.DecodeBool()) - } - case "address": - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - case "port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - case "readOnlyPort": - if r.TryDecodeAsNil() { - x.ReadOnlyPort = 0 - } else { - x.ReadOnlyPort = int32(r.DecodeInt(32)) - } - case "tlsCertFile": - if r.TryDecodeAsNil() { - x.TLSCertFile = "" - } else { - x.TLSCertFile = string(r.DecodeString()) - } - case "tlsPrivateKeyFile": - if r.TryDecodeAsNil() { - x.TLSPrivateKeyFile = "" - } else { - x.TLSPrivateKeyFile = string(r.DecodeString()) - } - case "certDirectory": - if r.TryDecodeAsNil() { - x.CertDirectory = "" - } else { - x.CertDirectory = string(r.DecodeString()) - } - case "authentication": - if r.TryDecodeAsNil() { - x.Authentication = KubeletAuthentication{} - } else { - yyv547 := &x.Authentication - yyv547.CodecDecodeSelf(d) - } - case "authorization": - if r.TryDecodeAsNil() { - x.Authorization = KubeletAuthorization{} - } else { - yyv548 := &x.Authorization - yyv548.CodecDecodeSelf(d) - } - case "hostnameOverride": - if r.TryDecodeAsNil() { - x.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - case "podInfraContainerImage": - if r.TryDecodeAsNil() { - x.PodInfraContainerImage = "" - } else { - x.PodInfraContainerImage = string(r.DecodeString()) - } - case "dockerEndpoint": - if r.TryDecodeAsNil() { - x.DockerEndpoint = "" - } else { - x.DockerEndpoint = string(r.DecodeString()) - } - case "rootDirectory": - if r.TryDecodeAsNil() { - x.RootDirectory = "" - } else { - x.RootDirectory = string(r.DecodeString()) - } - case "seccompProfileRoot": - if r.TryDecodeAsNil() { - x.SeccompProfileRoot = "" - } else { - x.SeccompProfileRoot = string(r.DecodeString()) - } - case "allowPrivileged": - if r.TryDecodeAsNil() { - x.AllowPrivileged = false - } else { - x.AllowPrivileged = bool(r.DecodeBool()) - } - case "hostNetworkSources": - if r.TryDecodeAsNil() { - x.HostNetworkSources = nil - } else { - yyv555 := &x.HostNetworkSources - yym556 := z.DecBinary() - _ = yym556 - if false { - } else { - z.F.DecSliceStringX(yyv555, false, d) - } - } - case "hostPIDSources": - if r.TryDecodeAsNil() { - x.HostPIDSources = nil - } else { - yyv557 := &x.HostPIDSources - yym558 := z.DecBinary() - _ = yym558 - if false { - } else { - z.F.DecSliceStringX(yyv557, false, d) - } - } - case "hostIPCSources": - if r.TryDecodeAsNil() { - x.HostIPCSources = nil - } else { - yyv559 := &x.HostIPCSources - yym560 := z.DecBinary() - _ = yym560 - if false { - } else { - z.F.DecSliceStringX(yyv559, false, d) - } - } - case "registryPullQPS": - if r.TryDecodeAsNil() { - x.RegistryPullQPS = 0 - } else { - x.RegistryPullQPS = int32(r.DecodeInt(32)) - } - case "registryBurst": - if r.TryDecodeAsNil() { - x.RegistryBurst = 0 - } else { - x.RegistryBurst = int32(r.DecodeInt(32)) - } - case "eventRecordQPS": - if r.TryDecodeAsNil() { - x.EventRecordQPS = 0 - } else { - x.EventRecordQPS = int32(r.DecodeInt(32)) - } - case "eventBurst": - if r.TryDecodeAsNil() { - x.EventBurst = 0 - } else { - x.EventBurst = int32(r.DecodeInt(32)) - } - case "enableDebuggingHandlers": - if r.TryDecodeAsNil() { - x.EnableDebuggingHandlers = false - } else { - x.EnableDebuggingHandlers = bool(r.DecodeBool()) - } - case "minimumGCAge": - if r.TryDecodeAsNil() { - x.MinimumGCAge = pkg1_v1.Duration{} - } else { - yyv566 := &x.MinimumGCAge - yym567 := z.DecBinary() - _ = yym567 - if false { - } else if z.HasExtensions() && z.DecExt(yyv566) { - } else if !yym567 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv566) - } else { - z.DecFallback(yyv566, false) - } - } - case "maxPerPodContainerCount": - if r.TryDecodeAsNil() { - x.MaxPerPodContainerCount = 0 - } else { - x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) - } - case "maxContainerCount": - if r.TryDecodeAsNil() { - x.MaxContainerCount = 0 - } else { - x.MaxContainerCount = int32(r.DecodeInt(32)) - } - case "cAdvisorPort": - if r.TryDecodeAsNil() { - x.CAdvisorPort = 0 - } else { - x.CAdvisorPort = int32(r.DecodeInt(32)) - } - case "healthzPort": - if r.TryDecodeAsNil() { - x.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - case "healthzBindAddress": - if r.TryDecodeAsNil() { - x.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - case "oomScoreAdj": - if r.TryDecodeAsNil() { - x.OOMScoreAdj = 0 - } else { - x.OOMScoreAdj = int32(r.DecodeInt(32)) - } - case "registerNode": - if r.TryDecodeAsNil() { - x.RegisterNode = false - } else { - x.RegisterNode = bool(r.DecodeBool()) - } - case "clusterDomain": - if r.TryDecodeAsNil() { - x.ClusterDomain = "" - } else { - x.ClusterDomain = string(r.DecodeString()) - } - case "masterServiceNamespace": - if r.TryDecodeAsNil() { - x.MasterServiceNamespace = "" - } else { - x.MasterServiceNamespace = string(r.DecodeString()) - } - case "clusterDNS": - if r.TryDecodeAsNil() { - x.ClusterDNS = "" - } else { - x.ClusterDNS = string(r.DecodeString()) - } - case "streamingConnectionIdleTimeout": - if r.TryDecodeAsNil() { - x.StreamingConnectionIdleTimeout = pkg1_v1.Duration{} - } else { - yyv578 := &x.StreamingConnectionIdleTimeout - yym579 := z.DecBinary() - _ = yym579 - if false { - } else if z.HasExtensions() && z.DecExt(yyv578) { - } else if !yym579 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv578) - } else { - z.DecFallback(yyv578, false) - } - } - case "nodeStatusUpdateFrequency": - if r.TryDecodeAsNil() { - x.NodeStatusUpdateFrequency = pkg1_v1.Duration{} - } else { - yyv580 := &x.NodeStatusUpdateFrequency - yym581 := z.DecBinary() - _ = yym581 - if false { - } else if z.HasExtensions() && z.DecExt(yyv580) { - } else if !yym581 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv580) - } else { - z.DecFallback(yyv580, false) - } - } - case "imageMinimumGCAge": - if r.TryDecodeAsNil() { - x.ImageMinimumGCAge = pkg1_v1.Duration{} - } else { - yyv582 := &x.ImageMinimumGCAge - yym583 := z.DecBinary() - _ = yym583 - if false { - } else if z.HasExtensions() && z.DecExt(yyv582) { - } else if !yym583 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv582) - } else { - z.DecFallback(yyv582, false) - } - } - case "imageGCHighThresholdPercent": - if r.TryDecodeAsNil() { - x.ImageGCHighThresholdPercent = 0 - } else { - x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) - } - case "imageGCLowThresholdPercent": - if r.TryDecodeAsNil() { - x.ImageGCLowThresholdPercent = 0 - } else { - x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) - } - case "lowDiskSpaceThresholdMB": - if r.TryDecodeAsNil() { - x.LowDiskSpaceThresholdMB = 0 - } else { - x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) - } - case "volumeStatsAggPeriod": - if r.TryDecodeAsNil() { - x.VolumeStatsAggPeriod = pkg1_v1.Duration{} - } else { - yyv587 := &x.VolumeStatsAggPeriod - yym588 := z.DecBinary() - _ = yym588 - if false { - } else if z.HasExtensions() && z.DecExt(yyv587) { - } else if !yym588 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv587) - } else { - z.DecFallback(yyv587, false) - } - } - case "networkPluginName": - if r.TryDecodeAsNil() { - x.NetworkPluginName = "" - } else { - x.NetworkPluginName = string(r.DecodeString()) - } - case "networkPluginMTU": - if r.TryDecodeAsNil() { - x.NetworkPluginMTU = 0 - } else { - x.NetworkPluginMTU = int32(r.DecodeInt(32)) - } - case "networkPluginDir": - if r.TryDecodeAsNil() { - x.NetworkPluginDir = "" - } else { - x.NetworkPluginDir = string(r.DecodeString()) - } - case "cniConfDir": - if r.TryDecodeAsNil() { - x.CNIConfDir = "" - } else { - x.CNIConfDir = string(r.DecodeString()) - } - case "cniBinDir": - if r.TryDecodeAsNil() { - x.CNIBinDir = "" - } else { - x.CNIBinDir = string(r.DecodeString()) - } - case "volumePluginDir": - if r.TryDecodeAsNil() { - x.VolumePluginDir = "" - } else { - x.VolumePluginDir = string(r.DecodeString()) - } - case "cloudProvider": - if r.TryDecodeAsNil() { - x.CloudProvider = "" - } else { - x.CloudProvider = string(r.DecodeString()) - } - case "cloudConfigFile": - if r.TryDecodeAsNil() { - x.CloudConfigFile = "" - } else { - x.CloudConfigFile = string(r.DecodeString()) - } - case "kubeletCgroups": - if r.TryDecodeAsNil() { - x.KubeletCgroups = "" - } else { - x.KubeletCgroups = string(r.DecodeString()) - } - case "experimentalCgroupsPerQOS": - if r.TryDecodeAsNil() { - x.ExperimentalCgroupsPerQOS = false - } else { - x.ExperimentalCgroupsPerQOS = bool(r.DecodeBool()) - } - case "cgroupDriver": - if r.TryDecodeAsNil() { - x.CgroupDriver = "" - } else { - x.CgroupDriver = string(r.DecodeString()) - } - case "runtimeCgroups": - if r.TryDecodeAsNil() { - x.RuntimeCgroups = "" - } else { - x.RuntimeCgroups = string(r.DecodeString()) - } - case "systemCgroups": - if r.TryDecodeAsNil() { - x.SystemCgroups = "" - } else { - x.SystemCgroups = string(r.DecodeString()) - } - case "cgroupRoot": - if r.TryDecodeAsNil() { - x.CgroupRoot = "" - } else { - x.CgroupRoot = string(r.DecodeString()) - } - case "containerRuntime": - if r.TryDecodeAsNil() { - x.ContainerRuntime = "" - } else { - x.ContainerRuntime = string(r.DecodeString()) - } - case "remoteRuntimeEndpoint": - if r.TryDecodeAsNil() { - x.RemoteRuntimeEndpoint = "" - } else { - x.RemoteRuntimeEndpoint = string(r.DecodeString()) - } - case "remoteImageEndpoint": - if r.TryDecodeAsNil() { - x.RemoteImageEndpoint = "" - } else { - x.RemoteImageEndpoint = string(r.DecodeString()) - } - case "runtimeRequestTimeout": - if r.TryDecodeAsNil() { - x.RuntimeRequestTimeout = pkg1_v1.Duration{} - } else { - yyv606 := &x.RuntimeRequestTimeout - yym607 := z.DecBinary() - _ = yym607 - if false { - } else if z.HasExtensions() && z.DecExt(yyv606) { - } else if !yym607 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv606) - } else { - z.DecFallback(yyv606, false) - } - } - case "imagePullProgressDeadline": - if r.TryDecodeAsNil() { - x.ImagePullProgressDeadline = pkg1_v1.Duration{} - } else { - yyv608 := &x.ImagePullProgressDeadline - yym609 := z.DecBinary() - _ = yym609 - if false { - } else if z.HasExtensions() && z.DecExt(yyv608) { - } else if !yym609 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv608) - } else { - z.DecFallback(yyv608, false) - } - } - case "rktPath": - if r.TryDecodeAsNil() { - x.RktPath = "" - } else { - x.RktPath = string(r.DecodeString()) - } - case "experimentalMounterPath": - if r.TryDecodeAsNil() { - x.ExperimentalMounterPath = "" - } else { - x.ExperimentalMounterPath = string(r.DecodeString()) - } - case "rktAPIEndpoint": - if r.TryDecodeAsNil() { - x.RktAPIEndpoint = "" - } else { - x.RktAPIEndpoint = string(r.DecodeString()) - } - case "rktStage1Image": - if r.TryDecodeAsNil() { - x.RktStage1Image = "" - } else { - x.RktStage1Image = string(r.DecodeString()) - } - case "lockFilePath": - if r.TryDecodeAsNil() { - x.LockFilePath = "" - } else { - x.LockFilePath = string(r.DecodeString()) - } - case "exitOnLockContention": - if r.TryDecodeAsNil() { - x.ExitOnLockContention = false - } else { - x.ExitOnLockContention = bool(r.DecodeBool()) - } - case "hairpinMode": - if r.TryDecodeAsNil() { - x.HairpinMode = "" - } else { - x.HairpinMode = string(r.DecodeString()) - } - case "babysitDaemons": - if r.TryDecodeAsNil() { - x.BabysitDaemons = false - } else { - x.BabysitDaemons = bool(r.DecodeBool()) - } - case "maxPods": - if r.TryDecodeAsNil() { - x.MaxPods = 0 - } else { - x.MaxPods = int32(r.DecodeInt(32)) - } - case "nvidiaGPUs": - if r.TryDecodeAsNil() { - x.NvidiaGPUs = 0 - } else { - x.NvidiaGPUs = int32(r.DecodeInt(32)) - } - case "dockerExecHandlerName": - if r.TryDecodeAsNil() { - x.DockerExecHandlerName = "" - } else { - x.DockerExecHandlerName = string(r.DecodeString()) - } - case "podCIDR": - if r.TryDecodeAsNil() { - x.PodCIDR = "" - } else { - x.PodCIDR = string(r.DecodeString()) - } - case "resolvConf": - if r.TryDecodeAsNil() { - x.ResolverConfig = "" - } else { - x.ResolverConfig = string(r.DecodeString()) - } - case "cpuCFSQuota": - if r.TryDecodeAsNil() { - x.CPUCFSQuota = false - } else { - x.CPUCFSQuota = bool(r.DecodeBool()) - } - case "containerized": - if r.TryDecodeAsNil() { - x.Containerized = false - } else { - x.Containerized = bool(r.DecodeBool()) - } - case "maxOpenFiles": - if r.TryDecodeAsNil() { - x.MaxOpenFiles = 0 - } else { - x.MaxOpenFiles = int64(r.DecodeInt(64)) - } - case "reconcileCIDR": - if r.TryDecodeAsNil() { - x.ReconcileCIDR = false - } else { - x.ReconcileCIDR = bool(r.DecodeBool()) - } - case "registerSchedulable": - if r.TryDecodeAsNil() { - x.RegisterSchedulable = false - } else { - x.RegisterSchedulable = bool(r.DecodeBool()) - } - case "registerWithTaints": - if r.TryDecodeAsNil() { - x.RegisterWithTaints = nil - } else { - yyv628 := &x.RegisterWithTaints - yym629 := z.DecBinary() - _ = yym629 - if false { - } else { - h.decSliceapi_Taint((*[]pkg2_api.Taint)(yyv628), d) - } - } - case "contentType": - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - case "kubeAPIQPS": - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = int32(r.DecodeInt(32)) - } - case "kubeAPIBurst": - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - case "serializeImagePulls": - if r.TryDecodeAsNil() { - x.SerializeImagePulls = false - } else { - x.SerializeImagePulls = bool(r.DecodeBool()) - } - case "outOfDiskTransitionFrequency": - if r.TryDecodeAsNil() { - x.OutOfDiskTransitionFrequency = pkg1_v1.Duration{} - } else { - yyv634 := &x.OutOfDiskTransitionFrequency - yym635 := z.DecBinary() - _ = yym635 - if false { - } else if z.HasExtensions() && z.DecExt(yyv634) { - } else if !yym635 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv634) - } else { - z.DecFallback(yyv634, false) - } - } - case "nodeIP": - if r.TryDecodeAsNil() { - x.NodeIP = "" - } else { - x.NodeIP = string(r.DecodeString()) - } - case "nodeLabels": - if r.TryDecodeAsNil() { - x.NodeLabels = nil - } else { - yyv637 := &x.NodeLabels - yym638 := z.DecBinary() - _ = yym638 - if false { - } else { - z.F.DecMapStringStringX(yyv637, false, d) - } - } - case "nonMasqueradeCIDR": - if r.TryDecodeAsNil() { - x.NonMasqueradeCIDR = "" - } else { - x.NonMasqueradeCIDR = string(r.DecodeString()) - } - case "enableCustomMetrics": - if r.TryDecodeAsNil() { - x.EnableCustomMetrics = false - } else { - x.EnableCustomMetrics = bool(r.DecodeBool()) - } - case "evictionHard": - if r.TryDecodeAsNil() { - x.EvictionHard = "" - } else { - x.EvictionHard = string(r.DecodeString()) - } - case "evictionSoft": - if r.TryDecodeAsNil() { - x.EvictionSoft = "" - } else { - x.EvictionSoft = string(r.DecodeString()) - } - case "evictionSoftGracePeriod": - if r.TryDecodeAsNil() { - x.EvictionSoftGracePeriod = "" - } else { - x.EvictionSoftGracePeriod = string(r.DecodeString()) - } - case "evictionPressureTransitionPeriod": - if r.TryDecodeAsNil() { - x.EvictionPressureTransitionPeriod = pkg1_v1.Duration{} - } else { - yyv644 := &x.EvictionPressureTransitionPeriod - yym645 := z.DecBinary() - _ = yym645 - if false { - } else if z.HasExtensions() && z.DecExt(yyv644) { - } else if !yym645 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv644) - } else { - z.DecFallback(yyv644, false) - } - } - case "evictionMaxPodGracePeriod": - if r.TryDecodeAsNil() { - x.EvictionMaxPodGracePeriod = 0 - } else { - x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) - } - case "evictionMinimumReclaim": - if r.TryDecodeAsNil() { - x.EvictionMinimumReclaim = "" - } else { - x.EvictionMinimumReclaim = string(r.DecodeString()) - } - case "experimentalKernelMemcgNotification": - if r.TryDecodeAsNil() { - x.ExperimentalKernelMemcgNotification = false - } else { - x.ExperimentalKernelMemcgNotification = bool(r.DecodeBool()) - } - case "podsPerCore": - if r.TryDecodeAsNil() { - x.PodsPerCore = 0 - } else { - x.PodsPerCore = int32(r.DecodeInt(32)) - } - case "enableControllerAttachDetach": - if r.TryDecodeAsNil() { - x.EnableControllerAttachDetach = false - } else { - x.EnableControllerAttachDetach = bool(r.DecodeBool()) - } - case "systemReserved": - if r.TryDecodeAsNil() { - x.SystemReserved = nil - } else { - yyv651 := &x.SystemReserved - yym652 := z.DecBinary() - _ = yym652 - if false { - } else if z.HasExtensions() && z.DecExt(yyv651) { - } else { - h.decconfig_ConfigurationMap((*pkg3_config.ConfigurationMap)(yyv651), d) - } - } - case "kubeReserved": - if r.TryDecodeAsNil() { - x.KubeReserved = nil - } else { - yyv653 := &x.KubeReserved - yym654 := z.DecBinary() - _ = yym654 - if false { - } else if z.HasExtensions() && z.DecExt(yyv653) { - } else { - h.decconfig_ConfigurationMap((*pkg3_config.ConfigurationMap)(yyv653), d) - } - } - case "protectKernelDefaults": - if r.TryDecodeAsNil() { - x.ProtectKernelDefaults = false - } else { - x.ProtectKernelDefaults = bool(r.DecodeBool()) - } - case "makeIPTablesUtilChains": - if r.TryDecodeAsNil() { - x.MakeIPTablesUtilChains = false - } else { - x.MakeIPTablesUtilChains = bool(r.DecodeBool()) - } - case "iptablesMasqueradeBit": - if r.TryDecodeAsNil() { - x.IPTablesMasqueradeBit = 0 - } else { - x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) - } - case "iptablesDropBit": - if r.TryDecodeAsNil() { - x.IPTablesDropBit = 0 - } else { - x.IPTablesDropBit = int32(r.DecodeInt(32)) - } - case "experimentalAllowedUnsafeSysctls": - if r.TryDecodeAsNil() { - x.AllowedUnsafeSysctls = nil - } else { - yyv659 := &x.AllowedUnsafeSysctls - yym660 := z.DecBinary() - _ = yym660 - if false { - } else { - z.F.DecSliceStringX(yyv659, false, d) - } - } - case "featureGates": - if r.TryDecodeAsNil() { - x.FeatureGates = "" - } else { - x.FeatureGates = string(r.DecodeString()) - } - case "enableCRI": - if r.TryDecodeAsNil() { - x.EnableCRI = false - } else { - x.EnableCRI = bool(r.DecodeBool()) - } - case "experimentalFailSwapOn": - if r.TryDecodeAsNil() { - x.ExperimentalFailSwapOn = false - } else { - x.ExperimentalFailSwapOn = bool(r.DecodeBool()) - } - case "ExperimentalCheckNodeCapabilitiesBeforeMount": - if r.TryDecodeAsNil() { - x.ExperimentalCheckNodeCapabilitiesBeforeMount = false - } else { - x.ExperimentalCheckNodeCapabilitiesBeforeMount = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys528) - } // end switch yys528 - } // end for yyj528 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj665 int - var yyb665 bool - var yyhl665 bool = l >= 0 - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodManifestPath = "" - } else { - x.PodManifestPath = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SyncFrequency = pkg1_v1.Duration{} - } else { - yyv669 := &x.SyncFrequency - yym670 := z.DecBinary() - _ = yym670 - if false { - } else if z.HasExtensions() && z.DecExt(yyv669) { - } else if !yym670 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv669) - } else { - z.DecFallback(yyv669, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FileCheckFrequency = pkg1_v1.Duration{} - } else { - yyv671 := &x.FileCheckFrequency - yym672 := z.DecBinary() - _ = yym672 - if false { - } else if z.HasExtensions() && z.DecExt(yyv671) { - } else if !yym672 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv671) - } else { - z.DecFallback(yyv671, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HTTPCheckFrequency = pkg1_v1.Duration{} - } else { - yyv673 := &x.HTTPCheckFrequency - yym674 := z.DecBinary() - _ = yym674 - if false { - } else if z.HasExtensions() && z.DecExt(yyv673) { - } else if !yym674 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv673) - } else { - z.DecFallback(yyv673, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ManifestURL = "" - } else { - x.ManifestURL = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ManifestURLHeader = "" - } else { - x.ManifestURLHeader = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableServer = false - } else { - x.EnableServer = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnlyPort = 0 - } else { - x.ReadOnlyPort = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLSCertFile = "" - } else { - x.TLSCertFile = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLSPrivateKeyFile = "" - } else { - x.TLSPrivateKeyFile = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CertDirectory = "" - } else { - x.CertDirectory = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authentication = KubeletAuthentication{} - } else { - yyv684 := &x.Authentication - yyv684.CodecDecodeSelf(d) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authorization = KubeletAuthorization{} - } else { - yyv685 := &x.Authorization - yyv685.CodecDecodeSelf(d) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodInfraContainerImage = "" - } else { - x.PodInfraContainerImage = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DockerEndpoint = "" - } else { - x.DockerEndpoint = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RootDirectory = "" - } else { - x.RootDirectory = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SeccompProfileRoot = "" - } else { - x.SeccompProfileRoot = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllowPrivileged = false - } else { - x.AllowPrivileged = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostNetworkSources = nil - } else { - yyv692 := &x.HostNetworkSources - yym693 := z.DecBinary() - _ = yym693 - if false { - } else { - z.F.DecSliceStringX(yyv692, false, d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPIDSources = nil - } else { - yyv694 := &x.HostPIDSources - yym695 := z.DecBinary() - _ = yym695 - if false { - } else { - z.F.DecSliceStringX(yyv694, false, d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIPCSources = nil - } else { - yyv696 := &x.HostIPCSources - yym697 := z.DecBinary() - _ = yym697 - if false { - } else { - z.F.DecSliceStringX(yyv696, false, d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegistryPullQPS = 0 - } else { - x.RegistryPullQPS = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegistryBurst = 0 - } else { - x.RegistryBurst = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EventRecordQPS = 0 - } else { - x.EventRecordQPS = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EventBurst = 0 - } else { - x.EventBurst = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableDebuggingHandlers = false - } else { - x.EnableDebuggingHandlers = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumGCAge = pkg1_v1.Duration{} - } else { - yyv703 := &x.MinimumGCAge - yym704 := z.DecBinary() - _ = yym704 - if false { - } else if z.HasExtensions() && z.DecExt(yyv703) { - } else if !yym704 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv703) - } else { - z.DecFallback(yyv703, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxPerPodContainerCount = 0 - } else { - x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxContainerCount = 0 - } else { - x.MaxContainerCount = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CAdvisorPort = 0 - } else { - x.CAdvisorPort = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OOMScoreAdj = 0 - } else { - x.OOMScoreAdj = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterNode = false - } else { - x.RegisterNode = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterDomain = "" - } else { - x.ClusterDomain = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MasterServiceNamespace = "" - } else { - x.MasterServiceNamespace = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterDNS = "" - } else { - x.ClusterDNS = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.StreamingConnectionIdleTimeout = pkg1_v1.Duration{} - } else { - yyv715 := &x.StreamingConnectionIdleTimeout - yym716 := z.DecBinary() - _ = yym716 - if false { - } else if z.HasExtensions() && z.DecExt(yyv715) { - } else if !yym716 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv715) - } else { - z.DecFallback(yyv715, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeStatusUpdateFrequency = pkg1_v1.Duration{} - } else { - yyv717 := &x.NodeStatusUpdateFrequency - yym718 := z.DecBinary() - _ = yym718 - if false { - } else if z.HasExtensions() && z.DecExt(yyv717) { - } else if !yym718 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv717) - } else { - z.DecFallback(yyv717, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageMinimumGCAge = pkg1_v1.Duration{} - } else { - yyv719 := &x.ImageMinimumGCAge - yym720 := z.DecBinary() - _ = yym720 - if false { - } else if z.HasExtensions() && z.DecExt(yyv719) { - } else if !yym720 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv719) - } else { - z.DecFallback(yyv719, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageGCHighThresholdPercent = 0 - } else { - x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageGCLowThresholdPercent = 0 - } else { - x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LowDiskSpaceThresholdMB = 0 - } else { - x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeStatsAggPeriod = pkg1_v1.Duration{} - } else { - yyv724 := &x.VolumeStatsAggPeriod - yym725 := z.DecBinary() - _ = yym725 - if false { - } else if z.HasExtensions() && z.DecExt(yyv724) { - } else if !yym725 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv724) - } else { - z.DecFallback(yyv724, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginName = "" - } else { - x.NetworkPluginName = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginMTU = 0 - } else { - x.NetworkPluginMTU = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginDir = "" - } else { - x.NetworkPluginDir = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CNIConfDir = "" - } else { - x.CNIConfDir = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CNIBinDir = "" - } else { - x.CNIBinDir = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumePluginDir = "" - } else { - x.VolumePluginDir = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudProvider = "" - } else { - x.CloudProvider = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudConfigFile = "" - } else { - x.CloudConfigFile = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeletCgroups = "" - } else { - x.KubeletCgroups = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalCgroupsPerQOS = false - } else { - x.ExperimentalCgroupsPerQOS = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CgroupDriver = "" - } else { - x.CgroupDriver = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RuntimeCgroups = "" - } else { - x.RuntimeCgroups = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SystemCgroups = "" - } else { - x.SystemCgroups = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CgroupRoot = "" - } else { - x.CgroupRoot = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerRuntime = "" - } else { - x.ContainerRuntime = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RemoteRuntimeEndpoint = "" - } else { - x.RemoteRuntimeEndpoint = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RemoteImageEndpoint = "" - } else { - x.RemoteImageEndpoint = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RuntimeRequestTimeout = pkg1_v1.Duration{} - } else { - yyv743 := &x.RuntimeRequestTimeout - yym744 := z.DecBinary() - _ = yym744 - if false { - } else if z.HasExtensions() && z.DecExt(yyv743) { - } else if !yym744 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv743) - } else { - z.DecFallback(yyv743, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImagePullProgressDeadline = pkg1_v1.Duration{} - } else { - yyv745 := &x.ImagePullProgressDeadline - yym746 := z.DecBinary() - _ = yym746 - if false { - } else if z.HasExtensions() && z.DecExt(yyv745) { - } else if !yym746 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv745) - } else { - z.DecFallback(yyv745, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktPath = "" - } else { - x.RktPath = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalMounterPath = "" - } else { - x.ExperimentalMounterPath = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktAPIEndpoint = "" - } else { - x.RktAPIEndpoint = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktStage1Image = "" - } else { - x.RktStage1Image = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LockFilePath = "" - } else { - x.LockFilePath = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExitOnLockContention = false - } else { - x.ExitOnLockContention = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HairpinMode = "" - } else { - x.HairpinMode = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.BabysitDaemons = false - } else { - x.BabysitDaemons = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxPods = 0 - } else { - x.MaxPods = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NvidiaGPUs = 0 - } else { - x.NvidiaGPUs = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DockerExecHandlerName = "" - } else { - x.DockerExecHandlerName = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodCIDR = "" - } else { - x.PodCIDR = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResolverConfig = "" - } else { - x.ResolverConfig = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CPUCFSQuota = false - } else { - x.CPUCFSQuota = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Containerized = false - } else { - x.Containerized = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxOpenFiles = 0 - } else { - x.MaxOpenFiles = int64(r.DecodeInt(64)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReconcileCIDR = false - } else { - x.ReconcileCIDR = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterSchedulable = false - } else { - x.RegisterSchedulable = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterWithTaints = nil - } else { - yyv765 := &x.RegisterWithTaints - yym766 := z.DecBinary() - _ = yym766 - if false { - } else { - h.decSliceapi_Taint((*[]pkg2_api.Taint)(yyv765), d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SerializeImagePulls = false - } else { - x.SerializeImagePulls = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OutOfDiskTransitionFrequency = pkg1_v1.Duration{} - } else { - yyv771 := &x.OutOfDiskTransitionFrequency - yym772 := z.DecBinary() - _ = yym772 - if false { - } else if z.HasExtensions() && z.DecExt(yyv771) { - } else if !yym772 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv771) - } else { - z.DecFallback(yyv771, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeIP = "" - } else { - x.NodeIP = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeLabels = nil - } else { - yyv774 := &x.NodeLabels - yym775 := z.DecBinary() - _ = yym775 - if false { - } else { - z.F.DecMapStringStringX(yyv774, false, d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NonMasqueradeCIDR = "" - } else { - x.NonMasqueradeCIDR = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableCustomMetrics = false - } else { - x.EnableCustomMetrics = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionHard = "" - } else { - x.EvictionHard = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionSoft = "" - } else { - x.EvictionSoft = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionSoftGracePeriod = "" - } else { - x.EvictionSoftGracePeriod = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionPressureTransitionPeriod = pkg1_v1.Duration{} - } else { - yyv781 := &x.EvictionPressureTransitionPeriod - yym782 := z.DecBinary() - _ = yym782 - if false { - } else if z.HasExtensions() && z.DecExt(yyv781) { - } else if !yym782 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv781) - } else { - z.DecFallback(yyv781, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionMaxPodGracePeriod = 0 - } else { - x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionMinimumReclaim = "" - } else { - x.EvictionMinimumReclaim = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalKernelMemcgNotification = false - } else { - x.ExperimentalKernelMemcgNotification = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodsPerCore = 0 - } else { - x.PodsPerCore = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableControllerAttachDetach = false - } else { - x.EnableControllerAttachDetach = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SystemReserved = nil - } else { - yyv788 := &x.SystemReserved - yym789 := z.DecBinary() - _ = yym789 - if false { - } else if z.HasExtensions() && z.DecExt(yyv788) { - } else { - h.decconfig_ConfigurationMap((*pkg3_config.ConfigurationMap)(yyv788), d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeReserved = nil - } else { - yyv790 := &x.KubeReserved - yym791 := z.DecBinary() - _ = yym791 - if false { - } else if z.HasExtensions() && z.DecExt(yyv790) { - } else { - h.decconfig_ConfigurationMap((*pkg3_config.ConfigurationMap)(yyv790), d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ProtectKernelDefaults = false - } else { - x.ProtectKernelDefaults = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MakeIPTablesUtilChains = false - } else { - x.MakeIPTablesUtilChains = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesMasqueradeBit = 0 - } else { - x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesDropBit = 0 - } else { - x.IPTablesDropBit = int32(r.DecodeInt(32)) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllowedUnsafeSysctls = nil - } else { - yyv796 := &x.AllowedUnsafeSysctls - yym797 := z.DecBinary() - _ = yym797 - if false { - } else { - z.F.DecSliceStringX(yyv796, false, d) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FeatureGates = "" - } else { - x.FeatureGates = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableCRI = false - } else { - x.EnableCRI = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalFailSwapOn = false - } else { - x.ExperimentalFailSwapOn = bool(r.DecodeBool()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalCheckNodeCapabilitiesBeforeMount = false - } else { - x.ExperimentalCheckNodeCapabilitiesBeforeMount = bool(r.DecodeBool()) - } - for { - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj665-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x KubeletAuthorizationMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym802 := z.EncBinary() - _ = yym802 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *KubeletAuthorizationMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym803 := z.DecBinary() - _ = yym803 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *KubeletAuthorization) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym804 := z.EncBinary() - _ = yym804 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep805 := !z.EncBinary() - yy2arr805 := z.EncBasicHandle().StructToArray - var yyq805 [2]bool - _, _, _ = yysep805, yyq805, yy2arr805 - const yyr805 bool = false - var yynn805 int - if yyr805 || yy2arr805 { - r.EncodeArrayStart(2) - } else { - yynn805 = 2 - for _, b := range yyq805 { - if b { - yynn805++ - } - } - r.EncodeMapStart(yynn805) - yynn805 = 0 - } - if yyr805 || yy2arr805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Mode.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("mode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Mode.CodecEncodeSelf(e) - } - if yyr805 || yy2arr805 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy808 := &x.Webhook - yy808.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("webhook")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy809 := &x.Webhook - yy809.CodecEncodeSelf(e) - } - if yyr805 || yy2arr805 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletAuthorization) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym810 := z.DecBinary() - _ = yym810 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct811 := r.ContainerType() - if yyct811 == codecSelferValueTypeMap1234 { - yyl811 := r.ReadMapStart() - if yyl811 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl811, d) - } - } else if yyct811 == codecSelferValueTypeArray1234 { - yyl811 := r.ReadArrayStart() - if yyl811 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl811, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletAuthorization) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys812Slc = r.DecodeBytes(yys812Slc, true, true) - yys812 := string(yys812Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys812 { - case "mode": - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = KubeletAuthorizationMode(r.DecodeString()) - } - case "webhook": - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthorization{} - } else { - yyv814 := &x.Webhook - yyv814.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys812) - } // end switch yys812 - } // end for yyj812 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletAuthorization) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj815 int - var yyb815 bool - var yyhl815 bool = l >= 0 - yyj815++ - if yyhl815 { - yyb815 = yyj815 > l - } else { - yyb815 = r.CheckBreak() - } - if yyb815 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = KubeletAuthorizationMode(r.DecodeString()) - } - yyj815++ - if yyhl815 { - yyb815 = yyj815 > l - } else { - yyb815 = r.CheckBreak() - } - if yyb815 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthorization{} - } else { - yyv817 := &x.Webhook - yyv817.CodecDecodeSelf(d) - } - for { - yyj815++ - if yyhl815 { - yyb815 = yyj815 > l - } else { - yyb815 = r.CheckBreak() - } - if yyb815 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj815-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletWebhookAuthorization) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym818 := z.EncBinary() - _ = yym818 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep819 := !z.EncBinary() - yy2arr819 := z.EncBasicHandle().StructToArray - var yyq819 [2]bool - _, _, _ = yysep819, yyq819, yy2arr819 - const yyr819 bool = false - var yynn819 int - if yyr819 || yy2arr819 { - r.EncodeArrayStart(2) - } else { - yynn819 = 2 - for _, b := range yyq819 { - if b { - yynn819++ - } - } - r.EncodeMapStart(yynn819) - yynn819 = 0 - } - if yyr819 || yy2arr819 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy821 := &x.CacheAuthorizedTTL - yym822 := z.EncBinary() - _ = yym822 - if false { - } else if z.HasExtensions() && z.EncExt(yy821) { - } else if !yym822 && z.IsJSONHandle() { - z.EncJSONMarshal(yy821) - } else { - z.EncFallback(yy821) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheAuthorizedTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy823 := &x.CacheAuthorizedTTL - yym824 := z.EncBinary() - _ = yym824 - if false { - } else if z.HasExtensions() && z.EncExt(yy823) { - } else if !yym824 && z.IsJSONHandle() { - z.EncJSONMarshal(yy823) - } else { - z.EncFallback(yy823) - } - } - if yyr819 || yy2arr819 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy826 := &x.CacheUnauthorizedTTL - yym827 := z.EncBinary() - _ = yym827 - if false { - } else if z.HasExtensions() && z.EncExt(yy826) { - } else if !yym827 && z.IsJSONHandle() { - z.EncJSONMarshal(yy826) - } else { - z.EncFallback(yy826) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheUnauthorizedTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy828 := &x.CacheUnauthorizedTTL - yym829 := z.EncBinary() - _ = yym829 - if false { - } else if z.HasExtensions() && z.EncExt(yy828) { - } else if !yym829 && z.IsJSONHandle() { - z.EncJSONMarshal(yy828) - } else { - z.EncFallback(yy828) - } - } - if yyr819 || yy2arr819 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletWebhookAuthorization) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym830 := z.DecBinary() - _ = yym830 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct831 := r.ContainerType() - if yyct831 == codecSelferValueTypeMap1234 { - yyl831 := r.ReadMapStart() - if yyl831 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl831, d) - } - } else if yyct831 == codecSelferValueTypeArray1234 { - yyl831 := r.ReadArrayStart() - if yyl831 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl831, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletWebhookAuthorization) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys832Slc = r.DecodeBytes(yys832Slc, true, true) - yys832 := string(yys832Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys832 { - case "cacheAuthorizedTTL": - if r.TryDecodeAsNil() { - x.CacheAuthorizedTTL = pkg1_v1.Duration{} - } else { - yyv833 := &x.CacheAuthorizedTTL - yym834 := z.DecBinary() - _ = yym834 - if false { - } else if z.HasExtensions() && z.DecExt(yyv833) { - } else if !yym834 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv833) - } else { - z.DecFallback(yyv833, false) - } - } - case "cacheUnauthorizedTTL": - if r.TryDecodeAsNil() { - x.CacheUnauthorizedTTL = pkg1_v1.Duration{} - } else { - yyv835 := &x.CacheUnauthorizedTTL - yym836 := z.DecBinary() - _ = yym836 - if false { - } else if z.HasExtensions() && z.DecExt(yyv835) { - } else if !yym836 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv835) - } else { - z.DecFallback(yyv835, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys832) - } // end switch yys832 - } // end for yyj832 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletWebhookAuthorization) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj837 int - var yyb837 bool - var yyhl837 bool = l >= 0 - yyj837++ - if yyhl837 { - yyb837 = yyj837 > l - } else { - yyb837 = r.CheckBreak() - } - if yyb837 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheAuthorizedTTL = pkg1_v1.Duration{} - } else { - yyv838 := &x.CacheAuthorizedTTL - yym839 := z.DecBinary() - _ = yym839 - if false { - } else if z.HasExtensions() && z.DecExt(yyv838) { - } else if !yym839 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv838) - } else { - z.DecFallback(yyv838, false) - } - } - yyj837++ - if yyhl837 { - yyb837 = yyj837 > l - } else { - yyb837 = r.CheckBreak() - } - if yyb837 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheUnauthorizedTTL = pkg1_v1.Duration{} - } else { - yyv840 := &x.CacheUnauthorizedTTL - yym841 := z.DecBinary() - _ = yym841 - if false { - } else if z.HasExtensions() && z.DecExt(yyv840) { - } else if !yym841 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv840) - } else { - z.DecFallback(yyv840, false) - } - } - for { - yyj837++ - if yyhl837 { - yyb837 = yyj837 > l - } else { - yyb837 = r.CheckBreak() - } - if yyb837 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj837-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletAuthentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym842 := z.EncBinary() - _ = yym842 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep843 := !z.EncBinary() - yy2arr843 := z.EncBasicHandle().StructToArray - var yyq843 [3]bool - _, _, _ = yysep843, yyq843, yy2arr843 - const yyr843 bool = false - var yynn843 int - if yyr843 || yy2arr843 { - r.EncodeArrayStart(3) - } else { - yynn843 = 3 - for _, b := range yyq843 { - if b { - yynn843++ - } - } - r.EncodeMapStart(yynn843) - yynn843 = 0 - } - if yyr843 || yy2arr843 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy845 := &x.X509 - yy845.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("x509")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy846 := &x.X509 - yy846.CodecEncodeSelf(e) - } - if yyr843 || yy2arr843 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy848 := &x.Webhook - yy848.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("webhook")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy849 := &x.Webhook - yy849.CodecEncodeSelf(e) - } - if yyr843 || yy2arr843 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy851 := &x.Anonymous - yy851.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("anonymous")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy852 := &x.Anonymous - yy852.CodecEncodeSelf(e) - } - if yyr843 || yy2arr843 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletAuthentication) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym853 := z.DecBinary() - _ = yym853 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct854 := r.ContainerType() - if yyct854 == codecSelferValueTypeMap1234 { - yyl854 := r.ReadMapStart() - if yyl854 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl854, d) - } - } else if yyct854 == codecSelferValueTypeArray1234 { - yyl854 := r.ReadArrayStart() - if yyl854 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl854, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletAuthentication) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys855Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys855Slc - var yyhl855 bool = l >= 0 - for yyj855 := 0; ; yyj855++ { - if yyhl855 { - if yyj855 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys855Slc = r.DecodeBytes(yys855Slc, true, true) - yys855 := string(yys855Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys855 { - case "x509": - if r.TryDecodeAsNil() { - x.X509 = KubeletX509Authentication{} - } else { - yyv856 := &x.X509 - yyv856.CodecDecodeSelf(d) - } - case "webhook": - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthentication{} - } else { - yyv857 := &x.Webhook - yyv857.CodecDecodeSelf(d) - } - case "anonymous": - if r.TryDecodeAsNil() { - x.Anonymous = KubeletAnonymousAuthentication{} - } else { - yyv858 := &x.Anonymous - yyv858.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys855) - } // end switch yys855 - } // end for yyj855 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletAuthentication) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - 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 - } else { - yyb859 = r.CheckBreak() - } - if yyb859 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.X509 = KubeletX509Authentication{} - } else { - yyv860 := &x.X509 - yyv860.CodecDecodeSelf(d) - } - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l - } else { - yyb859 = r.CheckBreak() - } - if yyb859 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthentication{} - } else { - yyv861 := &x.Webhook - yyv861.CodecDecodeSelf(d) - } - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l - } else { - yyb859 = r.CheckBreak() - } - if yyb859 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Anonymous = KubeletAnonymousAuthentication{} - } else { - yyv862 := &x.Anonymous - yyv862.CodecDecodeSelf(d) - } - for { - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l - } else { - yyb859 = r.CheckBreak() - } - if yyb859 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj859-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletX509Authentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym863 := z.EncBinary() - _ = yym863 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep864 := !z.EncBinary() - yy2arr864 := z.EncBasicHandle().StructToArray - var yyq864 [1]bool - _, _, _ = yysep864, yyq864, yy2arr864 - const yyr864 bool = false - var yynn864 int - if yyr864 || yy2arr864 { - r.EncodeArrayStart(1) - } else { - yynn864 = 1 - for _, b := range yyq864 { - if b { - yynn864++ - } - } - r.EncodeMapStart(yynn864) - yynn864 = 0 - } - if yyr864 || yy2arr864 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym866 := z.EncBinary() - _ = yym866 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClientCAFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clientCAFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym867 := z.EncBinary() - _ = yym867 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClientCAFile)) - } - } - if yyr864 || yy2arr864 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletX509Authentication) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym868 := z.DecBinary() - _ = yym868 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct869 := r.ContainerType() - if yyct869 == codecSelferValueTypeMap1234 { - yyl869 := r.ReadMapStart() - if yyl869 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl869, d) - } - } else if yyct869 == codecSelferValueTypeArray1234 { - yyl869 := r.ReadArrayStart() - if yyl869 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl869, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletX509Authentication) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys870Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys870Slc - var yyhl870 bool = l >= 0 - for yyj870 := 0; ; yyj870++ { - if yyhl870 { - if yyj870 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys870Slc = r.DecodeBytes(yys870Slc, true, true) - yys870 := string(yys870Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys870 { - case "clientCAFile": - if r.TryDecodeAsNil() { - x.ClientCAFile = "" - } else { - x.ClientCAFile = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys870) - } // end switch yys870 - } // end for yyj870 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletX509Authentication) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj872 int - var yyb872 bool - var yyhl872 bool = l >= 0 - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClientCAFile = "" - } else { - x.ClientCAFile = string(r.DecodeString()) - } - for { - yyj872++ - if yyhl872 { - yyb872 = yyj872 > l - } else { - yyb872 = r.CheckBreak() - } - if yyb872 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj872-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletWebhookAuthentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym874 := z.EncBinary() - _ = yym874 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep875 := !z.EncBinary() - yy2arr875 := z.EncBasicHandle().StructToArray - var yyq875 [2]bool - _, _, _ = yysep875, yyq875, yy2arr875 - const yyr875 bool = false - var yynn875 int - if yyr875 || yy2arr875 { - r.EncodeArrayStart(2) - } else { - yynn875 = 2 - for _, b := range yyq875 { - if b { - yynn875++ - } - } - r.EncodeMapStart(yynn875) - yynn875 = 0 - } - if yyr875 || yy2arr875 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym877 := z.EncBinary() - _ = yym877 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enabled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym878 := z.EncBinary() - _ = yym878 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } - if yyr875 || yy2arr875 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy880 := &x.CacheTTL - yym881 := z.EncBinary() - _ = yym881 - if false { - } else if z.HasExtensions() && z.EncExt(yy880) { - } else if !yym881 && z.IsJSONHandle() { - z.EncJSONMarshal(yy880) - } else { - z.EncFallback(yy880) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy882 := &x.CacheTTL - yym883 := z.EncBinary() - _ = yym883 - if false { - } else if z.HasExtensions() && z.EncExt(yy882) { - } else if !yym883 && z.IsJSONHandle() { - z.EncJSONMarshal(yy882) - } else { - z.EncFallback(yy882) - } - } - if yyr875 || yy2arr875 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletWebhookAuthentication) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym884 := z.DecBinary() - _ = yym884 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct885 := r.ContainerType() - if yyct885 == codecSelferValueTypeMap1234 { - yyl885 := r.ReadMapStart() - if yyl885 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl885, d) - } - } else if yyct885 == codecSelferValueTypeArray1234 { - yyl885 := r.ReadArrayStart() - if yyl885 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl885, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletWebhookAuthentication) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys886Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys886Slc - var yyhl886 bool = l >= 0 - for yyj886 := 0; ; yyj886++ { - if yyhl886 { - if yyj886 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys886Slc = r.DecodeBytes(yys886Slc, true, true) - yys886 := string(yys886Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys886 { - case "enabled": - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - case "cacheTTL": - if r.TryDecodeAsNil() { - x.CacheTTL = pkg1_v1.Duration{} - } else { - yyv888 := &x.CacheTTL - yym889 := z.DecBinary() - _ = yym889 - if false { - } else if z.HasExtensions() && z.DecExt(yyv888) { - } else if !yym889 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv888) - } else { - z.DecFallback(yyv888, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys886) - } // end switch yys886 - } // end for yyj886 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletWebhookAuthentication) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj890 int - var yyb890 bool - var yyhl890 bool = l >= 0 - yyj890++ - if yyhl890 { - yyb890 = yyj890 > l - } else { - yyb890 = r.CheckBreak() - } - if yyb890 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - yyj890++ - if yyhl890 { - yyb890 = yyj890 > l - } else { - yyb890 = r.CheckBreak() - } - if yyb890 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheTTL = pkg1_v1.Duration{} - } else { - yyv892 := &x.CacheTTL - yym893 := z.DecBinary() - _ = yym893 - if false { - } else if z.HasExtensions() && z.DecExt(yyv892) { - } else if !yym893 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv892) - } else { - z.DecFallback(yyv892, false) - } - } - for { - yyj890++ - if yyhl890 { - yyb890 = yyj890 > l - } else { - yyb890 = r.CheckBreak() - } - if yyb890 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj890-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletAnonymousAuthentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym894 := z.EncBinary() - _ = yym894 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep895 := !z.EncBinary() - yy2arr895 := z.EncBasicHandle().StructToArray - var yyq895 [1]bool - _, _, _ = yysep895, yyq895, yy2arr895 - const yyr895 bool = false - var yynn895 int - if yyr895 || yy2arr895 { - r.EncodeArrayStart(1) - } else { - yynn895 = 1 - for _, b := range yyq895 { - if b { - yynn895++ - } - } - r.EncodeMapStart(yynn895) - yynn895 = 0 - } - if yyr895 || yy2arr895 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym897 := z.EncBinary() - _ = yym897 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enabled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym898 := z.EncBinary() - _ = yym898 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } - if yyr895 || yy2arr895 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeletAnonymousAuthentication) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym899 := z.DecBinary() - _ = yym899 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct900 := r.ContainerType() - if yyct900 == codecSelferValueTypeMap1234 { - yyl900 := r.ReadMapStart() - if yyl900 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl900, d) - } - } else if yyct900 == codecSelferValueTypeArray1234 { - yyl900 := r.ReadArrayStart() - if yyl900 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl900, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeletAnonymousAuthentication) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys901Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys901Slc - var yyhl901 bool = l >= 0 - for yyj901 := 0; ; yyj901++ { - if yyhl901 { - if yyj901 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys901Slc = r.DecodeBytes(yys901Slc, true, true) - yys901 := string(yys901Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys901 { - case "enabled": - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys901) - } // end switch yys901 - } // end for yyj901 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeletAnonymousAuthentication) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj903 int - var yyb903 bool - var yyhl903 bool = l >= 0 - yyj903++ - if yyhl903 { - yyb903 = yyj903 > l - } else { - yyb903 = r.CheckBreak() - } - if yyb903 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - for { - yyj903++ - if yyhl903 { - yyb903 = yyj903 > l - } else { - yyb903 = r.CheckBreak() - } - if yyb903 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj903-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym905 := z.EncBinary() - _ = yym905 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep906 := !z.EncBinary() - yy2arr906 := z.EncBasicHandle().StructToArray - var yyq906 [15]bool - _, _, _ = yysep906, yyq906, yy2arr906 - const yyr906 bool = false - yyq906[0] = x.Kind != "" - yyq906[1] = x.APIVersion != "" - var yynn906 int - if yyr906 || yy2arr906 { - r.EncodeArrayStart(15) - } else { - yynn906 = 13 - for _, b := range yyq906 { - if b { - yynn906++ - } - } - r.EncodeMapStart(yynn906) - yynn906 = 0 - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq906[0] { - yym908 := z.EncBinary() - _ = yym908 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq906[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym909 := z.EncBinary() - _ = yym909 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq906[1] { - yym911 := z.EncBinary() - _ = yym911 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq906[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym912 := z.EncBinary() - _ = yym912 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym914 := z.EncBinary() - _ = yym914 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym915 := z.EncBinary() - _ = yym915 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym917 := z.EncBinary() - _ = yym917 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("address")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym918 := z.EncBinary() - _ = yym918 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym920 := z.EncBinary() - _ = yym920 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("algorithmProvider")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym921 := z.EncBinary() - _ = yym921 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym923 := z.EncBinary() - _ = yym923 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("policyConfigFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym924 := z.EncBinary() - _ = yym924 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym926 := z.EncBinary() - _ = yym926 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym927 := z.EncBinary() - _ = yym927 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym929 := z.EncBinary() - _ = yym929 - if false { - } else { - r.EncodeBool(bool(x.EnableContentionProfiling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableContentionProfiling")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym930 := z.EncBinary() - _ = yym930 - if false { - } else { - r.EncodeBool(bool(x.EnableContentionProfiling)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym932 := z.EncBinary() - _ = yym932 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("contentType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym933 := z.EncBinary() - _ = yym933 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym935 := z.EncBinary() - _ = yym935 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym936 := z.EncBinary() - _ = yym936 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym938 := z.EncBinary() - _ = yym938 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym939 := z.EncBinary() - _ = yym939 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym941 := z.EncBinary() - _ = yym941 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("schedulerName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym942 := z.EncBinary() - _ = yym942 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym944 := z.EncBinary() - _ = yym944 - if false { - } else { - r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym945 := z.EncBinary() - _ = yym945 - if false { - } else { - r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym947 := z.EncBinary() - _ = yym947 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failureDomains")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym948 := z.EncBinary() - _ = yym948 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) - } - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy950 := &x.LeaderElection - yy950.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy951 := &x.LeaderElection - yy951.CodecEncodeSelf(e) - } - if yyr906 || yy2arr906 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeSchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym952 := z.DecBinary() - _ = yym952 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct953 := r.ContainerType() - if yyct953 == codecSelferValueTypeMap1234 { - yyl953 := r.ReadMapStart() - if yyl953 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl953, d) - } - } else if yyct953 == codecSelferValueTypeArray1234 { - yyl953 := r.ReadArrayStart() - if yyl953 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl953, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys954Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys954Slc - var yyhl954 bool = l >= 0 - for yyj954 := 0; ; yyj954++ { - if yyhl954 { - if yyj954 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys954Slc = r.DecodeBytes(yys954Slc, true, true) - yys954 := string(yys954Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys954 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - case "address": - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - case "algorithmProvider": - if r.TryDecodeAsNil() { - x.AlgorithmProvider = "" - } else { - x.AlgorithmProvider = string(r.DecodeString()) - } - case "policyConfigFile": - if r.TryDecodeAsNil() { - x.PolicyConfigFile = "" - } else { - x.PolicyConfigFile = string(r.DecodeString()) - } - case "enableProfiling": - if r.TryDecodeAsNil() { - x.EnableProfiling = false - } else { - x.EnableProfiling = bool(r.DecodeBool()) - } - case "enableContentionProfiling": - if r.TryDecodeAsNil() { - x.EnableContentionProfiling = false - } else { - x.EnableContentionProfiling = bool(r.DecodeBool()) - } - case "contentType": - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - case "kubeAPIQPS": - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - case "kubeAPIBurst": - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - case "schedulerName": - if r.TryDecodeAsNil() { - x.SchedulerName = "" - } else { - x.SchedulerName = string(r.DecodeString()) - } - case "hardPodAffinitySymmetricWeight": - if r.TryDecodeAsNil() { - x.HardPodAffinitySymmetricWeight = 0 - } else { - x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) - } - case "failureDomains": - if r.TryDecodeAsNil() { - x.FailureDomains = "" - } else { - x.FailureDomains = string(r.DecodeString()) - } - case "leaderElection": - if r.TryDecodeAsNil() { - x.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv969 := &x.LeaderElection - yyv969.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys954) - } // end switch yys954 - } // end for yyj954 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj970 int - var yyb970 bool - var yyhl970 bool = l >= 0 - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AlgorithmProvider = "" - } else { - x.AlgorithmProvider = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PolicyConfigFile = "" - } else { - x.PolicyConfigFile = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableProfiling = false - } else { - x.EnableProfiling = bool(r.DecodeBool()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableContentionProfiling = false - } else { - x.EnableContentionProfiling = bool(r.DecodeBool()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SchedulerName = "" - } else { - x.SchedulerName = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HardPodAffinitySymmetricWeight = 0 - } else { - x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FailureDomains = "" - } else { - x.FailureDomains = string(r.DecodeString()) - } - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv985 := &x.LeaderElection - yyv985.CodecDecodeSelf(d) - } - for { - yyj970++ - if yyhl970 { - yyb970 = yyj970 > l - } else { - yyb970 = r.CheckBreak() - } - if yyb970 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj970-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym986 := z.EncBinary() - _ = yym986 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep987 := !z.EncBinary() - yy2arr987 := z.EncBasicHandle().StructToArray - var yyq987 [4]bool - _, _, _ = yysep987, yyq987, yy2arr987 - const yyr987 bool = false - var yynn987 int - if yyr987 || yy2arr987 { - r.EncodeArrayStart(4) - } else { - yynn987 = 4 - for _, b := range yyq987 { - if b { - yynn987++ - } - } - r.EncodeMapStart(yynn987) - yynn987 = 0 - } - if yyr987 || yy2arr987 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym989 := z.EncBinary() - _ = yym989 - if false { - } else { - r.EncodeBool(bool(x.LeaderElect)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElect")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym990 := z.EncBinary() - _ = yym990 - if false { - } else { - r.EncodeBool(bool(x.LeaderElect)) - } - } - if yyr987 || yy2arr987 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy992 := &x.LeaseDuration - yym993 := z.EncBinary() - _ = yym993 - if false { - } else if z.HasExtensions() && z.EncExt(yy992) { - } else if !yym993 && z.IsJSONHandle() { - z.EncJSONMarshal(yy992) - } else { - z.EncFallback(yy992) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaseDuration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy994 := &x.LeaseDuration - yym995 := z.EncBinary() - _ = yym995 - if false { - } else if z.HasExtensions() && z.EncExt(yy994) { - } else if !yym995 && z.IsJSONHandle() { - z.EncJSONMarshal(yy994) - } else { - z.EncFallback(yy994) - } - } - if yyr987 || yy2arr987 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy997 := &x.RenewDeadline - yym998 := z.EncBinary() - _ = yym998 - if false { - } else if z.HasExtensions() && z.EncExt(yy997) { - } else if !yym998 && z.IsJSONHandle() { - z.EncJSONMarshal(yy997) - } else { - z.EncFallback(yy997) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("renewDeadline")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy999 := &x.RenewDeadline - yym1000 := z.EncBinary() - _ = yym1000 - if false { - } else if z.HasExtensions() && z.EncExt(yy999) { - } else if !yym1000 && z.IsJSONHandle() { - z.EncJSONMarshal(yy999) - } else { - z.EncFallback(yy999) - } - } - if yyr987 || yy2arr987 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1002 := &x.RetryPeriod - yym1003 := z.EncBinary() - _ = yym1003 - if false { - } else if z.HasExtensions() && z.EncExt(yy1002) { - } else if !yym1003 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1002) - } else { - z.EncFallback(yy1002) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("retryPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1004 := &x.RetryPeriod - yym1005 := z.EncBinary() - _ = yym1005 - if false { - } else if z.HasExtensions() && z.EncExt(yy1004) { - } else if !yym1005 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1004) - } else { - z.EncFallback(yy1004) - } - } - if yyr987 || yy2arr987 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LeaderElectionConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1006 := z.DecBinary() - _ = yym1006 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1007 := r.ContainerType() - if yyct1007 == codecSelferValueTypeMap1234 { - yyl1007 := r.ReadMapStart() - if yyl1007 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1007, d) - } - } else if yyct1007 == codecSelferValueTypeArray1234 { - yyl1007 := r.ReadArrayStart() - if yyl1007 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1007, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1008Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1008Slc - var yyhl1008 bool = l >= 0 - for yyj1008 := 0; ; yyj1008++ { - if yyhl1008 { - if yyj1008 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1008Slc = r.DecodeBytes(yys1008Slc, true, true) - yys1008 := string(yys1008Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1008 { - case "leaderElect": - if r.TryDecodeAsNil() { - x.LeaderElect = false - } else { - x.LeaderElect = bool(r.DecodeBool()) - } - case "leaseDuration": - if r.TryDecodeAsNil() { - x.LeaseDuration = pkg1_v1.Duration{} - } else { - yyv1010 := &x.LeaseDuration - yym1011 := z.DecBinary() - _ = yym1011 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1010) { - } else if !yym1011 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1010) - } else { - z.DecFallback(yyv1010, false) - } - } - case "renewDeadline": - if r.TryDecodeAsNil() { - x.RenewDeadline = pkg1_v1.Duration{} - } else { - yyv1012 := &x.RenewDeadline - yym1013 := z.DecBinary() - _ = yym1013 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1012) { - } else if !yym1013 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1012) - } else { - z.DecFallback(yyv1012, false) - } - } - case "retryPeriod": - if r.TryDecodeAsNil() { - x.RetryPeriod = pkg1_v1.Duration{} - } else { - yyv1014 := &x.RetryPeriod - yym1015 := z.DecBinary() - _ = yym1015 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1014) { - } else if !yym1015 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1014) - } else { - z.DecFallback(yyv1014, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys1008) - } // end switch yys1008 - } // end for yyj1008 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LeaderElectionConfiguration) 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.LeaderElect = false - } else { - x.LeaderElect = bool(r.DecodeBool()) - } - 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.LeaseDuration = pkg1_v1.Duration{} - } else { - yyv1018 := &x.LeaseDuration - yym1019 := z.DecBinary() - _ = yym1019 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1018) { - } else if !yym1019 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1018) - } else { - z.DecFallback(yyv1018, 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.RenewDeadline = pkg1_v1.Duration{} - } else { - yyv1020 := &x.RenewDeadline - yym1021 := z.DecBinary() - _ = yym1021 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1020) { - } else if !yym1021 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1020) - } else { - z.DecFallback(yyv1020, 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.RetryPeriod = pkg1_v1.Duration{} - } else { - yyv1022 := &x.RetryPeriod - yym1023 := z.DecBinary() - _ = yym1023 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1022) { - } else if !yym1023 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1022) - } else { - z.DecFallback(yyv1022, false) - } - } - 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) -} - -func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1024 := z.EncBinary() - _ = yym1024 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep1025 := !z.EncBinary() - yy2arr1025 := z.EncBasicHandle().StructToArray - var yyq1025 [61]bool - _, _, _ = yysep1025, yyq1025, yy2arr1025 - const yyr1025 bool = false - yyq1025[0] = x.Kind != "" - yyq1025[1] = x.APIVersion != "" - var yynn1025 int - if yyr1025 || yy2arr1025 { - r.EncodeArrayStart(61) - } else { - yynn1025 = 59 - for _, b := range yyq1025 { - if b { - yynn1025++ - } - } - r.EncodeMapStart(yynn1025) - yynn1025 = 0 - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1025[0] { - yym1027 := z.EncBinary() - _ = yym1027 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1025[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1028 := z.EncBinary() - _ = yym1028 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1025[1] { - yym1030 := z.EncBinary() - _ = yym1030 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1025[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1031 := z.EncBinary() - _ = yym1031 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1033 := z.EncBinary() - _ = yym1033 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1034 := z.EncBinary() - _ = yym1034 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1036 := z.EncBinary() - _ = yym1036 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("address")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1037 := z.EncBinary() - _ = yym1037 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1039 := z.EncBinary() - _ = yym1039 - if false { - } else { - r.EncodeBool(bool(x.UseServiceAccountCredentials)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("useServiceAccountCredentials")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1040 := z.EncBinary() - _ = yym1040 - if false { - } else { - r.EncodeBool(bool(x.UseServiceAccountCredentials)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1042 := z.EncBinary() - _ = yym1042 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1043 := z.EncBinary() - _ = yym1043 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1045 := z.EncBinary() - _ = yym1045 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1046 := z.EncBinary() - _ = yym1046 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1048 := z.EncBinary() - _ = yym1048 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1049 := z.EncBinary() - _ = yym1049 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1051 := z.EncBinary() - _ = yym1051 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRSSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1052 := z.EncBinary() - _ = yym1052 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRSSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1054 := z.EncBinary() - _ = yym1054 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRCSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1055 := z.EncBinary() - _ = yym1055 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRCSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1057 := z.EncBinary() - _ = yym1057 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentServiceSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentServiceSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1058 := z.EncBinary() - _ = yym1058 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentServiceSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1060 := z.EncBinary() - _ = yym1060 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1061 := z.EncBinary() - _ = yym1061 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1063 := z.EncBinary() - _ = yym1063 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1064 := z.EncBinary() - _ = yym1064 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1066 := z.EncBinary() - _ = yym1066 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1067 := z.EncBinary() - _ = yym1067 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1069 := z.EncBinary() - _ = yym1069 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentJobSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1070 := z.EncBinary() - _ = yym1070 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentJobSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1072 := z.EncBinary() - _ = yym1072 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1073 := z.EncBinary() - _ = yym1073 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1075 := z.EncBinary() - _ = yym1075 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1076 := z.EncBinary() - _ = yym1076 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1078 := z.EncBinary() - _ = yym1078 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRC)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1079 := z.EncBinary() - _ = yym1079 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRC)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1081 := z.EncBinary() - _ = yym1081 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1082 := z.EncBinary() - _ = yym1082 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRS)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1084 := z.EncBinary() - _ = yym1084 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1085 := z.EncBinary() - _ = yym1085 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1087 := &x.ServiceSyncPeriod - yym1088 := z.EncBinary() - _ = yym1088 - if false { - } else if z.HasExtensions() && z.EncExt(yy1087) { - } else if !yym1088 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1087) - } else { - z.EncFallback(yy1087) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1089 := &x.ServiceSyncPeriod - yym1090 := z.EncBinary() - _ = yym1090 - if false { - } else if z.HasExtensions() && z.EncExt(yy1089) { - } else if !yym1090 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1089) - } else { - z.EncFallback(yy1089) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1092 := &x.NodeSyncPeriod - yym1093 := z.EncBinary() - _ = yym1093 - if false { - } else if z.HasExtensions() && z.EncExt(yy1092) { - } else if !yym1093 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1092) - } else { - z.EncFallback(yy1092) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1094 := &x.NodeSyncPeriod - yym1095 := z.EncBinary() - _ = yym1095 - if false { - } else if z.HasExtensions() && z.EncExt(yy1094) { - } else if !yym1095 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1094) - } else { - z.EncFallback(yy1094) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1097 := &x.RouteReconciliationPeriod - yym1098 := z.EncBinary() - _ = yym1098 - if false { - } else if z.HasExtensions() && z.EncExt(yy1097) { - } else if !yym1098 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1097) - } else { - z.EncFallback(yy1097) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("routeReconciliationPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1099 := &x.RouteReconciliationPeriod - yym1100 := z.EncBinary() - _ = yym1100 - if false { - } else if z.HasExtensions() && z.EncExt(yy1099) { - } else if !yym1100 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1099) - } else { - z.EncFallback(yy1099) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1102 := &x.ResourceQuotaSyncPeriod - yym1103 := z.EncBinary() - _ = yym1103 - if false { - } else if z.HasExtensions() && z.EncExt(yy1102) { - } else if !yym1103 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1102) - } else { - z.EncFallback(yy1102) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1104 := &x.ResourceQuotaSyncPeriod - yym1105 := z.EncBinary() - _ = yym1105 - if false { - } else if z.HasExtensions() && z.EncExt(yy1104) { - } else if !yym1105 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1104) - } else { - z.EncFallback(yy1104) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1107 := &x.NamespaceSyncPeriod - yym1108 := z.EncBinary() - _ = yym1108 - if false { - } else if z.HasExtensions() && z.EncExt(yy1107) { - } else if !yym1108 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1107) - } else { - z.EncFallback(yy1107) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1109 := &x.NamespaceSyncPeriod - yym1110 := z.EncBinary() - _ = yym1110 - if false { - } else if z.HasExtensions() && z.EncExt(yy1109) { - } else if !yym1110 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1109) - } else { - z.EncFallback(yy1109) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1112 := &x.PVClaimBinderSyncPeriod - yym1113 := z.EncBinary() - _ = yym1113 - if false { - } else if z.HasExtensions() && z.EncExt(yy1112) { - } else if !yym1113 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1112) - } else { - z.EncFallback(yy1112) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1114 := &x.PVClaimBinderSyncPeriod - yym1115 := z.EncBinary() - _ = yym1115 - if false { - } else if z.HasExtensions() && z.EncExt(yy1114) { - } else if !yym1115 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1114) - } else { - z.EncFallback(yy1114) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1117 := &x.MinResyncPeriod - yym1118 := z.EncBinary() - _ = yym1118 - if false { - } else if z.HasExtensions() && z.EncExt(yy1117) { - } else if !yym1118 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1117) - } else { - z.EncFallback(yy1117) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1119 := &x.MinResyncPeriod - yym1120 := z.EncBinary() - _ = yym1120 - if false { - } else if z.HasExtensions() && z.EncExt(yy1119) { - } else if !yym1120 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1119) - } else { - z.EncFallback(yy1119) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1122 := z.EncBinary() - _ = yym1122 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1123 := z.EncBinary() - _ = yym1123 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1125 := &x.HorizontalPodAutoscalerSyncPeriod - yym1126 := z.EncBinary() - _ = yym1126 - if false { - } else if z.HasExtensions() && z.EncExt(yy1125) { - } else if !yym1126 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1125) - } else { - z.EncFallback(yy1125) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1127 := &x.HorizontalPodAutoscalerSyncPeriod - yym1128 := z.EncBinary() - _ = yym1128 - if false { - } else if z.HasExtensions() && z.EncExt(yy1127) { - } else if !yym1128 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1127) - } else { - z.EncFallback(yy1127) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1130 := &x.DeploymentControllerSyncPeriod - yym1131 := z.EncBinary() - _ = yym1131 - if false { - } else if z.HasExtensions() && z.EncExt(yy1130) { - } else if !yym1131 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1130) - } else { - z.EncFallback(yy1130) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1132 := &x.DeploymentControllerSyncPeriod - yym1133 := z.EncBinary() - _ = yym1133 - if false { - } else if z.HasExtensions() && z.EncExt(yy1132) { - } else if !yym1133 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1132) - } else { - z.EncFallback(yy1132) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1135 := &x.PodEvictionTimeout - yym1136 := z.EncBinary() - _ = yym1136 - if false { - } else if z.HasExtensions() && z.EncExt(yy1135) { - } else if !yym1136 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1135) - } else { - z.EncFallback(yy1135) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1137 := &x.PodEvictionTimeout - yym1138 := z.EncBinary() - _ = yym1138 - if false { - } else if z.HasExtensions() && z.EncExt(yy1137) { - } else if !yym1138 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1137) - } else { - z.EncFallback(yy1137) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1140 := z.EncBinary() - _ = yym1140 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1141 := z.EncBinary() - _ = yym1141 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1143 := z.EncBinary() - _ = yym1143 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1144 := z.EncBinary() - _ = yym1144 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1146 := &x.NodeMonitorGracePeriod - yym1147 := z.EncBinary() - _ = yym1147 - if false { - } else if z.HasExtensions() && z.EncExt(yy1146) { - } else if !yym1147 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1146) - } else { - z.EncFallback(yy1146) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1148 := &x.NodeMonitorGracePeriod - yym1149 := z.EncBinary() - _ = yym1149 - if false { - } else if z.HasExtensions() && z.EncExt(yy1148) { - } else if !yym1149 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1148) - } else { - z.EncFallback(yy1148) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1151 := z.EncBinary() - _ = yym1151 - if false { - } else { - r.EncodeInt(int64(x.RegisterRetryCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1152 := z.EncBinary() - _ = yym1152 - if false { - } else { - r.EncodeInt(int64(x.RegisterRetryCount)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1154 := &x.NodeStartupGracePeriod - yym1155 := z.EncBinary() - _ = yym1155 - if false { - } else if z.HasExtensions() && z.EncExt(yy1154) { - } else if !yym1155 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1154) - } else { - z.EncFallback(yy1154) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1156 := &x.NodeStartupGracePeriod - yym1157 := z.EncBinary() - _ = yym1157 - if false { - } else if z.HasExtensions() && z.EncExt(yy1156) { - } else if !yym1157 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1156) - } else { - z.EncFallback(yy1156) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1159 := &x.NodeMonitorPeriod - yym1160 := z.EncBinary() - _ = yym1160 - if false { - } else if z.HasExtensions() && z.EncExt(yy1159) { - } else if !yym1160 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1159) - } else { - z.EncFallback(yy1159) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1161 := &x.NodeMonitorPeriod - yym1162 := z.EncBinary() - _ = yym1162 - if false { - } else if z.HasExtensions() && z.EncExt(yy1161) { - } else if !yym1162 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1161) - } else { - z.EncFallback(yy1161) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1164 := z.EncBinary() - _ = yym1164 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceAccountKeyFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1165 := z.EncBinary() - _ = yym1165 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1167 := z.EncBinary() - _ = yym1167 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterSigningCertFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1168 := z.EncBinary() - _ = yym1168 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1170 := z.EncBinary() - _ = yym1170 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterSigningKeyFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1171 := z.EncBinary() - _ = yym1171 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1173 := z.EncBinary() - _ = yym1173 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("approveAllKubeletCSRsForGroup")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1174 := z.EncBinary() - _ = yym1174 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1176 := z.EncBinary() - _ = yym1176 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1177 := z.EncBinary() - _ = yym1177 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1179 := z.EncBinary() - _ = yym1179 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1180 := z.EncBinary() - _ = yym1180 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1182 := z.EncBinary() - _ = yym1182 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1183 := z.EncBinary() - _ = yym1183 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1185 := z.EncBinary() - _ = yym1185 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1186 := z.EncBinary() - _ = yym1186 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1188 := z.EncBinary() - _ = yym1188 - if false { - } else { - r.EncodeInt(int64(x.NodeCIDRMaskSize)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1189 := z.EncBinary() - _ = yym1189 - if false { - } else { - r.EncodeInt(int64(x.NodeCIDRMaskSize)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1191 := z.EncBinary() - _ = yym1191 - if false { - } else { - r.EncodeBool(bool(x.AllocateNodeCIDRs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1192 := z.EncBinary() - _ = yym1192 - if false { - } else { - r.EncodeBool(bool(x.AllocateNodeCIDRs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1194 := z.EncBinary() - _ = yym1194 - if false { - } else { - r.EncodeBool(bool(x.ConfigureCloudRoutes)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1195 := z.EncBinary() - _ = yym1195 - if false { - } else { - r.EncodeBool(bool(x.ConfigureCloudRoutes)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1197 := z.EncBinary() - _ = yym1197 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rootCAFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1198 := z.EncBinary() - _ = yym1198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1200 := z.EncBinary() - _ = yym1200 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("contentType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1201 := z.EncBinary() - _ = yym1201 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1203 := z.EncBinary() - _ = yym1203 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1204 := z.EncBinary() - _ = yym1204 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1206 := z.EncBinary() - _ = yym1206 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1207 := z.EncBinary() - _ = yym1207 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1209 := &x.LeaderElection - yy1209.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1210 := &x.LeaderElection - yy1210.CodecEncodeSelf(e) - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1212 := &x.VolumeConfiguration - yy1212.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1213 := &x.VolumeConfiguration - yy1213.CodecEncodeSelf(e) - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1215 := &x.ControllerStartInterval - yym1216 := z.EncBinary() - _ = yym1216 - if false { - } else if z.HasExtensions() && z.EncExt(yy1215) { - } else if !yym1216 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1215) - } else { - z.EncFallback(yy1215) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1217 := &x.ControllerStartInterval - yym1218 := z.EncBinary() - _ = yym1218 - if false { - } else if z.HasExtensions() && z.EncExt(yy1217) { - } else if !yym1218 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1217) - } else { - z.EncFallback(yy1217) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1220 := z.EncBinary() - _ = yym1220 - if false { - } else { - r.EncodeBool(bool(x.EnableGarbageCollector)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1221 := z.EncBinary() - _ = yym1221 - if false { - } else { - r.EncodeBool(bool(x.EnableGarbageCollector)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1223 := z.EncBinary() - _ = yym1223 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentGCSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentGCSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1224 := z.EncBinary() - _ = yym1224 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentGCSyncs)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1226 := z.EncBinary() - _ = yym1226 - if false { - } else { - r.EncodeFloat32(float32(x.NodeEvictionRate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeEvictionRate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1227 := z.EncBinary() - _ = yym1227 - if false { - } else { - r.EncodeFloat32(float32(x.NodeEvictionRate)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1229 := z.EncBinary() - _ = yym1229 - if false { - } else { - r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secondaryNodeEvictionRate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1230 := z.EncBinary() - _ = yym1230 - if false { - } else { - r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1232 := z.EncBinary() - _ = yym1232 - if false { - } else { - r.EncodeInt(int64(x.LargeClusterSizeThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("largeClusterSizeThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1233 := z.EncBinary() - _ = yym1233 - if false { - } else { - r.EncodeInt(int64(x.LargeClusterSizeThreshold)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1235 := z.EncBinary() - _ = yym1235 - if false { - } else { - r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("unhealthyZoneThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1236 := z.EncBinary() - _ = yym1236 - if false { - } else { - r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) - } - } - if yyr1025 || yy2arr1025 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *KubeControllerManagerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1237 := z.DecBinary() - _ = yym1237 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1238 := r.ContainerType() - if yyct1238 == codecSelferValueTypeMap1234 { - yyl1238 := r.ReadMapStart() - if yyl1238 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1238, d) - } - } else if yyct1238 == codecSelferValueTypeArray1234 { - yyl1238 := r.ReadArrayStart() - if yyl1238 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1238, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1239Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1239Slc - var yyhl1239 bool = l >= 0 - for yyj1239 := 0; ; yyj1239++ { - if yyhl1239 { - if yyj1239 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1239Slc = r.DecodeBytes(yys1239Slc, true, true) - yys1239 := string(yys1239Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1239 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - case "address": - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - case "useServiceAccountCredentials": - if r.TryDecodeAsNil() { - x.UseServiceAccountCredentials = false - } else { - x.UseServiceAccountCredentials = bool(r.DecodeBool()) - } - case "cloudProvider": - if r.TryDecodeAsNil() { - x.CloudProvider = "" - } else { - x.CloudProvider = string(r.DecodeString()) - } - case "cloudConfigFile": - if r.TryDecodeAsNil() { - x.CloudConfigFile = "" - } else { - x.CloudConfigFile = string(r.DecodeString()) - } - case "concurrentEndpointSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentEndpointSyncs = 0 - } else { - x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) - } - case "concurrentRSSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentRSSyncs = 0 - } else { - x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) - } - case "concurrentRCSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentRCSyncs = 0 - } else { - x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) - } - case "concurrentServiceSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentServiceSyncs = 0 - } else { - x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) - } - case "concurrentResourceQuotaSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentResourceQuotaSyncs = 0 - } else { - x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) - } - case "concurrentDeploymentSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentDeploymentSyncs = 0 - } else { - x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) - } - case "concurrentDaemonSetSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentDaemonSetSyncs = 0 - } else { - x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) - } - case "concurrentJobSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentJobSyncs = 0 - } else { - x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) - } - case "concurrentNamespaceSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentNamespaceSyncs = 0 - } else { - x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) - } - case "concurrentSATokenSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentSATokenSyncs = 0 - } else { - x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) - } - case "lookupCacheSizeForRC": - if r.TryDecodeAsNil() { - x.LookupCacheSizeForRC = 0 - } else { - x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) - } - case "lookupCacheSizeForRS": - if r.TryDecodeAsNil() { - x.LookupCacheSizeForRS = 0 - } else { - x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) - } - case "lookupCacheSizeForDaemonSet": - if r.TryDecodeAsNil() { - x.LookupCacheSizeForDaemonSet = 0 - } else { - x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) - } - case "serviceSyncPeriod": - if r.TryDecodeAsNil() { - x.ServiceSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1260 := &x.ServiceSyncPeriod - yym1261 := z.DecBinary() - _ = yym1261 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1260) { - } else if !yym1261 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1260) - } else { - z.DecFallback(yyv1260, false) - } - } - case "nodeSyncPeriod": - if r.TryDecodeAsNil() { - x.NodeSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1262 := &x.NodeSyncPeriod - yym1263 := z.DecBinary() - _ = yym1263 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1262) { - } else if !yym1263 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1262) - } else { - z.DecFallback(yyv1262, false) - } - } - case "routeReconciliationPeriod": - if r.TryDecodeAsNil() { - x.RouteReconciliationPeriod = pkg1_v1.Duration{} - } else { - yyv1264 := &x.RouteReconciliationPeriod - yym1265 := z.DecBinary() - _ = yym1265 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1264) { - } else if !yym1265 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1264) - } else { - z.DecFallback(yyv1264, false) - } - } - case "resourceQuotaSyncPeriod": - if r.TryDecodeAsNil() { - x.ResourceQuotaSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1266 := &x.ResourceQuotaSyncPeriod - yym1267 := z.DecBinary() - _ = yym1267 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1266) { - } else if !yym1267 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1266) - } else { - z.DecFallback(yyv1266, false) - } - } - case "namespaceSyncPeriod": - if r.TryDecodeAsNil() { - x.NamespaceSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1268 := &x.NamespaceSyncPeriod - yym1269 := z.DecBinary() - _ = yym1269 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1268) { - } else if !yym1269 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1268) - } else { - z.DecFallback(yyv1268, false) - } - } - case "pvClaimBinderSyncPeriod": - if r.TryDecodeAsNil() { - x.PVClaimBinderSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1270 := &x.PVClaimBinderSyncPeriod - yym1271 := z.DecBinary() - _ = yym1271 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1270) { - } else if !yym1271 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1270) - } else { - z.DecFallback(yyv1270, false) - } - } - case "minResyncPeriod": - if r.TryDecodeAsNil() { - x.MinResyncPeriod = pkg1_v1.Duration{} - } else { - yyv1272 := &x.MinResyncPeriod - yym1273 := z.DecBinary() - _ = yym1273 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1272) { - } else if !yym1273 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1272) - } else { - z.DecFallback(yyv1272, false) - } - } - case "terminatedPodGCThreshold": - if r.TryDecodeAsNil() { - x.TerminatedPodGCThreshold = 0 - } else { - x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) - } - case "horizontalPodAutoscalerSyncPeriod": - if r.TryDecodeAsNil() { - x.HorizontalPodAutoscalerSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1275 := &x.HorizontalPodAutoscalerSyncPeriod - yym1276 := z.DecBinary() - _ = yym1276 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1275) { - } else if !yym1276 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1275) - } else { - z.DecFallback(yyv1275, false) - } - } - case "deploymentControllerSyncPeriod": - if r.TryDecodeAsNil() { - x.DeploymentControllerSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1277 := &x.DeploymentControllerSyncPeriod - yym1278 := z.DecBinary() - _ = yym1278 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1277) { - } else if !yym1278 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1277) - } else { - z.DecFallback(yyv1277, false) - } - } - case "podEvictionTimeout": - if r.TryDecodeAsNil() { - x.PodEvictionTimeout = pkg1_v1.Duration{} - } else { - yyv1279 := &x.PodEvictionTimeout - yym1280 := z.DecBinary() - _ = yym1280 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1279) { - } else if !yym1280 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1279) - } else { - z.DecFallback(yyv1279, false) - } - } - case "deletingPodsQps": - if r.TryDecodeAsNil() { - x.DeletingPodsQps = 0 - } else { - x.DeletingPodsQps = float32(r.DecodeFloat(true)) - } - case "deletingPodsBurst": - if r.TryDecodeAsNil() { - x.DeletingPodsBurst = 0 - } else { - x.DeletingPodsBurst = int32(r.DecodeInt(32)) - } - case "nodeMonitorGracePeriod": - if r.TryDecodeAsNil() { - x.NodeMonitorGracePeriod = pkg1_v1.Duration{} - } else { - yyv1283 := &x.NodeMonitorGracePeriod - yym1284 := z.DecBinary() - _ = yym1284 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1283) { - } else if !yym1284 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1283) - } else { - z.DecFallback(yyv1283, false) - } - } - case "registerRetryCount": - if r.TryDecodeAsNil() { - x.RegisterRetryCount = 0 - } else { - x.RegisterRetryCount = int32(r.DecodeInt(32)) - } - case "nodeStartupGracePeriod": - if r.TryDecodeAsNil() { - x.NodeStartupGracePeriod = pkg1_v1.Duration{} - } else { - yyv1286 := &x.NodeStartupGracePeriod - yym1287 := z.DecBinary() - _ = yym1287 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1286) { - } else if !yym1287 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1286) - } else { - z.DecFallback(yyv1286, false) - } - } - case "nodeMonitorPeriod": - if r.TryDecodeAsNil() { - x.NodeMonitorPeriod = pkg1_v1.Duration{} - } else { - yyv1288 := &x.NodeMonitorPeriod - yym1289 := z.DecBinary() - _ = yym1289 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1288) { - } else if !yym1289 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1288) - } else { - z.DecFallback(yyv1288, false) - } - } - case "serviceAccountKeyFile": - if r.TryDecodeAsNil() { - x.ServiceAccountKeyFile = "" - } else { - x.ServiceAccountKeyFile = string(r.DecodeString()) - } - case "clusterSigningCertFile": - if r.TryDecodeAsNil() { - x.ClusterSigningCertFile = "" - } else { - x.ClusterSigningCertFile = string(r.DecodeString()) - } - case "clusterSigningKeyFile": - if r.TryDecodeAsNil() { - x.ClusterSigningKeyFile = "" - } else { - x.ClusterSigningKeyFile = string(r.DecodeString()) - } - case "approveAllKubeletCSRsForGroup": - if r.TryDecodeAsNil() { - x.ApproveAllKubeletCSRsForGroup = "" - } else { - x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) - } - case "enableProfiling": - if r.TryDecodeAsNil() { - x.EnableProfiling = false - } else { - x.EnableProfiling = bool(r.DecodeBool()) - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "clusterCIDR": - if r.TryDecodeAsNil() { - x.ClusterCIDR = "" - } else { - x.ClusterCIDR = string(r.DecodeString()) - } - case "serviceCIDR": - if r.TryDecodeAsNil() { - x.ServiceCIDR = "" - } else { - x.ServiceCIDR = string(r.DecodeString()) - } - case "nodeCIDRMaskSize": - if r.TryDecodeAsNil() { - x.NodeCIDRMaskSize = 0 - } else { - x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) - } - case "allocateNodeCIDRs": - if r.TryDecodeAsNil() { - x.AllocateNodeCIDRs = false - } else { - x.AllocateNodeCIDRs = bool(r.DecodeBool()) - } - case "configureCloudRoutes": - if r.TryDecodeAsNil() { - x.ConfigureCloudRoutes = false - } else { - x.ConfigureCloudRoutes = bool(r.DecodeBool()) - } - case "rootCAFile": - if r.TryDecodeAsNil() { - x.RootCAFile = "" - } else { - x.RootCAFile = string(r.DecodeString()) - } - case "contentType": - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - case "kubeAPIQPS": - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - case "kubeAPIBurst": - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - case "leaderElection": - if r.TryDecodeAsNil() { - x.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv1305 := &x.LeaderElection - yyv1305.CodecDecodeSelf(d) - } - case "volumeConfiguration": - if r.TryDecodeAsNil() { - x.VolumeConfiguration = VolumeConfiguration{} - } else { - yyv1306 := &x.VolumeConfiguration - yyv1306.CodecDecodeSelf(d) - } - case "controllerStartInterval": - if r.TryDecodeAsNil() { - x.ControllerStartInterval = pkg1_v1.Duration{} - } else { - yyv1307 := &x.ControllerStartInterval - yym1308 := z.DecBinary() - _ = yym1308 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1307) { - } else if !yym1308 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1307) - } else { - z.DecFallback(yyv1307, false) - } - } - case "enableGarbageCollector": - if r.TryDecodeAsNil() { - x.EnableGarbageCollector = false - } else { - x.EnableGarbageCollector = bool(r.DecodeBool()) - } - case "concurrentGCSyncs": - if r.TryDecodeAsNil() { - x.ConcurrentGCSyncs = 0 - } else { - x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) - } - case "nodeEvictionRate": - if r.TryDecodeAsNil() { - x.NodeEvictionRate = 0 - } else { - x.NodeEvictionRate = float32(r.DecodeFloat(true)) - } - case "secondaryNodeEvictionRate": - if r.TryDecodeAsNil() { - x.SecondaryNodeEvictionRate = 0 - } else { - x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) - } - case "largeClusterSizeThreshold": - if r.TryDecodeAsNil() { - x.LargeClusterSizeThreshold = 0 - } else { - x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) - } - case "unhealthyZoneThreshold": - if r.TryDecodeAsNil() { - x.UnhealthyZoneThreshold = 0 - } else { - x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) - } - default: - z.DecStructFieldNotFound(-1, yys1239) - } // end switch yys1239 - } // end for yyj1239 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1315 int - var yyb1315 bool - var yyhl1315 bool = l >= 0 - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UseServiceAccountCredentials = false - } else { - x.UseServiceAccountCredentials = bool(r.DecodeBool()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudProvider = "" - } else { - x.CloudProvider = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudConfigFile = "" - } else { - x.CloudConfigFile = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentEndpointSyncs = 0 - } else { - x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentRSSyncs = 0 - } else { - x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentRCSyncs = 0 - } else { - x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentServiceSyncs = 0 - } else { - x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentResourceQuotaSyncs = 0 - } else { - x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentDeploymentSyncs = 0 - } else { - x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentDaemonSetSyncs = 0 - } else { - x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentJobSyncs = 0 - } else { - x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentNamespaceSyncs = 0 - } else { - x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentSATokenSyncs = 0 - } else { - x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LookupCacheSizeForRC = 0 - } else { - x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LookupCacheSizeForRS = 0 - } else { - x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LookupCacheSizeForDaemonSet = 0 - } else { - x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1336 := &x.ServiceSyncPeriod - yym1337 := z.DecBinary() - _ = yym1337 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1336) { - } else if !yym1337 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1336) - } else { - z.DecFallback(yyv1336, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1338 := &x.NodeSyncPeriod - yym1339 := z.DecBinary() - _ = yym1339 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1338) { - } else if !yym1339 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1338) - } else { - z.DecFallback(yyv1338, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RouteReconciliationPeriod = pkg1_v1.Duration{} - } else { - yyv1340 := &x.RouteReconciliationPeriod - yym1341 := z.DecBinary() - _ = yym1341 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1340) { - } else if !yym1341 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1340) - } else { - z.DecFallback(yyv1340, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceQuotaSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1342 := &x.ResourceQuotaSyncPeriod - yym1343 := z.DecBinary() - _ = yym1343 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1342) { - } else if !yym1343 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1342) - } else { - z.DecFallback(yyv1342, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NamespaceSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1344 := &x.NamespaceSyncPeriod - yym1345 := z.DecBinary() - _ = yym1345 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1344) { - } else if !yym1345 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1344) - } else { - z.DecFallback(yyv1344, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PVClaimBinderSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1346 := &x.PVClaimBinderSyncPeriod - yym1347 := z.DecBinary() - _ = yym1347 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1346) { - } else if !yym1347 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1346) - } else { - z.DecFallback(yyv1346, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinResyncPeriod = pkg1_v1.Duration{} - } else { - yyv1348 := &x.MinResyncPeriod - yym1349 := z.DecBinary() - _ = yym1349 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1348) { - } else if !yym1349 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1348) - } else { - z.DecFallback(yyv1348, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TerminatedPodGCThreshold = 0 - } else { - x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HorizontalPodAutoscalerSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1351 := &x.HorizontalPodAutoscalerSyncPeriod - yym1352 := z.DecBinary() - _ = yym1352 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1351) { - } else if !yym1352 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1351) - } else { - z.DecFallback(yyv1351, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DeploymentControllerSyncPeriod = pkg1_v1.Duration{} - } else { - yyv1353 := &x.DeploymentControllerSyncPeriod - yym1354 := z.DecBinary() - _ = yym1354 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1353) { - } else if !yym1354 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1353) - } else { - z.DecFallback(yyv1353, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodEvictionTimeout = pkg1_v1.Duration{} - } else { - yyv1355 := &x.PodEvictionTimeout - yym1356 := z.DecBinary() - _ = yym1356 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1355) { - } else if !yym1356 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1355) - } else { - z.DecFallback(yyv1355, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DeletingPodsQps = 0 - } else { - x.DeletingPodsQps = float32(r.DecodeFloat(true)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DeletingPodsBurst = 0 - } else { - x.DeletingPodsBurst = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeMonitorGracePeriod = pkg1_v1.Duration{} - } else { - yyv1359 := &x.NodeMonitorGracePeriod - yym1360 := z.DecBinary() - _ = yym1360 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1359) { - } else if !yym1360 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1359) - } else { - z.DecFallback(yyv1359, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterRetryCount = 0 - } else { - x.RegisterRetryCount = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeStartupGracePeriod = pkg1_v1.Duration{} - } else { - yyv1362 := &x.NodeStartupGracePeriod - yym1363 := z.DecBinary() - _ = yym1363 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1362) { - } else if !yym1363 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1362) - } else { - z.DecFallback(yyv1362, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeMonitorPeriod = pkg1_v1.Duration{} - } else { - yyv1364 := &x.NodeMonitorPeriod - yym1365 := z.DecBinary() - _ = yym1365 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1364) { - } else if !yym1365 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1364) - } else { - z.DecFallback(yyv1364, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceAccountKeyFile = "" - } else { - x.ServiceAccountKeyFile = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterSigningCertFile = "" - } else { - x.ClusterSigningCertFile = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterSigningKeyFile = "" - } else { - x.ClusterSigningKeyFile = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ApproveAllKubeletCSRsForGroup = "" - } else { - x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableProfiling = false - } else { - x.EnableProfiling = bool(r.DecodeBool()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterCIDR = "" - } else { - x.ClusterCIDR = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceCIDR = "" - } else { - x.ServiceCIDR = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeCIDRMaskSize = 0 - } else { - x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllocateNodeCIDRs = false - } else { - x.AllocateNodeCIDRs = bool(r.DecodeBool()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConfigureCloudRoutes = false - } else { - x.ConfigureCloudRoutes = bool(r.DecodeBool()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RootCAFile = "" - } else { - x.RootCAFile = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv1381 := &x.LeaderElection - yyv1381.CodecDecodeSelf(d) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeConfiguration = VolumeConfiguration{} - } else { - yyv1382 := &x.VolumeConfiguration - yyv1382.CodecDecodeSelf(d) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ControllerStartInterval = pkg1_v1.Duration{} - } else { - yyv1383 := &x.ControllerStartInterval - yym1384 := z.DecBinary() - _ = yym1384 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1383) { - } else if !yym1384 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1383) - } else { - z.DecFallback(yyv1383, false) - } - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableGarbageCollector = false - } else { - x.EnableGarbageCollector = bool(r.DecodeBool()) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ConcurrentGCSyncs = 0 - } else { - x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeEvictionRate = 0 - } else { - x.NodeEvictionRate = float32(r.DecodeFloat(true)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SecondaryNodeEvictionRate = 0 - } else { - x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LargeClusterSizeThreshold = 0 - } else { - x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) - } - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UnhealthyZoneThreshold = 0 - } else { - x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) - } - for { - yyj1315++ - if yyhl1315 { - yyb1315 = yyj1315 > l - } else { - yyb1315 = r.CheckBreak() - } - if yyb1315 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1315-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1391 := z.EncBinary() - _ = yym1391 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep1392 := !z.EncBinary() - yy2arr1392 := z.EncBasicHandle().StructToArray - var yyq1392 [4]bool - _, _, _ = yysep1392, yyq1392, yy2arr1392 - const yyr1392 bool = false - var yynn1392 int - if yyr1392 || yy2arr1392 { - r.EncodeArrayStart(4) - } else { - yynn1392 = 4 - for _, b := range yyq1392 { - if b { - yynn1392++ - } - } - r.EncodeMapStart(yynn1392) - yynn1392 = 0 - } - if yyr1392 || yy2arr1392 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1394 := z.EncBinary() - _ = yym1394 - if false { - } else { - r.EncodeBool(bool(x.EnableHostPathProvisioning)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1395 := z.EncBinary() - _ = yym1395 - if false { - } else { - r.EncodeBool(bool(x.EnableHostPathProvisioning)) - } - } - if yyr1392 || yy2arr1392 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1397 := z.EncBinary() - _ = yym1397 - if false { - } else { - r.EncodeBool(bool(x.EnableDynamicProvisioning)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1398 := z.EncBinary() - _ = yym1398 - if false { - } else { - r.EncodeBool(bool(x.EnableDynamicProvisioning)) - } - } - if yyr1392 || yy2arr1392 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1400 := &x.PersistentVolumeRecyclerConfiguration - yy1400.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1401 := &x.PersistentVolumeRecyclerConfiguration - yy1401.CodecEncodeSelf(e) - } - if yyr1392 || yy2arr1392 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1403 := z.EncBinary() - _ = yym1403 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolumePluginDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1404 := z.EncBinary() - _ = yym1404 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) - } - } - if yyr1392 || yy2arr1392 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *VolumeConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1405 := z.DecBinary() - _ = yym1405 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1406 := r.ContainerType() - if yyct1406 == codecSelferValueTypeMap1234 { - yyl1406 := r.ReadMapStart() - if yyl1406 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1406, d) - } - } else if yyct1406 == codecSelferValueTypeArray1234 { - yyl1406 := r.ReadArrayStart() - if yyl1406 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1406, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1407Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1407Slc - var yyhl1407 bool = l >= 0 - for yyj1407 := 0; ; yyj1407++ { - if yyhl1407 { - if yyj1407 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1407Slc = r.DecodeBytes(yys1407Slc, true, true) - yys1407 := string(yys1407Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1407 { - case "enableHostPathProvisioning": - if r.TryDecodeAsNil() { - x.EnableHostPathProvisioning = false - } else { - x.EnableHostPathProvisioning = bool(r.DecodeBool()) - } - case "enableDynamicProvisioning": - if r.TryDecodeAsNil() { - x.EnableDynamicProvisioning = false - } else { - x.EnableDynamicProvisioning = bool(r.DecodeBool()) - } - case "persitentVolumeRecyclerConfiguration": - if r.TryDecodeAsNil() { - x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} - } else { - yyv1410 := &x.PersistentVolumeRecyclerConfiguration - yyv1410.CodecDecodeSelf(d) - } - case "flexVolumePluginDir": - if r.TryDecodeAsNil() { - x.FlexVolumePluginDir = "" - } else { - x.FlexVolumePluginDir = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1407) - } // end switch yys1407 - } // end for yyj1407 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1412 int - var yyb1412 bool - var yyhl1412 bool = l >= 0 - yyj1412++ - if yyhl1412 { - yyb1412 = yyj1412 > l - } else { - yyb1412 = r.CheckBreak() - } - if yyb1412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableHostPathProvisioning = false - } else { - x.EnableHostPathProvisioning = bool(r.DecodeBool()) - } - yyj1412++ - if yyhl1412 { - yyb1412 = yyj1412 > l - } else { - yyb1412 = r.CheckBreak() - } - if yyb1412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableDynamicProvisioning = false - } else { - x.EnableDynamicProvisioning = bool(r.DecodeBool()) - } - yyj1412++ - if yyhl1412 { - yyb1412 = yyj1412 > l - } else { - yyb1412 = r.CheckBreak() - } - if yyb1412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} - } else { - yyv1415 := &x.PersistentVolumeRecyclerConfiguration - yyv1415.CodecDecodeSelf(d) - } - yyj1412++ - if yyhl1412 { - yyb1412 = yyj1412 > l - } else { - yyb1412 = r.CheckBreak() - } - if yyb1412 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FlexVolumePluginDir = "" - } else { - x.FlexVolumePluginDir = string(r.DecodeString()) - } - for { - yyj1412++ - if yyhl1412 { - yyb1412 = yyj1412 > l - } else { - yyb1412 = r.CheckBreak() - } - if yyb1412 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1412-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1417 := z.EncBinary() - _ = yym1417 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep1418 := !z.EncBinary() - yy2arr1418 := z.EncBasicHandle().StructToArray - var yyq1418 [7]bool - _, _, _ = yysep1418, yyq1418, yy2arr1418 - const yyr1418 bool = false - var yynn1418 int - if yyr1418 || yy2arr1418 { - r.EncodeArrayStart(7) - } else { - yynn1418 = 7 - for _, b := range yyq1418 { - if b { - yynn1418++ - } - } - r.EncodeMapStart(yynn1418) - yynn1418 = 0 - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1420 := z.EncBinary() - _ = yym1420 - if false { - } else { - r.EncodeInt(int64(x.MaximumRetry)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maximumRetry")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1421 := z.EncBinary() - _ = yym1421 - if false { - } else { - r.EncodeInt(int64(x.MaximumRetry)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1423 := z.EncBinary() - _ = yym1423 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutNFS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1424 := z.EncBinary() - _ = yym1424 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutNFS)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1426 := z.EncBinary() - _ = yym1426 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathNFS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1427 := z.EncBinary() - _ = yym1427 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1429 := z.EncBinary() - _ = yym1429 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutNFS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1430 := z.EncBinary() - _ = yym1430 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutNFS)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1432 := z.EncBinary() - _ = yym1432 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathHostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1433 := z.EncBinary() - _ = yym1433 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1435 := z.EncBinary() - _ = yym1435 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutHostPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1436 := z.EncBinary() - _ = yym1436 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutHostPath)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1438 := z.EncBinary() - _ = yym1438 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutHostPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1439 := z.EncBinary() - _ = yym1439 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutHostPath)) - } - } - if yyr1418 || yy2arr1418 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeRecyclerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1440 := z.DecBinary() - _ = yym1440 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1441 := r.ContainerType() - if yyct1441 == codecSelferValueTypeMap1234 { - yyl1441 := r.ReadMapStart() - if yyl1441 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1441, d) - } - } else if yyct1441 == codecSelferValueTypeArray1234 { - yyl1441 := r.ReadArrayStart() - if yyl1441 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1441, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1442Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1442Slc - var yyhl1442 bool = l >= 0 - for yyj1442 := 0; ; yyj1442++ { - if yyhl1442 { - if yyj1442 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1442Slc = r.DecodeBytes(yys1442Slc, true, true) - yys1442 := string(yys1442Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1442 { - case "maximumRetry": - if r.TryDecodeAsNil() { - x.MaximumRetry = 0 - } else { - x.MaximumRetry = int32(r.DecodeInt(32)) - } - case "minimumTimeoutNFS": - if r.TryDecodeAsNil() { - x.MinimumTimeoutNFS = 0 - } else { - x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) - } - case "podTemplateFilePathNFS": - if r.TryDecodeAsNil() { - x.PodTemplateFilePathNFS = "" - } else { - x.PodTemplateFilePathNFS = string(r.DecodeString()) - } - case "incrementTimeoutNFS": - if r.TryDecodeAsNil() { - x.IncrementTimeoutNFS = 0 - } else { - x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) - } - case "podTemplateFilePathHostPath": - if r.TryDecodeAsNil() { - x.PodTemplateFilePathHostPath = "" - } else { - x.PodTemplateFilePathHostPath = string(r.DecodeString()) - } - case "minimumTimeoutHostPath": - if r.TryDecodeAsNil() { - x.MinimumTimeoutHostPath = 0 - } else { - x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) - } - case "incrementTimeoutHostPath": - if r.TryDecodeAsNil() { - x.IncrementTimeoutHostPath = 0 - } else { - x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys1442) - } // end switch yys1442 - } // end for yyj1442 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - 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 - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaximumRetry = 0 - } else { - x.MaximumRetry = int32(r.DecodeInt(32)) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumTimeoutNFS = 0 - } else { - x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodTemplateFilePathNFS = "" - } else { - x.PodTemplateFilePathNFS = string(r.DecodeString()) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IncrementTimeoutNFS = 0 - } else { - x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodTemplateFilePathHostPath = "" - } else { - x.PodTemplateFilePathHostPath = string(r.DecodeString()) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumTimeoutHostPath = 0 - } else { - x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) - } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IncrementTimeoutHostPath = 0 - } else { - x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) - } - for { - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l - } else { - yyb1450 = r.CheckBreak() - } - if yyb1450 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1450-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceapi_Taint(v []pkg2_api.Taint, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1458 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1459 := &yyv1458 - yy1459.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceapi_Taint(v *[]pkg2_api.Taint, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1460 := *v - yyh1460, yyl1460 := z.DecSliceHelperStart() - var yyc1460 bool - if yyl1460 == 0 { - if yyv1460 == nil { - yyv1460 = []pkg2_api.Taint{} - yyc1460 = true - } else if len(yyv1460) != 0 { - yyv1460 = yyv1460[:0] - yyc1460 = true - } - } else if yyl1460 > 0 { - var yyrr1460, yyrl1460 int - var yyrt1460 bool - if yyl1460 > cap(yyv1460) { - - yyrg1460 := len(yyv1460) > 0 - yyv21460 := yyv1460 - yyrl1460, yyrt1460 = z.DecInferLen(yyl1460, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1460 { - if yyrl1460 <= cap(yyv1460) { - yyv1460 = yyv1460[:yyrl1460] - } else { - yyv1460 = make([]pkg2_api.Taint, yyrl1460) - } - } else { - yyv1460 = make([]pkg2_api.Taint, yyrl1460) - } - yyc1460 = true - yyrr1460 = len(yyv1460) - if yyrg1460 { - copy(yyv1460, yyv21460) - } - } else if yyl1460 != len(yyv1460) { - yyv1460 = yyv1460[:yyl1460] - yyc1460 = true - } - yyj1460 := 0 - for ; yyj1460 < yyrr1460; yyj1460++ { - yyh1460.ElemContainerState(yyj1460) - if r.TryDecodeAsNil() { - yyv1460[yyj1460] = pkg2_api.Taint{} - } else { - yyv1461 := &yyv1460[yyj1460] - yyv1461.CodecDecodeSelf(d) - } - - } - if yyrt1460 { - for ; yyj1460 < yyl1460; yyj1460++ { - yyv1460 = append(yyv1460, pkg2_api.Taint{}) - yyh1460.ElemContainerState(yyj1460) - if r.TryDecodeAsNil() { - yyv1460[yyj1460] = pkg2_api.Taint{} - } else { - yyv1462 := &yyv1460[yyj1460] - yyv1462.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1460 := 0 - for ; !r.CheckBreak(); yyj1460++ { - - if yyj1460 >= len(yyv1460) { - yyv1460 = append(yyv1460, pkg2_api.Taint{}) // var yyz1460 pkg2_api.Taint - yyc1460 = true - } - yyh1460.ElemContainerState(yyj1460) - if yyj1460 < len(yyv1460) { - if r.TryDecodeAsNil() { - yyv1460[yyj1460] = pkg2_api.Taint{} - } else { - yyv1463 := &yyv1460[yyj1460] - yyv1463.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1460 < len(yyv1460) { - yyv1460 = yyv1460[:yyj1460] - yyc1460 = true - } else if yyj1460 == 0 && yyv1460 == nil { - yyv1460 = []pkg2_api.Taint{} - yyc1460 = true - } - } - yyh1460.End() - if yyc1460 { - *v = yyv1460 - } -} - -func (x codecSelfer1234) encconfig_ConfigurationMap(v pkg3_config.ConfigurationMap, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1464, yyv1464 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym1465 := z.EncBinary() - _ = yym1465 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1464)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1466 := z.EncBinary() - _ = yym1466 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1464)) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decconfig_ConfigurationMap(v *pkg3_config.ConfigurationMap, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1467 := *v - yyl1467 := r.ReadMapStart() - yybh1467 := z.DecBasicHandle() - if yyv1467 == nil { - yyrl1467, _ := z.DecInferLen(yyl1467, yybh1467.MaxInitLen, 32) - yyv1467 = make(map[string]string, yyrl1467) - *v = yyv1467 - } - var yymk1467 string - var yymv1467 string - var yymg1467 bool - if yybh1467.MapValueReset { - } - if yyl1467 > 0 { - for yyj1467 := 0; yyj1467 < yyl1467; yyj1467++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1467 = "" - } else { - yymk1467 = string(r.DecodeString()) - } - - if yymg1467 { - yymv1467 = yyv1467[yymk1467] - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1467 = "" - } else { - yymv1467 = string(r.DecodeString()) - } - - if yyv1467 != nil { - yyv1467[yymk1467] = yymv1467 - } - } - } else if yyl1467 < 0 { - for yyj1467 := 0; !r.CheckBreak(); yyj1467++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1467 = "" - } else { - yymk1467 = string(r.DecodeString()) - } - - if yymg1467 { - yymv1467 = yyv1467[yymk1467] - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1467 = "" - } else { - yymv1467 = string(r.DecodeString()) - } - - if yyv1467 != nil { - yyv1467[yymk1467] = yymv1467 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.go b/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.go index f664993ee97..5f37ee3ba5d 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/componentconfig/types.go @@ -27,64 +27,64 @@ type KubeProxyConfiguration struct { // bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0 // for all interfaces) - BindAddress string `json:"bindAddress"` + BindAddress string // clusterCIDR is the CIDR range of the pods in the cluster. It is used to // bridge traffic coming from outside of the cluster. If not provided, // no off-cluster bridging will be performed. - ClusterCIDR string `json:"clusterCIDR"` + ClusterCIDR string // healthzBindAddress is the IP address for the health check server to serve on, // defaulting to 127.0.0.1 (set to 0.0.0.0 for all interfaces) - HealthzBindAddress string `json:"healthzBindAddress"` + HealthzBindAddress string // healthzPort is the port to bind the health check server. Use 0 to disable. - HealthzPort int32 `json:"healthzPort"` + HealthzPort int32 // hostnameOverride, if non-empty, will be used as the identity instead of the actual hostname. - HostnameOverride string `json:"hostnameOverride"` + HostnameOverride string // iptablesMasqueradeBit is the bit of the iptables fwmark space to use for SNAT if using // the pure iptables proxy mode. Values must be within the range [0, 31]. - IPTablesMasqueradeBit *int32 `json:"iptablesMasqueradeBit"` + IPTablesMasqueradeBit *int32 // iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m', // '2h22m'). Must be greater than 0. - IPTablesSyncPeriod metav1.Duration `json:"iptablesSyncPeriodSeconds"` + IPTablesSyncPeriod metav1.Duration // iptablesMinSyncPeriod is the minimum period that iptables rules are refreshed (e.g. '5s', '1m', // '2h22m'). - IPTablesMinSyncPeriod metav1.Duration `json:"iptablesMinSyncPeriodSeconds"` + IPTablesMinSyncPeriod metav1.Duration // kubeconfigPath is the path to the kubeconfig file with authorization information (the // master location is set by the master flag). - KubeconfigPath string `json:"kubeconfigPath"` + KubeconfigPath string // masqueradeAll tells kube-proxy to SNAT everything if using the pure iptables proxy mode. - MasqueradeAll bool `json:"masqueradeAll"` + MasqueradeAll bool // master is the address of the Kubernetes API server (overrides any value in kubeconfig) - Master string `json:"master"` + Master string // oomScoreAdj is the oom-score-adj value for kube-proxy process. Values must be within // the range [-1000, 1000] - OOMScoreAdj *int32 `json:"oomScoreAdj"` + OOMScoreAdj *int32 // mode specifies which proxy mode to use. - Mode ProxyMode `json:"mode"` + Mode ProxyMode // portRange is the range of host ports (beginPort-endPort, inclusive) that may be consumed // in order to proxy service traffic. If unspecified (0-0) then ports will be randomly chosen. - PortRange string `json:"portRange"` + PortRange string // resourceContainer is the absolute name of the resource-only container to create and run // the Kube-proxy in (Default: /kube-proxy). - ResourceContainer string `json:"resourceContainer"` + ResourceContainer string // udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s'). // Must be greater than 0. Only applicable for proxyMode=userspace. - UDPIdleTimeout metav1.Duration `json:"udpTimeoutMilliseconds"` + UDPIdleTimeout metav1.Duration // conntrackMax is the maximum number of NAT connections to track (0 to // leave as-is). This takes precedence over conntrackMaxPerCore and conntrackMin. - ConntrackMax int32 `json:"conntrackMax"` + ConntrackMax int32 // conntrackMaxPerCore is the maximum number of NAT connections to track // per CPU core (0 to leave the limit as-is and ignore conntrackMin). - ConntrackMaxPerCore int32 `json:"conntrackMaxPerCore"` + ConntrackMaxPerCore int32 // conntrackMin is the minimum value of connect-tracking records to allocate, // regardless of conntrackMaxPerCore (set conntrackMaxPerCore=0 to leave the limit as-is). - ConntrackMin int32 `json:"conntrackMin"` + ConntrackMin int32 // conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open // (e.g. '2s'). Must be greater than 0. - ConntrackTCPEstablishedTimeout metav1.Duration `json:"conntrackTCPEstablishedTimeout"` + ConntrackTCPEstablishedTimeout metav1.Duration // conntrackTCPCloseWaitTimeout is how long an idle conntrack entry // in CLOSE_WAIT state will remain in the conntrack // table. (e.g. '60s'). Must be greater than 0 to set. - ConntrackTCPCloseWaitTimeout metav1.Duration `json:"conntrackTCPCloseWaitTimeout"` + ConntrackTCPCloseWaitTimeout metav1.Duration } // Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables' @@ -124,229 +124,229 @@ type KubeletConfiguration struct { // podManifestPath is the path to the directory containing pod manifests to // run, or the path to a single manifest file - PodManifestPath string `json:"podManifestPath"` + PodManifestPath string // syncFrequency is the max period between synchronizing running // containers and config - SyncFrequency metav1.Duration `json:"syncFrequency"` + SyncFrequency metav1.Duration // fileCheckFrequency is the duration between checking config files for // new data - FileCheckFrequency metav1.Duration `json:"fileCheckFrequency"` + FileCheckFrequency metav1.Duration // httpCheckFrequency is the duration between checking http for new data - HTTPCheckFrequency metav1.Duration `json:"httpCheckFrequency"` + HTTPCheckFrequency metav1.Duration // manifestURL is the URL for accessing the container manifest - ManifestURL string `json:"manifestURL"` + ManifestURL string // manifestURLHeader is the HTTP header to use when accessing the manifest // URL, with the key separated from the value with a ':', as in 'key:value' - ManifestURLHeader string `json:"manifestURLHeader"` + ManifestURLHeader string // enableServer enables the Kubelet's server - EnableServer bool `json:"enableServer"` + EnableServer bool // address is the IP address for the Kubelet to serve on (set to 0.0.0.0 // for all interfaces) - Address string `json:"address"` + Address string // port is the port for the Kubelet to serve on. - Port int32 `json:"port"` + Port int32 // readOnlyPort is the read-only port for the Kubelet to serve on with // no authentication/authorization (set to 0 to disable) - ReadOnlyPort int32 `json:"readOnlyPort"` + ReadOnlyPort int32 // tlsCertFile is the file containing x509 Certificate for HTTPS. (CA cert, // if any, concatenated after server cert). If tlsCertFile and // tlsPrivateKeyFile are not provided, a self-signed certificate // and key are generated for the public address and saved to the directory // passed to certDir. - TLSCertFile string `json:"tlsCertFile"` + TLSCertFile string // tlsPrivateKeyFile is the ile containing x509 private key matching // tlsCertFile. - TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"` + TLSPrivateKeyFile string // certDirectory is the directory where the TLS certs are located (by // default /var/run/kubernetes). If tlsCertFile and tlsPrivateKeyFile // are provided, this flag will be ignored. - CertDirectory string `json:"certDirectory"` + CertDirectory string // authentication specifies how requests to the Kubelet's server are authenticated - Authentication KubeletAuthentication `json:"authentication"` + Authentication KubeletAuthentication // authorization specifies how requests to the Kubelet's server are authorized - Authorization KubeletAuthorization `json:"authorization"` + Authorization KubeletAuthorization // hostnameOverride is the hostname used to identify the kubelet instead // of the actual hostname. - HostnameOverride string `json:"hostnameOverride"` + HostnameOverride string // podInfraContainerImage is the image whose network/ipc namespaces // containers in each pod will use. - PodInfraContainerImage string `json:"podInfraContainerImage"` + PodInfraContainerImage string // dockerEndpoint is the path to the docker endpoint to communicate with. - DockerEndpoint string `json:"dockerEndpoint"` + DockerEndpoint string // rootDirectory is the directory path to place kubelet files (volume // mounts,etc). - RootDirectory string `json:"rootDirectory"` + RootDirectory string // seccompProfileRoot is the directory path for seccomp profiles. - SeccompProfileRoot string `json:"seccompProfileRoot"` + SeccompProfileRoot string // allowPrivileged enables containers to request privileged mode. // Defaults to false. - AllowPrivileged bool `json:"allowPrivileged"` + AllowPrivileged bool // hostNetworkSources is a comma-separated list of sources from which the // Kubelet allows pods to use of host network. Defaults to "*". Valid // options are "file", "http", "api", and "*" (all sources). - HostNetworkSources []string `json:"hostNetworkSources"` + HostNetworkSources []string // hostPIDSources is a comma-separated list of sources from which the // Kubelet allows pods to use the host pid namespace. Defaults to "*". - HostPIDSources []string `json:"hostPIDSources"` + HostPIDSources []string // hostIPCSources is a comma-separated list of sources from which the // Kubelet allows pods to use the host ipc namespace. Defaults to "*". - HostIPCSources []string `json:"hostIPCSources"` + HostIPCSources []string // registryPullQPS is the limit of registry pulls per second. If 0, // unlimited. Set to 0 for no limit. Defaults to 5.0. - RegistryPullQPS int32 `json:"registryPullQPS"` + RegistryPullQPS int32 // registryBurst is the maximum size of a bursty pulls, temporarily allows // pulls to burst to this number, while still not exceeding registryQps. // Only used if registryQPS > 0. - RegistryBurst int32 `json:"registryBurst"` + RegistryBurst int32 // eventRecordQPS is the maximum event creations per second. If 0, there // is no limit enforced. - EventRecordQPS int32 `json:"eventRecordQPS"` + EventRecordQPS int32 // eventBurst is the maximum size of a bursty event records, temporarily // allows event records to burst to this number, while still not exceeding // event-qps. Only used if eventQps > 0 - EventBurst int32 `json:"eventBurst"` + EventBurst int32 // enableDebuggingHandlers enables server endpoints for log collection // and local running of containers and commands - EnableDebuggingHandlers bool `json:"enableDebuggingHandlers"` + EnableDebuggingHandlers bool // minimumGCAge is the minimum age for a finished container before it is // garbage collected. - MinimumGCAge metav1.Duration `json:"minimumGCAge"` + MinimumGCAge metav1.Duration // maxPerPodContainerCount is the maximum number of old instances to // retain per container. Each container takes up some disk space. - MaxPerPodContainerCount int32 `json:"maxPerPodContainerCount"` + MaxPerPodContainerCount int32 // maxContainerCount is the maximum number of old instances of containers // to retain globally. Each container takes up some disk space. - MaxContainerCount int32 `json:"maxContainerCount"` + MaxContainerCount int32 // cAdvisorPort is the port of the localhost cAdvisor endpoint - CAdvisorPort int32 `json:"cAdvisorPort"` + CAdvisorPort int32 // healthzPort is the port of the localhost healthz endpoint - HealthzPort int32 `json:"healthzPort"` + HealthzPort int32 // healthzBindAddress is the IP address for the healthz server to serve // on. - HealthzBindAddress string `json:"healthzBindAddress"` + HealthzBindAddress string // oomScoreAdj is The oom-score-adj value for kubelet process. Values // must be within the range [-1000, 1000]. - OOMScoreAdj int32 `json:"oomScoreAdj"` + OOMScoreAdj int32 // registerNode enables automatic registration with the apiserver. - RegisterNode bool `json:"registerNode"` + RegisterNode bool // clusterDomain is the DNS domain for this cluster. If set, kubelet will // configure all containers to search this domain in addition to the // host's search domains. - ClusterDomain string `json:"clusterDomain"` + ClusterDomain string // masterServiceNamespace is The namespace from which the kubernetes // master services should be injected into pods. - MasterServiceNamespace string `json:"masterServiceNamespace"` + MasterServiceNamespace string // clusterDNS is the IP address for a cluster DNS server. If set, kubelet // will configure all containers to use this for DNS resolution in // addition to the host's DNS servers - ClusterDNS string `json:"clusterDNS"` + ClusterDNS string // streamingConnectionIdleTimeout is the maximum time a streaming connection // can be idle before the connection is automatically closed. - StreamingConnectionIdleTimeout metav1.Duration `json:"streamingConnectionIdleTimeout"` + StreamingConnectionIdleTimeout metav1.Duration // nodeStatusUpdateFrequency is the frequency that kubelet posts node // status to master. Note: be cautious when changing the constant, it // must work with nodeMonitorGracePeriod in nodecontroller. - NodeStatusUpdateFrequency metav1.Duration `json:"nodeStatusUpdateFrequency"` + NodeStatusUpdateFrequency metav1.Duration // imageMinimumGCAge is the minimum age for an unused image before it is // garbage collected. - ImageMinimumGCAge metav1.Duration `json:"imageMinimumGCAge"` + ImageMinimumGCAge metav1.Duration // imageGCHighThresholdPercent is the percent of disk usage after which // image garbage collection is always run. - ImageGCHighThresholdPercent int32 `json:"imageGCHighThresholdPercent"` + ImageGCHighThresholdPercent int32 // imageGCLowThresholdPercent is the percent of disk usage before which // image garbage collection is never run. Lowest disk usage to garbage // collect to. - ImageGCLowThresholdPercent int32 `json:"imageGCLowThresholdPercent"` + ImageGCLowThresholdPercent int32 // lowDiskSpaceThresholdMB is the absolute free disk space, in MB, to // maintain. When disk space falls below this threshold, new pods would // be rejected. - LowDiskSpaceThresholdMB int32 `json:"lowDiskSpaceThresholdMB"` + LowDiskSpaceThresholdMB int32 // How frequently to calculate and cache volume disk usage for all pods - VolumeStatsAggPeriod metav1.Duration `json:"volumeStatsAggPeriod"` + VolumeStatsAggPeriod metav1.Duration // networkPluginName is the name of the network plugin to be invoked for // various events in kubelet/pod lifecycle - NetworkPluginName string `json:"networkPluginName"` + NetworkPluginName string // networkPluginMTU is the MTU to be passed to the network plugin, // and overrides the default MTU for cases where it cannot be automatically // computed (such as IPSEC). - NetworkPluginMTU int32 `json:"networkPluginMTU"` + NetworkPluginMTU int32 // networkPluginDir is the full path of the directory in which to search // for network plugins (and, for backwards-compat, CNI config files) - NetworkPluginDir string `json:"networkPluginDir"` + NetworkPluginDir string // CNIConfDir is the full path of the directory in which to search for // CNI config files - CNIConfDir string `json:"cniConfDir"` + CNIConfDir string // CNIBinDir is the full path of the directory in which to search for // CNI plugin binaries - CNIBinDir string `json:"cniBinDir"` + CNIBinDir string // volumePluginDir is the full path of the directory in which to search // for additional third party volume plugins - VolumePluginDir string `json:"volumePluginDir"` + VolumePluginDir string // cloudProvider is the provider for cloud services. // +optional - CloudProvider string `json:"cloudProvider,omitempty"` + CloudProvider string // cloudConfigFile is the path to the cloud provider configuration file. // +optional - CloudConfigFile string `json:"cloudConfigFile,omitempty"` + CloudConfigFile string // KubeletCgroups is the absolute name of cgroups to isolate the kubelet in. // +optional - KubeletCgroups string `json:"kubeletCgroups,omitempty"` + KubeletCgroups string // Enable QoS based Cgroup hierarchy: top level cgroups for QoS Classes // And all Burstable and BestEffort pods are brought up under their // specific top level QoS cgroup. // +optional - ExperimentalCgroupsPerQOS bool `json:"experimentalCgroupsPerQOS,omitempty"` + ExperimentalCgroupsPerQOS bool // driver that the kubelet uses to manipulate cgroups on the host (cgroupfs or systemd) // +optional - CgroupDriver string `json:"cgroupDriver,omitempty"` + CgroupDriver string // Cgroups that container runtime is expected to be isolated in. // +optional - RuntimeCgroups string `json:"runtimeCgroups,omitempty"` + RuntimeCgroups string // SystemCgroups is absolute name of cgroups in which to place // all non-kernel processes that are not already in a container. Empty // for no container. Rolling back the flag requires a reboot. // +optional - SystemCgroups string `json:"systemCgroups,omitempty"` + SystemCgroups string // CgroupRoot is the root cgroup to use for pods. // If ExperimentalCgroupsPerQOS is enabled, this is the root of the QoS cgroup hierarchy. // +optional - CgroupRoot string `json:"cgroupRoot,omitempty"` + CgroupRoot string // containerRuntime is the container runtime to use. - ContainerRuntime string `json:"containerRuntime"` + ContainerRuntime string // remoteRuntimeEndpoint is the endpoint of remote runtime service - RemoteRuntimeEndpoint string `json:"remoteRuntimeEndpoint"` + RemoteRuntimeEndpoint string // remoteImageEndpoint is the endpoint of remote image service - RemoteImageEndpoint string `json:"remoteImageEndpoint"` + RemoteImageEndpoint string // runtimeRequestTimeout is the timeout for all runtime requests except long running // requests - pull, logs, exec and attach. // +optional - RuntimeRequestTimeout metav1.Duration `json:"runtimeRequestTimeout,omitempty"` + RuntimeRequestTimeout metav1.Duration // If no pulling progress is made before the deadline imagePullProgressDeadline, // the image pulling will be cancelled. Defaults to 1m0s. // +optional - ImagePullProgressDeadline metav1.Duration `json:"imagePullProgressDeadline,omitempty"` + ImagePullProgressDeadline metav1.Duration // rktPath is the path of rkt binary. Leave empty to use the first rkt in // $PATH. // +optional - RktPath string `json:"rktPath,omitempty"` + RktPath string // experimentalMounterPath is the path of mounter binary. Leave empty to use the default mount path - ExperimentalMounterPath string `json:"experimentalMounterPath,omitempty"` + ExperimentalMounterPath string // rktApiEndpoint is the endpoint of the rkt API service to communicate with. // +optional - RktAPIEndpoint string `json:"rktAPIEndpoint,omitempty"` + RktAPIEndpoint string // rktStage1Image is the image to use as stage1. Local paths and // http/https URLs are supported. // +optional - RktStage1Image string `json:"rktStage1Image,omitempty"` + RktStage1Image string // lockFilePath is the path that kubelet will use to as a lock file. // It uses this file as a lock to synchronize with other kubelet processes // that may be running. - LockFilePath string `json:"lockFilePath"` + LockFilePath string // ExitOnLockContention is a flag that signifies to the kubelet that it is running // in "bootstrap" mode. This requires that 'LockFilePath' has been set. // This will cause the kubelet to listen to inotify events on the lock file, // releasing it and exiting when another process tries to open that file. - ExitOnLockContention bool `json:"exitOnLockContention"` + ExitOnLockContention bool // How should the kubelet configure the container bridge for hairpin packets. // Setting this flag allows endpoints in a Service to loadbalance back to // themselves if they should try to access their own Service. Values: @@ -355,134 +355,134 @@ type KubeletConfiguration struct { // "none": do nothing. // Generally, one must set --hairpin-mode=veth-flag to achieve hairpin NAT, // because promiscous-bridge assumes the existence of a container bridge named cbr0. - HairpinMode string `json:"hairpinMode"` + HairpinMode string // The node has babysitter process monitoring docker and kubelet. - BabysitDaemons bool `json:"babysitDaemons"` + BabysitDaemons bool // maxPods is the number of pods that can run on this Kubelet. - MaxPods int32 `json:"maxPods"` + MaxPods int32 // nvidiaGPUs is the number of NVIDIA GPU devices on this node. - NvidiaGPUs int32 `json:"nvidiaGPUs"` + NvidiaGPUs int32 // dockerExecHandlerName is the handler to use when executing a command // in a container. Valid values are 'native' and 'nsenter'. Defaults to // 'native'. - DockerExecHandlerName string `json:"dockerExecHandlerName"` + DockerExecHandlerName string // The CIDR to use for pod IP addresses, only used in standalone mode. // In cluster mode, this is obtained from the master. - PodCIDR string `json:"podCIDR"` + PodCIDR string // ResolverConfig is the resolver configuration file used as the basis // for the container DNS resolution configuration."), [] - ResolverConfig string `json:"resolvConf"` + ResolverConfig string // cpuCFSQuota is Enable CPU CFS quota enforcement for containers that // specify CPU limits - CPUCFSQuota bool `json:"cpuCFSQuota"` + CPUCFSQuota bool // containerized should be set to true if kubelet is running in a container. - Containerized bool `json:"containerized"` + Containerized bool // maxOpenFiles is Number of files that can be opened by Kubelet process. - MaxOpenFiles int64 `json:"maxOpenFiles"` + MaxOpenFiles int64 // reconcileCIDR is Reconcile node CIDR with the CIDR specified by the // API server. Won't have any effect if register-node is false. - ReconcileCIDR bool `json:"reconcileCIDR"` + ReconcileCIDR bool // registerSchedulable tells the kubelet to register the node as // schedulable. Won't have any effect if register-node is false. // DEPRECATED: use registerWithTaints instead - RegisterSchedulable bool `json:"registerSchedulable"` + RegisterSchedulable bool // registerWithTaints are an array of taints to add to a node object when // the kubelet registers itself. This only takes effect when registerNode // is true and upon the initial registration of the node. - RegisterWithTaints []api.Taint `json:"registerWithTaints"` + RegisterWithTaints []api.Taint // contentType is contentType of requests sent to apiserver. - ContentType string `json:"contentType"` + ContentType string // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver - KubeAPIQPS int32 `json:"kubeAPIQPS"` + KubeAPIQPS int32 // kubeAPIBurst is the burst to allow while talking with kubernetes // apiserver - KubeAPIBurst int32 `json:"kubeAPIBurst"` + KubeAPIBurst int32 // serializeImagePulls when enabled, tells the Kubelet to pull images one // at a time. We recommend *not* changing the default value on nodes that // run docker daemon with version < 1.9 or an Aufs storage backend. // Issue #10959 has more details. - SerializeImagePulls bool `json:"serializeImagePulls"` + SerializeImagePulls bool // outOfDiskTransitionFrequency is duration for which the kubelet has to // wait before transitioning out of out-of-disk node condition status. // +optional - OutOfDiskTransitionFrequency metav1.Duration `json:"outOfDiskTransitionFrequency,omitempty"` + OutOfDiskTransitionFrequency metav1.Duration // nodeIP is IP address of the node. If set, kubelet will use this IP // address for the node. // +optional - NodeIP string `json:"nodeIP,omitempty"` + NodeIP string // nodeLabels to add when registering the node in the cluster. - NodeLabels map[string]string `json:"nodeLabels"` + NodeLabels map[string]string // nonMasqueradeCIDR configures masquerading: traffic to IPs outside this range will use IP masquerade. - NonMasqueradeCIDR string `json:"nonMasqueradeCIDR"` + NonMasqueradeCIDR string // enable gathering custom metrics. - EnableCustomMetrics bool `json:"enableCustomMetrics"` + EnableCustomMetrics bool // Comma-delimited list of hard eviction expressions. For example, 'memory.available<300Mi'. // +optional - EvictionHard string `json:"evictionHard,omitempty"` + EvictionHard string // Comma-delimited list of soft eviction expressions. For example, 'memory.available<300Mi'. // +optional - EvictionSoft string `json:"evictionSoft,omitempty"` + EvictionSoft string // Comma-delimeted list of grace periods for each soft eviction signal. For example, 'memory.available=30s'. // +optional - EvictionSoftGracePeriod string `json:"evictionSoftGracePeriod,omitempty"` + EvictionSoftGracePeriod string // Duration for which the kubelet has to wait before transitioning out of an eviction pressure condition. // +optional - EvictionPressureTransitionPeriod metav1.Duration `json:"evictionPressureTransitionPeriod,omitempty"` + EvictionPressureTransitionPeriod metav1.Duration // Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. // +optional - EvictionMaxPodGracePeriod int32 `json:"evictionMaxPodGracePeriod,omitempty"` + EvictionMaxPodGracePeriod int32 // Comma-delimited list of minimum reclaims (e.g. imagefs.available=2Gi) that describes the minimum amount of resource the kubelet will reclaim when performing a pod eviction if that resource is under pressure. // +optional - EvictionMinimumReclaim string `json:"evictionMinimumReclaim,omitempty"` + EvictionMinimumReclaim string // If enabled, the kubelet will integrate with the kernel memcg notification to determine if memory eviction thresholds are crossed rather than polling. // +optional - ExperimentalKernelMemcgNotification bool `json:"experimentalKernelMemcgNotification"` + ExperimentalKernelMemcgNotification bool // Maximum number of pods per core. Cannot exceed MaxPods - PodsPerCore int32 `json:"podsPerCore"` + PodsPerCore int32 // enableControllerAttachDetach enables the Attach/Detach controller to // manage attachment/detachment of volumes scheduled to this node, and // disables kubelet from executing any attach/detach operations - EnableControllerAttachDetach bool `json:"enableControllerAttachDetach"` + EnableControllerAttachDetach bool // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs // that describe resources reserved for non-kubernetes components. // Currently only cpu and memory are supported. [default=none] // See http://kubernetes.io/docs/user-guide/compute-resources for more detail. - SystemReserved utilconfig.ConfigurationMap `json:"systemReserved"` + SystemReserved utilconfig.ConfigurationMap // A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=150G) pairs // that describe resources reserved for kubernetes system components. // Currently only cpu and memory are supported. [default=none] // See http://kubernetes.io/docs/user-guide/compute-resources for more detail. - KubeReserved utilconfig.ConfigurationMap `json:"kubeReserved"` + KubeReserved utilconfig.ConfigurationMap // Default behaviour for kernel tuning - ProtectKernelDefaults bool `json:"protectKernelDefaults"` + ProtectKernelDefaults bool // If true, Kubelet ensures a set of iptables rules are present on host. // These rules will serve as utility for various components, e.g. kube-proxy. // The rules will be created based on IPTablesMasqueradeBit and IPTablesDropBit. - MakeIPTablesUtilChains bool `json:"makeIPTablesUtilChains"` + MakeIPTablesUtilChains bool // iptablesMasqueradeBit is the bit of the iptables fwmark space to use for SNAT // Values must be within the range [0, 31]. // Warning: Please match the value of corresponding parameter in kube-proxy // TODO: clean up IPTablesMasqueradeBit in kube-proxy - IPTablesMasqueradeBit int32 `json:"iptablesMasqueradeBit"` + IPTablesMasqueradeBit int32 // iptablesDropBit is the bit of the iptables fwmark space to use for dropping packets. Kubelet will ensure iptables mark and drop rules. // Values must be within the range [0, 31]. Must be different from IPTablesMasqueradeBit - IPTablesDropBit int32 `json:"iptablesDropBit"` + IPTablesDropBit int32 // Whitelist of unsafe sysctls or sysctl patterns (ending in *). // +optional - AllowedUnsafeSysctls []string `json:"experimentalAllowedUnsafeSysctls,omitempty"` + AllowedUnsafeSysctls []string // featureGates is a string of comma-separated key=value pairs that describe feature // gates for alpha/experimental features. - FeatureGates string `json:"featureGates"` + FeatureGates string // Enable Container Runtime Interface (CRI) integration. // +optional - EnableCRI bool `json:"enableCRI,omitempty"` + EnableCRI bool // TODO(#34726:1.8.0): Remove the opt-in for failing when swap is enabled. // Tells the Kubelet to fail to start if swap is enabled on the node. - ExperimentalFailSwapOn bool `json:"experimentalFailSwapOn,omitempty"` + ExperimentalFailSwapOn bool // This flag, if set, enables a check prior to mount operations to verify that the required components // (binaries, etc.) to mount the volume are available on the underlying node. If the check is enabled // and fails the mount operation fails. - ExperimentalCheckNodeCapabilitiesBeforeMount bool `json:"ExperimentalCheckNodeCapabilitiesBeforeMount,omitempty"` + ExperimentalCheckNodeCapabilitiesBeforeMount bool } type KubeletAuthorizationMode string @@ -498,82 +498,82 @@ type KubeletAuthorization struct { // mode is the authorization mode to apply to requests to the kubelet server. // Valid values are AlwaysAllow and Webhook. // Webhook mode uses the SubjectAccessReview API to determine authorization. - Mode KubeletAuthorizationMode `json:"mode"` + Mode KubeletAuthorizationMode // webhook contains settings related to Webhook authorization. - Webhook KubeletWebhookAuthorization `json:"webhook"` + Webhook KubeletWebhookAuthorization } type KubeletWebhookAuthorization struct { // cacheAuthorizedTTL is the duration to cache 'authorized' responses from the webhook authorizer. - CacheAuthorizedTTL metav1.Duration `json:"cacheAuthorizedTTL"` + CacheAuthorizedTTL metav1.Duration // cacheUnauthorizedTTL is the duration to cache 'unauthorized' responses from the webhook authorizer. - CacheUnauthorizedTTL metav1.Duration `json:"cacheUnauthorizedTTL"` + CacheUnauthorizedTTL metav1.Duration } type KubeletAuthentication struct { // x509 contains settings related to x509 client certificate authentication - X509 KubeletX509Authentication `json:"x509"` + X509 KubeletX509Authentication // webhook contains settings related to webhook bearer token authentication - Webhook KubeletWebhookAuthentication `json:"webhook"` + Webhook KubeletWebhookAuthentication // anonymous contains settings related to anonymous authentication - Anonymous KubeletAnonymousAuthentication `json:"anonymous"` + Anonymous KubeletAnonymousAuthentication } type KubeletX509Authentication struct { // clientCAFile is the path to a PEM-encoded certificate bundle. If set, any request presenting a client certificate // signed by one of the authorities in the bundle is authenticated with a username corresponding to the CommonName, // and groups corresponding to the Organization in the client certificate. - ClientCAFile string `json:"clientCAFile"` + ClientCAFile string } type KubeletWebhookAuthentication struct { // enabled allows bearer token authentication backed by the tokenreviews.authentication.k8s.io API - Enabled bool `json:"enabled"` + Enabled bool // cacheTTL enables caching of authentication results - CacheTTL metav1.Duration `json:"cacheTTL"` + CacheTTL metav1.Duration } type KubeletAnonymousAuthentication struct { // enabled allows anonymous requests to the kubelet server. // Requests that are not rejected by another authentication method are treated as anonymous requests. // Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated. - Enabled bool `json:"enabled"` + Enabled bool } type KubeSchedulerConfiguration struct { metav1.TypeMeta // port is the port that the scheduler's http service runs on. - Port int32 `json:"port"` + Port int32 // address is the IP address to serve on. - Address string `json:"address"` + Address string // algorithmProvider is the scheduling algorithm provider to use. - AlgorithmProvider string `json:"algorithmProvider"` + AlgorithmProvider string // policyConfigFile is the filepath to the scheduler policy configuration. - PolicyConfigFile string `json:"policyConfigFile"` + PolicyConfigFile string // enableProfiling enables profiling via web interface. - EnableProfiling bool `json:"enableProfiling"` + EnableProfiling bool // enableContentionProfiling enables lock contention profiling, if enableProfiling is true. - EnableContentionProfiling bool `json:"enableContentionProfiling"` + EnableContentionProfiling bool // contentType is contentType of requests sent to apiserver. - ContentType string `json:"contentType"` + ContentType string // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver. - KubeAPIQPS float32 `json:"kubeAPIQPS"` + KubeAPIQPS float32 // kubeAPIBurst is the QPS burst to use while talking with kubernetes apiserver. - KubeAPIBurst int32 `json:"kubeAPIBurst"` + KubeAPIBurst int32 // schedulerName is name of the scheduler, used to select which pods // will be processed by this scheduler, based on pod's annotation with // key 'scheduler.alpha.kubernetes.io/name'. - SchedulerName string `json:"schedulerName"` + SchedulerName string // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule // corresponding to every RequiredDuringScheduling affinity rule. // HardPodAffinitySymmetricWeight represents the weight of implicit PreferredDuringScheduling affinity rule, in the range 0-100. - HardPodAffinitySymmetricWeight int `json:"hardPodAffinitySymmetricWeight"` + HardPodAffinitySymmetricWeight int // Indicate the "all topologies" set for empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity. - FailureDomains string `json:"failureDomains"` + FailureDomains string // leaderElection defines the configuration of leader election client. - LeaderElection LeaderElectionConfiguration `json:"leaderElection"` + LeaderElection LeaderElectionConfiguration } // LeaderElectionConfiguration defines the configuration of leader election @@ -582,199 +582,199 @@ type LeaderElectionConfiguration struct { // leaderElect enables a leader election client to gain leadership // before executing the main loop. Enable this when running replicated // components for high availability. - LeaderElect bool `json:"leaderElect"` + LeaderElect bool // leaseDuration is the duration that non-leader candidates will wait // after observing a leadership renewal until attempting to acquire // leadership of a led but unrenewed leader slot. This is effectively the // maximum duration that a leader can be stopped before it is replaced // by another candidate. This is only applicable if leader election is // enabled. - LeaseDuration metav1.Duration `json:"leaseDuration"` + LeaseDuration metav1.Duration // renewDeadline is the interval between attempts by the acting master to // renew a leadership slot before it stops leading. This must be less // than or equal to the lease duration. This is only applicable if leader // election is enabled. - RenewDeadline metav1.Duration `json:"renewDeadline"` + RenewDeadline metav1.Duration // retryPeriod is the duration the clients should wait between attempting // acquisition and renewal of a leadership. This is only applicable if // leader election is enabled. - RetryPeriod metav1.Duration `json:"retryPeriod"` + RetryPeriod metav1.Duration } type KubeControllerManagerConfiguration struct { metav1.TypeMeta // port is the port that the controller-manager's http service runs on. - Port int32 `json:"port"` + Port int32 // address is the IP address to serve on (set to 0.0.0.0 for all interfaces). - Address string `json:"address"` + Address string // useServiceAccountCredentials indicates whether controllers should be run with // individual service account credentials. - UseServiceAccountCredentials bool `json:"useServiceAccountCredentials"` + UseServiceAccountCredentials bool // cloudProvider is the provider for cloud services. - CloudProvider string `json:"cloudProvider"` + CloudProvider string // cloudConfigFile is the path to the cloud provider configuration file. - CloudConfigFile string `json:"cloudConfigFile"` + CloudConfigFile string // concurrentEndpointSyncs is the number of endpoint syncing operations // that will be done concurrently. Larger number = faster endpoint updating, // but more CPU (and network) load. - ConcurrentEndpointSyncs int32 `json:"concurrentEndpointSyncs"` + ConcurrentEndpointSyncs int32 // concurrentRSSyncs is the number of replica sets that are allowed to sync // concurrently. Larger number = more responsive replica management, but more // CPU (and network) load. - ConcurrentRSSyncs int32 `json:"concurrentRSSyncs"` + ConcurrentRSSyncs int32 // concurrentRCSyncs is the number of replication controllers that are // allowed to sync concurrently. Larger number = more responsive replica // management, but more CPU (and network) load. - ConcurrentRCSyncs int32 `json:"concurrentRCSyncs"` + ConcurrentRCSyncs int32 // concurrentServiceSyncs is the number of services that are // allowed to sync concurrently. Larger number = more responsive service // management, but more CPU (and network) load. - ConcurrentServiceSyncs int32 `json:"concurrentServiceSyncs"` + ConcurrentServiceSyncs int32 // concurrentResourceQuotaSyncs is the number of resource quotas that are // allowed to sync concurrently. Larger number = more responsive quota // management, but more CPU (and network) load. - ConcurrentResourceQuotaSyncs int32 `json:"concurrentResourceQuotaSyncs"` + ConcurrentResourceQuotaSyncs int32 // concurrentDeploymentSyncs is the number of deployment objects that are // allowed to sync concurrently. Larger number = more responsive deployments, // but more CPU (and network) load. - ConcurrentDeploymentSyncs int32 `json:"concurrentDeploymentSyncs"` + ConcurrentDeploymentSyncs int32 // concurrentDaemonSetSyncs is the number of daemonset objects that are // allowed to sync concurrently. Larger number = more responsive daemonset, // but more CPU (and network) load. - ConcurrentDaemonSetSyncs int32 `json:"concurrentDaemonSetSyncs"` + ConcurrentDaemonSetSyncs int32 // concurrentJobSyncs is the number of job objects that are // allowed to sync concurrently. Larger number = more responsive jobs, // but more CPU (and network) load. - ConcurrentJobSyncs int32 `json:"concurrentJobSyncs"` + ConcurrentJobSyncs int32 // concurrentNamespaceSyncs is the number of namespace objects that are // allowed to sync concurrently. - ConcurrentNamespaceSyncs int32 `json:"concurrentNamespaceSyncs"` + ConcurrentNamespaceSyncs int32 // concurrentSATokenSyncs is the number of service account token syncing operations // that will be done concurrently. - ConcurrentSATokenSyncs int32 `json:"concurrentSATokenSyncs"` + ConcurrentSATokenSyncs int32 // lookupCacheSizeForRC is the size of lookup cache for replication controllers. // Larger number = more responsive replica management, but more MEM load. - LookupCacheSizeForRC int32 `json:"lookupCacheSizeForRC"` + LookupCacheSizeForRC int32 // lookupCacheSizeForRS is the size of lookup cache for replicatsets. // Larger number = more responsive replica management, but more MEM load. - LookupCacheSizeForRS int32 `json:"lookupCacheSizeForRS"` + LookupCacheSizeForRS int32 // lookupCacheSizeForDaemonSet is the size of lookup cache for daemonsets. // Larger number = more responsive daemonset, but more MEM load. - LookupCacheSizeForDaemonSet int32 `json:"lookupCacheSizeForDaemonSet"` + LookupCacheSizeForDaemonSet int32 // serviceSyncPeriod is the period for syncing services with their external // load balancers. - ServiceSyncPeriod metav1.Duration `json:"serviceSyncPeriod"` + ServiceSyncPeriod metav1.Duration // nodeSyncPeriod is the period for syncing nodes from cloudprovider. Longer // periods will result in fewer calls to cloud provider, but may delay addition // of new nodes to cluster. - NodeSyncPeriod metav1.Duration `json:"nodeSyncPeriod"` + NodeSyncPeriod metav1.Duration // routeReconciliationPeriod is the period for reconciling routes created for Nodes by cloud provider.. - RouteReconciliationPeriod metav1.Duration `json:"routeReconciliationPeriod"` + RouteReconciliationPeriod metav1.Duration // resourceQuotaSyncPeriod is the period for syncing quota usage status // in the system. - ResourceQuotaSyncPeriod metav1.Duration `json:"resourceQuotaSyncPeriod"` + ResourceQuotaSyncPeriod metav1.Duration // namespaceSyncPeriod is the period for syncing namespace life-cycle // updates. - NamespaceSyncPeriod metav1.Duration `json:"namespaceSyncPeriod"` + NamespaceSyncPeriod metav1.Duration // pvClaimBinderSyncPeriod is the period for syncing persistent volumes // and persistent volume claims. - PVClaimBinderSyncPeriod metav1.Duration `json:"pvClaimBinderSyncPeriod"` + PVClaimBinderSyncPeriod metav1.Duration // minResyncPeriod is the resync period in reflectors; will be random between // minResyncPeriod and 2*minResyncPeriod. - MinResyncPeriod metav1.Duration `json:"minResyncPeriod"` + MinResyncPeriod metav1.Duration // terminatedPodGCThreshold is the number of terminated pods that can exist // before the terminated pod garbage collector starts deleting terminated pods. // If <= 0, the terminated pod garbage collector is disabled. - TerminatedPodGCThreshold int32 `json:"terminatedPodGCThreshold"` + TerminatedPodGCThreshold int32 // horizontalPodAutoscalerSyncPeriod is the period for syncing the number of // pods in horizontal pod autoscaler. - HorizontalPodAutoscalerSyncPeriod metav1.Duration `json:"horizontalPodAutoscalerSyncPeriod"` + HorizontalPodAutoscalerSyncPeriod metav1.Duration // deploymentControllerSyncPeriod is the period for syncing the deployments. - DeploymentControllerSyncPeriod metav1.Duration `json:"deploymentControllerSyncPeriod"` + DeploymentControllerSyncPeriod metav1.Duration // podEvictionTimeout is the grace period for deleting pods on failed nodes. - PodEvictionTimeout metav1.Duration `json:"podEvictionTimeout"` + PodEvictionTimeout metav1.Duration // DEPRECATED: deletingPodsQps is the number of nodes per second on which pods are deleted in // case of node failure. - DeletingPodsQps float32 `json:"deletingPodsQps"` + DeletingPodsQps float32 // DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in // case of node failure. For more details look into RateLimiter. - DeletingPodsBurst int32 `json:"deletingPodsBurst"` + DeletingPodsBurst int32 // nodeMontiorGracePeriod is the amount of time which we allow a running node to be // unresponsive before marking it unhealthy. Must be N times more than kubelet's // nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet // to post node status. - NodeMonitorGracePeriod metav1.Duration `json:"nodeMonitorGracePeriod"` + NodeMonitorGracePeriod metav1.Duration // registerRetryCount is the number of retries for initial node registration. // Retry interval equals node-sync-period. - RegisterRetryCount int32 `json:"registerRetryCount"` + RegisterRetryCount int32 // nodeStartupGracePeriod is the amount of time which we allow starting a node to // be unresponsive before marking it unhealthy. - NodeStartupGracePeriod metav1.Duration `json:"nodeStartupGracePeriod"` + NodeStartupGracePeriod metav1.Duration // nodeMonitorPeriod is the period for syncing NodeStatus in NodeController. - NodeMonitorPeriod metav1.Duration `json:"nodeMonitorPeriod"` + NodeMonitorPeriod metav1.Duration // serviceAccountKeyFile is the filename containing a PEM-encoded private RSA key // used to sign service account tokens. - ServiceAccountKeyFile string `json:"serviceAccountKeyFile"` + ServiceAccountKeyFile string // clusterSigningCertFile is the filename containing a PEM-encoded // X509 CA certificate used to issue cluster-scoped certificates - ClusterSigningCertFile string `json:"clusterSigningCertFile"` + ClusterSigningCertFile string // clusterSigningCertFile is the filename containing a PEM-encoded // RSA or ECDSA private key used to issue cluster-scoped certificates - ClusterSigningKeyFile string `json:"clusterSigningKeyFile"` + ClusterSigningKeyFile string // approveAllKubeletCSRs tells the CSR controller to approve all CSRs originating // from the kubelet bootstrapping group automatically. // WARNING: this grants all users with access to the certificates API group // the ability to create credentials for any user that has access to the boostrapping // user's credentials. - ApproveAllKubeletCSRsForGroup string `json:"approveAllKubeletCSRsForGroup"` + ApproveAllKubeletCSRsForGroup string // enableProfiling enables profiling via web interface host:port/debug/pprof/ - EnableProfiling bool `json:"enableProfiling"` + EnableProfiling bool // clusterName is the instance prefix for the cluster. - ClusterName string `json:"clusterName"` + ClusterName string // clusterCIDR is CIDR Range for Pods in cluster. - ClusterCIDR string `json:"clusterCIDR"` + ClusterCIDR string // serviceCIDR is CIDR Range for Services in cluster. - ServiceCIDR string `json:"serviceCIDR"` + ServiceCIDR string // NodeCIDRMaskSize is the mask size for node cidr in cluster. - NodeCIDRMaskSize int32 `json:"nodeCIDRMaskSize"` + NodeCIDRMaskSize int32 // allocateNodeCIDRs enables CIDRs for Pods to be allocated and, if // ConfigureCloudRoutes is true, to be set on the cloud provider. - AllocateNodeCIDRs bool `json:"allocateNodeCIDRs"` + AllocateNodeCIDRs bool // configureCloudRoutes enables CIDRs allocated with allocateNodeCIDRs // to be configured on the cloud provider. - ConfigureCloudRoutes bool `json:"configureCloudRoutes"` + ConfigureCloudRoutes bool // rootCAFile is the root certificate authority will be included in service // account's token secret. This must be a valid PEM-encoded CA bundle. - RootCAFile string `json:"rootCAFile"` + RootCAFile string // contentType is contentType of requests sent to apiserver. - ContentType string `json:"contentType"` + ContentType string // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver. - KubeAPIQPS float32 `json:"kubeAPIQPS"` + KubeAPIQPS float32 // kubeAPIBurst is the burst to use while talking with kubernetes apiserver. - KubeAPIBurst int32 `json:"kubeAPIBurst"` + KubeAPIBurst int32 // leaderElection defines the configuration of leader election client. - LeaderElection LeaderElectionConfiguration `json:"leaderElection"` + LeaderElection LeaderElectionConfiguration // volumeConfiguration holds configuration for volume related features. - VolumeConfiguration VolumeConfiguration `json:"volumeConfiguration"` + VolumeConfiguration VolumeConfiguration // How long to wait between starting controller managers - ControllerStartInterval metav1.Duration `json:"controllerStartInterval"` + ControllerStartInterval metav1.Duration // enables the generic garbage collector. MUST be synced with the // corresponding flag of the kube-apiserver. WARNING: the generic garbage // collector is an alpha feature. - EnableGarbageCollector bool `json:"enableGarbageCollector"` + EnableGarbageCollector bool // concurrentGCSyncs is the number of garbage collector workers that are // allowed to sync concurrently. - ConcurrentGCSyncs int32 `json:"concurrentGCSyncs"` + ConcurrentGCSyncs int32 // nodeEvictionRate is the number of nodes per second on which pods are deleted in case of node failure when a zone is healthy - NodeEvictionRate float32 `json:"nodeEvictionRate"` + NodeEvictionRate float32 // secondaryNodeEvictionRate is the number of nodes per second on which pods are deleted in case of node failure when a zone is unhealty - SecondaryNodeEvictionRate float32 `json:"secondaryNodeEvictionRate"` + SecondaryNodeEvictionRate float32 // secondaryNodeEvictionRate is implicitly overridden to 0 for clusters smaller than or equal to largeClusterSizeThreshold - LargeClusterSizeThreshold int32 `json:"largeClusterSizeThreshold"` + LargeClusterSizeThreshold int32 // Zone is treated as unhealthy in nodeEvictionRate and secondaryNodeEvictionRate when at least // unhealthyZoneThreshold (no less than 3) of Nodes in the zone are NotReady - UnhealthyZoneThreshold float32 `json:"unhealthyZoneThreshold"` + UnhealthyZoneThreshold float32 } // VolumeConfiguration contains *all* enumerated flags meant to configure all volume @@ -787,40 +787,40 @@ type VolumeConfiguration struct { // cloud provider. This allows testing and development of provisioning features. HostPath // provisioning is not supported in any way, won't work in a multi-node cluster, and // should not be used for anything other than testing or development. - EnableHostPathProvisioning bool `json:"enableHostPathProvisioning"` + EnableHostPathProvisioning bool // enableDynamicProvisioning enables the provisioning of volumes when running within an environment // that supports dynamic provisioning. Defaults to true. - EnableDynamicProvisioning bool `json:"enableDynamicProvisioning"` + EnableDynamicProvisioning bool // persistentVolumeRecyclerConfiguration holds configuration for persistent volume plugins. - PersistentVolumeRecyclerConfiguration PersistentVolumeRecyclerConfiguration `json:"persitentVolumeRecyclerConfiguration"` + PersistentVolumeRecyclerConfiguration PersistentVolumeRecyclerConfiguration // volumePluginDir is the full path of the directory in which the flex // volume plugin should search for additional third party volume plugins - FlexVolumePluginDir string `json:"flexVolumePluginDir"` + FlexVolumePluginDir string } type PersistentVolumeRecyclerConfiguration struct { // maximumRetry is number of retries the PV recycler will execute on failure to recycle // PV. - MaximumRetry int32 `json:"maximumRetry"` + MaximumRetry int32 // minimumTimeoutNFS is the minimum ActiveDeadlineSeconds to use for an NFS Recycler // pod. - MinimumTimeoutNFS int32 `json:"minimumTimeoutNFS"` + MinimumTimeoutNFS int32 // podTemplateFilePathNFS is the file path to a pod definition used as a template for // NFS persistent volume recycling - PodTemplateFilePathNFS string `json:"podTemplateFilePathNFS"` + PodTemplateFilePathNFS string // incrementTimeoutNFS is the increment of time added per Gi to ActiveDeadlineSeconds // for an NFS scrubber pod. - IncrementTimeoutNFS int32 `json:"incrementTimeoutNFS"` + IncrementTimeoutNFS int32 // podTemplateFilePathHostPath is the file path to a pod definition used as a template for // HostPath persistent volume recycling. This is for development and testing only and // will not work in a multi-node cluster. - PodTemplateFilePathHostPath string `json:"podTemplateFilePathHostPath"` + PodTemplateFilePathHostPath string // minimumTimeoutHostPath is the minimum ActiveDeadlineSeconds to use for a HostPath // Recycler pod. This is for development and testing only and will not work in a multi-node // cluster. - MinimumTimeoutHostPath int32 `json:"minimumTimeoutHostPath"` + MinimumTimeoutHostPath int32 // incrementTimeoutHostPath is the increment of time added per Gi to ActiveDeadlineSeconds // for a HostPath scrubber pod. This is for development and testing only and will not work // in a multi-node cluster. - IncrementTimeoutHostPath int32 `json:"incrementTimeoutHostPath"` + IncrementTimeoutHostPath int32 } diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/doc.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/doc.go index 6b51a43e8b9..2bbb71d0571 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/doc.go @@ -15,6 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true package extensions diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/register.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/register.go index dbc3ce8fb4c..faf14a52110 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/register.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/register.go @@ -19,7 +19,6 @@ package extensions import ( "k8s.io/client-go/pkg/api" "k8s.io/client-go/pkg/apis/autoscaling" - "k8s.io/client-go/pkg/apis/batch" metav1 "k8s.io/client-go/pkg/apis/meta/v1" "k8s.io/client-go/pkg/runtime" "k8s.io/client-go/pkg/runtime/schema" @@ -55,9 +54,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DeploymentRollback{}, &autoscaling.HorizontalPodAutoscaler{}, &autoscaling.HorizontalPodAutoscalerList{}, - &batch.Job{}, - &batch.JobList{}, - &batch.JobTemplate{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/types.generated.go deleted file mode 100644 index d7ddbeefa8e..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/types.generated.go +++ /dev/null @@ -1,19454 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package extensions - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg4_resource "k8s.io/client-go/pkg/api/resource" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - pkg5_intstr "k8s.io/client-go/pkg/util/intstr" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg4_resource.Quantity - var v2 pkg1_v1.LabelSelector - var v3 pkg3_types.UID - var v4 pkg5_intstr.IntOrString - var v5 time.Time - _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 - } -} - -func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Replicas != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym6 := z.DecBinary() - _ = yym6 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct7 := r.ContainerType() - if yyct7 == codecSelferValueTypeMap1234 { - yyl7 := r.ReadMapStart() - if yyl7 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl7, d) - } - } else if yyct7 == codecSelferValueTypeArray1234 { - yyl7 := r.ReadArrayStart() - if yyl7 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl7, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys8Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys8Slc - var yyhl8 bool = l >= 0 - for yyj8 := 0; ; yyj8++ { - if yyhl8 { - if yyj8 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys8Slc = r.DecodeBytes(yys8Slc, true, true) - yys8 := string(yys8Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys8 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys8) - } // end switch yys8 - } // end for yyj8 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep13 := !z.EncBinary() - yy2arr13 := z.EncBasicHandle().StructToArray - var yyq13 [2]bool - _, _, _ = yysep13, yyq13, yy2arr13 - const yyr13 bool = false - yyq13[1] = x.Selector != nil - var yynn13 int - if yyr13 || yy2arr13 { - r.EncodeArrayStart(2) - } else { - yynn13 = 1 - for _, b := range yyq13 { - if b { - yynn13++ - } - } - r.EncodeMapStart(yynn13) - yynn13 = 0 - } - if yyr13 || yy2arr13 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr13 || yy2arr13 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq13[1] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym18 := z.EncBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq13[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr13 || yy2arr13 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym20 := z.DecBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct21 := r.ContainerType() - if yyct21 == codecSelferValueTypeMap1234 { - yyl21 := r.ReadMapStart() - if yyl21 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl21, d) - } - } else if yyct21 == codecSelferValueTypeArray1234 { - yyl21 := r.ReadArrayStart() - if yyl21 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl21, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys22Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys22Slc - var yyhl22 bool = l >= 0 - for yyj22 := 0; ; yyj22++ { - if yyhl22 { - if yyj22 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys22Slc = r.DecodeBytes(yys22Slc, true, true) - yys22 := string(yys22Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys22 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym25 := z.DecBinary() - _ = yym25 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys22) - } // end switch yys22 - } // end for yyj22 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj26 int - var yyb26 bool - var yyhl26 bool = l >= 0 - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym29 := z.DecBinary() - _ = yym29 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym30 := z.EncBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep31 := !z.EncBinary() - yy2arr31 := z.EncBasicHandle().StructToArray - var yyq31 [5]bool - _, _, _ = yysep31, yyq31, yy2arr31 - const yyr31 bool = false - yyq31[0] = x.Kind != "" - yyq31[1] = x.APIVersion != "" - yyq31[2] = true - yyq31[3] = true - yyq31[4] = true - var yynn31 int - if yyr31 || yy2arr31 { - r.EncodeArrayStart(5) - } else { - yynn31 = 0 - for _, b := range yyq31 { - if b { - yynn31++ - } - } - r.EncodeMapStart(yynn31) - yynn31 = 0 - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq31[0] { - yym33 := z.EncBinary() - _ = yym33 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq31[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq31[1] { - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq31[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq31[2] { - yy39 := &x.ObjectMeta - yy39.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq31[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy40 := &x.ObjectMeta - yy40.CodecEncodeSelf(e) - } - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq31[3] { - yy42 := &x.Spec - yy42.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq31[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy43 := &x.Spec - yy43.CodecEncodeSelf(e) - } - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq31[4] { - yy45 := &x.Status - yy45.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq31[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy46 := &x.Status - yy46.CodecEncodeSelf(e) - } - } - if yyr31 || yy2arr31 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym47 := z.DecBinary() - _ = yym47 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct48 := r.ContainerType() - if yyct48 == codecSelferValueTypeMap1234 { - yyl48 := r.ReadMapStart() - if yyl48 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl48, d) - } - } else if yyct48 == codecSelferValueTypeArray1234 { - yyl48 := r.ReadArrayStart() - if yyl48 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl48, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Scale) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys49Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys49Slc - var yyhl49 bool = l >= 0 - for yyj49 := 0; ; yyj49++ { - if yyhl49 { - if yyj49 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys49Slc = r.DecodeBytes(yys49Slc, true, true) - yys49 := string(yys49Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys49 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv52 := &x.ObjectMeta - yyv52.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} - } else { - yyv53 := &x.Spec - yyv53.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} - } else { - yyv54 := &x.Status - yyv54.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys49) - } // end switch yys49 - } // end for yyj49 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj55 int - var yyb55 bool - var yyhl55 bool = l >= 0 - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv58 := &x.ObjectMeta - yyv58.CodecDecodeSelf(d) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ScaleSpec{} - } else { - yyv59 := &x.Spec - yyv59.CodecDecodeSelf(d) - } - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ScaleStatus{} - } else { - yyv60 := &x.Status - yyv60.CodecDecodeSelf(d) - } - for { - yyj55++ - if yyhl55 { - yyb55 = yyj55 > l - } else { - yyb55 = r.CheckBreak() - } - if yyb55 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj55-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym61 := z.EncBinary() - _ = yym61 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep62 := !z.EncBinary() - yy2arr62 := z.EncBasicHandle().StructToArray - var yyq62 [2]bool - _, _, _ = yysep62, yyq62, yy2arr62 - const yyr62 bool = false - yyq62[0] = x.Kind != "" - yyq62[1] = x.APIVersion != "" - var yynn62 int - if yyr62 || yy2arr62 { - r.EncodeArrayStart(2) - } else { - yynn62 = 0 - for _, b := range yyq62 { - if b { - yynn62++ - } - } - r.EncodeMapStart(yynn62) - yynn62 = 0 - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[0] { - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq62[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[1] { - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq62[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerDummy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym69 := z.DecBinary() - _ = yym69 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct70 := r.ContainerType() - if yyct70 == codecSelferValueTypeMap1234 { - yyl70 := r.ReadMapStart() - if yyl70 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl70, d) - } - } else if yyct70 == codecSelferValueTypeArray1234 { - yyl70 := r.ReadArrayStart() - if yyl70 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl70, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys71Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys71Slc - var yyhl71 bool = l >= 0 - for yyj71 := 0; ; yyj71++ { - if yyhl71 { - if yyj71 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys71Slc = r.DecodeBytes(yys71Slc, true, true) - yys71 := string(yys71Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys71 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys71) - } // end switch yys71 - } // end for yyj71 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj74 int - var yyb74 bool - var yyhl74 bool = l >= 0 - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l - } else { - yyb74 = r.CheckBreak() - } - if yyb74 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l - } else { - yyb74 = r.CheckBreak() - } - if yyb74 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - for { - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l - } else { - yyb74 = r.CheckBreak() - } - if yyb74 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj74-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym77 := z.EncBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep78 := !z.EncBinary() - yy2arr78 := z.EncBasicHandle().StructToArray - var yyq78 [2]bool - _, _, _ = yysep78, yyq78, yy2arr78 - const yyr78 bool = false - var yynn78 int - if yyr78 || yy2arr78 { - r.EncodeArrayStart(2) - } else { - yynn78 = 2 - for _, b := range yyq78 { - if b { - yynn78++ - } - } - r.EncodeMapStart(yynn78) - yynn78 = 0 - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym80 := z.EncBinary() - _ = yym80 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym81 := z.EncBinary() - _ = yym81 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy83 := &x.TargetValue - yym84 := z.EncBinary() - _ = yym84 - if false { - } else if z.HasExtensions() && z.EncExt(yy83) { - } else if !yym84 && z.IsJSONHandle() { - z.EncJSONMarshal(yy83) - } else { - z.EncFallback(yy83) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy85 := &x.TargetValue - yym86 := z.EncBinary() - _ = yym86 - if false { - } else if z.HasExtensions() && z.EncExt(yy85) { - } else if !yym86 && z.IsJSONHandle() { - z.EncJSONMarshal(yy85) - } else { - z.EncFallback(yy85) - } - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CustomMetricTarget) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym87 := z.DecBinary() - _ = yym87 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct88 := r.ContainerType() - if yyct88 == codecSelferValueTypeMap1234 { - yyl88 := r.ReadMapStart() - if yyl88 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl88, d) - } - } else if yyct88 == codecSelferValueTypeArray1234 { - yyl88 := r.ReadArrayStart() - if yyl88 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl88, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys89Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys89Slc - var yyhl89 bool = l >= 0 - for yyj89 := 0; ; yyj89++ { - if yyhl89 { - if yyj89 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys89Slc = r.DecodeBytes(yys89Slc, true, true) - yys89 := string(yys89Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys89 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "value": - if r.TryDecodeAsNil() { - x.TargetValue = pkg4_resource.Quantity{} - } else { - yyv91 := &x.TargetValue - yym92 := z.DecBinary() - _ = yym92 - if false { - } else if z.HasExtensions() && z.DecExt(yyv91) { - } else if !yym92 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv91) - } else { - z.DecFallback(yyv91, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys89) - } // end switch yys89 - } // end for yyj89 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj93 int - var yyb93 bool - var yyhl93 bool = l >= 0 - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TargetValue = pkg4_resource.Quantity{} - } else { - yyv95 := &x.TargetValue - yym96 := z.DecBinary() - _ = yym96 - if false { - } else if z.HasExtensions() && z.DecExt(yyv95) { - } else if !yym96 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv95) - } else { - z.DecFallback(yyv95, false) - } - } - for { - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj93-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym97 := z.EncBinary() - _ = yym97 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep98 := !z.EncBinary() - yy2arr98 := z.EncBasicHandle().StructToArray - var yyq98 [1]bool - _, _, _ = yysep98, yyq98, yy2arr98 - const yyr98 bool = false - var yynn98 int - if yyr98 || yy2arr98 { - r.EncodeArrayStart(1) - } else { - yynn98 = 1 - for _, b := range yyq98 { - if b { - yynn98++ - } - } - r.EncodeMapStart(yynn98) - yynn98 = 0 - } - if yyr98 || yy2arr98 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym100 := z.EncBinary() - _ = yym100 - if false { - } else { - h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym101 := z.EncBinary() - _ = yym101 - if false { - } else { - h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e) - } - } - } - if yyr98 || yy2arr98 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CustomMetricTargetList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym102 := z.DecBinary() - _ = yym102 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct103 := r.ContainerType() - if yyct103 == codecSelferValueTypeMap1234 { - yyl103 := r.ReadMapStart() - if yyl103 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl103, d) - } - } else if yyct103 == codecSelferValueTypeArray1234 { - yyl103 := r.ReadArrayStart() - if yyl103 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl103, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys104Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys104Slc - var yyhl104 bool = l >= 0 - for yyj104 := 0; ; yyj104++ { - if yyhl104 { - if yyj104 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys104Slc = r.DecodeBytes(yys104Slc, true, true) - yys104 := string(yys104Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys104 { - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv105 := &x.Items - yym106 := z.DecBinary() - _ = yym106 - if false { - } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv105), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys104) - } // end switch yys104 - } // end for yyj104 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj107 int - var yyb107 bool - var yyhl107 bool = l >= 0 - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv108 := &x.Items - yym109 := z.DecBinary() - _ = yym109 - if false { - } else { - h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv108), d) - } - } - for { - yyj107++ - if yyhl107 { - yyb107 = yyj107 > l - } else { - yyb107 = r.CheckBreak() - } - if yyb107 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj107-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym110 := z.EncBinary() - _ = yym110 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep111 := !z.EncBinary() - yy2arr111 := z.EncBasicHandle().StructToArray - var yyq111 [2]bool - _, _, _ = yysep111, yyq111, yy2arr111 - const yyr111 bool = false - var yynn111 int - if yyr111 || yy2arr111 { - r.EncodeArrayStart(2) - } else { - yynn111 = 2 - for _, b := range yyq111 { - if b { - yynn111++ - } - } - r.EncodeMapStart(yynn111) - yynn111 = 0 - } - if yyr111 || yy2arr111 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym113 := z.EncBinary() - _ = yym113 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym114 := z.EncBinary() - _ = yym114 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr111 || yy2arr111 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy116 := &x.CurrentValue - yym117 := z.EncBinary() - _ = yym117 - if false { - } else if z.HasExtensions() && z.EncExt(yy116) { - } else if !yym117 && z.IsJSONHandle() { - z.EncJSONMarshal(yy116) - } else { - z.EncFallback(yy116) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("value")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy118 := &x.CurrentValue - yym119 := z.EncBinary() - _ = yym119 - if false { - } else if z.HasExtensions() && z.EncExt(yy118) { - } else if !yym119 && z.IsJSONHandle() { - z.EncJSONMarshal(yy118) - } else { - z.EncFallback(yy118) - } - } - if yyr111 || yy2arr111 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CustomMetricCurrentStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym120 := z.DecBinary() - _ = yym120 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct121 := r.ContainerType() - if yyct121 == codecSelferValueTypeMap1234 { - yyl121 := r.ReadMapStart() - if yyl121 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl121, d) - } - } else if yyct121 == codecSelferValueTypeArray1234 { - yyl121 := r.ReadArrayStart() - if yyl121 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl121, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys122Slc - var yyhl122 bool = l >= 0 - for yyj122 := 0; ; yyj122++ { - if yyhl122 { - if yyj122 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys122Slc = r.DecodeBytes(yys122Slc, true, true) - yys122 := string(yys122Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys122 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "value": - if r.TryDecodeAsNil() { - x.CurrentValue = pkg4_resource.Quantity{} - } else { - yyv124 := &x.CurrentValue - yym125 := z.DecBinary() - _ = yym125 - if false { - } else if z.HasExtensions() && z.DecExt(yyv124) { - } else if !yym125 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv124) - } else { - z.DecFallback(yyv124, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys122) - } // end switch yys122 - } // end for yyj122 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj126 int - var yyb126 bool - var yyhl126 bool = l >= 0 - yyj126++ - if yyhl126 { - yyb126 = yyj126 > l - } else { - yyb126 = r.CheckBreak() - } - if yyb126 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj126++ - if yyhl126 { - yyb126 = yyj126 > l - } else { - yyb126 = r.CheckBreak() - } - if yyb126 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CurrentValue = pkg4_resource.Quantity{} - } else { - yyv128 := &x.CurrentValue - yym129 := z.DecBinary() - _ = yym129 - if false { - } else if z.HasExtensions() && z.DecExt(yyv128) { - } else if !yym129 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv128) - } else { - z.DecFallback(yyv128, false) - } - } - for { - yyj126++ - if yyhl126 { - yyb126 = yyj126 > l - } else { - yyb126 = r.CheckBreak() - } - if yyb126 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj126-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym130 := z.EncBinary() - _ = yym130 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep131 := !z.EncBinary() - yy2arr131 := z.EncBasicHandle().StructToArray - var yyq131 [1]bool - _, _, _ = yysep131, yyq131, yy2arr131 - const yyr131 bool = false - var yynn131 int - if yyr131 || yy2arr131 { - r.EncodeArrayStart(1) - } else { - yynn131 = 1 - for _, b := range yyq131 { - if b { - yynn131++ - } - } - r.EncodeMapStart(yynn131) - yynn131 = 0 - } - if yyr131 || yy2arr131 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym133 := z.EncBinary() - _ = yym133 - if false { - } else { - h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym134 := z.EncBinary() - _ = yym134 - if false { - } else { - h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e) - } - } - } - if yyr131 || yy2arr131 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *CustomMetricCurrentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym135 := z.DecBinary() - _ = yym135 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct136 := r.ContainerType() - if yyct136 == codecSelferValueTypeMap1234 { - yyl136 := r.ReadMapStart() - if yyl136 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl136, d) - } - } else if yyct136 == codecSelferValueTypeArray1234 { - yyl136 := r.ReadArrayStart() - if yyl136 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl136, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys137Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys137Slc - var yyhl137 bool = l >= 0 - for yyj137 := 0; ; yyj137++ { - if yyhl137 { - if yyj137 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys137Slc = r.DecodeBytes(yys137Slc, true, true) - yys137 := string(yys137Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys137 { - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv138 := &x.Items - yym139 := z.DecBinary() - _ = yym139 - if false { - } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv138), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys137) - } // end switch yys137 - } // end for yyj137 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj140 int - var yyb140 bool - var yyhl140 bool = l >= 0 - yyj140++ - if yyhl140 { - yyb140 = yyj140 > l - } else { - yyb140 = r.CheckBreak() - } - if yyb140 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv141 := &x.Items - yym142 := z.DecBinary() - _ = yym142 - if false { - } else { - h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv141), d) - } - } - for { - yyj140++ - if yyhl140 { - yyb140 = yyj140 > l - } else { - yyb140 = r.CheckBreak() - } - if yyb140 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj140-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ThirdPartyResource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym143 := z.EncBinary() - _ = yym143 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep144 := !z.EncBinary() - yy2arr144 := z.EncBasicHandle().StructToArray - var yyq144 [5]bool - _, _, _ = yysep144, yyq144, yy2arr144 - const yyr144 bool = false - yyq144[0] = x.Kind != "" - yyq144[1] = x.APIVersion != "" - yyq144[2] = true - yyq144[3] = x.Description != "" - yyq144[4] = len(x.Versions) != 0 - var yynn144 int - if yyr144 || yy2arr144 { - r.EncodeArrayStart(5) - } else { - yynn144 = 0 - for _, b := range yyq144 { - if b { - yynn144++ - } - } - r.EncodeMapStart(yynn144) - yynn144 = 0 - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq144[0] { - yym146 := z.EncBinary() - _ = yym146 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq144[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym147 := z.EncBinary() - _ = yym147 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq144[1] { - yym149 := z.EncBinary() - _ = yym149 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq144[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym150 := z.EncBinary() - _ = yym150 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq144[2] { - yy152 := &x.ObjectMeta - yy152.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq144[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy153 := &x.ObjectMeta - yy153.CodecEncodeSelf(e) - } - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq144[3] { - yym155 := z.EncBinary() - _ = yym155 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq144[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("description")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym156 := z.EncBinary() - _ = yym156 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Description)) - } - } - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq144[4] { - if x.Versions == nil { - r.EncodeNil() - } else { - yym158 := z.EncBinary() - _ = yym158 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq144[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("versions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Versions == nil { - r.EncodeNil() - } else { - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - h.encSliceAPIVersion(([]APIVersion)(x.Versions), e) - } - } - } - } - if yyr144 || yy2arr144 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ThirdPartyResource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym160 := z.DecBinary() - _ = yym160 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct161 := r.ContainerType() - if yyct161 == codecSelferValueTypeMap1234 { - yyl161 := r.ReadMapStart() - if yyl161 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl161, d) - } - } else if yyct161 == codecSelferValueTypeArray1234 { - yyl161 := r.ReadArrayStart() - if yyl161 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl161, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys162Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys162Slc - var yyhl162 bool = l >= 0 - for yyj162 := 0; ; yyj162++ { - if yyhl162 { - if yyj162 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys162Slc = r.DecodeBytes(yys162Slc, true, true) - yys162 := string(yys162Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys162 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv165 := &x.ObjectMeta - yyv165.CodecDecodeSelf(d) - } - case "description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - x.Description = string(r.DecodeString()) - } - case "versions": - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv167 := &x.Versions - yym168 := z.DecBinary() - _ = yym168 - if false { - } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv167), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys162) - } // end switch yys162 - } // end for yyj162 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ThirdPartyResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj169 int - var yyb169 bool - var yyhl169 bool = l >= 0 - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv172 := &x.ObjectMeta - yyv172.CodecDecodeSelf(d) - } - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - x.Description = string(r.DecodeString()) - } - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv174 := &x.Versions - yym175 := z.DecBinary() - _ = yym175 - if false { - } else { - h.decSliceAPIVersion((*[]APIVersion)(yyv174), d) - } - } - for { - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj169-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ThirdPartyResourceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym176 := z.EncBinary() - _ = yym176 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep177 := !z.EncBinary() - yy2arr177 := z.EncBasicHandle().StructToArray - var yyq177 [4]bool - _, _, _ = yysep177, yyq177, yy2arr177 - const yyr177 bool = false - yyq177[0] = x.Kind != "" - yyq177[1] = x.APIVersion != "" - yyq177[2] = true - var yynn177 int - if yyr177 || yy2arr177 { - r.EncodeArrayStart(4) - } else { - yynn177 = 1 - for _, b := range yyq177 { - if b { - yynn177++ - } - } - r.EncodeMapStart(yynn177) - yynn177 = 0 - } - if yyr177 || yy2arr177 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq177[0] { - yym179 := z.EncBinary() - _ = yym179 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq177[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym180 := z.EncBinary() - _ = yym180 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr177 || yy2arr177 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq177[1] { - yym182 := z.EncBinary() - _ = yym182 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq177[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym183 := z.EncBinary() - _ = yym183 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr177 || yy2arr177 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq177[2] { - yy185 := &x.ListMeta - yym186 := z.EncBinary() - _ = yym186 - if false { - } else if z.HasExtensions() && z.EncExt(yy185) { - } else { - z.EncFallback(yy185) - } - } else { - r.EncodeNil() - } - } else { - if yyq177[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy187 := &x.ListMeta - yym188 := z.EncBinary() - _ = yym188 - if false { - } else if z.HasExtensions() && z.EncExt(yy187) { - } else { - z.EncFallback(yy187) - } - } - } - if yyr177 || yy2arr177 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym190 := z.EncBinary() - _ = yym190 - if false { - } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym191 := z.EncBinary() - _ = yym191 - if false { - } else { - h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e) - } - } - } - if yyr177 || yy2arr177 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ThirdPartyResourceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym192 := z.DecBinary() - _ = yym192 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct193 := r.ContainerType() - if yyct193 == codecSelferValueTypeMap1234 { - yyl193 := r.ReadMapStart() - if yyl193 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl193, d) - } - } else if yyct193 == codecSelferValueTypeArray1234 { - yyl193 := r.ReadArrayStart() - if yyl193 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl193, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys194Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys194Slc - var yyhl194 bool = l >= 0 - for yyj194 := 0; ; yyj194++ { - if yyhl194 { - if yyj194 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys194Slc = r.DecodeBytes(yys194Slc, true, true) - yys194 := string(yys194Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys194 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv197 := &x.ListMeta - yym198 := z.DecBinary() - _ = yym198 - if false { - } else if z.HasExtensions() && z.DecExt(yyv197) { - } else { - z.DecFallback(yyv197, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv199 := &x.Items - yym200 := z.DecBinary() - _ = yym200 - if false { - } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv199), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys194) - } // end switch yys194 - } // end for yyj194 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ThirdPartyResourceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj201 int - var yyb201 bool - var yyhl201 bool = l >= 0 - yyj201++ - if yyhl201 { - yyb201 = yyj201 > l - } else { - yyb201 = r.CheckBreak() - } - if yyb201 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj201++ - if yyhl201 { - yyb201 = yyj201 > l - } else { - yyb201 = r.CheckBreak() - } - if yyb201 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj201++ - if yyhl201 { - yyb201 = yyj201 > l - } else { - yyb201 = r.CheckBreak() - } - if yyb201 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv204 := &x.ListMeta - yym205 := z.DecBinary() - _ = yym205 - if false { - } else if z.HasExtensions() && z.DecExt(yyv204) { - } else { - z.DecFallback(yyv204, false) - } - } - yyj201++ - if yyhl201 { - yyb201 = yyj201 > l - } else { - yyb201 = r.CheckBreak() - } - if yyb201 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv206 := &x.Items - yym207 := z.DecBinary() - _ = yym207 - if false { - } else { - h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv206), d) - } - } - for { - yyj201++ - if yyhl201 { - yyb201 = yyj201 > l - } else { - yyb201 = r.CheckBreak() - } - if yyb201 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj201-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym208 := z.EncBinary() - _ = yym208 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep209 := !z.EncBinary() - yy2arr209 := z.EncBasicHandle().StructToArray - var yyq209 [1]bool - _, _, _ = yysep209, yyq209, yy2arr209 - const yyr209 bool = false - yyq209[0] = x.Name != "" - var yynn209 int - if yyr209 || yy2arr209 { - r.EncodeArrayStart(1) - } else { - yynn209 = 0 - for _, b := range yyq209 { - if b { - yynn209++ - } - } - r.EncodeMapStart(yynn209) - yynn209 = 0 - } - if yyr209 || yy2arr209 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq209[0] { - yym211 := z.EncBinary() - _ = yym211 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq209[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym212 := z.EncBinary() - _ = yym212 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr209 || yy2arr209 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *APIVersion) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym213 := z.DecBinary() - _ = yym213 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct214 := r.ContainerType() - if yyct214 == codecSelferValueTypeMap1234 { - yyl214 := r.ReadMapStart() - if yyl214 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl214, d) - } - } else if yyct214 == codecSelferValueTypeArray1234 { - yyl214 := r.ReadArrayStart() - if yyl214 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl214, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys215Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys215Slc - var yyhl215 bool = l >= 0 - for yyj215 := 0; ; yyj215++ { - if yyhl215 { - if yyj215 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys215Slc = r.DecodeBytes(yys215Slc, true, true) - yys215 := string(yys215Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys215 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys215) - } // end switch yys215 - } // end for yyj215 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj217 int - var yyb217 bool - var yyhl217 bool = l >= 0 - yyj217++ - if yyhl217 { - yyb217 = yyj217 > l - } else { - yyb217 = r.CheckBreak() - } - if yyb217 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - for { - yyj217++ - if yyhl217 { - yyb217 = yyj217 > l - } else { - yyb217 = r.CheckBreak() - } - if yyb217 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj217-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ThirdPartyResourceData) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym219 := z.EncBinary() - _ = yym219 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep220 := !z.EncBinary() - yy2arr220 := z.EncBasicHandle().StructToArray - var yyq220 [4]bool - _, _, _ = yysep220, yyq220, yy2arr220 - const yyr220 bool = false - yyq220[0] = x.Kind != "" - yyq220[1] = x.APIVersion != "" - yyq220[2] = true - yyq220[3] = len(x.Data) != 0 - var yynn220 int - if yyr220 || yy2arr220 { - r.EncodeArrayStart(4) - } else { - yynn220 = 0 - for _, b := range yyq220 { - if b { - yynn220++ - } - } - r.EncodeMapStart(yynn220) - yynn220 = 0 - } - if yyr220 || yy2arr220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq220[0] { - yym222 := z.EncBinary() - _ = yym222 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq220[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym223 := z.EncBinary() - _ = yym223 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr220 || yy2arr220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq220[1] { - yym225 := z.EncBinary() - _ = yym225 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq220[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym226 := z.EncBinary() - _ = yym226 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr220 || yy2arr220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq220[2] { - yy228 := &x.ObjectMeta - yy228.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq220[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy229 := &x.ObjectMeta - yy229.CodecEncodeSelf(e) - } - } - if yyr220 || yy2arr220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq220[3] { - if x.Data == nil { - r.EncodeNil() - } else { - yym231 := z.EncBinary() - _ = yym231 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq220[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("data")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Data == nil { - r.EncodeNil() - } else { - yym232 := z.EncBinary() - _ = yym232 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) - } - } - } - } - if yyr220 || yy2arr220 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ThirdPartyResourceData) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym233 := z.DecBinary() - _ = yym233 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct234 := r.ContainerType() - if yyct234 == codecSelferValueTypeMap1234 { - yyl234 := r.ReadMapStart() - if yyl234 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl234, d) - } - } else if yyct234 == codecSelferValueTypeArray1234 { - yyl234 := r.ReadArrayStart() - if yyl234 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl234, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys235Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys235Slc - var yyhl235 bool = l >= 0 - for yyj235 := 0; ; yyj235++ { - if yyhl235 { - if yyj235 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys235Slc = r.DecodeBytes(yys235Slc, true, true) - yys235 := string(yys235Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys235 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv238 := &x.ObjectMeta - yyv238.CodecDecodeSelf(d) - } - case "data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv239 := &x.Data - yym240 := z.DecBinary() - _ = yym240 - if false { - } else { - *yyv239 = r.DecodeBytes(*(*[]byte)(yyv239), false, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys235) - } // end switch yys235 - } // end for yyj235 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ThirdPartyResourceData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj241 int - var yyb241 bool - var yyhl241 bool = l >= 0 - yyj241++ - if yyhl241 { - yyb241 = yyj241 > l - } else { - yyb241 = r.CheckBreak() - } - if yyb241 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj241++ - if yyhl241 { - yyb241 = yyj241 > l - } else { - yyb241 = r.CheckBreak() - } - if yyb241 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj241++ - if yyhl241 { - yyb241 = yyj241 > l - } else { - yyb241 = r.CheckBreak() - } - if yyb241 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv244 := &x.ObjectMeta - yyv244.CodecDecodeSelf(d) - } - yyj241++ - if yyhl241 { - yyb241 = yyj241 > l - } else { - yyb241 = r.CheckBreak() - } - if yyb241 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Data = nil - } else { - yyv245 := &x.Data - yym246 := z.DecBinary() - _ = yym246 - if false { - } else { - *yyv245 = r.DecodeBytes(*(*[]byte)(yyv245), false, false) - } - } - for { - yyj241++ - if yyhl241 { - yyb241 = yyj241 > l - } else { - yyb241 = r.CheckBreak() - } - if yyb241 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj241-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym247 := z.EncBinary() - _ = yym247 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep248 := !z.EncBinary() - yy2arr248 := z.EncBasicHandle().StructToArray - var yyq248 [5]bool - _, _, _ = yysep248, yyq248, yy2arr248 - const yyr248 bool = false - yyq248[0] = x.Kind != "" - yyq248[1] = x.APIVersion != "" - yyq248[2] = true - yyq248[3] = true - yyq248[4] = true - var yynn248 int - if yyr248 || yy2arr248 { - r.EncodeArrayStart(5) - } else { - yynn248 = 0 - for _, b := range yyq248 { - if b { - yynn248++ - } - } - r.EncodeMapStart(yynn248) - yynn248 = 0 - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq248[0] { - yym250 := z.EncBinary() - _ = yym250 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq248[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym251 := z.EncBinary() - _ = yym251 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq248[1] { - yym253 := z.EncBinary() - _ = yym253 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq248[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym254 := z.EncBinary() - _ = yym254 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq248[2] { - yy256 := &x.ObjectMeta - yy256.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq248[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy257 := &x.ObjectMeta - yy257.CodecEncodeSelf(e) - } - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq248[3] { - yy259 := &x.Spec - yy259.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq248[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy260 := &x.Spec - yy260.CodecEncodeSelf(e) - } - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq248[4] { - yy262 := &x.Status - yy262.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq248[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy263 := &x.Status - yy263.CodecEncodeSelf(e) - } - } - if yyr248 || yy2arr248 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym264 := z.DecBinary() - _ = yym264 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct265 := r.ContainerType() - if yyct265 == codecSelferValueTypeMap1234 { - yyl265 := r.ReadMapStart() - if yyl265 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl265, d) - } - } else if yyct265 == codecSelferValueTypeArray1234 { - yyl265 := r.ReadArrayStart() - if yyl265 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl265, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys266Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys266Slc - var yyhl266 bool = l >= 0 - for yyj266 := 0; ; yyj266++ { - if yyhl266 { - if yyj266 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys266Slc = r.DecodeBytes(yys266Slc, true, true) - yys266 := string(yys266Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys266 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv269 := &x.ObjectMeta - yyv269.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} - } else { - yyv270 := &x.Spec - yyv270.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} - } else { - yyv271 := &x.Status - yyv271.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys266) - } // end switch yys266 - } // end for yyj266 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj272 int - var yyb272 bool - var yyhl272 bool = l >= 0 - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv275 := &x.ObjectMeta - yyv275.CodecDecodeSelf(d) - } - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = DeploymentSpec{} - } else { - yyv276 := &x.Spec - yyv276.CodecDecodeSelf(d) - } - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = DeploymentStatus{} - } else { - yyv277 := &x.Status - yyv277.CodecDecodeSelf(d) - } - for { - yyj272++ - if yyhl272 { - yyb272 = yyj272 > l - } else { - yyb272 = r.CheckBreak() - } - if yyb272 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj272-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym278 := z.EncBinary() - _ = yym278 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep279 := !z.EncBinary() - yy2arr279 := z.EncBasicHandle().StructToArray - var yyq279 [9]bool - _, _, _ = yysep279, yyq279, yy2arr279 - const yyr279 bool = false - yyq279[0] = x.Replicas != 0 - yyq279[1] = x.Selector != nil - yyq279[3] = true - yyq279[4] = x.MinReadySeconds != 0 - yyq279[5] = x.RevisionHistoryLimit != nil - yyq279[6] = x.Paused != false - yyq279[7] = x.RollbackTo != nil - yyq279[8] = x.ProgressDeadlineSeconds != nil - var yynn279 int - if yyr279 || yy2arr279 { - r.EncodeArrayStart(9) - } else { - yynn279 = 1 - for _, b := range yyq279 { - if b { - yynn279++ - } - } - r.EncodeMapStart(yynn279) - yynn279 = 0 - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[0] { - yym281 := z.EncBinary() - _ = yym281 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq279[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym282 := z.EncBinary() - _ = yym282 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[1] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym284 := z.EncBinary() - _ = yym284 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq279[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym285 := z.EncBinary() - _ = yym285 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy287 := &x.Template - yy287.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy288 := &x.Template - yy288.CodecEncodeSelf(e) - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[3] { - yy290 := &x.Strategy - yy290.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq279[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("strategy")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy291 := &x.Strategy - yy291.CodecEncodeSelf(e) - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[4] { - yym293 := z.EncBinary() - _ = yym293 - if false { - } else { - r.EncodeInt(int64(x.MinReadySeconds)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq279[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym294 := z.EncBinary() - _ = yym294 - if false { - } else { - r.EncodeInt(int64(x.MinReadySeconds)) - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[5] { - if x.RevisionHistoryLimit == nil { - r.EncodeNil() - } else { - yy296 := *x.RevisionHistoryLimit - yym297 := z.EncBinary() - _ = yym297 - if false { - } else { - r.EncodeInt(int64(yy296)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq279[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("revisionHistoryLimit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RevisionHistoryLimit == nil { - r.EncodeNil() - } else { - yy298 := *x.RevisionHistoryLimit - yym299 := z.EncBinary() - _ = yym299 - if false { - } else { - r.EncodeInt(int64(yy298)) - } - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[6] { - yym301 := z.EncBinary() - _ = yym301 - if false { - } else { - r.EncodeBool(bool(x.Paused)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq279[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("paused")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym302 := z.EncBinary() - _ = yym302 - if false { - } else { - r.EncodeBool(bool(x.Paused)) - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq279[7] { - if x.RollbackTo == nil { - r.EncodeNil() - } else { - x.RollbackTo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq279[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RollbackTo == nil { - r.EncodeNil() - } else { - x.RollbackTo.CodecEncodeSelf(e) - } - } - } - if yyr279 || yy2arr279 { - z.EncSendContainerState(codecSelfer_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 { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym309 := z.DecBinary() - _ = yym309 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct310 := r.ContainerType() - if yyct310 == codecSelferValueTypeMap1234 { - yyl310 := r.ReadMapStart() - if yyl310 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl310, d) - } - } else if yyct310 == codecSelferValueTypeArray1234 { - yyl310 := r.ReadArrayStart() - if yyl310 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl310, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys311Slc = r.DecodeBytes(yys311Slc, true, true) - yys311 := string(yys311Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys311 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym314 := z.DecBinary() - _ = yym314 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv315 := &x.Template - yyv315.CodecDecodeSelf(d) - } - case "strategy": - if r.TryDecodeAsNil() { - x.Strategy = DeploymentStrategy{} - } else { - yyv316 := &x.Strategy - yyv316.CodecDecodeSelf(d) - } - case "minReadySeconds": - if r.TryDecodeAsNil() { - x.MinReadySeconds = 0 - } else { - x.MinReadySeconds = int32(r.DecodeInt(32)) - } - case "revisionHistoryLimit": - if r.TryDecodeAsNil() { - if x.RevisionHistoryLimit != nil { - x.RevisionHistoryLimit = nil - } - } else { - if x.RevisionHistoryLimit == nil { - x.RevisionHistoryLimit = new(int32) - } - yym319 := z.DecBinary() - _ = yym319 - if false { - } else { - *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) - } - } - case "paused": - if r.TryDecodeAsNil() { - x.Paused = false - } else { - x.Paused = bool(r.DecodeBool()) - } - case "rollbackTo": - if r.TryDecodeAsNil() { - if x.RollbackTo != nil { - x.RollbackTo = nil - } - } else { - if x.RollbackTo == nil { - x.RollbackTo = new(RollbackConfig) - } - x.RollbackTo.CodecDecodeSelf(d) - } - 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, yys311) - } // end switch yys311 - } // end for yyj311 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj324 int - var yyb324 bool - var yyhl324 bool = l >= 0 - yyj324++ - if yyhl324 { - yyb324 = yyj324 > l - } else { - yyb324 = r.CheckBreak() - } - if yyb324 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - 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.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym327 := z.DecBinary() - _ = yym327 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj324++ - if yyhl324 { - yyb324 = yyj324 > l - } else { - yyb324 = r.CheckBreak() - } - if yyb324 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv328 := &x.Template - yyv328.CodecDecodeSelf(d) - } - yyj324++ - if yyhl324 { - yyb324 = yyj324 > l - } else { - yyb324 = r.CheckBreak() - } - if yyb324 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Strategy = DeploymentStrategy{} - } else { - yyv329 := &x.Strategy - yyv329.CodecDecodeSelf(d) - } - yyj324++ - if yyhl324 { - yyb324 = yyj324 > l - } else { - yyb324 = r.CheckBreak() - } - if yyb324 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinReadySeconds = 0 - } else { - x.MinReadySeconds = int32(r.DecodeInt(32)) - } - 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.RevisionHistoryLimit != nil { - x.RevisionHistoryLimit = nil - } - } else { - if x.RevisionHistoryLimit == nil { - x.RevisionHistoryLimit = new(int32) - } - yym332 := z.DecBinary() - _ = yym332 - if false { - } else { - *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) - } - } - yyj324++ - if yyhl324 { - yyb324 = yyj324 > l - } else { - yyb324 = r.CheckBreak() - } - if yyb324 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Paused = false - } else { - x.Paused = bool(r.DecodeBool()) - } - 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.RollbackTo != nil { - x.RollbackTo = nil - } - } else { - if x.RollbackTo == nil { - x.RollbackTo = new(RollbackConfig) - } - x.RollbackTo.CodecDecodeSelf(d) - } - 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 - } - } 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(yyj324-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym337 := z.EncBinary() - _ = yym337 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn338 = 2 - for _, b := range yyq338 { - if b { - yynn338++ - } - } - r.EncodeMapStart(yynn338) - yynn338 = 0 - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq338[0] { - yym340 := z.EncBinary() - _ = yym340 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq338[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym341 := z.EncBinary() - _ = yym341 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq338[1] { - yym343 := z.EncBinary() - _ = yym343 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq338[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym344 := z.EncBinary() - _ = yym344 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym346 := z.EncBinary() - _ = yym346 - 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) - yym347 := z.EncBinary() - _ = yym347 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq338[3] { - if x.UpdatedAnnotations == nil { - r.EncodeNil() - } else { - yym349 := z.EncBinary() - _ = yym349 - if false { - } else { - z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq338[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.UpdatedAnnotations == nil { - r.EncodeNil() - } else { - yym350 := z.EncBinary() - _ = yym350 - if false { - } else { - z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) - } - } - } - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy352 := &x.RollbackTo - yy352.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy353 := &x.RollbackTo - yy353.CodecEncodeSelf(e) - } - if yyr338 || yy2arr338 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym354 := z.DecBinary() - _ = yym354 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct355 := r.ContainerType() - if yyct355 == codecSelferValueTypeMap1234 { - yyl355 := r.ReadMapStart() - if yyl355 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl355, d) - } - } else if yyct355 == codecSelferValueTypeArray1234 { - yyl355 := r.ReadArrayStart() - if yyl355 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl355, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys356Slc = r.DecodeBytes(yys356Slc, true, true) - yys356 := string(yys356Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys356 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "updatedAnnotations": - if r.TryDecodeAsNil() { - x.UpdatedAnnotations = nil - } else { - yyv360 := &x.UpdatedAnnotations - yym361 := z.DecBinary() - _ = yym361 - if false { - } else { - z.F.DecMapStringStringX(yyv360, false, d) - } - } - case "rollbackTo": - if r.TryDecodeAsNil() { - x.RollbackTo = RollbackConfig{} - } else { - yyv362 := &x.RollbackTo - yyv362.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys356) - } // end switch yys356 - } // end for yyj356 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj363 int - var yyb363 bool - var yyhl363 bool = l >= 0 - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UpdatedAnnotations = nil - } else { - yyv367 := &x.UpdatedAnnotations - yym368 := z.DecBinary() - _ = yym368 - if false { - } else { - z.F.DecMapStringStringX(yyv367, false, d) - } - } - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RollbackTo = RollbackConfig{} - } else { - yyv369 := &x.RollbackTo - yyv369.CodecDecodeSelf(d) - } - for { - yyj363++ - if yyhl363 { - yyb363 = yyj363 > l - } else { - yyb363 = r.CheckBreak() - } - if yyb363 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj363-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym370 := z.EncBinary() - _ = yym370 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn371 = 0 - for _, b := range yyq371 { - if b { - yynn371++ - } - } - r.EncodeMapStart(yynn371) - yynn371 = 0 - } - if yyr371 || yy2arr371 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq371[0] { - yym373 := z.EncBinary() - _ = yym373 - if false { - } else { - r.EncodeInt(int64(x.Revision)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq371[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("revision")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym374 := z.EncBinary() - _ = yym374 - if false { - } else { - r.EncodeInt(int64(x.Revision)) - } - } - } - if yyr371 || yy2arr371 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym375 := z.DecBinary() - _ = yym375 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct376 := r.ContainerType() - if yyct376 == codecSelferValueTypeMap1234 { - yyl376 := r.ReadMapStart() - if yyl376 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl376, d) - } - } else if yyct376 == codecSelferValueTypeArray1234 { - yyl376 := r.ReadArrayStart() - if yyl376 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl376, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys377Slc = r.DecodeBytes(yys377Slc, true, true) - yys377 := string(yys377Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys377 { - case "revision": - if r.TryDecodeAsNil() { - x.Revision = 0 - } else { - x.Revision = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys377) - } // end switch yys377 - } // end for yyj377 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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.Revision = 0 - } else { - x.Revision = int64(r.DecodeInt(64)) - } - 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 *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym381 := z.EncBinary() - _ = yym381 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn382 = 0 - for _, b := range yyq382 { - if b { - yynn382++ - } - } - r.EncodeMapStart(yynn382) - yynn382 = 0 - } - if yyr382 || yy2arr382 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq382[0] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq382[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr382 || yy2arr382 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq382[1] { - if x.RollingUpdate == nil { - r.EncodeNil() - } else { - x.RollingUpdate.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq382[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RollingUpdate == nil { - r.EncodeNil() - } else { - x.RollingUpdate.CodecEncodeSelf(e) - } - } - } - if yyr382 || yy2arr382 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym385 := z.DecBinary() - _ = yym385 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct386 := r.ContainerType() - if yyct386 == codecSelferValueTypeMap1234 { - yyl386 := r.ReadMapStart() - if yyl386 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl386, d) - } - } else if yyct386 == codecSelferValueTypeArray1234 { - yyl386 := r.ReadArrayStart() - if yyl386 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl386, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys387Slc = r.DecodeBytes(yys387Slc, true, true) - yys387 := string(yys387Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys387 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = DeploymentStrategyType(r.DecodeString()) - } - case "rollingUpdate": - if r.TryDecodeAsNil() { - if x.RollingUpdate != nil { - x.RollingUpdate = nil - } - } else { - if x.RollingUpdate == nil { - x.RollingUpdate = new(RollingUpdateDeployment) - } - x.RollingUpdate.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys387) - } // end switch yys387 - } // end for yyj387 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj390 int - var yyb390 bool - var yyhl390 bool = l >= 0 - yyj390++ - if yyhl390 { - yyb390 = yyj390 > l - } else { - yyb390 = r.CheckBreak() - } - if yyb390 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = DeploymentStrategyType(r.DecodeString()) - } - yyj390++ - if yyhl390 { - yyb390 = yyj390 > l - } else { - yyb390 = r.CheckBreak() - } - if yyb390 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RollingUpdate != nil { - x.RollingUpdate = nil - } - } else { - if x.RollingUpdate == nil { - x.RollingUpdate = new(RollingUpdateDeployment) - } - x.RollingUpdate.CodecDecodeSelf(d) - } - for { - yyj390++ - if yyhl390 { - yyb390 = yyj390 > l - } else { - yyb390 = r.CheckBreak() - } - if yyb390 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj390-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym393 := z.EncBinary() - _ = yym393 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym394 := z.DecBinary() - _ = yym394 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym395 := z.EncBinary() - _ = yym395 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn396 = 0 - for _, b := range yyq396 { - if b { - yynn396++ - } - } - r.EncodeMapStart(yynn396) - yynn396 = 0 - } - if yyr396 || yy2arr396 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq396[0] { - yy398 := &x.MaxUnavailable - yym399 := z.EncBinary() - _ = yym399 - if false { - } else if z.HasExtensions() && z.EncExt(yy398) { - } else if !yym399 && z.IsJSONHandle() { - z.EncJSONMarshal(yy398) - } else { - z.EncFallback(yy398) - } - } else { - r.EncodeNil() - } - } else { - if yyq396[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy400 := &x.MaxUnavailable - yym401 := z.EncBinary() - _ = yym401 - if false { - } else if z.HasExtensions() && z.EncExt(yy400) { - } else if !yym401 && z.IsJSONHandle() { - z.EncJSONMarshal(yy400) - } else { - z.EncFallback(yy400) - } - } - } - if yyr396 || yy2arr396 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq396[1] { - yy403 := &x.MaxSurge - yym404 := z.EncBinary() - _ = yym404 - if false { - } else if z.HasExtensions() && z.EncExt(yy403) { - } else if !yym404 && z.IsJSONHandle() { - z.EncJSONMarshal(yy403) - } else { - z.EncFallback(yy403) - } - } else { - r.EncodeNil() - } - } else { - if yyq396[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy405 := &x.MaxSurge - yym406 := z.EncBinary() - _ = yym406 - if false { - } else if z.HasExtensions() && z.EncExt(yy405) { - } else if !yym406 && z.IsJSONHandle() { - z.EncJSONMarshal(yy405) - } else { - z.EncFallback(yy405) - } - } - } - if yyr396 || yy2arr396 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym407 := z.DecBinary() - _ = yym407 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct408 := r.ContainerType() - if yyct408 == codecSelferValueTypeMap1234 { - yyl408 := r.ReadMapStart() - if yyl408 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl408, d) - } - } else if yyct408 == codecSelferValueTypeArray1234 { - yyl408 := r.ReadArrayStart() - if yyl408 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl408, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys409Slc = r.DecodeBytes(yys409Slc, true, true) - yys409 := string(yys409Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys409 { - case "maxUnavailable": - if r.TryDecodeAsNil() { - x.MaxUnavailable = pkg5_intstr.IntOrString{} - } else { - yyv410 := &x.MaxUnavailable - yym411 := z.DecBinary() - _ = yym411 - if false { - } else if z.HasExtensions() && z.DecExt(yyv410) { - } else if !yym411 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv410) - } else { - z.DecFallback(yyv410, false) - } - } - case "maxSurge": - if r.TryDecodeAsNil() { - x.MaxSurge = pkg5_intstr.IntOrString{} - } else { - yyv412 := &x.MaxSurge - yym413 := z.DecBinary() - _ = yym413 - if false { - } else if z.HasExtensions() && z.DecExt(yyv412) { - } else if !yym413 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv412) - } else { - z.DecFallback(yyv412, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys409) - } // end switch yys409 - } // end for yyj409 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj414 int - var yyb414 bool - var yyhl414 bool = l >= 0 - yyj414++ - if yyhl414 { - yyb414 = yyj414 > l - } else { - yyb414 = r.CheckBreak() - } - if yyb414 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxUnavailable = pkg5_intstr.IntOrString{} - } else { - yyv415 := &x.MaxUnavailable - yym416 := z.DecBinary() - _ = yym416 - if false { - } else if z.HasExtensions() && z.DecExt(yyv415) { - } else if !yym416 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv415) - } else { - z.DecFallback(yyv415, false) - } - } - yyj414++ - if yyhl414 { - yyb414 = yyj414 > l - } else { - yyb414 = r.CheckBreak() - } - if yyb414 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxSurge = pkg5_intstr.IntOrString{} - } else { - yyv417 := &x.MaxSurge - yym418 := z.DecBinary() - _ = yym418 - if false { - } else if z.HasExtensions() && z.DecExt(yyv417) { - } else if !yym418 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv417) - } else { - z.DecFallback(yyv417, false) - } - } - for { - yyj414++ - if yyhl414 { - yyb414 = yyj414 > l - } else { - yyb414 = r.CheckBreak() - } - if yyb414 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj414-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym419 := z.EncBinary() - _ = yym419 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn420 = 0 - for _, b := range yyq420 { - if b { - yynn420++ - } - } - r.EncodeMapStart(yynn420) - yynn420 = 0 - } - if yyr420 || yy2arr420 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq420[0] { - yym422 := z.EncBinary() - _ = yym422 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq420[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - 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 yyr420 || yy2arr420 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq420[4] { - yym434 := z.EncBinary() - _ = yym434 - if false { - } else { - r.EncodeInt(int64(x.UnavailableReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq420[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym435 := z.EncBinary() - _ = yym435 - if false { - } else { - r.EncodeInt(int64(x.UnavailableReplicas)) - } - } - } - 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) - } - } - } -} - -func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym439 := z.DecBinary() - _ = yym439 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct440 := r.ContainerType() - if yyct440 == codecSelferValueTypeMap1234 { - yyl440 := r.ReadMapStart() - if yyl440 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl440, d) - } - } else if yyct440 == codecSelferValueTypeArray1234 { - yyl440 := r.ReadArrayStart() - if yyl440 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl440, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys441Slc = r.DecodeBytes(yys441Slc, true, true) - yys441 := string(yys441Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys441 { - case "observedGeneration": - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "updatedReplicas": - if r.TryDecodeAsNil() { - x.UpdatedReplicas = 0 - } else { - x.UpdatedReplicas = int32(r.DecodeInt(32)) - } - case "availableReplicas": - if r.TryDecodeAsNil() { - x.AvailableReplicas = 0 - } else { - x.AvailableReplicas = int32(r.DecodeInt(32)) - } - case "unavailableReplicas": - if r.TryDecodeAsNil() { - x.UnavailableReplicas = 0 - } else { - x.UnavailableReplicas = int32(r.DecodeInt(32)) - } - 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, yys441) - } // end switch yys441 - } // end for yyj441 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj449 int - var yyb449 bool - var yyhl449 bool = l >= 0 - 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.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - 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.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - 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.UpdatedReplicas = 0 - } else { - x.UpdatedReplicas = int32(r.DecodeInt(32)) - } - 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.AvailableReplicas = 0 - } else { - x.AvailableReplicas = int32(r.DecodeInt(32)) - } - 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.UnavailableReplicas = 0 - } else { - x.UnavailableReplicas = int32(r.DecodeInt(32)) - } - 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 { - h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv455), d) - } - } - for { - yyj449++ - if yyhl449 { - yyb449 = yyj449 > l - } else { - yyb449 = r.CheckBreak() - } - if yyb449 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj449-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x DeploymentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym457 := z.EncBinary() - _ = yym457 - 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 - yym458 := z.DecBinary() - _ = yym458 - 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 { - yym459 := z.EncBinary() - _ = yym459 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn460 = 2 - for _, b := range yyq460 { - if b { - yynn460++ - } - } - r.EncodeMapStart(yynn460) - yynn460 = 0 - } - if yyr460 || yy2arr460 { - 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 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 { - z.EncFallback(yy466) - } - } else { - r.EncodeNil() - } - } else { - if yyq460[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - 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 { - z.EncFallback(yy468) - } - } - } - if yyr460 || yy2arr460 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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 { - 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 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) - } - } - } -} - -func (x *DeploymentCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym481 := z.DecBinary() - _ = yym481 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct482 := r.ContainerType() - if yyct482 == codecSelferValueTypeMap1234 { - yyl482 := r.ReadMapStart() - if yyl482 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl482, d) - } - } else if yyct482 == codecSelferValueTypeArray1234 { - yyl482 := r.ReadArrayStart() - if yyl482 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl482, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeploymentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys483Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys483Slc - var yyhl483 bool = l >= 0 - for yyj483 := 0; ; yyj483++ { - if yyhl483 { - if yyj483 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys483Slc = r.DecodeBytes(yys483Slc, true, true) - yys483 := string(yys483Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys483 { - case "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_v1.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_v1.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_v1.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_v1.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_v1.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_v1.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 { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym545 := z.DecBinary() - _ = yym545 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv546 := &x.Template - yyv546.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys543) - } // end switch yys543 - } // end for yyj543 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj547 int - var yyb547 bool - var yyhl547 bool = l >= 0 - yyj547++ - if yyhl547 { - yyb547 = yyj547 > l - } else { - yyb547 = r.CheckBreak() - } - if yyb547 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym549 := z.DecBinary() - _ = yym549 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj547++ - if yyhl547 { - yyb547 = yyj547 > l - } else { - yyb547 = r.CheckBreak() - } - if yyb547 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv550 := &x.Template - yyv550.CodecDecodeSelf(d) - } - for { - yyj547++ - if yyhl547 { - yyb547 = yyj547 > l - } else { - yyb547 = r.CheckBreak() - } - if yyb547 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj547-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym551 := z.EncBinary() - _ = yym551 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn552 = 4 - for _, b := range yyq552 { - if b { - yynn552++ - } - } - r.EncodeMapStart(yynn552) - yynn552 = 0 - } - if yyr552 || yy2arr552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym554 := z.EncBinary() - _ = yym554 - if false { - } else { - r.EncodeInt(int64(x.CurrentNumberScheduled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym555 := z.EncBinary() - _ = yym555 - if false { - } else { - r.EncodeInt(int64(x.CurrentNumberScheduled)) - } - } - if yyr552 || yy2arr552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym557 := z.EncBinary() - _ = yym557 - if false { - } else { - r.EncodeInt(int64(x.NumberMisscheduled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym558 := z.EncBinary() - _ = yym558 - if false { - } else { - r.EncodeInt(int64(x.NumberMisscheduled)) - } - } - if yyr552 || yy2arr552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym560 := z.EncBinary() - _ = yym560 - if false { - } else { - r.EncodeInt(int64(x.DesiredNumberScheduled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym561 := z.EncBinary() - _ = yym561 - if false { - } else { - r.EncodeInt(int64(x.DesiredNumberScheduled)) - } - } - 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) - } - } - } -} - -func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym565 := z.DecBinary() - _ = yym565 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct566 := r.ContainerType() - if yyct566 == codecSelferValueTypeMap1234 { - yyl566 := r.ReadMapStart() - if yyl566 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl566, d) - } - } else if yyct566 == codecSelferValueTypeArray1234 { - yyl566 := r.ReadArrayStart() - if yyl566 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl566, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys567Slc = r.DecodeBytes(yys567Slc, true, true) - yys567 := string(yys567Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys567 { - case "currentNumberScheduled": - if r.TryDecodeAsNil() { - x.CurrentNumberScheduled = 0 - } else { - x.CurrentNumberScheduled = int32(r.DecodeInt(32)) - } - case "numberMisscheduled": - if r.TryDecodeAsNil() { - x.NumberMisscheduled = 0 - } else { - x.NumberMisscheduled = int32(r.DecodeInt(32)) - } - case "desiredNumberScheduled": - if r.TryDecodeAsNil() { - x.DesiredNumberScheduled = 0 - } else { - x.DesiredNumberScheduled = int32(r.DecodeInt(32)) - } - case "numberReady": - if r.TryDecodeAsNil() { - x.NumberReady = 0 - } else { - x.NumberReady = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys567) - } // end switch yys567 - } // end for yyj567 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj572 int - var yyb572 bool - var yyhl572 bool = l >= 0 - 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.CurrentNumberScheduled = 0 - } else { - x.CurrentNumberScheduled = 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.NumberMisscheduled = 0 - } else { - x.NumberMisscheduled = 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.DesiredNumberScheduled = 0 - } 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 { - yyj572++ - if yyhl572 { - yyb572 = yyj572 > l - } else { - yyb572 = r.CheckBreak() - } - if yyb572 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj572-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym577 := z.EncBinary() - _ = yym577 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn578 = 0 - for _, b := range yyq578 { - if b { - yynn578++ - } - } - r.EncodeMapStart(yynn578) - yynn578 = 0 - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq578[0] { - yym580 := z.EncBinary() - _ = yym580 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq578[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym581 := z.EncBinary() - _ = yym581 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq578[1] { - yym583 := z.EncBinary() - _ = yym583 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq578[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym584 := z.EncBinary() - _ = yym584 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq578[2] { - yy586 := &x.ObjectMeta - yy586.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq578[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy587 := &x.ObjectMeta - yy587.CodecEncodeSelf(e) - } - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq578[3] { - yy589 := &x.Spec - yy589.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq578[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy590 := &x.Spec - yy590.CodecEncodeSelf(e) - } - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq578[4] { - yy592 := &x.Status - yy592.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq578[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy593 := &x.Status - yy593.CodecEncodeSelf(e) - } - } - if yyr578 || yy2arr578 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym594 := z.DecBinary() - _ = yym594 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct595 := r.ContainerType() - if yyct595 == codecSelferValueTypeMap1234 { - yyl595 := r.ReadMapStart() - if yyl595 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl595, d) - } - } else if yyct595 == codecSelferValueTypeArray1234 { - yyl595 := r.ReadArrayStart() - if yyl595 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl595, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys596Slc = r.DecodeBytes(yys596Slc, true, true) - yys596 := string(yys596Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys596 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv599 := &x.ObjectMeta - yyv599.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} - } else { - yyv600 := &x.Spec - yyv600.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} - } else { - yyv601 := &x.Status - yyv601.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys596) - } // end switch yys596 - } // end for yyj596 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj602 int - var yyb602 bool - var yyhl602 bool = l >= 0 - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv605 := &x.ObjectMeta - yyv605.CodecDecodeSelf(d) - } - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = DaemonSetSpec{} - } else { - yyv606 := &x.Spec - yyv606.CodecDecodeSelf(d) - } - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = DaemonSetStatus{} - } else { - yyv607 := &x.Status - yyv607.CodecDecodeSelf(d) - } - for { - yyj602++ - if yyhl602 { - yyb602 = yyj602 > l - } else { - yyb602 = r.CheckBreak() - } - if yyb602 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj602-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym608 := z.EncBinary() - _ = yym608 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn609 = 1 - for _, b := range yyq609 { - if b { - yynn609++ - } - } - r.EncodeMapStart(yynn609) - yynn609 = 0 - } - if yyr609 || yy2arr609 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq609[0] { - yym611 := z.EncBinary() - _ = yym611 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq609[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym612 := z.EncBinary() - _ = yym612 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr609 || yy2arr609 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq609[1] { - yym614 := z.EncBinary() - _ = yym614 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq609[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym615 := z.EncBinary() - _ = yym615 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr609 || yy2arr609 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq609[2] { - yy617 := &x.ListMeta - yym618 := z.EncBinary() - _ = yym618 - if false { - } else if z.HasExtensions() && z.EncExt(yy617) { - } else { - z.EncFallback(yy617) - } - } else { - r.EncodeNil() - } - } else { - if yyq609[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy619 := &x.ListMeta - yym620 := z.EncBinary() - _ = yym620 - if false { - } else if z.HasExtensions() && z.EncExt(yy619) { - } else { - z.EncFallback(yy619) - } - } - } - if yyr609 || yy2arr609 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym622 := z.EncBinary() - _ = yym622 - if false { - } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym623 := z.EncBinary() - _ = yym623 - if false { - } else { - h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) - } - } - } - if yyr609 || yy2arr609 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DaemonSetList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym624 := z.DecBinary() - _ = yym624 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct625 := r.ContainerType() - if yyct625 == codecSelferValueTypeMap1234 { - yyl625 := r.ReadMapStart() - if yyl625 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl625, d) - } - } else if yyct625 == codecSelferValueTypeArray1234 { - yyl625 := r.ReadArrayStart() - if yyl625 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl625, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys626Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys626Slc - var yyhl626 bool = l >= 0 - for yyj626 := 0; ; yyj626++ { - if yyhl626 { - if yyj626 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys626Slc = r.DecodeBytes(yys626Slc, true, true) - yys626 := string(yys626Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys626 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv629 := &x.ListMeta - yym630 := z.DecBinary() - _ = yym630 - if false { - } else if z.HasExtensions() && z.DecExt(yyv629) { - } else { - z.DecFallback(yyv629, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv631 := &x.Items - yym632 := z.DecBinary() - _ = yym632 - if false { - } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv631), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys626) - } // end switch yys626 - } // end for yyj626 - 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 yyj633 int - var yyb633 bool - var yyhl633 bool = l >= 0 - yyj633++ - if yyhl633 { - yyb633 = yyj633 > l - } else { - yyb633 = r.CheckBreak() - } - if yyb633 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj633++ - if yyhl633 { - yyb633 = yyj633 > l - } else { - yyb633 = r.CheckBreak() - } - if yyb633 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj633++ - if yyhl633 { - yyb633 = yyj633 > l - } else { - yyb633 = r.CheckBreak() - } - if yyb633 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv636 := &x.ListMeta - yym637 := z.DecBinary() - _ = yym637 - if false { - } else if z.HasExtensions() && z.DecExt(yyv636) { - } else { - z.DecFallback(yyv636, false) - } - } - yyj633++ - if yyhl633 { - yyb633 = yyj633 > l - } else { - yyb633 = r.CheckBreak() - } - if yyb633 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv638 := &x.Items - yym639 := z.DecBinary() - _ = yym639 - if false { - } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv638), d) - } - } - for { - yyj633++ - if yyhl633 { - yyb633 = yyj633 > l - } else { - yyb633 = r.CheckBreak() - } - if yyb633 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj633-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 { - yym640 := z.EncBinary() - _ = yym640 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn641 = 1 - for _, b := range yyq641 { - if b { - yynn641++ - } - } - r.EncodeMapStart(yynn641) - yynn641 = 0 - } - if yyr641 || yy2arr641 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq641[0] { - yym643 := z.EncBinary() - _ = yym643 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq641[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - 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)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq641[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym647 := z.EncBinary() - _ = yym647 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr641 || yy2arr641 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq641[2] { - yy649 := &x.ListMeta - yym650 := z.EncBinary() - _ = yym650 - if false { - } else if z.HasExtensions() && z.EncExt(yy649) { - } 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 yyr641 || yy2arr641 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym654 := z.EncBinary() - _ = yym654 - 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 { - yym655 := z.EncBinary() - _ = yym655 - if false { - } else { - h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) - } - } - } - if yyr641 || yy2arr641 { - 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 - yym656 := z.DecBinary() - _ = yym656 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct657 := r.ContainerType() - if yyct657 == codecSelferValueTypeMap1234 { - yyl657 := r.ReadMapStart() - if yyl657 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl657, d) - } - } else if yyct657 == codecSelferValueTypeArray1234 { - yyl657 := r.ReadArrayStart() - if yyl657 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl657, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys658Slc = r.DecodeBytes(yys658Slc, true, true) - yys658 := string(yys658Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys658 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv661 := &x.ListMeta - yym662 := z.DecBinary() - _ = yym662 - if false { - } else if z.HasExtensions() && z.DecExt(yyv661) { - } else { - z.DecFallback(yyv661, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv663 := &x.Items - yym664 := z.DecBinary() - _ = yym664 - if false { - } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv663), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys658) - } // end switch yys658 - } // end for yyj658 - 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 yyj665 int - var yyb665 bool - var yyhl665 bool = l >= 0 - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv668 := &x.ListMeta - yym669 := z.DecBinary() - _ = yym669 - if false { - } else if z.HasExtensions() && z.DecExt(yyv668) { - } else { - z.DecFallback(yyv668, false) - } - } - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv670 := &x.Items - yym671 := z.DecBinary() - _ = yym671 - if false { - } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv670), d) - } - } - for { - yyj665++ - if yyhl665 { - yyb665 = yyj665 > l - } else { - yyb665 = r.CheckBreak() - } - if yyb665 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - 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_v1.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_v1.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) -} - -func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym735 := z.EncBinary() - _ = yym735 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn736 = 0 - for _, b := range yyq736 { - if b { - yynn736++ - } - } - r.EncodeMapStart(yynn736) - yynn736 = 0 - } - if yyr736 || yy2arr736 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq736[0] { - if x.Backend == nil { - r.EncodeNil() - } else { - x.Backend.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq736[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 yyr736 || yy2arr736 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq736[1] { - if x.TLS == nil { - r.EncodeNil() - } else { - yym739 := z.EncBinary() - _ = yym739 - if false { - } else { - h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq736[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TLS == nil { - r.EncodeNil() - } else { - yym740 := z.EncBinary() - _ = yym740 - if false { - } else { - h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) - } - } - } - } - if yyr736 || yy2arr736 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq736[2] { - if x.Rules == nil { - r.EncodeNil() - } else { - yym742 := z.EncBinary() - _ = yym742 - if false { - } else { - h.encSliceIngressRule(([]IngressRule)(x.Rules), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq736[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rules")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym743 := z.EncBinary() - _ = yym743 - if false { - } else { - h.encSliceIngressRule(([]IngressRule)(x.Rules), e) - } - } - } - } - if yyr736 || yy2arr736 { - 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 - yym744 := z.DecBinary() - _ = yym744 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct745 := r.ContainerType() - if yyct745 == codecSelferValueTypeMap1234 { - yyl745 := r.ReadMapStart() - if yyl745 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl745, d) - } - } else if yyct745 == codecSelferValueTypeArray1234 { - yyl745 := r.ReadArrayStart() - if yyl745 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl745, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys746Slc = r.DecodeBytes(yys746Slc, true, true) - yys746 := string(yys746Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys746 { - 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 { - yyv748 := &x.TLS - yym749 := z.DecBinary() - _ = yym749 - if false { - } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv748), d) - } - } - case "rules": - if r.TryDecodeAsNil() { - x.Rules = nil - } else { - yyv750 := &x.Rules - yym751 := z.DecBinary() - _ = yym751 - if false { - } else { - h.decSliceIngressRule((*[]IngressRule)(yyv750), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys746) - } // end switch yys746 - } // end for yyj746 - 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 yyj752 int - var yyb752 bool - var yyhl752 bool = l >= 0 - yyj752++ - if yyhl752 { - yyb752 = yyj752 > l - } else { - yyb752 = r.CheckBreak() - } - if yyb752 { - 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) - } - yyj752++ - if yyhl752 { - yyb752 = yyj752 > l - } else { - yyb752 = r.CheckBreak() - } - if yyb752 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLS = nil - } else { - yyv754 := &x.TLS - yym755 := z.DecBinary() - _ = yym755 - if false { - } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv754), d) - } - } - yyj752++ - if yyhl752 { - yyb752 = yyj752 > l - } else { - yyb752 = r.CheckBreak() - } - if yyb752 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rules = nil - } else { - yyv756 := &x.Rules - yym757 := z.DecBinary() - _ = yym757 - if false { - } else { - h.decSliceIngressRule((*[]IngressRule)(yyv756), d) - } - } - for { - yyj752++ - if yyhl752 { - yyb752 = yyj752 > l - } else { - yyb752 = r.CheckBreak() - } - if yyb752 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - 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 { - yym758 := z.EncBinary() - _ = yym758 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep759 := !z.EncBinary() - yy2arr759 := z.EncBasicHandle().StructToArray - var yyq759 [2]bool - _, _, _ = yysep759, yyq759, yy2arr759 - const yyr759 bool = false - yyq759[0] = len(x.Hosts) != 0 - yyq759[1] = x.SecretName != "" - var yynn759 int - if yyr759 || yy2arr759 { - r.EncodeArrayStart(2) - } else { - yynn759 = 0 - for _, b := range yyq759 { - if b { - yynn759++ - } - } - r.EncodeMapStart(yynn759) - yynn759 = 0 - } - if yyr759 || yy2arr759 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq759[0] { - if x.Hosts == nil { - r.EncodeNil() - } else { - yym761 := z.EncBinary() - _ = yym761 - if false { - } else { - z.F.EncSliceStringV(x.Hosts, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq759[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hosts")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Hosts == nil { - r.EncodeNil() - } else { - yym762 := z.EncBinary() - _ = yym762 - if false { - } else { - z.F.EncSliceStringV(x.Hosts, false, e) - } - } - } - } - if yyr759 || yy2arr759 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq759[1] { - yym764 := z.EncBinary() - _ = yym764 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - 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) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym766 := z.DecBinary() - _ = yym766 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct767 := r.ContainerType() - if yyct767 == codecSelferValueTypeMap1234 { - yyl767 := r.ReadMapStart() - if yyl767 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl767, d) - } - } else if yyct767 == codecSelferValueTypeArray1234 { - yyl767 := r.ReadArrayStart() - if yyl767 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl767, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys768Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys768Slc - var yyhl768 bool = l >= 0 - for yyj768 := 0; ; yyj768++ { - if yyhl768 { - if yyj768 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys768Slc = r.DecodeBytes(yys768Slc, true, true) - yys768 := string(yys768Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys768 { - case "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 = "" - } else { - x.Path = string(r.DecodeString()) - } - case "backend": - if r.TryDecodeAsNil() { - x.Backend = IngressBackend{} - } else { - yyv835 := &x.Backend - yyv835.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys833) - } // end switch yys833 - } // end for yyj833 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj836 int - var yyb836 bool - var yyhl836 bool = l >= 0 - yyj836++ - if yyhl836 { - yyb836 = yyj836 > l - } else { - yyb836 = r.CheckBreak() - } - if yyb836 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj836++ - if yyhl836 { - yyb836 = yyj836 > l - } else { - yyb836 = r.CheckBreak() - } - if yyb836 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Backend = IngressBackend{} - } else { - yyv838 := &x.Backend - yyv838.CodecDecodeSelf(d) - } - for { - yyj836++ - if yyhl836 { - yyb836 = yyj836 > l - } else { - yyb836 = r.CheckBreak() - } - if yyb836 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj836-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym839 := z.EncBinary() - _ = yym839 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn840 = 2 - for _, b := range yyq840 { - if b { - yynn840++ - } - } - r.EncodeMapStart(yynn840) - yynn840 = 0 - } - if yyr840 || yy2arr840 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym842 := z.EncBinary() - _ = yym842 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym843 := z.EncBinary() - _ = yym843 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) - } - } - if yyr840 || yy2arr840 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy845 := &x.ServicePort - yym846 := z.EncBinary() - _ = yym846 - if false { - } else if z.HasExtensions() && z.EncExt(yy845) { - } else if !yym846 && z.IsJSONHandle() { - z.EncJSONMarshal(yy845) - } else { - z.EncFallback(yy845) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("servicePort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy847 := &x.ServicePort - yym848 := z.EncBinary() - _ = yym848 - if false { - } else if z.HasExtensions() && z.EncExt(yy847) { - } else if !yym848 && z.IsJSONHandle() { - z.EncJSONMarshal(yy847) - } else { - z.EncFallback(yy847) - } - } - if yyr840 || yy2arr840 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym849 := z.DecBinary() - _ = yym849 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct850 := r.ContainerType() - if yyct850 == codecSelferValueTypeMap1234 { - yyl850 := r.ReadMapStart() - if yyl850 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl850, d) - } - } else if yyct850 == codecSelferValueTypeArray1234 { - yyl850 := r.ReadArrayStart() - if yyl850 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl850, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys851Slc = r.DecodeBytes(yys851Slc, true, true) - yys851 := string(yys851Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys851 { - case "serviceName": - if r.TryDecodeAsNil() { - x.ServiceName = "" - } else { - x.ServiceName = string(r.DecodeString()) - } - case "servicePort": - if r.TryDecodeAsNil() { - x.ServicePort = pkg5_intstr.IntOrString{} - } else { - yyv853 := &x.ServicePort - yym854 := z.DecBinary() - _ = yym854 - if false { - } else if z.HasExtensions() && z.DecExt(yyv853) { - } else if !yym854 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv853) - } else { - z.DecFallback(yyv853, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys851) - } // end switch yys851 - } // end for yyj851 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj855 int - var yyb855 bool - var yyhl855 bool = l >= 0 - yyj855++ - if yyhl855 { - yyb855 = yyj855 > l - } else { - yyb855 = r.CheckBreak() - } - if yyb855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceName = "" - } else { - x.ServiceName = string(r.DecodeString()) - } - yyj855++ - if yyhl855 { - yyb855 = yyj855 > l - } else { - yyb855 = r.CheckBreak() - } - if yyb855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServicePort = pkg5_intstr.IntOrString{} - } else { - yyv857 := &x.ServicePort - yym858 := z.DecBinary() - _ = yym858 - if false { - } else if z.HasExtensions() && z.DecExt(yyv857) { - } else if !yym858 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv857) - } else { - z.DecFallback(yyv857, false) - } - } - for { - yyj855++ - if yyhl855 { - yyb855 = yyj855 > l - } else { - yyb855 = r.CheckBreak() - } - if yyb855 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj855-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym859 := z.EncBinary() - _ = yym859 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn860 = 0 - for _, b := range yyq860 { - if b { - yynn860++ - } - } - r.EncodeMapStart(yynn860) - yynn860 = 0 - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq860[0] { - yym862 := z.EncBinary() - _ = yym862 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq860[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym863 := z.EncBinary() - _ = yym863 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq860[1] { - yym865 := z.EncBinary() - _ = yym865 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq860[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym866 := z.EncBinary() - _ = yym866 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq860[2] { - yy868 := &x.ObjectMeta - yy868.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq860[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy869 := &x.ObjectMeta - yy869.CodecEncodeSelf(e) - } - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq860[3] { - yy871 := &x.Spec - yy871.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq860[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy872 := &x.Spec - yy872.CodecEncodeSelf(e) - } - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq860[4] { - yy874 := &x.Status - yy874.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq860[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy875 := &x.Status - yy875.CodecEncodeSelf(e) - } - } - if yyr860 || yy2arr860 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym876 := z.DecBinary() - _ = yym876 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct877 := r.ContainerType() - if yyct877 == codecSelferValueTypeMap1234 { - yyl877 := r.ReadMapStart() - if yyl877 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl877, d) - } - } else if yyct877 == codecSelferValueTypeArray1234 { - yyl877 := r.ReadArrayStart() - if yyl877 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl877, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys878Slc = r.DecodeBytes(yys878Slc, true, true) - yys878 := string(yys878Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys878 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv881 := &x.ObjectMeta - yyv881.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} - } else { - yyv882 := &x.Spec - yyv882.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} - } else { - yyv883 := &x.Status - yyv883.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys878) - } // end switch yys878 - } // end for yyj878 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj884 int - var yyb884 bool - var yyhl884 bool = l >= 0 - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv887 := &x.ObjectMeta - yyv887.CodecDecodeSelf(d) - } - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ReplicaSetSpec{} - } else { - yyv888 := &x.Spec - yyv888.CodecDecodeSelf(d) - } - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ReplicaSetStatus{} - } else { - yyv889 := &x.Status - yyv889.CodecDecodeSelf(d) - } - for { - yyj884++ - if yyhl884 { - yyb884 = yyj884 > l - } else { - yyb884 = r.CheckBreak() - } - if yyb884 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj884-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym890 := z.EncBinary() - _ = yym890 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn891 = 1 - for _, b := range yyq891 { - if b { - yynn891++ - } - } - r.EncodeMapStart(yynn891) - yynn891 = 0 - } - if yyr891 || yy2arr891 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq891[0] { - yym893 := z.EncBinary() - _ = yym893 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq891[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym894 := z.EncBinary() - _ = yym894 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr891 || yy2arr891 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq891[1] { - yym896 := z.EncBinary() - _ = yym896 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq891[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym897 := z.EncBinary() - _ = yym897 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr891 || yy2arr891 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq891[2] { - yy899 := &x.ListMeta - yym900 := z.EncBinary() - _ = yym900 - if false { - } else if z.HasExtensions() && z.EncExt(yy899) { - } else { - z.EncFallback(yy899) - } - } else { - r.EncodeNil() - } - } else { - if yyq891[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy901 := &x.ListMeta - yym902 := z.EncBinary() - _ = yym902 - if false { - } else if z.HasExtensions() && z.EncExt(yy901) { - } else { - z.EncFallback(yy901) - } - } - } - if yyr891 || yy2arr891 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym904 := z.EncBinary() - _ = yym904 - if false { - } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym905 := z.EncBinary() - _ = yym905 - if false { - } else { - h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) - } - } - } - if yyr891 || yy2arr891 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym906 := z.DecBinary() - _ = yym906 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct907 := r.ContainerType() - if yyct907 == codecSelferValueTypeMap1234 { - yyl907 := r.ReadMapStart() - if yyl907 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl907, d) - } - } else if yyct907 == codecSelferValueTypeArray1234 { - yyl907 := r.ReadArrayStart() - if yyl907 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl907, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys908Slc = r.DecodeBytes(yys908Slc, true, true) - yys908 := string(yys908Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys908 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv911 := &x.ListMeta - yym912 := z.DecBinary() - _ = yym912 - if false { - } else if z.HasExtensions() && z.DecExt(yyv911) { - } else { - z.DecFallback(yyv911, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv913 := &x.Items - yym914 := z.DecBinary() - _ = yym914 - if false { - } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv913), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys908) - } // end switch yys908 - } // end for yyj908 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj915 int - var yyb915 bool - var yyhl915 bool = l >= 0 - yyj915++ - if yyhl915 { - yyb915 = yyj915 > l - } else { - yyb915 = r.CheckBreak() - } - if yyb915 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj915++ - if yyhl915 { - yyb915 = yyj915 > l - } else { - yyb915 = r.CheckBreak() - } - if yyb915 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj915++ - if yyhl915 { - yyb915 = yyj915 > l - } else { - yyb915 = r.CheckBreak() - } - if yyb915 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv918 := &x.ListMeta - yym919 := z.DecBinary() - _ = yym919 - if false { - } else if z.HasExtensions() && z.DecExt(yyv918) { - } else { - z.DecFallback(yyv918, false) - } - } - yyj915++ - if yyhl915 { - yyb915 = yyj915 > l - } else { - yyb915 = r.CheckBreak() - } - if yyb915 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv920 := &x.Items - yym921 := z.DecBinary() - _ = yym921 - if false { - } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv920), d) - } - } - for { - yyj915++ - if yyhl915 { - yyb915 = yyj915 > l - } else { - yyb915 = r.CheckBreak() - } - if yyb915 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj915-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym922 := z.EncBinary() - _ = yym922 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn923 = 1 - for _, b := range yyq923 { - if b { - yynn923++ - } - } - r.EncodeMapStart(yynn923) - yynn923 = 0 - } - if yyr923 || yy2arr923 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym925 := z.EncBinary() - _ = yym925 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym926 := z.EncBinary() - _ = yym926 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr923 || yy2arr923 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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 { - yym931 := z.EncBinary() - _ = yym931 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq923[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym932 := z.EncBinary() - _ = yym932 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr923 || yy2arr923 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq923[3] { - yy934 := &x.Template - yy934.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq923[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy935 := &x.Template - yy935.CodecEncodeSelf(e) - } - } - if yyr923 || yy2arr923 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym936 := z.DecBinary() - _ = yym936 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct937 := r.ContainerType() - if yyct937 == codecSelferValueTypeMap1234 { - yyl937 := r.ReadMapStart() - if yyl937 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl937, d) - } - } else if yyct937 == codecSelferValueTypeArray1234 { - yyl937 := r.ReadArrayStart() - if yyl937 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl937, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys938Slc = r.DecodeBytes(yys938Slc, true, true) - yys938 := string(yys938Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - 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 { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym942 := z.DecBinary() - _ = yym942 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv943 := &x.Template - yyv943.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys938) - } // end switch yys938 - } // end for yyj938 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj944 int - var yyb944 bool - var yyhl944 bool = l >= 0 - yyj944++ - if yyhl944 { - yyb944 = yyj944 > l - } else { - yyb944 = r.CheckBreak() - } - if yyb944 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj944++ - if yyhl944 { - yyb944 = yyj944 > l - } else { - yyb944 = r.CheckBreak() - } - 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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym948 := z.DecBinary() - _ = yym948 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj944++ - if yyhl944 { - yyb944 = yyj944 > l - } else { - yyb944 = r.CheckBreak() - } - if yyb944 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_api.PodTemplateSpec{} - } else { - yyv949 := &x.Template - yyv949.CodecDecodeSelf(d) - } - for { - yyj944++ - if yyhl944 { - yyb944 = yyj944 > l - } else { - yyb944 = r.CheckBreak() - } - if yyb944 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj944-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym950 := z.EncBinary() - _ = yym950 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn951 = 1 - for _, b := range yyq951 { - if b { - yynn951++ - } - } - r.EncodeMapStart(yynn951) - yynn951 = 0 - } - if yyr951 || yy2arr951 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym953 := z.EncBinary() - _ = yym953 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym954 := z.EncBinary() - _ = yym954 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr951 || yy2arr951 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq951[1] { - yym956 := z.EncBinary() - _ = yym956 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq951[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym957 := z.EncBinary() - _ = yym957 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } - } - if yyr951 || yy2arr951 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq951[2] { - yym959 := z.EncBinary() - _ = yym959 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq951[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym960 := z.EncBinary() - _ = yym960 - if false { - } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } - } - if yyr951 || yy2arr951 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq951[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym966 := z.EncBinary() - _ = yym966 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } - } - 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) - } - } - } -} - -func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym970 := z.DecBinary() - _ = yym970 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct971 := r.ContainerType() - if yyct971 == codecSelferValueTypeMap1234 { - yyl971 := r.ReadMapStart() - if yyl971 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl971, d) - } - } else if yyct971 == codecSelferValueTypeArray1234 { - yyl971 := r.ReadArrayStart() - if yyl971 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl971, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys972Slc = r.DecodeBytes(yys972Slc, true, true) - yys972 := string(yys972Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys972 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "fullyLabeledReplicas": - if r.TryDecodeAsNil() { - x.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - case "readyReplicas": - if r.TryDecodeAsNil() { - x.ReadyReplicas = 0 - } else { - x.ReadyReplicas = int32(r.DecodeInt(32)) - } - case "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, yys972) - } // end switch yys972 - } // end for yyj972 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj980 int - var yyb980 bool - var yyhl980 bool = l >= 0 - 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.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - 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.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - 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.ReadyReplicas = 0 - } else { - x.ReadyReplicas = int32(r.DecodeInt(32)) - } - 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.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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - 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 { - h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv986), d) - } - } - for { - yyj980++ - if yyhl980 { - yyb980 = yyj980 > l - } else { - yyb980 = r.CheckBreak() - } - if yyb980 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - 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_v1.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_v1.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) -} - -func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1023 := z.EncBinary() - _ = yym1023 - 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[0] = x.Kind != "" - yyq1024[1] = x.APIVersion != "" - yyq1024[2] = true - yyq1024[3] = true - var yynn1024 int - if yyr1024 || yy2arr1024 { - r.EncodeArrayStart(4) - } else { - yynn1024 = 0 - for _, b := range yyq1024 { - if b { - yynn1024++ - } - } - r.EncodeMapStart(yynn1024) - yynn1024 = 0 - } - if yyr1024 || yy2arr1024 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[0] { - yym1026 := z.EncBinary() - _ = yym1026 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1024[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1027 := z.EncBinary() - _ = yym1027 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1024 || yy2arr1024 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[1] { - yym1029 := z.EncBinary() - _ = yym1029 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1024[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1030 := z.EncBinary() - _ = yym1030 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1024 || yy2arr1024 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[2] { - yy1032 := &x.ObjectMeta - yy1032.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1024[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1033 := &x.ObjectMeta - yy1033.CodecEncodeSelf(e) - } - } - if yyr1024 || yy2arr1024 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[3] { - yy1035 := &x.Spec - yy1035.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1024[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1036 := &x.Spec - yy1036.CodecEncodeSelf(e) - } - } - if yyr1024 || yy2arr1024 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1037 := z.DecBinary() - _ = yym1037 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1038 := r.ContainerType() - if yyct1038 == codecSelferValueTypeMap1234 { - yyl1038 := r.ReadMapStart() - if yyl1038 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1038, d) - } - } else if yyct1038 == codecSelferValueTypeArray1234 { - yyl1038 := r.ReadArrayStart() - if yyl1038 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1038, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1039Slc = r.DecodeBytes(yys1039Slc, true, true) - yys1039 := string(yys1039Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1039 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv1042 := &x.ObjectMeta - yyv1042.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} - } else { - yyv1043 := &x.Spec - yyv1043.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1039) - } // end switch yys1039 - } // end for yyj1039 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1044 int - var yyb1044 bool - var yyhl1044 bool = l >= 0 - yyj1044++ - if yyhl1044 { - yyb1044 = yyj1044 > l - } else { - yyb1044 = r.CheckBreak() - } - if yyb1044 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1044++ - if yyhl1044 { - yyb1044 = yyj1044 > l - } else { - yyb1044 = r.CheckBreak() - } - if yyb1044 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1044++ - if yyhl1044 { - yyb1044 = yyj1044 > l - } else { - yyb1044 = r.CheckBreak() - } - if yyb1044 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv1047 := &x.ObjectMeta - yyv1047.CodecDecodeSelf(d) - } - yyj1044++ - if yyhl1044 { - yyb1044 = yyj1044 > l - } else { - yyb1044 = r.CheckBreak() - } - if yyb1044 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PodSecurityPolicySpec{} - } else { - yyv1048 := &x.Spec - yyv1048.CodecDecodeSelf(d) - } - for { - yyj1044++ - if yyhl1044 { - yyb1044 = yyj1044 > l - } else { - yyb1044 = r.CheckBreak() - } - if yyb1044 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1044-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1049 := z.EncBinary() - _ = yym1049 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1050 = 4 - for _, b := range yyq1050 { - if b { - yynn1050++ - } - } - r.EncodeMapStart(yynn1050) - yynn1050 = 0 - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[0] { - yym1052 := z.EncBinary() - _ = yym1052 - if false { - } else { - r.EncodeBool(bool(x.Privileged)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1050[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("privileged")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1053 := z.EncBinary() - _ = yym1053 - if false { - } else { - r.EncodeBool(bool(x.Privileged)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[1] { - if x.DefaultAddCapabilities == nil { - r.EncodeNil() - } else { - yym1055 := z.EncBinary() - _ = yym1055 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1050[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultAddCapabilities == nil { - r.EncodeNil() - } else { - yym1056 := z.EncBinary() - _ = yym1056 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) - } - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[2] { - if x.RequiredDropCapabilities == nil { - r.EncodeNil() - } else { - yym1058 := z.EncBinary() - _ = yym1058 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1050[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RequiredDropCapabilities == nil { - r.EncodeNil() - } else { - yym1059 := z.EncBinary() - _ = yym1059 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) - } - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[3] { - if x.AllowedCapabilities == nil { - r.EncodeNil() - } else { - yym1061 := z.EncBinary() - _ = yym1061 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1050[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AllowedCapabilities == nil { - r.EncodeNil() - } else { - yym1062 := z.EncBinary() - _ = yym1062 - if false { - } else { - h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) - } - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[4] { - if x.Volumes == nil { - r.EncodeNil() - } else { - yym1064 := z.EncBinary() - _ = yym1064 - if false { - } else { - h.encSliceFSType(([]FSType)(x.Volumes), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1050[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Volumes == nil { - r.EncodeNil() - } else { - yym1065 := z.EncBinary() - _ = yym1065 - if false { - } else { - h.encSliceFSType(([]FSType)(x.Volumes), e) - } - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[5] { - yym1067 := z.EncBinary() - _ = yym1067 - if false { - } else { - r.EncodeBool(bool(x.HostNetwork)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1050[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1068 := z.EncBinary() - _ = yym1068 - if false { - } else { - r.EncodeBool(bool(x.HostNetwork)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[6] { - if x.HostPorts == nil { - r.EncodeNil() - } else { - yym1070 := z.EncBinary() - _ = yym1070 - if false { - } else { - h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1050[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.HostPorts == nil { - r.EncodeNil() - } else { - yym1071 := z.EncBinary() - _ = yym1071 - if false { - } else { - h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) - } - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[7] { - yym1073 := z.EncBinary() - _ = yym1073 - if false { - } else { - r.EncodeBool(bool(x.HostPID)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1050[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPID")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1074 := z.EncBinary() - _ = yym1074 - if false { - } else { - r.EncodeBool(bool(x.HostPID)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[8] { - yym1076 := z.EncBinary() - _ = yym1076 - if false { - } else { - r.EncodeBool(bool(x.HostIPC)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1050[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1077 := z.EncBinary() - _ = yym1077 - if false { - } else { - r.EncodeBool(bool(x.HostIPC)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1079 := &x.SELinux - yy1079.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seLinux")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1080 := &x.SELinux - yy1080.CodecEncodeSelf(e) - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1082 := &x.RunAsUser - yy1082.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1083 := &x.RunAsUser - yy1083.CodecEncodeSelf(e) - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1085 := &x.SupplementalGroups - yy1085.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1086 := &x.SupplementalGroups - yy1086.CodecEncodeSelf(e) - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1088 := &x.FSGroup - yy1088.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1089 := &x.FSGroup - yy1089.CodecEncodeSelf(e) - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[13] { - yym1091 := z.EncBinary() - _ = yym1091 - if false { - } else { - r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1050[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1092 := z.EncBinary() - _ = yym1092 - if false { - } else { - r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1093 := z.DecBinary() - _ = yym1093 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1094 := r.ContainerType() - if yyct1094 == codecSelferValueTypeMap1234 { - yyl1094 := r.ReadMapStart() - if yyl1094 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1094, d) - } - } else if yyct1094 == codecSelferValueTypeArray1234 { - yyl1094 := r.ReadArrayStart() - if yyl1094 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1094, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1095Slc = r.DecodeBytes(yys1095Slc, true, true) - yys1095 := string(yys1095Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1095 { - case "privileged": - if r.TryDecodeAsNil() { - x.Privileged = false - } else { - x.Privileged = bool(r.DecodeBool()) - } - case "defaultAddCapabilities": - if r.TryDecodeAsNil() { - x.DefaultAddCapabilities = nil - } else { - yyv1097 := &x.DefaultAddCapabilities - yym1098 := z.DecBinary() - _ = yym1098 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1097), d) - } - } - case "requiredDropCapabilities": - if r.TryDecodeAsNil() { - x.RequiredDropCapabilities = nil - } else { - yyv1099 := &x.RequiredDropCapabilities - yym1100 := z.DecBinary() - _ = yym1100 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1099), d) - } - } - case "allowedCapabilities": - if r.TryDecodeAsNil() { - x.AllowedCapabilities = nil - } else { - yyv1101 := &x.AllowedCapabilities - yym1102 := z.DecBinary() - _ = yym1102 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1101), d) - } - } - case "volumes": - if r.TryDecodeAsNil() { - x.Volumes = nil - } else { - yyv1103 := &x.Volumes - yym1104 := z.DecBinary() - _ = yym1104 - if false { - } else { - h.decSliceFSType((*[]FSType)(yyv1103), d) - } - } - case "hostNetwork": - if r.TryDecodeAsNil() { - x.HostNetwork = false - } else { - x.HostNetwork = bool(r.DecodeBool()) - } - case "hostPorts": - if r.TryDecodeAsNil() { - x.HostPorts = nil - } else { - yyv1106 := &x.HostPorts - yym1107 := z.DecBinary() - _ = yym1107 - if false { - } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1106), d) - } - } - case "hostPID": - if r.TryDecodeAsNil() { - x.HostPID = false - } else { - x.HostPID = bool(r.DecodeBool()) - } - case "hostIPC": - if r.TryDecodeAsNil() { - x.HostIPC = false - } else { - x.HostIPC = bool(r.DecodeBool()) - } - case "seLinux": - if r.TryDecodeAsNil() { - x.SELinux = SELinuxStrategyOptions{} - } else { - yyv1110 := &x.SELinux - yyv1110.CodecDecodeSelf(d) - } - case "runAsUser": - if r.TryDecodeAsNil() { - x.RunAsUser = RunAsUserStrategyOptions{} - } else { - yyv1111 := &x.RunAsUser - yyv1111.CodecDecodeSelf(d) - } - case "supplementalGroups": - if r.TryDecodeAsNil() { - x.SupplementalGroups = SupplementalGroupsStrategyOptions{} - } else { - yyv1112 := &x.SupplementalGroups - yyv1112.CodecDecodeSelf(d) - } - case "fsGroup": - if r.TryDecodeAsNil() { - x.FSGroup = FSGroupStrategyOptions{} - } else { - yyv1113 := &x.FSGroup - yyv1113.CodecDecodeSelf(d) - } - case "readOnlyRootFilesystem": - if r.TryDecodeAsNil() { - x.ReadOnlyRootFilesystem = false - } else { - x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys1095) - } // end switch yys1095 - } // end for yyj1095 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1115 int - var yyb1115 bool - var yyhl1115 bool = l >= 0 - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Privileged = false - } else { - x.Privileged = bool(r.DecodeBool()) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DefaultAddCapabilities = nil - } else { - yyv1117 := &x.DefaultAddCapabilities - yym1118 := z.DecBinary() - _ = yym1118 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1117), d) - } - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RequiredDropCapabilities = nil - } else { - yyv1119 := &x.RequiredDropCapabilities - yym1120 := z.DecBinary() - _ = yym1120 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1119), d) - } - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllowedCapabilities = nil - } else { - yyv1121 := &x.AllowedCapabilities - yym1122 := z.DecBinary() - _ = yym1122 - if false { - } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1121), d) - } - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Volumes = nil - } else { - yyv1123 := &x.Volumes - yym1124 := z.DecBinary() - _ = yym1124 - if false { - } else { - h.decSliceFSType((*[]FSType)(yyv1123), d) - } - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostNetwork = false - } else { - x.HostNetwork = bool(r.DecodeBool()) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPorts = nil - } else { - yyv1126 := &x.HostPorts - yym1127 := z.DecBinary() - _ = yym1127 - if false { - } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1126), d) - } - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPID = false - } else { - x.HostPID = bool(r.DecodeBool()) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIPC = false - } else { - x.HostIPC = bool(r.DecodeBool()) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SELinux = SELinuxStrategyOptions{} - } else { - yyv1130 := &x.SELinux - yyv1130.CodecDecodeSelf(d) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RunAsUser = RunAsUserStrategyOptions{} - } else { - yyv1131 := &x.RunAsUser - yyv1131.CodecDecodeSelf(d) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SupplementalGroups = SupplementalGroupsStrategyOptions{} - } else { - yyv1132 := &x.SupplementalGroups - yyv1132.CodecDecodeSelf(d) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FSGroup = FSGroupStrategyOptions{} - } else { - yyv1133 := &x.FSGroup - yyv1133.CodecDecodeSelf(d) - } - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnlyRootFilesystem = false - } else { - x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) - } - for { - yyj1115++ - if yyhl1115 { - yyb1115 = yyj1115 > l - } else { - yyb1115 = r.CheckBreak() - } - if yyb1115 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1115-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - 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 - var yynn1136 int - if yyr1136 || yy2arr1136 { - r.EncodeArrayStart(2) - } else { - yynn1136 = 2 - for _, b := range yyq1136 { - if b { - yynn1136++ - } - } - r.EncodeMapStart(yynn1136) - yynn1136 = 0 - } - if yyr1136 || yy2arr1136 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1138 := z.EncBinary() - _ = yym1138 - if false { - } else { - r.EncodeInt(int64(x.Min)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("min")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1139 := z.EncBinary() - _ = yym1139 - if false { - } else { - r.EncodeInt(int64(x.Min)) - } - } - if yyr1136 || yy2arr1136 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1141 := z.EncBinary() - _ = yym1141 - if false { - } else { - r.EncodeInt(int64(x.Max)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("max")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1142 := z.EncBinary() - _ = yym1142 - if false { - } else { - r.EncodeInt(int64(x.Max)) - } - } - if yyr1136 || yy2arr1136 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 *HostPortRange) 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 "min": - if r.TryDecodeAsNil() { - x.Min = 0 - } else { - x.Min = int(r.DecodeInt(codecSelferBitsize1234)) - } - case "max": - if r.TryDecodeAsNil() { - x.Max = 0 - } else { - x.Max = int(r.DecodeInt(codecSelferBitsize1234)) - } - default: - z.DecStructFieldNotFound(-1, yys1145) - } // end switch yys1145 - } // end for yyj1145 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1148 int - var yyb1148 bool - var yyhl1148 bool = l >= 0 - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l - } else { - yyb1148 = r.CheckBreak() - } - if yyb1148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Min = 0 - } else { - x.Min = int(r.DecodeInt(codecSelferBitsize1234)) - } - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l - } else { - yyb1148 = r.CheckBreak() - } - if yyb1148 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Max = 0 - } else { - x.Max = int(r.DecodeInt(codecSelferBitsize1234)) - } - for { - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l - } else { - yyb1148 = r.CheckBreak() - } - if yyb1148 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1148-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1151 := z.EncBinary() - _ = yym1151 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1152 := z.DecBinary() - _ = yym1152 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1153 := z.EncBinary() - _ = yym1153 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1154 = 1 - for _, b := range yyq1154 { - if b { - yynn1154++ - } - } - r.EncodeMapStart(yynn1154) - yynn1154 = 0 - } - if yyr1154 || yy2arr1154 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Rule.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rule")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Rule.CodecEncodeSelf(e) - } - if yyr1154 || yy2arr1154 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1154[1] { - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1154[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } - } - if yyr1154 || yy2arr1154 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1157 := z.DecBinary() - _ = yym1157 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1158 := r.ContainerType() - if yyct1158 == codecSelferValueTypeMap1234 { - yyl1158 := r.ReadMapStart() - if yyl1158 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1158, d) - } - } else if yyct1158 == codecSelferValueTypeArray1234 { - yyl1158 := r.ReadArrayStart() - if yyl1158 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1158, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1159Slc = r.DecodeBytes(yys1159Slc, true, true) - yys1159 := string(yys1159Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1159 { - case "rule": - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = SELinuxStrategy(r.DecodeString()) - } - case "seLinuxOptions": - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(pkg2_api.SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1159) - } // end switch yys1159 - } // end for yyj1159 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1162 int - var yyb1162 bool - var yyhl1162 bool = l >= 0 - yyj1162++ - if yyhl1162 { - yyb1162 = yyj1162 > l - } else { - yyb1162 = r.CheckBreak() - } - if yyb1162 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = SELinuxStrategy(r.DecodeString()) - } - yyj1162++ - if yyhl1162 { - yyb1162 = yyj1162 > l - } else { - yyb1162 = r.CheckBreak() - } - if yyb1162 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(pkg2_api.SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - for { - yyj1162++ - if yyhl1162 { - yyb1162 = yyj1162 > l - } else { - yyb1162 = r.CheckBreak() - } - if yyb1162 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1162-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1165 := z.EncBinary() - _ = yym1165 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1166 := z.DecBinary() - _ = yym1166 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1167 := z.EncBinary() - _ = yym1167 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1168 = 1 - for _, b := range yyq1168 { - if b { - yynn1168++ - } - } - r.EncodeMapStart(yynn1168) - yynn1168 = 0 - } - if yyr1168 || yy2arr1168 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Rule.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rule")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Rule.CodecEncodeSelf(e) - } - if yyr1168 || yy2arr1168 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1168[1] { - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1171 := z.EncBinary() - _ = yym1171 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1168[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ranges")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1172 := z.EncBinary() - _ = yym1172 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } - } - if yyr1168 || yy2arr1168 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1173 := z.DecBinary() - _ = yym1173 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1174 := r.ContainerType() - if yyct1174 == codecSelferValueTypeMap1234 { - yyl1174 := r.ReadMapStart() - if yyl1174 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1174, d) - } - } else if yyct1174 == codecSelferValueTypeArray1234 { - yyl1174 := r.ReadArrayStart() - if yyl1174 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1174, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) - yys1175 := string(yys1175Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1175 { - case "rule": - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = RunAsUserStrategy(r.DecodeString()) - } - case "ranges": - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1177 := &x.Ranges - yym1178 := z.DecBinary() - _ = yym1178 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1177), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1175) - } // end switch yys1175 - } // end for yyj1175 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1179 int - var yyb1179 bool - var yyhl1179 bool = l >= 0 - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l - } else { - yyb1179 = r.CheckBreak() - } - if yyb1179 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = RunAsUserStrategy(r.DecodeString()) - } - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l - } else { - yyb1179 = r.CheckBreak() - } - if yyb1179 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1181 := &x.Ranges - yym1182 := z.DecBinary() - _ = yym1182 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1181), d) - } - } - for { - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l - } else { - yyb1179 = r.CheckBreak() - } - if yyb1179 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1179-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1183 := z.EncBinary() - _ = yym1183 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1184 = 2 - for _, b := range yyq1184 { - if b { - yynn1184++ - } - } - r.EncodeMapStart(yynn1184) - yynn1184 = 0 - } - if yyr1184 || yy2arr1184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1186 := z.EncBinary() - _ = yym1186 - if false { - } else { - r.EncodeInt(int64(x.Min)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("min")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1187 := z.EncBinary() - _ = yym1187 - if false { - } else { - r.EncodeInt(int64(x.Min)) - } - } - if yyr1184 || yy2arr1184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1189 := z.EncBinary() - _ = yym1189 - if false { - } else { - r.EncodeInt(int64(x.Max)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("max")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1190 := z.EncBinary() - _ = yym1190 - if false { - } else { - r.EncodeInt(int64(x.Max)) - } - } - if yyr1184 || yy2arr1184 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1191 := z.DecBinary() - _ = yym1191 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1192 := r.ContainerType() - if yyct1192 == codecSelferValueTypeMap1234 { - yyl1192 := r.ReadMapStart() - if yyl1192 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1192, d) - } - } else if yyct1192 == codecSelferValueTypeArray1234 { - yyl1192 := r.ReadArrayStart() - if yyl1192 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1192, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1193Slc = r.DecodeBytes(yys1193Slc, true, true) - yys1193 := string(yys1193Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1193 { - case "min": - if r.TryDecodeAsNil() { - x.Min = 0 - } else { - x.Min = int64(r.DecodeInt(64)) - } - case "max": - if r.TryDecodeAsNil() { - x.Max = 0 - } else { - x.Max = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys1193) - } // end switch yys1193 - } // end for yyj1193 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1196 int - var yyb1196 bool - var yyhl1196 bool = l >= 0 - yyj1196++ - if yyhl1196 { - yyb1196 = yyj1196 > l - } else { - yyb1196 = r.CheckBreak() - } - if yyb1196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Min = 0 - } else { - x.Min = int64(r.DecodeInt(64)) - } - yyj1196++ - if yyhl1196 { - yyb1196 = yyj1196 > l - } else { - yyb1196 = r.CheckBreak() - } - if yyb1196 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Max = 0 - } else { - x.Max = int64(r.DecodeInt(64)) - } - for { - yyj1196++ - if yyhl1196 { - yyb1196 = yyj1196 > l - } else { - yyb1196 = r.CheckBreak() - } - if yyb1196 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1196-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1199 := z.EncBinary() - _ = yym1199 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1200 := z.DecBinary() - _ = yym1200 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1201 := z.EncBinary() - _ = yym1201 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1202 = 0 - for _, b := range yyq1202 { - if b { - yynn1202++ - } - } - r.EncodeMapStart(yynn1202) - yynn1202 = 0 - } - if yyr1202 || yy2arr1202 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1202[0] { - x.Rule.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1202[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rule")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Rule.CodecEncodeSelf(e) - } - } - if yyr1202 || yy2arr1202 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1202[1] { - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1205 := z.EncBinary() - _ = yym1205 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1202[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ranges")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1206 := z.EncBinary() - _ = yym1206 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } - } - if yyr1202 || yy2arr1202 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1207 := z.DecBinary() - _ = yym1207 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1208 := r.ContainerType() - if yyct1208 == codecSelferValueTypeMap1234 { - yyl1208 := r.ReadMapStart() - if yyl1208 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1208, d) - } - } else if yyct1208 == codecSelferValueTypeArray1234 { - yyl1208 := r.ReadArrayStart() - if yyl1208 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1208, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1209Slc = r.DecodeBytes(yys1209Slc, true, true) - yys1209 := string(yys1209Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1209 { - case "rule": - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = FSGroupStrategyType(r.DecodeString()) - } - case "ranges": - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1211 := &x.Ranges - yym1212 := z.DecBinary() - _ = yym1212 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1211), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1209) - } // end switch yys1209 - } // end for yyj1209 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1213 int - var yyb1213 bool - var yyhl1213 bool = l >= 0 - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l - } else { - yyb1213 = r.CheckBreak() - } - if yyb1213 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = FSGroupStrategyType(r.DecodeString()) - } - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l - } else { - yyb1213 = r.CheckBreak() - } - if yyb1213 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1215 := &x.Ranges - yym1216 := z.DecBinary() - _ = yym1216 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1215), d) - } - } - for { - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l - } else { - yyb1213 = r.CheckBreak() - } - if yyb1213 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1213-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1217 := z.EncBinary() - _ = yym1217 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1218 := z.DecBinary() - _ = yym1218 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1219 := z.EncBinary() - _ = yym1219 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1220 = 0 - for _, b := range yyq1220 { - if b { - yynn1220++ - } - } - r.EncodeMapStart(yynn1220) - yynn1220 = 0 - } - if yyr1220 || yy2arr1220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1220[0] { - x.Rule.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1220[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rule")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Rule.CodecEncodeSelf(e) - } - } - if yyr1220 || yy2arr1220 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1220[1] { - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1223 := z.EncBinary() - _ = yym1223 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1220[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ranges")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ranges == nil { - r.EncodeNil() - } else { - yym1224 := z.EncBinary() - _ = yym1224 - if false { - } else { - h.encSliceIDRange(([]IDRange)(x.Ranges), e) - } - } - } - } - if yyr1220 || yy2arr1220 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1225 := z.DecBinary() - _ = yym1225 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1226 := r.ContainerType() - if yyct1226 == codecSelferValueTypeMap1234 { - yyl1226 := r.ReadMapStart() - if yyl1226 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1226, d) - } - } else if yyct1226 == codecSelferValueTypeArray1234 { - yyl1226 := r.ReadArrayStart() - if yyl1226 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1226, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1227Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1227Slc - var yyhl1227 bool = l >= 0 - for yyj1227 := 0; ; yyj1227++ { - if yyhl1227 { - if yyj1227 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1227Slc = r.DecodeBytes(yys1227Slc, true, true) - yys1227 := string(yys1227Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1227 { - case "rule": - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) - } - case "ranges": - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1229 := &x.Ranges - yym1230 := z.DecBinary() - _ = yym1230 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1229), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1227) - } // end switch yys1227 - } // end for yyj1227 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1231 int - var yyb1231 bool - var yyhl1231 bool = l >= 0 - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l - } else { - yyb1231 = r.CheckBreak() - } - if yyb1231 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rule = "" - } else { - x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) - } - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l - } else { - yyb1231 = r.CheckBreak() - } - if yyb1231 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ranges = nil - } else { - yyv1233 := &x.Ranges - yym1234 := z.DecBinary() - _ = yym1234 - if false { - } else { - h.decSliceIDRange((*[]IDRange)(yyv1233), d) - } - } - for { - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l - } else { - yyb1231 = r.CheckBreak() - } - if yyb1231 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1231-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1235 := z.EncBinary() - _ = yym1235 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1236 := z.DecBinary() - _ = yym1236 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1237 := z.EncBinary() - _ = yym1237 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1238 = 1 - for _, b := range yyq1238 { - if b { - yynn1238++ - } - } - r.EncodeMapStart(yynn1238) - yynn1238 = 0 - } - if yyr1238 || yy2arr1238 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1238[0] { - yym1240 := z.EncBinary() - _ = yym1240 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1238[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1241 := z.EncBinary() - _ = yym1241 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1238 || yy2arr1238 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1238[1] { - yym1243 := z.EncBinary() - _ = yym1243 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1238[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1244 := z.EncBinary() - _ = yym1244 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1238 || yy2arr1238 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1238[2] { - yy1246 := &x.ListMeta - yym1247 := z.EncBinary() - _ = yym1247 - if false { - } else if z.HasExtensions() && z.EncExt(yy1246) { - } else { - z.EncFallback(yy1246) - } - } else { - r.EncodeNil() - } - } else { - if yyq1238[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1248 := &x.ListMeta - yym1249 := z.EncBinary() - _ = yym1249 - if false { - } else if z.HasExtensions() && z.EncExt(yy1248) { - } else { - z.EncFallback(yy1248) - } - } - } - if yyr1238 || yy2arr1238 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1251 := z.EncBinary() - _ = yym1251 - if false { - } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1252 := z.EncBinary() - _ = yym1252 - if false { - } else { - h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) - } - } - } - if yyr1238 || yy2arr1238 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1253 := z.DecBinary() - _ = yym1253 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1254 := r.ContainerType() - if yyct1254 == codecSelferValueTypeMap1234 { - yyl1254 := r.ReadMapStart() - if yyl1254 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1254, d) - } - } else if yyct1254 == codecSelferValueTypeArray1234 { - yyl1254 := r.ReadArrayStart() - if yyl1254 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1254, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1255Slc = r.DecodeBytes(yys1255Slc, true, true) - yys1255 := string(yys1255Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1255 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv1258 := &x.ListMeta - yym1259 := z.DecBinary() - _ = yym1259 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1258) { - } else { - z.DecFallback(yyv1258, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1260 := &x.Items - yym1261 := z.DecBinary() - _ = yym1261 - if false { - } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1260), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1255) - } // end switch yys1255 - } // end for yyj1255 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1262 int - var yyb1262 bool - var yyhl1262 bool = l >= 0 - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv1265 := &x.ListMeta - yym1266 := z.DecBinary() - _ = yym1266 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1265) { - } else { - z.DecFallback(yyv1265, false) - } - } - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1267 := &x.Items - yym1268 := z.DecBinary() - _ = yym1268 - if false { - } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1267), d) - } - } - for { - yyj1262++ - if yyhl1262 { - yyb1262 = yyj1262 > l - } else { - yyb1262 = r.CheckBreak() - } - if yyb1262 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1262-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1269 := z.EncBinary() - _ = yym1269 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1270 = 0 - for _, b := range yyq1270 { - if b { - yynn1270++ - } - } - r.EncodeMapStart(yynn1270) - yynn1270 = 0 - } - if yyr1270 || yy2arr1270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1270[0] { - yym1272 := z.EncBinary() - _ = yym1272 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1270[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1273 := z.EncBinary() - _ = yym1273 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1270 || yy2arr1270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1270[1] { - yym1275 := z.EncBinary() - _ = yym1275 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1270[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1276 := z.EncBinary() - _ = yym1276 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1270 || yy2arr1270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1270[2] { - yy1278 := &x.ObjectMeta - yy1278.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1270[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1279 := &x.ObjectMeta - yy1279.CodecEncodeSelf(e) - } - } - if yyr1270 || yy2arr1270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1270[3] { - yy1281 := &x.Spec - yy1281.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1270[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1282 := &x.Spec - yy1282.CodecEncodeSelf(e) - } - } - if yyr1270 || yy2arr1270 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1283 := z.DecBinary() - _ = yym1283 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1284 := r.ContainerType() - if yyct1284 == codecSelferValueTypeMap1234 { - yyl1284 := r.ReadMapStart() - if yyl1284 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1284, d) - } - } else if yyct1284 == codecSelferValueTypeArray1234 { - yyl1284 := r.ReadArrayStart() - if yyl1284 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1284, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1285Slc = r.DecodeBytes(yys1285Slc, true, true) - yys1285 := string(yys1285Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1285 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 { - yyv1288 := &x.ObjectMeta - yyv1288.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} - } else { - yyv1289 := &x.Spec - yyv1289.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys1285) - } // end switch yys1285 - } // end for yyj1285 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1290 int - var yyb1290 bool - var yyhl1290 bool = l >= 0 - yyj1290++ - if yyhl1290 { - yyb1290 = yyj1290 > l - } else { - yyb1290 = r.CheckBreak() - } - if yyb1290 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1290++ - if yyhl1290 { - yyb1290 = yyj1290 > l - } else { - yyb1290 = r.CheckBreak() - } - if yyb1290 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1290++ - if yyhl1290 { - yyb1290 = yyj1290 > l - } else { - yyb1290 = r.CheckBreak() - } - if yyb1290 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv1293 := &x.ObjectMeta - yyv1293.CodecDecodeSelf(d) - } - yyj1290++ - if yyhl1290 { - yyb1290 = yyj1290 > l - } else { - yyb1290 = r.CheckBreak() - } - if yyb1290 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = NetworkPolicySpec{} - } else { - yyv1294 := &x.Spec - yyv1294.CodecDecodeSelf(d) - } - for { - yyj1290++ - if yyhl1290 { - yyb1290 = yyj1290 > l - } else { - yyb1290 = r.CheckBreak() - } - if yyb1290 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1290-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1295 := z.EncBinary() - _ = yym1295 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1296 = 1 - for _, b := range yyq1296 { - if b { - yynn1296++ - } - } - r.EncodeMapStart(yynn1296) - yynn1296 = 0 - } - if yyr1296 || yy2arr1296 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1298 := &x.PodSelector - yym1299 := z.EncBinary() - _ = yym1299 - if false { - } else if z.HasExtensions() && z.EncExt(yy1298) { - } else { - z.EncFallback(yy1298) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1300 := &x.PodSelector - yym1301 := z.EncBinary() - _ = yym1301 - if false { - } else if z.HasExtensions() && z.EncExt(yy1300) { - } else { - z.EncFallback(yy1300) - } - } - if yyr1296 || yy2arr1296 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1296[1] { - if x.Ingress == nil { - r.EncodeNil() - } else { - yym1303 := z.EncBinary() - _ = yym1303 - if false { - } else { - h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1296[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ingress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ingress == nil { - r.EncodeNil() - } else { - yym1304 := z.EncBinary() - _ = yym1304 - if false { - } else { - h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) - } - } - } - } - if yyr1296 || yy2arr1296 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1305 := z.DecBinary() - _ = yym1305 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1306 := r.ContainerType() - if yyct1306 == codecSelferValueTypeMap1234 { - yyl1306 := r.ReadMapStart() - if yyl1306 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1306, d) - } - } else if yyct1306 == codecSelferValueTypeArray1234 { - yyl1306 := r.ReadArrayStart() - if yyl1306 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1306, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1307Slc = r.DecodeBytes(yys1307Slc, true, true) - yys1307 := string(yys1307Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1307 { - case "podSelector": - if r.TryDecodeAsNil() { - x.PodSelector = pkg1_v1.LabelSelector{} - } else { - yyv1308 := &x.PodSelector - yym1309 := z.DecBinary() - _ = yym1309 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1308) { - } else { - z.DecFallback(yyv1308, false) - } - } - case "ingress": - if r.TryDecodeAsNil() { - x.Ingress = nil - } else { - yyv1310 := &x.Ingress - yym1311 := z.DecBinary() - _ = yym1311 - if false { - } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1310), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1307) - } // end switch yys1307 - } // end for yyj1307 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1312 int - var yyb1312 bool - var yyhl1312 bool = l >= 0 - yyj1312++ - if yyhl1312 { - yyb1312 = yyj1312 > l - } else { - yyb1312 = r.CheckBreak() - } - if yyb1312 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodSelector = pkg1_v1.LabelSelector{} - } else { - yyv1313 := &x.PodSelector - yym1314 := z.DecBinary() - _ = yym1314 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1313) { - } else { - z.DecFallback(yyv1313, false) - } - } - yyj1312++ - if yyhl1312 { - yyb1312 = yyj1312 > l - } else { - yyb1312 = r.CheckBreak() - } - if yyb1312 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ingress = nil - } else { - yyv1315 := &x.Ingress - yym1316 := z.DecBinary() - _ = yym1316 - if false { - } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1315), d) - } - } - for { - yyj1312++ - if yyhl1312 { - yyb1312 = yyj1312 > l - } else { - yyb1312 = r.CheckBreak() - } - if yyb1312 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1312-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1317 := z.EncBinary() - _ = yym1317 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1318 = 0 - for _, b := range yyq1318 { - if b { - yynn1318++ - } - } - r.EncodeMapStart(yynn1318) - yynn1318 = 0 - } - if yyr1318 || yy2arr1318 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1318[0] { - if x.Ports == nil { - r.EncodeNil() - } else { - yym1320 := z.EncBinary() - _ = yym1320 - if false { - } else { - h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1318[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ports")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ports == nil { - r.EncodeNil() - } else { - yym1321 := z.EncBinary() - _ = yym1321 - if false { - } else { - h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) - } - } - } - } - if yyr1318 || yy2arr1318 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1318[1] { - if x.From == nil { - r.EncodeNil() - } else { - yym1323 := z.EncBinary() - _ = yym1323 - if false { - } else { - h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1318[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("from")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.From == nil { - r.EncodeNil() - } else { - yym1324 := z.EncBinary() - _ = yym1324 - if false { - } else { - h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) - } - } - } - } - if yyr1318 || yy2arr1318 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1325 := z.DecBinary() - _ = yym1325 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1326 := r.ContainerType() - if yyct1326 == codecSelferValueTypeMap1234 { - yyl1326 := r.ReadMapStart() - if yyl1326 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1326, d) - } - } else if yyct1326 == codecSelferValueTypeArray1234 { - yyl1326 := r.ReadArrayStart() - if yyl1326 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1326, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1327Slc = r.DecodeBytes(yys1327Slc, true, true) - yys1327 := string(yys1327Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1327 { - case "ports": - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv1328 := &x.Ports - yym1329 := z.DecBinary() - _ = yym1329 - if false { - } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1328), d) - } - } - case "from": - if r.TryDecodeAsNil() { - x.From = nil - } else { - yyv1330 := &x.From - yym1331 := z.DecBinary() - _ = yym1331 - if false { - } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1330), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1327) - } // end switch yys1327 - } // end for yyj1327 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1332 int - var yyb1332 bool - var yyhl1332 bool = l >= 0 - yyj1332++ - if yyhl1332 { - yyb1332 = yyj1332 > l - } else { - yyb1332 = r.CheckBreak() - } - if yyb1332 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ports = nil - } else { - yyv1333 := &x.Ports - yym1334 := z.DecBinary() - _ = yym1334 - if false { - } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1333), d) - } - } - yyj1332++ - if yyhl1332 { - yyb1332 = yyj1332 > l - } else { - yyb1332 = r.CheckBreak() - } - if yyb1332 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.From = nil - } else { - yyv1335 := &x.From - yym1336 := z.DecBinary() - _ = yym1336 - if false { - } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1335), d) - } - } - for { - yyj1332++ - if yyhl1332 { - yyb1332 = yyj1332 > l - } else { - yyb1332 = r.CheckBreak() - } - if yyb1332 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1332-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1337 := z.EncBinary() - _ = yym1337 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1338 = 0 - for _, b := range yyq1338 { - if b { - yynn1338++ - } - } - r.EncodeMapStart(yynn1338) - yynn1338 = 0 - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1338[0] { - if x.Protocol == nil { - r.EncodeNil() - } else { - yy1340 := *x.Protocol - yym1341 := z.EncBinary() - _ = yym1341 - if false { - } else if z.HasExtensions() && z.EncExt(yy1340) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1340)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1338[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("protocol")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Protocol == nil { - r.EncodeNil() - } else { - yy1342 := *x.Protocol - yym1343 := z.EncBinary() - _ = yym1343 - if false { - } else if z.HasExtensions() && z.EncExt(yy1342) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1342)) - } - } - } - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1338[1] { - if x.Port == nil { - r.EncodeNil() - } else { - yym1345 := z.EncBinary() - _ = yym1345 - if false { - } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1345 && z.IsJSONHandle() { - z.EncJSONMarshal(x.Port) - } else { - z.EncFallback(x.Port) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1338[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Port == nil { - r.EncodeNil() - } else { - yym1346 := z.EncBinary() - _ = yym1346 - if false { - } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1346 && z.IsJSONHandle() { - z.EncJSONMarshal(x.Port) - } else { - z.EncFallback(x.Port) - } - } - } - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1347 := z.DecBinary() - _ = yym1347 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1348 := r.ContainerType() - if yyct1348 == codecSelferValueTypeMap1234 { - yyl1348 := r.ReadMapStart() - if yyl1348 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1348, d) - } - } else if yyct1348 == codecSelferValueTypeArray1234 { - yyl1348 := r.ReadArrayStart() - if yyl1348 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1348, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys1349Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1349Slc - var yyhl1349 bool = l >= 0 - for yyj1349 := 0; ; yyj1349++ { - if yyhl1349 { - if yyj1349 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) - yys1349 := string(yys1349Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1349 { - case "protocol": - if r.TryDecodeAsNil() { - if x.Protocol != nil { - x.Protocol = nil - } - } else { - if x.Protocol == nil { - x.Protocol = new(pkg2_api.Protocol) - } - x.Protocol.CodecDecodeSelf(d) - } - case "port": - if r.TryDecodeAsNil() { - if x.Port != nil { - x.Port = nil - } - } else { - if x.Port == nil { - x.Port = new(pkg5_intstr.IntOrString) - } - yym1352 := z.DecBinary() - _ = yym1352 - if false { - } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1352 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.Port) - } else { - z.DecFallback(x.Port, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys1349) - } // end switch yys1349 - } // end for yyj1349 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1353 int - var yyb1353 bool - var yyhl1353 bool = l >= 0 - yyj1353++ - if yyhl1353 { - yyb1353 = yyj1353 > l - } else { - yyb1353 = r.CheckBreak() - } - if yyb1353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Protocol != nil { - x.Protocol = nil - } - } else { - if x.Protocol == nil { - x.Protocol = new(pkg2_api.Protocol) - } - x.Protocol.CodecDecodeSelf(d) - } - yyj1353++ - if yyhl1353 { - yyb1353 = yyj1353 > l - } else { - yyb1353 = r.CheckBreak() - } - if yyb1353 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Port != nil { - x.Port = nil - } - } else { - if x.Port == nil { - x.Port = new(pkg5_intstr.IntOrString) - } - yym1356 := z.DecBinary() - _ = yym1356 - if false { - } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1356 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.Port) - } else { - z.DecFallback(x.Port, false) - } - } - for { - yyj1353++ - if yyhl1353 { - yyb1353 = yyj1353 > l - } else { - yyb1353 = r.CheckBreak() - } - if yyb1353 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1353-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1357 := z.EncBinary() - _ = yym1357 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1358 = 0 - for _, b := range yyq1358 { - if b { - yynn1358++ - } - } - r.EncodeMapStart(yynn1358) - yynn1358 = 0 - } - if yyr1358 || yy2arr1358 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1358[0] { - if x.PodSelector == nil { - r.EncodeNil() - } else { - yym1360 := z.EncBinary() - _ = yym1360 - if false { - } else if z.HasExtensions() && z.EncExt(x.PodSelector) { - } else { - z.EncFallback(x.PodSelector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1358[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PodSelector == nil { - r.EncodeNil() - } else { - yym1361 := z.EncBinary() - _ = yym1361 - if false { - } else if z.HasExtensions() && z.EncExt(x.PodSelector) { - } else { - z.EncFallback(x.PodSelector) - } - } - } - } - if yyr1358 || yy2arr1358 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1358[1] { - if x.NamespaceSelector == nil { - r.EncodeNil() - } else { - yym1363 := z.EncBinary() - _ = yym1363 - if false { - } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { - } else { - z.EncFallback(x.NamespaceSelector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1358[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.NamespaceSelector == nil { - r.EncodeNil() - } else { - yym1364 := z.EncBinary() - _ = yym1364 - if false { - } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { - } else { - z.EncFallback(x.NamespaceSelector) - } - } - } - } - if yyr1358 || yy2arr1358 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1365 := z.DecBinary() - _ = yym1365 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1366 := r.ContainerType() - if yyct1366 == codecSelferValueTypeMap1234 { - yyl1366 := r.ReadMapStart() - if yyl1366 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1366, d) - } - } else if yyct1366 == codecSelferValueTypeArray1234 { - yyl1366 := r.ReadArrayStart() - if yyl1366 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1366, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1367Slc = r.DecodeBytes(yys1367Slc, true, true) - yys1367 := string(yys1367Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1367 { - case "podSelector": - if r.TryDecodeAsNil() { - if x.PodSelector != nil { - x.PodSelector = nil - } - } else { - if x.PodSelector == nil { - x.PodSelector = new(pkg1_v1.LabelSelector) - } - yym1369 := z.DecBinary() - _ = yym1369 - if false { - } else if z.HasExtensions() && z.DecExt(x.PodSelector) { - } else { - z.DecFallback(x.PodSelector, false) - } - } - case "namespaceSelector": - if r.TryDecodeAsNil() { - if x.NamespaceSelector != nil { - x.NamespaceSelector = nil - } - } else { - if x.NamespaceSelector == nil { - x.NamespaceSelector = new(pkg1_v1.LabelSelector) - } - yym1371 := z.DecBinary() - _ = yym1371 - if false { - } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { - } else { - z.DecFallback(x.NamespaceSelector, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys1367) - } // end switch yys1367 - } // end for yyj1367 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1372 int - var yyb1372 bool - var yyhl1372 bool = l >= 0 - yyj1372++ - if yyhl1372 { - yyb1372 = yyj1372 > l - } else { - yyb1372 = r.CheckBreak() - } - if yyb1372 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.PodSelector != nil { - x.PodSelector = nil - } - } else { - if x.PodSelector == nil { - x.PodSelector = new(pkg1_v1.LabelSelector) - } - yym1374 := z.DecBinary() - _ = yym1374 - if false { - } else if z.HasExtensions() && z.DecExt(x.PodSelector) { - } else { - z.DecFallback(x.PodSelector, false) - } - } - yyj1372++ - if yyhl1372 { - yyb1372 = yyj1372 > l - } else { - yyb1372 = r.CheckBreak() - } - if yyb1372 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.NamespaceSelector != nil { - x.NamespaceSelector = nil - } - } else { - if x.NamespaceSelector == nil { - x.NamespaceSelector = new(pkg1_v1.LabelSelector) - } - yym1376 := z.DecBinary() - _ = yym1376 - if false { - } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { - } else { - z.DecFallback(x.NamespaceSelector, false) - } - } - for { - yyj1372++ - if yyhl1372 { - yyb1372 = yyj1372 > l - } else { - yyb1372 = r.CheckBreak() - } - if yyb1372 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1372-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1377 := z.EncBinary() - _ = yym1377 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1378 = 1 - for _, b := range yyq1378 { - if b { - yynn1378++ - } - } - r.EncodeMapStart(yynn1378) - yynn1378 = 0 - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[0] { - yym1380 := z.EncBinary() - _ = yym1380 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1378[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1381 := z.EncBinary() - _ = yym1381 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[1] { - yym1383 := z.EncBinary() - _ = yym1383 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1378[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1384 := z.EncBinary() - _ = yym1384 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[2] { - yy1386 := &x.ListMeta - yym1387 := z.EncBinary() - _ = yym1387 - if false { - } else if z.HasExtensions() && z.EncExt(yy1386) { - } else { - z.EncFallback(yy1386) - } - } else { - r.EncodeNil() - } - } else { - if yyq1378[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1388 := &x.ListMeta - yym1389 := z.EncBinary() - _ = yym1389 - if false { - } else if z.HasExtensions() && z.EncExt(yy1388) { - } else { - z.EncFallback(yy1388) - } - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1391 := z.EncBinary() - _ = yym1391 - if false { - } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1392 := z.EncBinary() - _ = yym1392 - if false { - } else { - h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) - } - } - } - if yyr1378 || yy2arr1378 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1393 := z.DecBinary() - _ = yym1393 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1394 := r.ContainerType() - if yyct1394 == codecSelferValueTypeMap1234 { - yyl1394 := r.ReadMapStart() - if yyl1394 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1394, d) - } - } else if yyct1394 == codecSelferValueTypeArray1234 { - yyl1394 := r.ReadArrayStart() - if yyl1394 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1394, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1395Slc = r.DecodeBytes(yys1395Slc, true, true) - yys1395 := string(yys1395Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1395 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv1398 := &x.ListMeta - yym1399 := z.DecBinary() - _ = yym1399 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1398) { - } else { - z.DecFallback(yyv1398, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1400 := &x.Items - yym1401 := z.DecBinary() - _ = yym1401 - if false { - } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1400), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1395) - } // end switch yys1395 - } // end for yyj1395 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1402 int - var yyb1402 bool - var yyhl1402 bool = l >= 0 - yyj1402++ - if yyhl1402 { - yyb1402 = yyj1402 > l - } else { - yyb1402 = r.CheckBreak() - } - if yyb1402 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1402++ - if yyhl1402 { - yyb1402 = yyj1402 > l - } else { - yyb1402 = r.CheckBreak() - } - if yyb1402 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1402++ - if yyhl1402 { - yyb1402 = yyj1402 > l - } else { - yyb1402 = r.CheckBreak() - } - if yyb1402 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv1405 := &x.ListMeta - yym1406 := z.DecBinary() - _ = yym1406 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1405) { - } else { - z.DecFallback(yyv1405, false) - } - } - yyj1402++ - if yyhl1402 { - yyb1402 = yyj1402 > l - } else { - yyb1402 = r.CheckBreak() - } - if yyb1402 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1407 := &x.Items - yym1408 := z.DecBinary() - _ = yym1408 - if false { - } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1407), d) - } - } - for { - yyj1402++ - if yyhl1402 { - yyb1402 = yyj1402 > l - } else { - yyb1402 = r.CheckBreak() - } - if yyb1402 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1402-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1409 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1410 := &yyv1409 - yy1410.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1411 > 0 { - var yyrr1411, yyrl1411 int - var yyrt1411 bool - if yyl1411 > cap(yyv1411) { - - 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 { - yyv1411 = make([]CustomMetricTarget, yyrl1411) - } - } else { - yyv1411 = make([]CustomMetricTarget, yyrl1411) - } - yyc1411 = true - yyrr1411 = len(yyv1411) - if yyrg1411 { - copy(yyv1411, yyv21411) - } - } else if yyl1411 != len(yyv1411) { - yyv1411 = yyv1411[:yyl1411] - yyc1411 = true - } - yyj1411 := 0 - for ; yyj1411 < yyrr1411; yyj1411++ { - yyh1411.ElemContainerState(yyj1411) - if r.TryDecodeAsNil() { - yyv1411[yyj1411] = CustomMetricTarget{} - } else { - yyv1412 := &yyv1411[yyj1411] - yyv1412.CodecDecodeSelf(d) - } - - } - if yyrt1411 { - for ; yyj1411 < yyl1411; yyj1411++ { - yyv1411 = append(yyv1411, CustomMetricTarget{}) - yyh1411.ElemContainerState(yyj1411) - if r.TryDecodeAsNil() { - yyv1411[yyj1411] = CustomMetricTarget{} - } else { - yyv1413 := &yyv1411[yyj1411] - yyv1413.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1411 := 0 - for ; !r.CheckBreak(); yyj1411++ { - - if yyj1411 >= len(yyv1411) { - yyv1411 = append(yyv1411, CustomMetricTarget{}) // var yyz1411 CustomMetricTarget - yyc1411 = true - } - yyh1411.ElemContainerState(yyj1411) - if yyj1411 < len(yyv1411) { - if r.TryDecodeAsNil() { - yyv1411[yyj1411] = CustomMetricTarget{} - } else { - yyv1414 := &yyv1411[yyj1411] - yyv1414.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1411 < len(yyv1411) { - yyv1411 = yyv1411[:yyj1411] - yyc1411 = true - } else if yyj1411 == 0 && yyv1411 == nil { - yyv1411 = []CustomMetricTarget{} - yyc1411 = true - } - } - yyh1411.End() - if yyc1411 { - *v = yyv1411 - } -} - -func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurrentStatus, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1415 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1416 := &yyv1415 - yy1416.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurrentStatus, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1417 > 0 { - var yyrr1417, yyrl1417 int - var yyrt1417 bool - if yyl1417 > cap(yyv1417) { - - 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 { - yyv1417 = make([]CustomMetricCurrentStatus, yyrl1417) - } - } else { - yyv1417 = make([]CustomMetricCurrentStatus, yyrl1417) - } - yyc1417 = true - yyrr1417 = len(yyv1417) - if yyrg1417 { - copy(yyv1417, yyv21417) - } - } else if yyl1417 != len(yyv1417) { - yyv1417 = yyv1417[:yyl1417] - yyc1417 = true - } - yyj1417 := 0 - for ; yyj1417 < yyrr1417; yyj1417++ { - yyh1417.ElemContainerState(yyj1417) - if r.TryDecodeAsNil() { - yyv1417[yyj1417] = CustomMetricCurrentStatus{} - } else { - yyv1418 := &yyv1417[yyj1417] - yyv1418.CodecDecodeSelf(d) - } - - } - if yyrt1417 { - for ; yyj1417 < yyl1417; yyj1417++ { - yyv1417 = append(yyv1417, CustomMetricCurrentStatus{}) - yyh1417.ElemContainerState(yyj1417) - if r.TryDecodeAsNil() { - yyv1417[yyj1417] = CustomMetricCurrentStatus{} - } else { - yyv1419 := &yyv1417[yyj1417] - yyv1419.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1417 := 0 - for ; !r.CheckBreak(); yyj1417++ { - - if yyj1417 >= len(yyv1417) { - yyv1417 = append(yyv1417, CustomMetricCurrentStatus{}) // var yyz1417 CustomMetricCurrentStatus - yyc1417 = true - } - yyh1417.ElemContainerState(yyj1417) - if yyj1417 < len(yyv1417) { - if r.TryDecodeAsNil() { - yyv1417[yyj1417] = CustomMetricCurrentStatus{} - } else { - yyv1420 := &yyv1417[yyj1417] - yyv1420.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1417 < len(yyv1417) { - yyv1417 = yyv1417[:yyj1417] - yyc1417 = true - } else if yyj1417 == 0 && yyv1417 == nil { - yyv1417 = []CustomMetricCurrentStatus{} - yyc1417 = true - } - } - yyh1417.End() - if yyc1417 { - *v = yyv1417 - } -} - -func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1421 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1422 := &yyv1421 - yy1422.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1423 > 0 { - var yyrr1423, yyrl1423 int - var yyrt1423 bool - if yyl1423 > cap(yyv1423) { - - 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 { - yyv1423 = make([]APIVersion, yyrl1423) - } - } else { - yyv1423 = make([]APIVersion, yyrl1423) - } - yyc1423 = true - yyrr1423 = len(yyv1423) - if yyrg1423 { - copy(yyv1423, yyv21423) - } - } else if yyl1423 != len(yyv1423) { - yyv1423 = yyv1423[:yyl1423] - yyc1423 = true - } - yyj1423 := 0 - for ; yyj1423 < yyrr1423; yyj1423++ { - yyh1423.ElemContainerState(yyj1423) - if r.TryDecodeAsNil() { - yyv1423[yyj1423] = APIVersion{} - } else { - yyv1424 := &yyv1423[yyj1423] - yyv1424.CodecDecodeSelf(d) - } - - } - if yyrt1423 { - for ; yyj1423 < yyl1423; yyj1423++ { - yyv1423 = append(yyv1423, APIVersion{}) - yyh1423.ElemContainerState(yyj1423) - if r.TryDecodeAsNil() { - yyv1423[yyj1423] = APIVersion{} - } else { - yyv1425 := &yyv1423[yyj1423] - yyv1425.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1423 := 0 - for ; !r.CheckBreak(); yyj1423++ { - - if yyj1423 >= len(yyv1423) { - yyv1423 = append(yyv1423, APIVersion{}) // var yyz1423 APIVersion - yyc1423 = true - } - yyh1423.ElemContainerState(yyj1423) - if yyj1423 < len(yyv1423) { - if r.TryDecodeAsNil() { - yyv1423[yyj1423] = APIVersion{} - } else { - yyv1426 := &yyv1423[yyj1423] - yyv1426.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1423 < len(yyv1423) { - yyv1423 = yyv1423[:yyj1423] - yyc1423 = true - } else if yyj1423 == 0 && yyv1423 == nil { - yyv1423 = []APIVersion{} - yyc1423 = true - } - } - yyh1423.End() - if yyc1423 { - *v = yyv1423 - } -} - -func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1427 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1428 := &yyv1427 - yy1428.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1429 > 0 { - var yyrr1429, yyrl1429 int - var yyrt1429 bool - if yyl1429 > cap(yyv1429) { - - 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 { - yyv1429 = make([]ThirdPartyResource, yyrl1429) - } - } else { - yyv1429 = make([]ThirdPartyResource, yyrl1429) - } - yyc1429 = true - yyrr1429 = len(yyv1429) - if yyrg1429 { - copy(yyv1429, yyv21429) - } - } else if yyl1429 != len(yyv1429) { - yyv1429 = yyv1429[:yyl1429] - yyc1429 = true - } - yyj1429 := 0 - for ; yyj1429 < yyrr1429; yyj1429++ { - yyh1429.ElemContainerState(yyj1429) - if r.TryDecodeAsNil() { - yyv1429[yyj1429] = ThirdPartyResource{} - } else { - yyv1430 := &yyv1429[yyj1429] - yyv1430.CodecDecodeSelf(d) - } - - } - if yyrt1429 { - for ; yyj1429 < yyl1429; yyj1429++ { - yyv1429 = append(yyv1429, ThirdPartyResource{}) - yyh1429.ElemContainerState(yyj1429) - if r.TryDecodeAsNil() { - yyv1429[yyj1429] = ThirdPartyResource{} - } else { - yyv1431 := &yyv1429[yyj1429] - yyv1431.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1429 := 0 - for ; !r.CheckBreak(); yyj1429++ { - - if yyj1429 >= len(yyv1429) { - yyv1429 = append(yyv1429, ThirdPartyResource{}) // var yyz1429 ThirdPartyResource - yyc1429 = true - } - yyh1429.ElemContainerState(yyj1429) - if yyj1429 < len(yyv1429) { - if r.TryDecodeAsNil() { - yyv1429[yyj1429] = ThirdPartyResource{} - } else { - yyv1432 := &yyv1429[yyj1429] - yyv1432.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1429 < len(yyv1429) { - yyv1429 = yyv1429[:yyj1429] - yyc1429 = true - } else if yyj1429 == 0 && yyv1429 == nil { - yyv1429 = []ThirdPartyResource{} - yyc1429 = true - } - } - 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 - } -} - -func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1439 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1440 := &yyv1439 - yy1440.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1441 > 0 { - var yyrr1441, yyrl1441 int - var yyrt1441 bool - if yyl1441 > cap(yyv1441) { - - yyrg1441 := len(yyv1441) > 0 - yyv21441 := yyv1441 - yyrl1441, yyrt1441 = z.DecInferLen(yyl1441, z.DecBasicHandle().MaxInitLen, 840) - if yyrt1441 { - if yyrl1441 <= cap(yyv1441) { - yyv1441 = yyv1441[:yyrl1441] - } else { - yyv1441 = make([]Deployment, yyrl1441) - } - } else { - yyv1441 = make([]Deployment, yyrl1441) - } - yyc1441 = true - yyrr1441 = len(yyv1441) - if yyrg1441 { - copy(yyv1441, yyv21441) - } - } else if yyl1441 != len(yyv1441) { - yyv1441 = yyv1441[:yyl1441] - yyc1441 = true - } - yyj1441 := 0 - for ; yyj1441 < yyrr1441; yyj1441++ { - yyh1441.ElemContainerState(yyj1441) - if r.TryDecodeAsNil() { - yyv1441[yyj1441] = Deployment{} - } else { - yyv1442 := &yyv1441[yyj1441] - yyv1442.CodecDecodeSelf(d) - } - - } - if yyrt1441 { - for ; yyj1441 < yyl1441; yyj1441++ { - yyv1441 = append(yyv1441, Deployment{}) - yyh1441.ElemContainerState(yyj1441) - if r.TryDecodeAsNil() { - yyv1441[yyj1441] = Deployment{} - } else { - yyv1443 := &yyv1441[yyj1441] - yyv1443.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1441 := 0 - for ; !r.CheckBreak(); yyj1441++ { - - if yyj1441 >= len(yyv1441) { - yyv1441 = append(yyv1441, Deployment{}) // var yyz1441 Deployment - yyc1441 = true - } - yyh1441.ElemContainerState(yyj1441) - if yyj1441 < len(yyv1441) { - if r.TryDecodeAsNil() { - yyv1441[yyj1441] = Deployment{} - } else { - yyv1444 := &yyv1441[yyj1441] - yyv1444.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1441 < len(yyv1441) { - yyv1441 = yyv1441[:yyj1441] - yyc1441 = true - } else if yyj1441 == 0 && yyv1441 == nil { - yyv1441 = []Deployment{} - yyc1441 = true - } - } - yyh1441.End() - if yyc1441 { - *v = yyv1441 - } -} - -func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1445 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1446 := &yyv1445 - yy1446.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1447 > 0 { - var yyrr1447, yyrl1447 int - var yyrt1447 bool - if yyl1447 > cap(yyv1447) { - - yyrg1447 := len(yyv1447) > 0 - yyv21447 := yyv1447 - yyrl1447, yyrt1447 = z.DecInferLen(yyl1447, z.DecBasicHandle().MaxInitLen, 736) - if yyrt1447 { - if yyrl1447 <= cap(yyv1447) { - yyv1447 = yyv1447[:yyrl1447] - } else { - yyv1447 = make([]DaemonSet, yyrl1447) - } - } else { - yyv1447 = make([]DaemonSet, yyrl1447) - } - yyc1447 = true - yyrr1447 = len(yyv1447) - if yyrg1447 { - copy(yyv1447, yyv21447) - } - } else if yyl1447 != len(yyv1447) { - yyv1447 = yyv1447[:yyl1447] - yyc1447 = true - } - yyj1447 := 0 - for ; yyj1447 < yyrr1447; yyj1447++ { - yyh1447.ElemContainerState(yyj1447) - if r.TryDecodeAsNil() { - yyv1447[yyj1447] = DaemonSet{} - } else { - yyv1448 := &yyv1447[yyj1447] - yyv1448.CodecDecodeSelf(d) - } - - } - if yyrt1447 { - for ; yyj1447 < yyl1447; yyj1447++ { - yyv1447 = append(yyv1447, DaemonSet{}) - yyh1447.ElemContainerState(yyj1447) - if r.TryDecodeAsNil() { - yyv1447[yyj1447] = DaemonSet{} - } else { - yyv1449 := &yyv1447[yyj1447] - yyv1449.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1447 := 0 - for ; !r.CheckBreak(); yyj1447++ { - - if yyj1447 >= len(yyv1447) { - yyv1447 = append(yyv1447, DaemonSet{}) // var yyz1447 DaemonSet - yyc1447 = true - } - yyh1447.ElemContainerState(yyj1447) - if yyj1447 < len(yyv1447) { - if r.TryDecodeAsNil() { - yyv1447[yyj1447] = DaemonSet{} - } else { - yyv1450 := &yyv1447[yyj1447] - yyv1450.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1447 < len(yyv1447) { - yyv1447 = yyv1447[:yyj1447] - yyc1447 = true - } else if yyj1447 == 0 && yyv1447 == nil { - yyv1447 = []DaemonSet{} - yyc1447 = true - } - } - yyh1447.End() - if yyc1447 { - *v = yyv1447 - } -} - -func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceData, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1451 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1452 := &yyv1451 - yy1452.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceData, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1453 > 0 { - var yyrr1453, yyrl1453 int - var yyrt1453 bool - if yyl1453 > cap(yyv1453) { - - 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 { - yyv1453 = make([]ThirdPartyResourceData, yyrl1453) - } - } else { - yyv1453 = make([]ThirdPartyResourceData, yyrl1453) - } - yyc1453 = true - yyrr1453 = len(yyv1453) - if yyrg1453 { - copy(yyv1453, yyv21453) - } - } else if yyl1453 != len(yyv1453) { - yyv1453 = yyv1453[:yyl1453] - yyc1453 = true - } - yyj1453 := 0 - for ; yyj1453 < yyrr1453; yyj1453++ { - yyh1453.ElemContainerState(yyj1453) - if r.TryDecodeAsNil() { - yyv1453[yyj1453] = ThirdPartyResourceData{} - } else { - yyv1454 := &yyv1453[yyj1453] - yyv1454.CodecDecodeSelf(d) - } - - } - if yyrt1453 { - for ; yyj1453 < yyl1453; yyj1453++ { - yyv1453 = append(yyv1453, ThirdPartyResourceData{}) - yyh1453.ElemContainerState(yyj1453) - if r.TryDecodeAsNil() { - yyv1453[yyj1453] = ThirdPartyResourceData{} - } else { - yyv1455 := &yyv1453[yyj1453] - yyv1455.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1453 := 0 - for ; !r.CheckBreak(); yyj1453++ { - - if yyj1453 >= len(yyv1453) { - yyv1453 = append(yyv1453, ThirdPartyResourceData{}) // var yyz1453 ThirdPartyResourceData - yyc1453 = true - } - yyh1453.ElemContainerState(yyj1453) - if yyj1453 < len(yyv1453) { - if r.TryDecodeAsNil() { - yyv1453[yyj1453] = ThirdPartyResourceData{} - } else { - yyv1456 := &yyv1453[yyj1453] - yyv1456.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1453 < len(yyv1453) { - yyv1453 = yyv1453[:yyj1453] - yyc1453 = true - } else if yyj1453 == 0 && yyv1453 == nil { - yyv1453 = []ThirdPartyResourceData{} - yyc1453 = true - } - } - yyh1453.End() - if yyc1453 { - *v = yyv1453 - } -} - -func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1457 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1458 := &yyv1457 - yy1458.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1459 > 0 { - var yyrr1459, yyrl1459 int - var yyrt1459 bool - if yyl1459 > cap(yyv1459) { - - 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 { - yyv1459 = make([]Ingress, yyrl1459) - } - } else { - yyv1459 = make([]Ingress, yyrl1459) - } - yyc1459 = true - yyrr1459 = len(yyv1459) - if yyrg1459 { - copy(yyv1459, yyv21459) - } - } else if yyl1459 != len(yyv1459) { - yyv1459 = yyv1459[:yyl1459] - yyc1459 = true - } - yyj1459 := 0 - for ; yyj1459 < yyrr1459; yyj1459++ { - yyh1459.ElemContainerState(yyj1459) - if r.TryDecodeAsNil() { - yyv1459[yyj1459] = Ingress{} - } else { - yyv1460 := &yyv1459[yyj1459] - yyv1460.CodecDecodeSelf(d) - } - - } - if yyrt1459 { - for ; yyj1459 < yyl1459; yyj1459++ { - yyv1459 = append(yyv1459, Ingress{}) - yyh1459.ElemContainerState(yyj1459) - if r.TryDecodeAsNil() { - yyv1459[yyj1459] = Ingress{} - } else { - yyv1461 := &yyv1459[yyj1459] - yyv1461.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1459 := 0 - for ; !r.CheckBreak(); yyj1459++ { - - if yyj1459 >= len(yyv1459) { - yyv1459 = append(yyv1459, Ingress{}) // var yyz1459 Ingress - yyc1459 = true - } - yyh1459.ElemContainerState(yyj1459) - if yyj1459 < len(yyv1459) { - if r.TryDecodeAsNil() { - yyv1459[yyj1459] = Ingress{} - } else { - yyv1462 := &yyv1459[yyj1459] - yyv1462.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1459 < len(yyv1459) { - yyv1459 = yyv1459[:yyj1459] - yyc1459 = true - } else if yyj1459 == 0 && yyv1459 == nil { - yyv1459 = []Ingress{} - yyc1459 = true - } - } - yyh1459.End() - if yyc1459 { - *v = yyv1459 - } -} - -func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1463 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1464 := &yyv1463 - yy1464.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1465 > 0 { - var yyrr1465, yyrl1465 int - var yyrt1465 bool - if yyl1465 > cap(yyv1465) { - - 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 { - yyv1465 = make([]IngressTLS, yyrl1465) - } - } else { - yyv1465 = make([]IngressTLS, yyrl1465) - } - yyc1465 = true - yyrr1465 = len(yyv1465) - if yyrg1465 { - copy(yyv1465, yyv21465) - } - } else if yyl1465 != len(yyv1465) { - yyv1465 = yyv1465[:yyl1465] - yyc1465 = true - } - yyj1465 := 0 - for ; yyj1465 < yyrr1465; yyj1465++ { - yyh1465.ElemContainerState(yyj1465) - if r.TryDecodeAsNil() { - yyv1465[yyj1465] = IngressTLS{} - } else { - yyv1466 := &yyv1465[yyj1465] - yyv1466.CodecDecodeSelf(d) - } - - } - if yyrt1465 { - for ; yyj1465 < yyl1465; yyj1465++ { - yyv1465 = append(yyv1465, IngressTLS{}) - yyh1465.ElemContainerState(yyj1465) - if r.TryDecodeAsNil() { - yyv1465[yyj1465] = IngressTLS{} - } else { - yyv1467 := &yyv1465[yyj1465] - yyv1467.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1465 := 0 - for ; !r.CheckBreak(); yyj1465++ { - - if yyj1465 >= len(yyv1465) { - yyv1465 = append(yyv1465, IngressTLS{}) // var yyz1465 IngressTLS - yyc1465 = true - } - yyh1465.ElemContainerState(yyj1465) - if yyj1465 < len(yyv1465) { - if r.TryDecodeAsNil() { - yyv1465[yyj1465] = IngressTLS{} - } else { - yyv1468 := &yyv1465[yyj1465] - yyv1468.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1465 < len(yyv1465) { - yyv1465 = yyv1465[:yyj1465] - yyc1465 = true - } else if yyj1465 == 0 && yyv1465 == nil { - yyv1465 = []IngressTLS{} - yyc1465 = true - } - } - yyh1465.End() - if yyc1465 { - *v = yyv1465 - } -} - -func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1469 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1470 := &yyv1469 - yy1470.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1471 > 0 { - var yyrr1471, yyrl1471 int - var yyrt1471 bool - if yyl1471 > cap(yyv1471) { - - 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 { - yyv1471 = make([]IngressRule, yyrl1471) - } - } else { - yyv1471 = make([]IngressRule, yyrl1471) - } - yyc1471 = true - yyrr1471 = len(yyv1471) - if yyrg1471 { - copy(yyv1471, yyv21471) - } - } else if yyl1471 != len(yyv1471) { - yyv1471 = yyv1471[:yyl1471] - yyc1471 = true - } - yyj1471 := 0 - for ; yyj1471 < yyrr1471; yyj1471++ { - yyh1471.ElemContainerState(yyj1471) - if r.TryDecodeAsNil() { - yyv1471[yyj1471] = IngressRule{} - } else { - yyv1472 := &yyv1471[yyj1471] - yyv1472.CodecDecodeSelf(d) - } - - } - if yyrt1471 { - for ; yyj1471 < yyl1471; yyj1471++ { - yyv1471 = append(yyv1471, IngressRule{}) - yyh1471.ElemContainerState(yyj1471) - if r.TryDecodeAsNil() { - yyv1471[yyj1471] = IngressRule{} - } else { - yyv1473 := &yyv1471[yyj1471] - yyv1473.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1471 := 0 - for ; !r.CheckBreak(); yyj1471++ { - - if yyj1471 >= len(yyv1471) { - yyv1471 = append(yyv1471, IngressRule{}) // var yyz1471 IngressRule - yyc1471 = true - } - yyh1471.ElemContainerState(yyj1471) - if yyj1471 < len(yyv1471) { - if r.TryDecodeAsNil() { - yyv1471[yyj1471] = IngressRule{} - } else { - yyv1474 := &yyv1471[yyj1471] - yyv1474.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1471 < len(yyv1471) { - yyv1471 = yyv1471[:yyj1471] - yyc1471 = true - } else if yyj1471 == 0 && yyv1471 == nil { - yyv1471 = []IngressRule{} - yyc1471 = true - } - } - yyh1471.End() - if yyc1471 { - *v = yyv1471 - } -} - -func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1475 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1476 := &yyv1475 - yy1476.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1477 > 0 { - var yyrr1477, yyrl1477 int - var yyrt1477 bool - if yyl1477 > cap(yyv1477) { - - 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 { - yyv1477 = make([]HTTPIngressPath, yyrl1477) - } - } else { - yyv1477 = make([]HTTPIngressPath, yyrl1477) - } - yyc1477 = true - yyrr1477 = len(yyv1477) - if yyrg1477 { - copy(yyv1477, yyv21477) - } - } else if yyl1477 != len(yyv1477) { - yyv1477 = yyv1477[:yyl1477] - yyc1477 = true - } - yyj1477 := 0 - for ; yyj1477 < yyrr1477; yyj1477++ { - yyh1477.ElemContainerState(yyj1477) - if r.TryDecodeAsNil() { - yyv1477[yyj1477] = HTTPIngressPath{} - } else { - yyv1478 := &yyv1477[yyj1477] - yyv1478.CodecDecodeSelf(d) - } - - } - if yyrt1477 { - for ; yyj1477 < yyl1477; yyj1477++ { - yyv1477 = append(yyv1477, HTTPIngressPath{}) - yyh1477.ElemContainerState(yyj1477) - if r.TryDecodeAsNil() { - yyv1477[yyj1477] = HTTPIngressPath{} - } else { - yyv1479 := &yyv1477[yyj1477] - yyv1479.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1477 := 0 - for ; !r.CheckBreak(); yyj1477++ { - - if yyj1477 >= len(yyv1477) { - yyv1477 = append(yyv1477, HTTPIngressPath{}) // var yyz1477 HTTPIngressPath - yyc1477 = true - } - yyh1477.ElemContainerState(yyj1477) - if yyj1477 < len(yyv1477) { - if r.TryDecodeAsNil() { - yyv1477[yyj1477] = HTTPIngressPath{} - } else { - yyv1480 := &yyv1477[yyj1477] - yyv1480.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1477 < len(yyv1477) { - yyv1477 = yyv1477[:yyj1477] - yyc1477 = true - } else if yyj1477 == 0 && yyv1477 == nil { - yyv1477 = []HTTPIngressPath{} - yyc1477 = true - } - } - yyh1477.End() - if yyc1477 { - *v = yyv1477 - } -} - -func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1481 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1482 := &yyv1481 - yy1482.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1483 > 0 { - var yyrr1483, yyrl1483 int - var yyrt1483 bool - if yyl1483 > cap(yyv1483) { - - yyrg1483 := len(yyv1483) > 0 - yyv21483 := yyv1483 - yyrl1483, yyrt1483 = z.DecInferLen(yyl1483, z.DecBasicHandle().MaxInitLen, 776) - if yyrt1483 { - if yyrl1483 <= cap(yyv1483) { - yyv1483 = yyv1483[:yyrl1483] - } else { - yyv1483 = make([]ReplicaSet, yyrl1483) - } - } else { - yyv1483 = make([]ReplicaSet, yyrl1483) - } - yyc1483 = true - yyrr1483 = len(yyv1483) - if yyrg1483 { - copy(yyv1483, yyv21483) - } - } else if yyl1483 != len(yyv1483) { - yyv1483 = yyv1483[:yyl1483] - yyc1483 = true - } - yyj1483 := 0 - for ; yyj1483 < yyrr1483; yyj1483++ { - yyh1483.ElemContainerState(yyj1483) - if r.TryDecodeAsNil() { - yyv1483[yyj1483] = ReplicaSet{} - } else { - yyv1484 := &yyv1483[yyj1483] - yyv1484.CodecDecodeSelf(d) - } - - } - if yyrt1483 { - for ; yyj1483 < yyl1483; yyj1483++ { - yyv1483 = append(yyv1483, ReplicaSet{}) - yyh1483.ElemContainerState(yyj1483) - if r.TryDecodeAsNil() { - yyv1483[yyj1483] = ReplicaSet{} - } else { - yyv1485 := &yyv1483[yyj1483] - yyv1485.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1483 := 0 - for ; !r.CheckBreak(); yyj1483++ { - - if yyj1483 >= len(yyv1483) { - yyv1483 = append(yyv1483, ReplicaSet{}) // var yyz1483 ReplicaSet - yyc1483 = true - } - yyh1483.ElemContainerState(yyj1483) - if yyj1483 < len(yyv1483) { - if r.TryDecodeAsNil() { - yyv1483[yyj1483] = ReplicaSet{} - } else { - yyv1486 := &yyv1483[yyj1483] - yyv1486.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1483 < len(yyv1483) { - yyv1483 = yyv1483[:yyj1483] - yyc1483 = true - } else if yyj1483 == 0 && yyv1483 == nil { - yyv1483 = []ReplicaSet{} - yyc1483 = true - } - } - 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 - } -} - -func (x codecSelfer1234) encSliceapi_Capability(v []pkg2_api.Capability, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1493 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1494 := z.EncBinary() - _ = yym1494 - if false { - } else if z.HasExtensions() && z.EncExt(yyv1493) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1493)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1495 > 0 { - var yyrr1495, yyrl1495 int - var yyrt1495 bool - if yyl1495 > cap(yyv1495) { - - yyrl1495, yyrt1495 = z.DecInferLen(yyl1495, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1495 { - if yyrl1495 <= cap(yyv1495) { - yyv1495 = yyv1495[:yyrl1495] - } else { - yyv1495 = make([]pkg2_api.Capability, yyrl1495) - } - } else { - yyv1495 = make([]pkg2_api.Capability, yyrl1495) - } - yyc1495 = true - yyrr1495 = len(yyv1495) - } else if yyl1495 != len(yyv1495) { - yyv1495 = yyv1495[:yyl1495] - yyc1495 = true - } - yyj1495 := 0 - for ; yyj1495 < yyrr1495; yyj1495++ { - yyh1495.ElemContainerState(yyj1495) - if r.TryDecodeAsNil() { - yyv1495[yyj1495] = "" - } else { - yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) - } - - } - if yyrt1495 { - for ; yyj1495 < yyl1495; yyj1495++ { - yyv1495 = append(yyv1495, "") - yyh1495.ElemContainerState(yyj1495) - if r.TryDecodeAsNil() { - yyv1495[yyj1495] = "" - } else { - yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) - } - - } - } - - } else { - yyj1495 := 0 - for ; !r.CheckBreak(); yyj1495++ { - - if yyj1495 >= len(yyv1495) { - yyv1495 = append(yyv1495, "") // var yyz1495 pkg2_api.Capability - yyc1495 = true - } - yyh1495.ElemContainerState(yyj1495) - if yyj1495 < len(yyv1495) { - if r.TryDecodeAsNil() { - yyv1495[yyj1495] = "" - } else { - yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj1495 < len(yyv1495) { - yyv1495 = yyv1495[:yyj1495] - yyc1495 = true - } else if yyj1495 == 0 && yyv1495 == nil { - yyv1495 = []pkg2_api.Capability{} - yyc1495 = true - } - } - yyh1495.End() - if yyc1495 { - *v = yyv1495 - } -} - -func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1499 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1499.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1500 > 0 { - var yyrr1500, yyrl1500 int - var yyrt1500 bool - if yyl1500 > cap(yyv1500) { - - yyrl1500, yyrt1500 = z.DecInferLen(yyl1500, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1500 { - if yyrl1500 <= cap(yyv1500) { - yyv1500 = yyv1500[:yyrl1500] - } else { - yyv1500 = make([]FSType, yyrl1500) - } - } else { - yyv1500 = make([]FSType, yyrl1500) - } - yyc1500 = true - yyrr1500 = len(yyv1500) - } else if yyl1500 != len(yyv1500) { - yyv1500 = yyv1500[:yyl1500] - yyc1500 = true - } - yyj1500 := 0 - for ; yyj1500 < yyrr1500; yyj1500++ { - yyh1500.ElemContainerState(yyj1500) - if r.TryDecodeAsNil() { - yyv1500[yyj1500] = "" - } else { - yyv1500[yyj1500] = FSType(r.DecodeString()) - } - - } - if yyrt1500 { - for ; yyj1500 < yyl1500; yyj1500++ { - yyv1500 = append(yyv1500, "") - yyh1500.ElemContainerState(yyj1500) - if r.TryDecodeAsNil() { - yyv1500[yyj1500] = "" - } else { - yyv1500[yyj1500] = FSType(r.DecodeString()) - } - - } - } - - } else { - yyj1500 := 0 - for ; !r.CheckBreak(); yyj1500++ { - - if yyj1500 >= len(yyv1500) { - yyv1500 = append(yyv1500, "") // var yyz1500 FSType - yyc1500 = true - } - yyh1500.ElemContainerState(yyj1500) - if yyj1500 < len(yyv1500) { - if r.TryDecodeAsNil() { - yyv1500[yyj1500] = "" - } else { - yyv1500[yyj1500] = FSType(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj1500 < len(yyv1500) { - yyv1500 = yyv1500[:yyj1500] - yyc1500 = true - } else if yyj1500 == 0 && yyv1500 == nil { - yyv1500 = []FSType{} - yyc1500 = true - } - } - yyh1500.End() - if yyc1500 { - *v = yyv1500 - } -} - -func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1504 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1505 := &yyv1504 - yy1505.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1506 > 0 { - var yyrr1506, yyrl1506 int - var yyrt1506 bool - if yyl1506 > cap(yyv1506) { - - 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 { - yyv1506 = make([]HostPortRange, yyrl1506) - } - } else { - yyv1506 = make([]HostPortRange, yyrl1506) - } - yyc1506 = true - yyrr1506 = len(yyv1506) - if yyrg1506 { - copy(yyv1506, yyv21506) - } - } else if yyl1506 != len(yyv1506) { - yyv1506 = yyv1506[:yyl1506] - yyc1506 = true - } - yyj1506 := 0 - for ; yyj1506 < yyrr1506; yyj1506++ { - yyh1506.ElemContainerState(yyj1506) - if r.TryDecodeAsNil() { - yyv1506[yyj1506] = HostPortRange{} - } else { - yyv1507 := &yyv1506[yyj1506] - yyv1507.CodecDecodeSelf(d) - } - - } - if yyrt1506 { - for ; yyj1506 < yyl1506; yyj1506++ { - yyv1506 = append(yyv1506, HostPortRange{}) - yyh1506.ElemContainerState(yyj1506) - if r.TryDecodeAsNil() { - yyv1506[yyj1506] = HostPortRange{} - } else { - yyv1508 := &yyv1506[yyj1506] - yyv1508.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1506 := 0 - for ; !r.CheckBreak(); yyj1506++ { - - if yyj1506 >= len(yyv1506) { - yyv1506 = append(yyv1506, HostPortRange{}) // var yyz1506 HostPortRange - yyc1506 = true - } - yyh1506.ElemContainerState(yyj1506) - if yyj1506 < len(yyv1506) { - if r.TryDecodeAsNil() { - yyv1506[yyj1506] = HostPortRange{} - } else { - yyv1509 := &yyv1506[yyj1506] - yyv1509.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1506 < len(yyv1506) { - yyv1506 = yyv1506[:yyj1506] - yyc1506 = true - } else if yyj1506 == 0 && yyv1506 == nil { - yyv1506 = []HostPortRange{} - yyc1506 = true - } - } - yyh1506.End() - if yyc1506 { - *v = yyv1506 - } -} - -func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1510 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1511 := &yyv1510 - yy1511.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1512 > 0 { - var yyrr1512, yyrl1512 int - var yyrt1512 bool - if yyl1512 > cap(yyv1512) { - - 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 { - yyv1512 = make([]IDRange, yyrl1512) - } - } else { - yyv1512 = make([]IDRange, yyrl1512) - } - yyc1512 = true - yyrr1512 = len(yyv1512) - if yyrg1512 { - copy(yyv1512, yyv21512) - } - } else if yyl1512 != len(yyv1512) { - yyv1512 = yyv1512[:yyl1512] - yyc1512 = true - } - yyj1512 := 0 - for ; yyj1512 < yyrr1512; yyj1512++ { - yyh1512.ElemContainerState(yyj1512) - if r.TryDecodeAsNil() { - yyv1512[yyj1512] = IDRange{} - } else { - yyv1513 := &yyv1512[yyj1512] - yyv1513.CodecDecodeSelf(d) - } - - } - if yyrt1512 { - for ; yyj1512 < yyl1512; yyj1512++ { - yyv1512 = append(yyv1512, IDRange{}) - yyh1512.ElemContainerState(yyj1512) - if r.TryDecodeAsNil() { - yyv1512[yyj1512] = IDRange{} - } else { - yyv1514 := &yyv1512[yyj1512] - yyv1514.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1512 := 0 - for ; !r.CheckBreak(); yyj1512++ { - - if yyj1512 >= len(yyv1512) { - yyv1512 = append(yyv1512, IDRange{}) // var yyz1512 IDRange - yyc1512 = true - } - yyh1512.ElemContainerState(yyj1512) - if yyj1512 < len(yyv1512) { - if r.TryDecodeAsNil() { - yyv1512[yyj1512] = IDRange{} - } else { - yyv1515 := &yyv1512[yyj1512] - yyv1515.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1512 < len(yyv1512) { - yyv1512 = yyv1512[:yyj1512] - yyc1512 = true - } else if yyj1512 == 0 && yyv1512 == nil { - yyv1512 = []IDRange{} - yyc1512 = true - } - } - yyh1512.End() - if yyc1512 { - *v = yyv1512 - } -} - -func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1516 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1517 := &yyv1516 - yy1517.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1518 > 0 { - var yyrr1518, yyrl1518 int - var yyrt1518 bool - if yyl1518 > cap(yyv1518) { - - 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 { - yyv1518 = make([]PodSecurityPolicy, yyrl1518) - } - } else { - yyv1518 = make([]PodSecurityPolicy, yyrl1518) - } - yyc1518 = true - yyrr1518 = len(yyv1518) - if yyrg1518 { - copy(yyv1518, yyv21518) - } - } else if yyl1518 != len(yyv1518) { - yyv1518 = yyv1518[:yyl1518] - yyc1518 = true - } - yyj1518 := 0 - for ; yyj1518 < yyrr1518; yyj1518++ { - yyh1518.ElemContainerState(yyj1518) - if r.TryDecodeAsNil() { - yyv1518[yyj1518] = PodSecurityPolicy{} - } else { - yyv1519 := &yyv1518[yyj1518] - yyv1519.CodecDecodeSelf(d) - } - - } - if yyrt1518 { - for ; yyj1518 < yyl1518; yyj1518++ { - yyv1518 = append(yyv1518, PodSecurityPolicy{}) - yyh1518.ElemContainerState(yyj1518) - if r.TryDecodeAsNil() { - yyv1518[yyj1518] = PodSecurityPolicy{} - } else { - yyv1520 := &yyv1518[yyj1518] - yyv1520.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1518 := 0 - for ; !r.CheckBreak(); yyj1518++ { - - if yyj1518 >= len(yyv1518) { - yyv1518 = append(yyv1518, PodSecurityPolicy{}) // var yyz1518 PodSecurityPolicy - yyc1518 = true - } - yyh1518.ElemContainerState(yyj1518) - if yyj1518 < len(yyv1518) { - if r.TryDecodeAsNil() { - yyv1518[yyj1518] = PodSecurityPolicy{} - } else { - yyv1521 := &yyv1518[yyj1518] - yyv1521.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1518 < len(yyv1518) { - yyv1518 = yyv1518[:yyj1518] - yyc1518 = true - } else if yyj1518 == 0 && yyv1518 == nil { - yyv1518 = []PodSecurityPolicy{} - yyc1518 = true - } - } - yyh1518.End() - if yyc1518 { - *v = yyv1518 - } -} - -func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngressRule, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1522 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1523 := &yyv1522 - yy1523.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngressRule, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1524 > 0 { - var yyrr1524, yyrl1524 int - var yyrt1524 bool - if yyl1524 > cap(yyv1524) { - - 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 { - yyv1524 = make([]NetworkPolicyIngressRule, yyrl1524) - } - } else { - yyv1524 = make([]NetworkPolicyIngressRule, yyrl1524) - } - yyc1524 = true - yyrr1524 = len(yyv1524) - if yyrg1524 { - copy(yyv1524, yyv21524) - } - } else if yyl1524 != len(yyv1524) { - yyv1524 = yyv1524[:yyl1524] - yyc1524 = true - } - yyj1524 := 0 - for ; yyj1524 < yyrr1524; yyj1524++ { - yyh1524.ElemContainerState(yyj1524) - if r.TryDecodeAsNil() { - yyv1524[yyj1524] = NetworkPolicyIngressRule{} - } else { - yyv1525 := &yyv1524[yyj1524] - yyv1525.CodecDecodeSelf(d) - } - - } - if yyrt1524 { - for ; yyj1524 < yyl1524; yyj1524++ { - yyv1524 = append(yyv1524, NetworkPolicyIngressRule{}) - yyh1524.ElemContainerState(yyj1524) - if r.TryDecodeAsNil() { - yyv1524[yyj1524] = NetworkPolicyIngressRule{} - } else { - yyv1526 := &yyv1524[yyj1524] - yyv1526.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1524 := 0 - for ; !r.CheckBreak(); yyj1524++ { - - if yyj1524 >= len(yyv1524) { - yyv1524 = append(yyv1524, NetworkPolicyIngressRule{}) // var yyz1524 NetworkPolicyIngressRule - yyc1524 = true - } - yyh1524.ElemContainerState(yyj1524) - if yyj1524 < len(yyv1524) { - if r.TryDecodeAsNil() { - yyv1524[yyj1524] = NetworkPolicyIngressRule{} - } else { - yyv1527 := &yyv1524[yyj1524] - yyv1527.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1524 < len(yyv1524) { - yyv1524 = yyv1524[:yyj1524] - yyc1524 = true - } else if yyj1524 == 0 && yyv1524 == nil { - yyv1524 = []NetworkPolicyIngressRule{} - yyc1524 = true - } - } - yyh1524.End() - if yyc1524 { - *v = yyv1524 - } -} - -func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1528 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1529 := &yyv1528 - yy1529.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1530 > 0 { - var yyrr1530, yyrl1530 int - var yyrt1530 bool - if yyl1530 > cap(yyv1530) { - - 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 { - yyv1530 = make([]NetworkPolicyPort, yyrl1530) - } - } else { - yyv1530 = make([]NetworkPolicyPort, yyrl1530) - } - yyc1530 = true - yyrr1530 = len(yyv1530) - if yyrg1530 { - copy(yyv1530, yyv21530) - } - } else if yyl1530 != len(yyv1530) { - yyv1530 = yyv1530[:yyl1530] - yyc1530 = true - } - yyj1530 := 0 - for ; yyj1530 < yyrr1530; yyj1530++ { - yyh1530.ElemContainerState(yyj1530) - if r.TryDecodeAsNil() { - yyv1530[yyj1530] = NetworkPolicyPort{} - } else { - yyv1531 := &yyv1530[yyj1530] - yyv1531.CodecDecodeSelf(d) - } - - } - if yyrt1530 { - for ; yyj1530 < yyl1530; yyj1530++ { - yyv1530 = append(yyv1530, NetworkPolicyPort{}) - yyh1530.ElemContainerState(yyj1530) - if r.TryDecodeAsNil() { - yyv1530[yyj1530] = NetworkPolicyPort{} - } else { - yyv1532 := &yyv1530[yyj1530] - yyv1532.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1530 := 0 - for ; !r.CheckBreak(); yyj1530++ { - - if yyj1530 >= len(yyv1530) { - yyv1530 = append(yyv1530, NetworkPolicyPort{}) // var yyz1530 NetworkPolicyPort - yyc1530 = true - } - yyh1530.ElemContainerState(yyj1530) - if yyj1530 < len(yyv1530) { - if r.TryDecodeAsNil() { - yyv1530[yyj1530] = NetworkPolicyPort{} - } else { - yyv1533 := &yyv1530[yyj1530] - yyv1533.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1530 < len(yyv1530) { - yyv1530 = yyv1530[:yyj1530] - yyc1530 = true - } else if yyj1530 == 0 && yyv1530 == nil { - yyv1530 = []NetworkPolicyPort{} - yyc1530 = true - } - } - yyh1530.End() - if yyc1530 { - *v = yyv1530 - } -} - -func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1534 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1535 := &yyv1534 - yy1535.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1536 > 0 { - var yyrr1536, yyrl1536 int - var yyrt1536 bool - if yyl1536 > cap(yyv1536) { - - 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 { - yyv1536 = make([]NetworkPolicyPeer, yyrl1536) - } - } else { - yyv1536 = make([]NetworkPolicyPeer, yyrl1536) - } - yyc1536 = true - yyrr1536 = len(yyv1536) - if yyrg1536 { - copy(yyv1536, yyv21536) - } - } else if yyl1536 != len(yyv1536) { - yyv1536 = yyv1536[:yyl1536] - yyc1536 = true - } - yyj1536 := 0 - for ; yyj1536 < yyrr1536; yyj1536++ { - yyh1536.ElemContainerState(yyj1536) - if r.TryDecodeAsNil() { - yyv1536[yyj1536] = NetworkPolicyPeer{} - } else { - yyv1537 := &yyv1536[yyj1536] - yyv1537.CodecDecodeSelf(d) - } - - } - if yyrt1536 { - for ; yyj1536 < yyl1536; yyj1536++ { - yyv1536 = append(yyv1536, NetworkPolicyPeer{}) - yyh1536.ElemContainerState(yyj1536) - if r.TryDecodeAsNil() { - yyv1536[yyj1536] = NetworkPolicyPeer{} - } else { - yyv1538 := &yyv1536[yyj1536] - yyv1538.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1536 := 0 - for ; !r.CheckBreak(); yyj1536++ { - - if yyj1536 >= len(yyv1536) { - yyv1536 = append(yyv1536, NetworkPolicyPeer{}) // var yyz1536 NetworkPolicyPeer - yyc1536 = true - } - yyh1536.ElemContainerState(yyj1536) - if yyj1536 < len(yyv1536) { - if r.TryDecodeAsNil() { - yyv1536[yyj1536] = NetworkPolicyPeer{} - } else { - yyv1539 := &yyv1536[yyj1536] - yyv1539.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1536 < len(yyv1536) { - yyv1536 = yyv1536[:yyj1536] - yyc1536 = true - } else if yyj1536 == 0 && yyv1536 == nil { - yyv1536 = []NetworkPolicyPeer{} - yyc1536 = true - } - } - yyh1536.End() - if yyc1536 { - *v = yyv1536 - } -} - -func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1540 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1541 := &yyv1540 - yy1541.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl1542 > 0 { - var yyrr1542, yyrl1542 int - var yyrt1542 bool - if yyl1542 > cap(yyv1542) { - - 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 { - yyv1542 = make([]NetworkPolicy, yyrl1542) - } - } else { - yyv1542 = make([]NetworkPolicy, yyrl1542) - } - yyc1542 = true - yyrr1542 = len(yyv1542) - if yyrg1542 { - copy(yyv1542, yyv21542) - } - } else if yyl1542 != len(yyv1542) { - yyv1542 = yyv1542[:yyl1542] - yyc1542 = true - } - yyj1542 := 0 - for ; yyj1542 < yyrr1542; yyj1542++ { - yyh1542.ElemContainerState(yyj1542) - if r.TryDecodeAsNil() { - yyv1542[yyj1542] = NetworkPolicy{} - } else { - yyv1543 := &yyv1542[yyj1542] - yyv1543.CodecDecodeSelf(d) - } - - } - if yyrt1542 { - for ; yyj1542 < yyl1542; yyj1542++ { - yyv1542 = append(yyv1542, NetworkPolicy{}) - yyh1542.ElemContainerState(yyj1542) - if r.TryDecodeAsNil() { - yyv1542[yyj1542] = NetworkPolicy{} - } else { - yyv1544 := &yyv1542[yyj1542] - yyv1544.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1542 := 0 - for ; !r.CheckBreak(); yyj1542++ { - - if yyj1542 >= len(yyv1542) { - yyv1542 = append(yyv1542, NetworkPolicy{}) // var yyz1542 NetworkPolicy - yyc1542 = true - } - yyh1542.ElemContainerState(yyj1542) - if yyj1542 < len(yyv1542) { - if r.TryDecodeAsNil() { - yyv1542[yyj1542] = NetworkPolicy{} - } else { - yyv1545 := &yyv1542[yyj1542] - yyv1545.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1542 < len(yyv1542) { - yyv1542 = yyv1542[:yyj1542] - yyc1542 = true - } else if yyj1542 == 0 && yyv1542 == nil { - yyv1542 = []NetworkPolicy{} - yyc1542 = true - } - } - yyh1542.End() - if yyc1542 { - *v = yyv1542 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/types.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/types.go index 05c0af945c7..22f2af8392d 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/types.go @@ -46,18 +46,18 @@ const ( type ScaleSpec struct { // desired number of instances for the scaled object. // +optional - Replicas int32 `json:"replicas,omitempty"` + Replicas int32 } // represents the current status of a scale subresource. type ScaleStatus struct { // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas"` + Replicas int32 // label query over pods that should match the replicas count. // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector } // +genclient=true @@ -65,46 +65,46 @@ type ScaleStatus struct { // represents a scaling request for a resource. type Scale struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Spec ScaleSpec // 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"` + Status ScaleStatus } // Dummy definition type ReplicationControllerDummy struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta } // Alpha-level support for Custom Metrics in HPA (as annotations). type CustomMetricTarget struct { // Custom Metric name. - Name string `json:"name"` + Name string // Custom Metric value (average). - TargetValue resource.Quantity `json:"value"` + TargetValue resource.Quantity } type CustomMetricTargetList struct { - Items []CustomMetricTarget `json:"items"` + Items []CustomMetricTarget } type CustomMetricCurrentStatus struct { // Custom Metric name. - Name string `json:"name"` + Name string // Custom Metric value (average). - CurrentValue resource.Quantity `json:"value"` + CurrentValue resource.Quantity } type CustomMetricCurrentStatusList struct { - Items []CustomMetricCurrentStatus `json:"items"` + Items []CustomMetricCurrentStatus } // +genclient=true @@ -113,103 +113,103 @@ type CustomMetricCurrentStatusList struct { // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource // types to the API. It consists of one or more Versions of the api. type ThirdPartyResource struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Description is the description of this object. // +optional - Description string `json:"description,omitempty"` + Description string // Versions are versions for this third party object - Versions []APIVersion `json:"versions,omitempty"` + Versions []APIVersion } type ThirdPartyResourceList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata. // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of horizontal pod autoscalers. - Items []ThirdPartyResource `json:"items"` + Items []ThirdPartyResource } // An APIVersion represents a single concrete version of an object model. // TODO: we should consider merge this struct with GroupVersion in metav1.go type APIVersion struct { // Name of this version (e.g. 'v1'). - Name string `json:"name,omitempty"` + Name string } // An internal object, used for versioned storage in etcd. Not exposed to the end user. type ThirdPartyResourceData struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object metadata. // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Data is the raw JSON data for this data. // +optional - Data []byte `json:"data,omitempty"` + Data []byte } // +genclient=true type Deployment struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Specification of the desired behavior of the Deployment. // +optional - Spec DeploymentSpec `json:"spec,omitempty"` + Spec DeploymentSpec // Most recently observed status of the Deployment. // +optional - Status DeploymentStatus `json:"status,omitempty"` + Status DeploymentStatus } 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"` + Replicas int32 // Label selector for pods. Existing ReplicaSets whose pods are // selected by this will be the ones affected by this deployment. // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // Template describes the pods that will be created. - Template api.PodTemplateSpec `json:"template"` + Template api.PodTemplateSpec // The deployment strategy to use to replace existing pods with new ones. // +optional - Strategy DeploymentStrategy `json:"strategy,omitempty"` + Strategy DeploymentStrategy // 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"` + MinReadySeconds int32 // 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"` + RevisionHistoryLimit *int32 // Indicates that the deployment is paused and will not be processed by the // deployment controller. // +optional - Paused bool `json:"paused,omitempty"` + Paused bool // The config this deployment is rolling back to. Will be cleared after rollback is done. // +optional - RollbackTo *RollbackConfig `json:"rollbackTo,omitempty"` + RollbackTo *RollbackConfig // The maximum time in seconds for a deployment to make progress before it // is considered to be failed. The deployment controller will continue to @@ -218,25 +218,25 @@ type DeploymentSpec struct { // 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"` + ProgressDeadlineSeconds *int32 } // DeploymentRollback stores the information required to rollback a deployment. type DeploymentRollback struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Required: This must match the Name of a deployment. - Name string `json:"name"` + Name string // The annotations to be updated to a deployment // +optional - UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty"` + UpdatedAnnotations map[string]string // The config of this deployment rollback. - RollbackTo RollbackConfig `json:"rollbackTo"` + RollbackTo RollbackConfig } type RollbackConfig struct { // The revision to rollback to. If set to 0, rollbck to the last revision. // +optional - Revision int64 `json:"revision,omitempty"` + Revision int64 } const ( @@ -249,7 +249,7 @@ const ( type DeploymentStrategy struct { // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. // +optional - Type DeploymentStrategyType `json:"type,omitempty"` + Type DeploymentStrategyType // Rolling update config params. Present only if DeploymentStrategyType = // RollingUpdate. @@ -257,7 +257,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"` + RollingUpdate *RollingUpdateDeployment } type DeploymentStrategyType string @@ -283,7 +283,7 @@ type RollingUpdateDeployment struct { // that at least 70% of original number of pods are available at all times // during the update. // +optional - MaxUnavailable intstr.IntOrString `json:"maxUnavailable,omitempty"` + MaxUnavailable intstr.IntOrString // The maximum number of pods that can be scheduled above the original number of // pods. @@ -296,32 +296,32 @@ type RollingUpdateDeployment struct { // 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"` + MaxSurge intstr.IntOrString } type DeploymentStatus struct { // The generation observed by the deployment controller. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 // Total number of non-terminated pods targeted by this deployment (their labels match the selector). // +optional - Replicas int32 `json:"replicas,omitempty"` + Replicas int32 // Total number of non-terminated pods targeted by this deployment that have the desired template spec. // +optional - UpdatedReplicas int32 `json:"updatedReplicas,omitempty"` + UpdatedReplicas int32 // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty"` + AvailableReplicas int32 // Total number of unavailable pods targeted by this deployment. // +optional - UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"` + UnavailableReplicas int32 // Represents the latest available observations of a deployment's current state. - Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` + Conditions []DeploymentCondition } type DeploymentConditionType string @@ -344,26 +344,26 @@ const ( // DeploymentCondition describes the state of a deployment at a certain point. type DeploymentCondition struct { // Type of deployment condition. - Type DeploymentConditionType `json:"type"` + Type DeploymentConditionType // Status of the condition, one of True, False, Unknown. - Status api.ConditionStatus `json:"status"` + Status api.ConditionStatus // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` + LastUpdateTime metav1.Time // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // The reason for the condition's last transition. - Reason string `json:"reason,omitempty"` + Reason string // A human readable message indicating details about the transition. - Message string `json:"message,omitempty"` + Message string } type DeploymentList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of deployments. - Items []Deployment `json:"items"` + Items []Deployment } // TODO(madhusudancs): Uncomment while implementing DaemonSet updates. @@ -371,7 +371,7 @@ type DeploymentList struct { type DaemonSetUpdateStrategy struct { // Type of daemon set update. Only "RollingUpdate" is supported at this time. Default is RollingUpdate. // +optional - Type DaemonSetUpdateStrategyType `json:"type,omitempty"` + Type DaemonSetUpdateStrategyType // Rolling update config params. Present only if DaemonSetUpdateStrategy = // RollingUpdate. @@ -379,7 +379,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"` + RollingUpdate *RollingUpdateDaemonSet } type DaemonSetUpdateStrategyType string @@ -405,14 +405,14 @@ type RollingUpdateDaemonSet struct { // 70% of original number of DaemonSet pods are available at all times // during the update. // +optional - MaxUnavailable intstr.IntOrString `json:"maxUnavailable,omitempty"` + MaxUnavailable intstr.IntOrString // 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"` + MinReadySeconds int } */ @@ -423,20 +423,20 @@ type DaemonSetSpec struct { // If empty, defaulted to labels on Pod template. // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // 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 - Template api.PodTemplateSpec `json:"template"` + Template api.PodTemplateSpec // 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. // +optional - UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty"` + UpdateStrategy DaemonSetUpdateStrategy // Label key that is added to DaemonSet pods to distinguish between old and // new pod templates during DaemonSet update. @@ -446,7 +446,7 @@ type DaemonSetSpec struct { // 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"` + UniqueLabelKey string */ } @@ -461,35 +461,35 @@ const ( type DaemonSetStatus struct { // CurrentNumberScheduled is the number of nodes that are running at least 1 // daemon pod and are supposed to run the daemon pod. - CurrentNumberScheduled int32 `json:"currentNumberScheduled"` + CurrentNumberScheduled int32 // NumberMisscheduled is the number of nodes that are running the daemon pod, but are // not supposed to run the daemon pod. - NumberMisscheduled int32 `json:"numberMisscheduled"` + NumberMisscheduled int32 // 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"` + DesiredNumberScheduled int32 // 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"` + NumberReady int32 } // +genclient=true // DaemonSet represents the configuration of a daemon set. type DaemonSet struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Spec DaemonSetSpec // Status is the current status of this daemon set. This data may be // out of date by some window of time. @@ -497,29 +497,29 @@ type DaemonSet struct { // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // +optional - Status DaemonSetStatus `json:"status,omitempty"` + Status DaemonSetStatus } // DaemonSetList is a collection of daemon sets. type DaemonSetList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is a list of daemon sets. - Items []DaemonSet `json:"items"` + Items []DaemonSet } type ThirdPartyResourceDataList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is a list of third party objects - Items []ThirdPartyResourceData `json:"items"` + Items []ThirdPartyResourceData } // +genclient=true @@ -529,33 +529,33 @@ type ThirdPartyResourceDataList struct { // externally-reachable urls, load balance traffic, terminate SSL, offer name // based virtual hosting etc. type Ingress struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // 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"` + Spec IngressSpec // 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"` + Status IngressStatus } // IngressList is a collection of Ingress. type IngressList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of Ingress. - Items []Ingress `json:"items"` + Items []Ingress } // IngressSpec describes the Ingress the user wishes to exist. @@ -565,7 +565,7 @@ type IngressSpec struct { // is optional to allow the loadbalancer controller or defaulting logic to // specify a global default. // +optional - Backend *IngressBackend `json:"backend,omitempty"` + Backend *IngressBackend // TLS configuration. Currently the Ingress only supports a single TLS // port, 443. If multiple members of this list specify different hosts, they @@ -573,12 +573,12 @@ type IngressSpec struct { // through the SNI TLS extension, if the ingress controller fulfilling the // ingress supports SNI. // +optional - TLS []IngressTLS `json:"tls,omitempty"` + TLS []IngressTLS // 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"` + Rules []IngressRule // TODO: Add the ability to specify load-balancer IP through claims } @@ -589,14 +589,14 @@ type IngressTLS struct { // wildcard host setting for the loadbalancer controller fulfilling this // Ingress, if left unspecified. // +optional - Hosts []string `json:"hosts,omitempty"` + Hosts []string // 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"` + SecretName string // TODO: Consider specifying different modes of termination, protocols etc. } @@ -604,7 +604,7 @@ type IngressTLS struct { type IngressStatus struct { // LoadBalancer contains the current status of the load-balancer. // +optional - LoadBalancer api.LoadBalancerStatus `json:"loadBalancer,omitempty"` + LoadBalancer api.LoadBalancerStatus } // IngressRule represents the rules mapping the paths under a specified host to @@ -624,14 +624,14 @@ type IngressRule struct { // If the host is unspecified, the Ingress routes all traffic based on the // specified IngressRuleValue. // +optional - Host string `json:"host,omitempty"` + Host string // 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"` + IngressRuleValue } // IngressRuleValue represents a rule to apply against incoming requests. If the @@ -646,7 +646,7 @@ type IngressRuleValue struct { // usable by a loadbalancer, like http keep-alive. // +optional - HTTP *HTTPIngressRuleValue `json:"http,omitempty"` + HTTP *HTTPIngressRuleValue } // HTTPIngressRuleValue is a list of http selectors pointing to backends. @@ -656,7 +656,7 @@ type IngressRuleValue struct { // or '#'. type HTTPIngressRuleValue struct { // A collection of paths that map requests to backends. - Paths []HTTPIngressPath `json:"paths"` + Paths []HTTPIngressPath // TODO: Consider adding fields for ingress-type specific global // options usable by a loadbalancer, like http keep-alive. } @@ -672,47 +672,47 @@ type HTTPIngressPath struct { // a '/'. If unspecified, the path defaults to a catch all sending // traffic to the backend. // +optional - Path string `json:"path,omitempty"` + Path string // Backend defines the referenced service endpoint to which the traffic // will be forwarded to. - Backend IngressBackend `json:"backend"` + Backend IngressBackend } // IngressBackend describes all endpoints for a given service and port. type IngressBackend struct { // Specifies the name of the referenced service. - ServiceName string `json:"serviceName"` + ServiceName string // Specifies the port of the referenced service. - ServicePort intstr.IntOrString `json:"servicePort"` + ServicePort intstr.IntOrString } // +genclient=true // ReplicaSet represents the configuration of a replica set. type ReplicaSet struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Spec defines the desired behavior of this ReplicaSet. // +optional - Spec ReplicaSetSpec `json:"spec,omitempty"` + Spec ReplicaSetSpec // 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"` + Status ReplicaSetStatus } // ReplicaSetList is a collection of ReplicaSets. type ReplicaSetList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []ReplicaSet `json:"items"` + Items []ReplicaSet } // ReplicaSetSpec is the specification of a ReplicaSet. @@ -720,51 +720,51 @@ type ReplicaSetList struct { // a Template set. type ReplicaSetSpec struct { // Replicas is the number of desired replicas. - Replicas int32 `json:"replicas"` + Replicas int32 // 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"` + MinReadySeconds int32 // 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://kubernetes.io/docs/user-guide/labels#label-selectors // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector // Template is the object that describes the pod that will be created if // insufficient replicas are detected. // +optional - Template api.PodTemplateSpec `json:"template,omitempty"` + Template api.PodTemplateSpec } // ReplicaSetStatus represents the current status of a ReplicaSet. type ReplicaSetStatus struct { // Replicas is the number of actual replicas. - Replicas int32 `json:"replicas"` + Replicas int32 // The number of pods that have labels matching the labels of the pod template of the replicaset. // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + FullyLabeledReplicas int32 // The number of ready replicas for this replica set. // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty"` + ReadyReplicas int32 // The number of available replicas (ready for at least minReadySeconds) for this replica set. // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty"` + AvailableReplicas int32 // ObservedGeneration is the most recent generation observed by the controller. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 // Represents the latest available observations of a replica set's current state. // +optional - Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` + Conditions []ReplicaSetCondition } type ReplicaSetConditionType string @@ -780,18 +780,18 @@ const ( // ReplicaSetCondition describes the state of a replica set at a certain point. type ReplicaSetCondition struct { // Type of replica set condition. - Type ReplicaSetConditionType `json:"type"` + Type ReplicaSetConditionType // Status of the condition, one of True, False, Unknown. - Status api.ConditionStatus `json:"status"` + Status api.ConditionStatus // The last time the condition transitioned from one status to another. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // The reason for the condition's last transition. // +optional - Reason string `json:"reason,omitempty"` + Reason string // A human readable message indicating details about the transition. // +optional - Message string `json:"message,omitempty"` + Message string } // +genclient=true @@ -800,74 +800,74 @@ type ReplicaSetCondition struct { // PodSecurityPolicy governs the ability to make requests that affect the SecurityContext // that will be applied to a pod and container. type PodSecurityPolicy struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Spec defines the policy enforced. // +optional - Spec PodSecurityPolicySpec `json:"spec,omitempty"` + Spec PodSecurityPolicySpec } // 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"` + Privileged bool // 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"` + DefaultAddCapabilities []api.Capability // 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"` + RequiredDropCapabilities []api.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 []api.Capability `json:"allowedCapabilities,omitempty"` + AllowedCapabilities []api.Capability // Volumes is a white list of allowed volume plugins. Empty indicates that all plugins // may be used. // +optional - Volumes []FSType `json:"volumes,omitempty"` + Volumes []FSType // HostNetwork determines if the policy allows the use of HostNetwork in the pod spec. // +optional - HostNetwork bool `json:"hostNetwork,omitempty"` + HostNetwork bool // HostPorts determines which host port ranges are allowed to be exposed. // +optional - HostPorts []HostPortRange `json:"hostPorts,omitempty"` + HostPorts []HostPortRange // HostPID determines if the policy allows the use of HostPID in the pod spec. // +optional - HostPID bool `json:"hostPID,omitempty"` + HostPID bool // HostIPC determines if the policy allows the use of HostIPC in the pod spec. // +optional - HostIPC bool `json:"hostIPC,omitempty"` + HostIPC bool // SELinux is the strategy that will dictate the allowable labels that may be set. - SELinux SELinuxStrategyOptions `json:"seLinux"` + SELinux SELinuxStrategyOptions // RunAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - RunAsUser RunAsUserStrategyOptions `json:"runAsUser"` + RunAsUser RunAsUserStrategyOptions // SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - SupplementalGroups SupplementalGroupsStrategyOptions `json:"supplementalGroups"` + SupplementalGroups SupplementalGroupsStrategyOptions // FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. - FSGroup FSGroupStrategyOptions `json:"fsGroup"` + FSGroup FSGroupStrategyOptions // ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file // system. If the container specifically requests to run with a non-read only root file system // the PSP should deny the pod. // If set to false the container may run with a read only root file system if it wishes but it // will not be forced to. // +optional - ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"` + ReadOnlyRootFilesystem bool } // HostPortRange defines a range of host ports that will be enabled by a policy // for pods to use. It requires both the start and end to be defined. type HostPortRange struct { // Min is the start of the range, inclusive. - Min int `json:"min"` + Min int // Max is the end of the range, inclusive. - Max int `json:"max"` + Max int } // FSType gives strong typing to different file systems that are used by volumes. @@ -903,11 +903,11 @@ var ( // SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. type SELinuxStrategyOptions struct { // Rule is the strategy that will dictate the allowable labels that may be set. - Rule SELinuxStrategy `json:"rule"` + Rule 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 *api.SELinuxOptions `json:"seLinuxOptions,omitempty"` + SELinuxOptions *api.SELinuxOptions } // SELinuxStrategy denotes strategy types for generating SELinux options for a @@ -924,18 +924,18 @@ const ( // RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. type RunAsUserStrategyOptions struct { // Rule is the strategy that will dictate the allowable RunAsUser values that may be set. - Rule RunAsUserStrategy `json:"rule"` + Rule RunAsUserStrategy // Ranges are the allowed ranges of uids that may be used. // +optional - Ranges []IDRange `json:"ranges,omitempty"` + Ranges []IDRange } // IDRange provides a min/max of an allowed range of IDs. type IDRange struct { // Min is the start of the range, inclusive. - Min int64 `json:"min"` + Min int64 // Max is the end of the range, inclusive. - Max int64 `json:"max"` + Max int64 } // RunAsUserStrategy denotes strategy types for generating RunAsUser values for a @@ -955,11 +955,11 @@ const ( type FSGroupStrategyOptions struct { // Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. // +optional - Rule FSGroupStrategyType `json:"rule,omitempty"` + Rule 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"` + Ranges []IDRange } // FSGroupStrategyType denotes strategy types for generating FSGroup values for a @@ -977,11 +977,11 @@ const ( type SupplementalGroupsStrategyOptions struct { // Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. // +optional - Rule SupplementalGroupsStrategyType `json:"rule,omitempty"` + Rule 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"` + Ranges []IDRange } // SupplementalGroupsStrategyType denotes strategy types for determining valid supplemental @@ -997,23 +997,23 @@ const ( // PodSecurityPolicyList is a list of PodSecurityPolicy objects. type PodSecurityPolicyList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []PodSecurityPolicy `json:"items"` + Items []PodSecurityPolicy } // +genclient=true type NetworkPolicy struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Specification of the desired behavior for this NetworkPolicy. // +optional - Spec NetworkPolicySpec `json:"spec,omitempty"` + Spec NetworkPolicySpec } type NetworkPolicySpec struct { @@ -1022,7 +1022,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 metav1.LabelSelector `json:"podSelector"` + PodSelector metav1.LabelSelector // 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, @@ -1033,7 +1033,7 @@ type NetworkPolicySpec struct { // 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"` + Ingress []NetworkPolicyIngressRule } // This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. @@ -1046,7 +1046,7 @@ type NetworkPolicyIngressRule struct { // 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"` + Ports []NetworkPolicyPort // List of sources which should be able to access the pods selected for this rule. // Items in this list are combined using a logical OR operation. @@ -1056,14 +1056,14 @@ type NetworkPolicyIngressRule struct { // 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"` + From []NetworkPolicyPeer } 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"` + Protocol *api.Protocol // If specified, the port on the given protocol. This can // either be a numerical or named port on a pod. If this field is not provided, @@ -1071,7 +1071,7 @@ type NetworkPolicyPort struct { // If present, only traffic on the specified protocol AND port // will be matched. // +optional - Port *intstr.IntOrString `json:"port,omitempty"` + Port *intstr.IntOrString } type NetworkPolicyPeer struct { @@ -1082,7 +1082,7 @@ type NetworkPolicyPeer struct { // If not provided, this selector selects no pods. // If present but empty, this selector selects all pods in this namespace. // +optional - PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"` + PodSelector *metav1.LabelSelector // Selects Namespaces using cluster scoped-labels. This // matches all pods in all namespaces selected by this label selector. @@ -1090,14 +1090,14 @@ type NetworkPolicyPeer struct { // If omitted, this selector selects no namespaces. // If present but empty, this selector selects all namespaces. // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"` + NamespaceSelector *metav1.LabelSelector } // NetworkPolicyList is a list of NetworkPolicy objects. type NetworkPolicyList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta - Items []NetworkPolicy `json:"items"` + Items []NetworkPolicy } diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go index ff847bb4922..3adb0928271 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go @@ -22,7 +22,6 @@ import ( "k8s.io/client-go/pkg/api" 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" metav1 "k8s.io/client-go/pkg/apis/meta/v1" "k8s.io/client-go/pkg/conversion" @@ -48,9 +47,6 @@ func addConversionFuncs(scheme *runtime.Scheme) error { Convert_v1beta1_SubresourceReference_To_autoscaling_CrossVersionObjectReference, Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1beta1_HorizontalPodAutoscalerSpec, Convert_v1beta1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec, - // batch - Convert_batch_JobSpec_To_v1beta1_JobSpec, - Convert_v1beta1_JobSpec_To_batch_JobSpec, ) if err != nil { return err @@ -74,16 +70,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } } - return api.Scheme.AddFieldLabelConversionFunc("extensions/v1beta1", "Job", - func(label, value string) (string, string, error) { - switch label { - case "metadata.name", "metadata.namespace", "status.successful": - return label, value, nil - default: - return "", "", fmt.Errorf("field label not supported: %s", label) - } - }, - ) + return nil } func Convert_extensions_ScaleStatus_To_v1beta1_ScaleStatus(in *extensions.ScaleStatus, out *ScaleStatus, s conversion.Scope) error { @@ -262,56 +249,6 @@ func Convert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec(in *ReplicaSetS return nil } -func Convert_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 - 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. - // unset vs set-false distinction is not preserved. - manualSelector := in.ManualSelector != nil && *in.ManualSelector - autoSelector := !manualSelector - if autoSelector { - out.AutoSelector = new(bool) - *out.AutoSelector = true - } else { - out.AutoSelector = nil - } - // END non-standard conversion - - if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func Convert_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 - 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. - // unset vs set-false distinction is not preserved. - autoSelector := bool(in.AutoSelector != nil && *in.AutoSelector) - manualSelector := !autoSelector - if manualSelector { - out.ManualSelector = new(bool) - *out.ManualSelector = true - } else { - out.ManualSelector = nil - } - // END non-standard conversion - - if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - func Convert_autoscaling_CrossVersionObjectReference_To_v1beta1_SubresourceReference(in *autoscaling.CrossVersionObjectReference, out *SubresourceReference, s conversion.Scope) error { out.Kind = in.Kind out.Name = in.Name diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go index 76c8bdb67dd..735f840b71b 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go @@ -28,7 +28,6 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error { return scheme.AddDefaultingFuncs( SetDefaults_DaemonSet, SetDefaults_Deployment, - SetDefaults_Job, SetDefaults_HorizontalPodAutoscaler, SetDefaults_ReplicaSet, SetDefaults_NetworkPolicy, @@ -91,40 +90,6 @@ func SetDefaults_Deployment(obj *Deployment) { } } -func SetDefaults_Job(obj *Job) { - labels := obj.Spec.Template.Labels - // TODO: support templates defined elsewhere when we support them in the API - if labels != nil { - // if an autoselector is requested, we'll build the selector later with controller-uid and job-name - autoSelector := bool(obj.Spec.AutoSelector != nil && *obj.Spec.AutoSelector) - - // otherwise, we are using a manual selector - manualSelector := !autoSelector - - // and default behavior for an unspecified manual selector is to use the pod template labels - if manualSelector && obj.Spec.Selector == nil { - obj.Spec.Selector = &metav1.LabelSelector{ - MatchLabels: labels, - } - } - if len(obj.Labels) == 0 { - obj.Labels = labels - } - } - // For a non-parallel job, you can leave both `.spec.completions` and - // `.spec.parallelism` unset. When both are unset, both are defaulted to 1. - if obj.Spec.Completions == nil && obj.Spec.Parallelism == nil { - obj.Spec.Completions = new(int32) - *obj.Spec.Completions = 1 - obj.Spec.Parallelism = new(int32) - *obj.Spec.Parallelism = 1 - } - if obj.Spec.Parallelism == nil { - obj.Spec.Parallelism = new(int32) - *obj.Spec.Parallelism = 1 - } -} - func SetDefaults_HorizontalPodAutoscaler(obj *HorizontalPodAutoscaler) { if obj.Spec.MinReplicas == nil { minReplicas := int32(1) diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go index e8041575a3b..e8a1a304ee5 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go @@ -59,11 +59,6 @@ limitations under the License. IngressSpec IngressStatus IngressTLS - Job - JobCondition - JobList - JobSpec - JobStatus NetworkPolicy NetworkPolicyIngressRule NetworkPolicyList @@ -267,149 +262,129 @@ func (m *IngressTLS) Reset() { *m = IngressTLS{} } func (*IngressTLS) ProtoMessage() {} func (*IngressTLS) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } -func (m *Job) Reset() { *m = Job{} } -func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } - -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (*JobCondition) ProtoMessage() {} -func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } - -func (m *JobList) Reset() { *m = JobList{} } -func (*JobList) ProtoMessage() {} -func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } - -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (*JobSpec) ProtoMessage() {} -func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } - -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (*JobStatus) ProtoMessage() {} -func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } - func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } func (*NetworkPolicy) ProtoMessage() {} -func (*NetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } +func (*NetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } func (*NetworkPolicyIngressRule) ProtoMessage() {} func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{40} + return fileDescriptorGenerated, []int{35} } func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } func (*NetworkPolicyList) ProtoMessage() {} -func (*NetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } +func (*NetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } func (*NetworkPolicyPeer) ProtoMessage() {} -func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } +func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } func (*NetworkPolicyPort) ProtoMessage() {} -func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } +func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } func (*NetworkPolicySpec) ProtoMessage() {} -func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } +func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } func (*PodSecurityPolicy) ProtoMessage() {} -func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } +func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } func (*PodSecurityPolicyList) ProtoMessage() {} -func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } +func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } func (*PodSecurityPolicySpec) ProtoMessage() {} -func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } +func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } +func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } func (*ReplicaSetCondition) ProtoMessage() {} -func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } +func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } func (*ReplicaSetList) ProtoMessage() {} -func (*ReplicaSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } +func (*ReplicaSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } func (*ReplicaSetSpec) ProtoMessage() {} -func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } +func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } func (*ReplicaSetStatus) ProtoMessage() {} -func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } +func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } func (m *ReplicationControllerDummy) Reset() { *m = ReplicationControllerDummy{} } func (*ReplicationControllerDummy) ProtoMessage() {} func (*ReplicationControllerDummy) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{53} + return fileDescriptorGenerated, []int{48} } func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } func (*RollbackConfig) ProtoMessage() {} -func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } +func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } func (*RollingUpdateDeployment) ProtoMessage() {} func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{55} + return fileDescriptorGenerated, []int{50} } func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } func (*RunAsUserStrategyOptions) ProtoMessage() {} func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{56} + return fileDescriptorGenerated, []int{51} } func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } func (*SELinuxStrategyOptions) ProtoMessage() {} -func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{57} } +func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } func (m *Scale) Reset() { *m = Scale{} } func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } +func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } +func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } +func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } func (m *SubresourceReference) Reset() { *m = SubresourceReference{} } func (*SubresourceReference) ProtoMessage() {} -func (*SubresourceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } +func (*SubresourceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{62} + return fileDescriptorGenerated, []int{57} } func (m *ThirdPartyResource) Reset() { *m = ThirdPartyResource{} } func (*ThirdPartyResource) ProtoMessage() {} -func (*ThirdPartyResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } +func (*ThirdPartyResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } func (m *ThirdPartyResourceData) Reset() { *m = ThirdPartyResourceData{} } func (*ThirdPartyResourceData) ProtoMessage() {} -func (*ThirdPartyResourceData) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } +func (*ThirdPartyResourceData) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } func (m *ThirdPartyResourceDataList) Reset() { *m = ThirdPartyResourceDataList{} } func (*ThirdPartyResourceDataList) ProtoMessage() {} func (*ThirdPartyResourceDataList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{65} + return fileDescriptorGenerated, []int{60} } func (m *ThirdPartyResourceList) Reset() { *m = ThirdPartyResourceList{} } func (*ThirdPartyResourceList) ProtoMessage() {} -func (*ThirdPartyResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } +func (*ThirdPartyResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } func init() { proto.RegisterType((*APIVersion)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.APIVersion") @@ -446,11 +421,6 @@ func init() { 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") @@ -1716,7 +1686,7 @@ func (m *IngressTLS) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Job) Marshal() (data []byte, err error) { +func (m *NetworkPolicy) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -1726,7 +1696,7 @@ func (m *Job) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *Job) MarshalTo(data []byte) (int, error) { +func (m *NetworkPolicy) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -1747,256 +1717,6 @@ func (m *Job) MarshalTo(data []byte) (int, error) { 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 -} - -func (m *JobCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - data[i] = 0xa - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) - n41, err := m.LastProbeTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n41 - data[i] = 0x22 - i++ - i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n42, err := m.LastTransitionTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n42 - data[i] = 0x2a - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - data[i] = 0x32 - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - return i, nil -} - -func (m *JobList) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobList) 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())) - n43, err := m.ListMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n43 - 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 *JobSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Parallelism != nil { - data[i] = 0x8 - i++ - i = encodeVarintGenerated(data, i, uint64(*m.Parallelism)) - } - if m.Completions != nil { - data[i] = 0x10 - i++ - i = encodeVarintGenerated(data, i, uint64(*m.Completions)) - } - if m.ActiveDeadlineSeconds != nil { - data[i] = 0x18 - i++ - i = encodeVarintGenerated(data, i, uint64(*m.ActiveDeadlineSeconds)) - } - if m.Selector != nil { - data[i] = 0x22 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n44, err := m.Selector.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n44 - } - if m.AutoSelector != nil { - data[i] = 0x28 - i++ - if *m.AutoSelector { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - data[i] = 0x32 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n45, err := m.Template.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n45 - return i, nil -} - -func (m *JobStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - 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.StartTime != nil { - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n46, err := m.StartTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n46 - } - if m.CompletionTime != nil { - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.CompletionTime.Size())) - n47, err := m.CompletionTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n47 - } - data[i] = 0x20 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Active)) - data[i] = 0x28 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Succeeded)) - data[i] = 0x30 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Failed)) - return i, nil -} - -func (m *NetworkPolicy) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *NetworkPolicy) 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())) - n48, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n48 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n49, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n49 return i, nil } @@ -2060,11 +1780,11 @@ func (m *NetworkPolicyList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n50, err := m.ListMeta.MarshalTo(data[i:]) + n40, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n50 + i += n40 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2099,21 +1819,21 @@ func (m *NetworkPolicyPeer) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSelector.Size())) - n51, err := m.PodSelector.MarshalTo(data[i:]) + n41, err := m.PodSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n51 + i += n41 } if m.NamespaceSelector != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.NamespaceSelector.Size())) - n52, err := m.NamespaceSelector.MarshalTo(data[i:]) + n42, err := m.NamespaceSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n52 + i += n42 } return i, nil } @@ -2143,11 +1863,11 @@ func (m *NetworkPolicyPort) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n53, err := m.Port.MarshalTo(data[i:]) + n43, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n53 + i += n43 } return i, nil } @@ -2170,11 +1890,11 @@ func (m *NetworkPolicySpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSelector.Size())) - n54, err := m.PodSelector.MarshalTo(data[i:]) + n44, err := m.PodSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n54 + i += n44 if len(m.Ingress) > 0 { for _, msg := range m.Ingress { data[i] = 0x12 @@ -2208,19 +1928,19 @@ func (m *PodSecurityPolicy) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n55, err := m.ObjectMeta.MarshalTo(data[i:]) + n45, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n55 + i += n45 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n56, err := m.Spec.MarshalTo(data[i:]) + n46, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n56 + i += n46 return i, nil } @@ -2242,11 +1962,11 @@ func (m *PodSecurityPolicyList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n57, err := m.ListMeta.MarshalTo(data[i:]) + n47, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n57 + i += n47 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2384,35 +2104,35 @@ func (m *PodSecurityPolicySpec) MarshalTo(data []byte) (int, error) { data[i] = 0x52 i++ i = encodeVarintGenerated(data, i, uint64(m.SELinux.Size())) - n58, err := m.SELinux.MarshalTo(data[i:]) + n48, err := m.SELinux.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n58 + i += n48 data[i] = 0x5a i++ i = encodeVarintGenerated(data, i, uint64(m.RunAsUser.Size())) - n59, err := m.RunAsUser.MarshalTo(data[i:]) + n49, err := m.RunAsUser.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n59 + i += n49 data[i] = 0x62 i++ i = encodeVarintGenerated(data, i, uint64(m.SupplementalGroups.Size())) - n60, err := m.SupplementalGroups.MarshalTo(data[i:]) + n50, err := m.SupplementalGroups.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n60 + i += n50 data[i] = 0x6a i++ i = encodeVarintGenerated(data, i, uint64(m.FSGroup.Size())) - n61, err := m.FSGroup.MarshalTo(data[i:]) + n51, err := m.FSGroup.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n61 + i += n51 data[i] = 0x70 i++ if m.ReadOnlyRootFilesystem { @@ -2442,27 +2162,27 @@ func (m *ReplicaSet) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n62, err := m.ObjectMeta.MarshalTo(data[i:]) + n52, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n62 + i += n52 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n63, err := m.Spec.MarshalTo(data[i:]) + n53, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n63 + i += n53 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n64, err := m.Status.MarshalTo(data[i:]) + n54, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n64 + i += n54 return i, nil } @@ -2492,11 +2212,11 @@ func (m *ReplicaSetCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n65, err := m.LastTransitionTime.MarshalTo(data[i:]) + n55, err := m.LastTransitionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n65 + i += n55 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -2526,11 +2246,11 @@ func (m *ReplicaSetList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n66, err := m.ListMeta.MarshalTo(data[i:]) + n56, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n66 + i += n56 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2570,20 +2290,20 @@ func (m *ReplicaSetSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n67, err := m.Selector.MarshalTo(data[i:]) + n57, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n67 + i += n57 } data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n68, err := m.Template.MarshalTo(data[i:]) + n58, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n68 + i += n58 data[i] = 0x20 i++ i = encodeVarintGenerated(data, i, uint64(m.MinReadySeconds)) @@ -2693,21 +2413,21 @@ func (m *RollingUpdateDeployment) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.MaxUnavailable.Size())) - n69, err := m.MaxUnavailable.MarshalTo(data[i:]) + n59, err := m.MaxUnavailable.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n69 + i += n59 } if m.MaxSurge != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.MaxSurge.Size())) - n70, err := m.MaxSurge.MarshalTo(data[i:]) + n60, err := m.MaxSurge.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n70 + i += n60 } return i, nil } @@ -2769,11 +2489,11 @@ func (m *SELinuxStrategyOptions) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n71, err := m.SELinuxOptions.MarshalTo(data[i:]) + n61, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n71 + i += n61 } return i, nil } @@ -2796,27 +2516,27 @@ func (m *Scale) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n72, err := m.ObjectMeta.MarshalTo(data[i:]) + n62, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n72 + i += n62 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n73, err := m.Spec.MarshalTo(data[i:]) + n63, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n73 + i += n63 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n74, err := m.Status.MarshalTo(data[i:]) + n64, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n74 + i += n64 return i, nil } @@ -2969,11 +2689,11 @@ func (m *ThirdPartyResource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n75, err := m.ObjectMeta.MarshalTo(data[i:]) + n65, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n75 + i += n65 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Description))) @@ -3011,11 +2731,11 @@ func (m *ThirdPartyResourceData) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n76, err := m.ObjectMeta.MarshalTo(data[i:]) + n66, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n76 + i += n66 if m.Data != nil { data[i] = 0x12 i++ @@ -3043,11 +2763,11 @@ func (m *ThirdPartyResourceDataList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n77, err := m.ListMeta.MarshalTo(data[i:]) + n67, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n77 + i += n67 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3081,11 +2801,11 @@ func (m *ThirdPartyResourceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n78, err := m.ListMeta.MarshalTo(data[i:]) + n68, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n78 + i += n68 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3567,97 +3287,6 @@ func (m *IngressTLS) Size() (n int) { return n } -func (m *Job) 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 *JobCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobList) 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 *JobSpec) Size() (n int) { - var l int - _ = l - if m.Parallelism != nil { - n += 1 + sovGenerated(uint64(*m.Parallelism)) - } - if m.Completions != nil { - n += 1 + sovGenerated(uint64(*m.Completions)) - } - if m.ActiveDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AutoSelector != nil { - n += 2 - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobStatus) Size() (n int) { - var l int - _ = l - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.StartTime != nil { - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CompletionTime != nil { - l = m.CompletionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Active)) - n += 1 + sovGenerated(uint64(m.Succeeded)) - n += 1 + sovGenerated(uint64(m.Failed)) - return n -} - func (m *NetworkPolicy) Size() (n int) { var l int _ = l @@ -4481,74 +4110,6 @@ func (this *IngressTLS) String() string { }, "") return s } -func (this *Job) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Job{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *JobList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobSpec{`, - `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, - `Completions:` + valueToStringGenerated(this.Completions) + `,`, - `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector", 1) + `,`, - `AutoSelector:` + valueToStringGenerated(this.AutoSelector) + `,`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobStatus{`, - `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`, - `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_apis_meta_v1.Time", 1) + `,`, - `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_apis_meta_v1.Time", 1) + `,`, - `Active:` + fmt.Sprintf("%v", this.Active) + `,`, - `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`, - `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, - `}`, - }, "") - return s -} func (this *NetworkPolicy) String() string { if this == nil { return "nil" @@ -9101,881 +8662,6 @@ func (m *IngressTLS) Unmarshal(data []byte) error { } return nil } -func (m *Job) Unmarshal(data []byte) 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: Job: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Job: 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 *JobCondition) Unmarshal(data []byte) 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: JobCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCondition: 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 = JobConditionType(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 LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobList) Unmarshal(data []byte) 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: JobList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobList: 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, Job{}) - 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 *JobSpec) Unmarshal(data []byte) 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: JobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", 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.Parallelism = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Completions", 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.Completions = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveDeadlineSeconds = &v - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoSelector", 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.AutoSelector = &b - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobStatus) Unmarshal(data []byte) 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: JobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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, JobCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTime == nil { - m.StartTime = &k8s_io_kubernetes_pkg_apis_meta_v1.Time{} - } - if err := m.StartTime.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - 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.CompletionTime == nil { - m.CompletionTime = &k8s_io_kubernetes_pkg_apis_meta_v1.Time{} - } - if err := m.CompletionTime.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - m.Active = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Active |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) - } - m.Succeeded = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Succeeded |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) - } - m.Failed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Failed |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *NetworkPolicy) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -13792,247 +12478,226 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 3866 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe4, 0x5b, 0x4d, 0x6c, 0x1c, 0xc9, - 0x75, 0x56, 0xcf, 0x90, 0x22, 0xf9, 0x46, 0xa4, 0xc8, 0x12, 0x45, 0xcd, 0x6a, 0x77, 0x39, 0x72, - 0x1b, 0xb1, 0x65, 0x60, 0x77, 0x18, 0x29, 0x2b, 0x67, 0xbd, 0xbb, 0x5e, 0x9b, 0x43, 0xea, 0x37, - 0xa4, 0x34, 0xae, 0x21, 0xe5, 0xcd, 0xda, 0x59, 0xa7, 0x66, 0xba, 0x38, 0xec, 0x65, 0xff, 0x6d, - 0x77, 0x35, 0xcd, 0xb1, 0x11, 0xd8, 0x40, 0x90, 0xab, 0xe3, 0x5b, 0x02, 0x24, 0x39, 0xe4, 0x10, - 0xe4, 0x14, 0xc3, 0x06, 0x02, 0x18, 0xc8, 0x21, 0xb9, 0xe4, 0x47, 0x09, 0x1c, 0xc0, 0x09, 0x10, - 0x24, 0x08, 0x1c, 0x3a, 0xcb, 0x38, 0xb9, 0x07, 0xb9, 0x29, 0x97, 0xa0, 0xaa, 0xab, 0x7f, 0xa7, - 0x7b, 0xa4, 0x1e, 0x72, 0x84, 0x00, 0xbe, 0xcd, 0x54, 0xbd, 0xf7, 0xbd, 0x57, 0x55, 0xaf, 0xde, - 0x7b, 0x55, 0xf5, 0x1a, 0x3e, 0x7f, 0xf0, 0xa6, 0xd7, 0xd4, 0xed, 0xb5, 0x03, 0xbf, 0x4b, 0x5d, - 0x8b, 0x32, 0xea, 0xad, 0x39, 0x07, 0xfd, 0x35, 0xe2, 0xe8, 0xde, 0x1a, 0x3d, 0x62, 0xd4, 0xf2, - 0x74, 0xdb, 0xf2, 0xd6, 0x0e, 0x6f, 0x74, 0x29, 0x23, 0x37, 0xd6, 0xfa, 0xd4, 0xa2, 0x2e, 0x61, - 0x54, 0x6b, 0x3a, 0xae, 0xcd, 0x6c, 0xf4, 0x7a, 0xc0, 0xde, 0x8c, 0xd9, 0x9b, 0xce, 0x41, 0xbf, - 0xc9, 0xd9, 0x9b, 0x31, 0x7b, 0x53, 0xb2, 0x5f, 0x7d, 0xbd, 0xaf, 0xb3, 0x7d, 0xbf, 0xdb, 0xec, - 0xd9, 0xe6, 0x5a, 0xdf, 0xee, 0xdb, 0x6b, 0x02, 0xa5, 0xeb, 0xef, 0x89, 0x7f, 0xe2, 0x8f, 0xf8, - 0x15, 0xa0, 0x5f, 0xbd, 0x59, 0xa8, 0xdc, 0x9a, 0x4b, 0x3d, 0xdb, 0x77, 0x7b, 0x34, 0xab, 0xd1, - 0xd5, 0xd7, 0x8a, 0x79, 0x0e, 0x87, 0xf4, 0x1f, 0x21, 0xc1, 0x5b, 0x33, 0x29, 0x23, 0x79, 0x3c, - 0xaf, 0xe7, 0xf3, 0xb8, 0xbe, 0xc5, 0x74, 0x73, 0x58, 0xa1, 0x37, 0x46, 0x93, 0x7b, 0xbd, 0x7d, - 0x6a, 0x92, 0x21, 0xae, 0x1b, 0xf9, 0x5c, 0x3e, 0xd3, 0x8d, 0x35, 0xdd, 0x62, 0x1e, 0x73, 0xb3, - 0x2c, 0x6a, 0x13, 0x60, 0xbd, 0x7d, 0xff, 0x31, 0x75, 0xf9, 0x9c, 0xa3, 0x6b, 0x30, 0x65, 0x11, - 0x93, 0xd6, 0x95, 0x6b, 0xca, 0xf5, 0xb9, 0xd6, 0x85, 0x27, 0xc7, 0x8d, 0x73, 0x27, 0xc7, 0x8d, - 0xa9, 0x87, 0xc4, 0xa4, 0x58, 0xf4, 0xa8, 0x5f, 0x85, 0xe5, 0x8d, 0xf6, 0xee, 0x0e, 0x71, 0xfb, - 0x94, 0xed, 0x32, 0xdd, 0xd0, 0xbf, 0x41, 0x18, 0xe7, 0xdc, 0x84, 0x45, 0x26, 0x1a, 0xdb, 0xd4, - 0xed, 0x51, 0x8b, 0x91, 0x7e, 0x80, 0x32, 0xdd, 0xaa, 0x4b, 0x94, 0xc5, 0x9d, 0x4c, 0x3f, 0x1e, - 0xe2, 0x50, 0x7f, 0x47, 0x81, 0x97, 0x36, 0x7c, 0x8f, 0xd9, 0xe6, 0x36, 0x65, 0xae, 0xde, 0xdb, - 0xf0, 0x5d, 0x97, 0x5a, 0xac, 0xc3, 0x08, 0xf3, 0xbd, 0x67, 0x6b, 0x87, 0xde, 0x83, 0xe9, 0x43, - 0x62, 0xf8, 0xb4, 0x5e, 0xb9, 0xa6, 0x5c, 0xaf, 0xdd, 0x7c, 0xad, 0x59, 0x68, 0x69, 0xcd, 0xd0, - 0x16, 0x9a, 0x5f, 0xf2, 0x89, 0xc5, 0x74, 0x36, 0x68, 0x2d, 0x4b, 0xc0, 0x0b, 0x52, 0xea, 0x63, - 0x8e, 0x84, 0x03, 0x40, 0xf5, 0x3b, 0x0a, 0xbc, 0x5a, 0xa8, 0xd9, 0x96, 0xee, 0x31, 0x64, 0xc2, - 0xb4, 0xce, 0xa8, 0xe9, 0xd5, 0x95, 0x6b, 0xd5, 0xeb, 0xb5, 0x9b, 0xf7, 0x9a, 0xa5, 0xac, 0xbc, - 0x59, 0x08, 0xde, 0x9a, 0x97, 0x7a, 0x4d, 0xdf, 0xe7, 0xf0, 0x38, 0x90, 0xa2, 0xfe, 0xb6, 0x02, - 0x28, 0xc9, 0x13, 0xcc, 0xee, 0x73, 0xcc, 0xd1, 0x97, 0x4f, 0x33, 0x47, 0x97, 0x24, 0x60, 0x2d, - 0x10, 0x97, 0x9a, 0xa2, 0x6f, 0x2b, 0xb0, 0x32, 0xac, 0x91, 0x98, 0x9b, 0xbd, 0xf4, 0xdc, 0xac, - 0x9f, 0x62, 0x6e, 0x02, 0xd4, 0x82, 0x49, 0xf9, 0x93, 0x0a, 0xcc, 0x6d, 0x12, 0x6a, 0xda, 0x56, - 0x87, 0x32, 0xf4, 0x1e, 0xcc, 0xf2, 0xed, 0xa8, 0x11, 0x46, 0xc4, 0x7c, 0xd4, 0x6e, 0x5e, 0x1f, - 0x31, 0xd8, 0xc3, 0x1b, 0xcd, 0x47, 0xdd, 0x0f, 0x69, 0x8f, 0x6d, 0x53, 0x46, 0x5a, 0x48, 0xe2, - 0x43, 0xdc, 0x86, 0x23, 0x34, 0xf4, 0x01, 0x4c, 0x79, 0x0e, 0xed, 0xc9, 0x29, 0x7c, 0xa7, 0xe4, - 0x70, 0x22, 0x0d, 0x3b, 0x0e, 0xed, 0xc5, 0x6b, 0xc4, 0xff, 0x61, 0x81, 0x8b, 0xf6, 0xe0, 0xbc, - 0x27, 0x16, 0xbf, 0x5e, 0x15, 0x12, 0xde, 0x1d, 0x5b, 0x42, 0x60, 0x42, 0x0b, 0x52, 0xc6, 0xf9, - 0xe0, 0x3f, 0x96, 0xe8, 0xea, 0xdf, 0x29, 0x30, 0x1f, 0xd1, 0x8a, 0x95, 0x7a, 0x7f, 0x68, 0xce, - 0x5e, 0x1b, 0x25, 0x9b, 0xd3, 0xf2, 0x99, 0xe3, 0xbc, 0x62, 0xde, 0x16, 0xa5, 0xa4, 0xd9, 0xb0, - 0x25, 0x31, 0x6b, 0xbf, 0x16, 0x5a, 0x41, 0x45, 0x58, 0xc1, 0x9b, 0xe3, 0x0e, 0xaa, 0x60, 0xf1, - 0xff, 0x36, 0x39, 0x18, 0x3e, 0x99, 0xe8, 0x2b, 0x30, 0xeb, 0x51, 0x83, 0xf6, 0x98, 0xed, 0xca, - 0xc1, 0xdc, 0x78, 0xae, 0xc1, 0x90, 0x2e, 0x35, 0x3a, 0x92, 0xb1, 0x75, 0x81, 0x8f, 0x26, 0xfc, - 0x87, 0x23, 0x40, 0x0e, 0xce, 0xa8, 0xe9, 0x18, 0x84, 0x85, 0x5b, 0xe9, 0xf5, 0xd1, 0xd6, 0xd5, - 0xb6, 0xb5, 0x1d, 0xc9, 0x20, 0x16, 0x3e, 0x9a, 0xaa, 0xb0, 0x15, 0x47, 0x80, 0xea, 0x5f, 0x56, - 0xe0, 0x62, 0x66, 0x11, 0xd1, 0x63, 0x58, 0xe9, 0x05, 0x8e, 0xe1, 0xa1, 0x6f, 0x76, 0xa9, 0xdb, - 0xe9, 0xed, 0x53, 0xcd, 0x37, 0xa8, 0x26, 0x1d, 0xed, 0xaa, 0xc4, 0x5b, 0xd9, 0xc8, 0xa5, 0xc2, - 0x05, 0xdc, 0xe8, 0x01, 0x20, 0x4b, 0x34, 0x6d, 0xeb, 0x9e, 0x17, 0x61, 0x56, 0x04, 0xe6, 0x55, - 0x89, 0x89, 0x1e, 0x0e, 0x51, 0xe0, 0x1c, 0x2e, 0xae, 0xa3, 0x46, 0x3d, 0xdd, 0xa5, 0x5a, 0x56, - 0xc7, 0x6a, 0x5a, 0xc7, 0xcd, 0x5c, 0x2a, 0x5c, 0xc0, 0x8d, 0x6e, 0x41, 0x2d, 0x90, 0x86, 0x29, - 0xd1, 0x06, 0xf5, 0x29, 0x01, 0x16, 0x39, 0xa3, 0x87, 0x71, 0x17, 0x4e, 0xd2, 0xa9, 0xdf, 0xaf, - 0x00, 0x6c, 0x52, 0xc7, 0xb0, 0x07, 0x26, 0xb5, 0x26, 0xe9, 0x10, 0xbe, 0x96, 0x72, 0x08, 0x9f, - 0x2f, 0x6b, 0xd9, 0x91, 0x8a, 0x85, 0x1e, 0xa1, 0x9f, 0xf1, 0x08, 0x5f, 0x18, 0x5f, 0xc4, 0x68, - 0x97, 0xf0, 0x6f, 0x55, 0xb8, 0x14, 0x13, 0x6f, 0xd8, 0x96, 0xa6, 0x8b, 0x00, 0xff, 0x36, 0x4c, - 0xb1, 0x81, 0x13, 0x06, 0x96, 0x4f, 0x87, 0x2a, 0xee, 0x0c, 0x1c, 0xfa, 0xf4, 0xb8, 0x71, 0x25, - 0x87, 0x85, 0x77, 0x61, 0xc1, 0x84, 0x1e, 0x47, 0xda, 0x57, 0x04, 0xfb, 0xbb, 0x69, 0xe1, 0x4f, - 0x8f, 0x1b, 0x23, 0x33, 0xb0, 0x66, 0x84, 0x99, 0x56, 0x16, 0x7d, 0x0a, 0xce, 0xbb, 0x94, 0x78, - 0xb6, 0x25, 0x2c, 0x62, 0x2e, 0x1e, 0x14, 0x16, 0xad, 0x58, 0xf6, 0xa2, 0xcf, 0xc0, 0x8c, 0x49, - 0x3d, 0x8f, 0x27, 0x25, 0xd3, 0x82, 0xf0, 0xa2, 0x24, 0x9c, 0xd9, 0x0e, 0x9a, 0x71, 0xd8, 0x8f, - 0xf6, 0x61, 0xc1, 0x20, 0x1e, 0xdb, 0x75, 0x34, 0xc2, 0xe8, 0x8e, 0x6e, 0xd2, 0xfa, 0xf9, 0x67, - 0x59, 0x4a, 0xec, 0x39, 0x38, 0x7d, 0x6b, 0x45, 0x62, 0x2f, 0x6c, 0xa5, 0x70, 0x70, 0x06, 0x17, - 0x31, 0x40, 0xbc, 0x65, 0xc7, 0x25, 0x96, 0x17, 0x4c, 0x18, 0x97, 0x36, 0x53, 0x52, 0x5a, 0xb4, - 0x43, 0xb7, 0x86, 0xb0, 0x70, 0x0e, 0xbe, 0xfa, 0x23, 0x05, 0x16, 0xe2, 0xc5, 0x9a, 0xb8, 0xcf, - 0xff, 0x20, 0xed, 0xf3, 0x3f, 0x37, 0xb6, 0xd9, 0x16, 0x38, 0xfd, 0xdf, 0xad, 0x02, 0x8a, 0x89, - 0xb0, 0x6d, 0x18, 0x5d, 0xd2, 0x3b, 0x78, 0x8e, 0x34, 0xe8, 0x8f, 0x14, 0x40, 0xbe, 0x58, 0x0c, - 0x6d, 0xdd, 0xb2, 0x6c, 0x26, 0xd2, 0xd8, 0x50, 0xcd, 0x5f, 0x1d, 0x5b, 0xcd, 0x50, 0x83, 0xe6, - 0xee, 0x10, 0xf6, 0x6d, 0x8b, 0xb9, 0x83, 0x78, 0xbd, 0x86, 0x09, 0x70, 0x8e, 0x42, 0xe8, 0x23, - 0x00, 0x57, 0x62, 0xee, 0xd8, 0x72, 0xf3, 0x97, 0xf5, 0x2f, 0xa1, 0x52, 0x1b, 0xb6, 0xb5, 0xa7, - 0xf7, 0x63, 0x57, 0x86, 0x23, 0x60, 0x9c, 0x10, 0x72, 0xf5, 0x36, 0x5c, 0x29, 0xd0, 0x1e, 0x2d, - 0x42, 0xf5, 0x80, 0x0e, 0x82, 0x69, 0xc5, 0xfc, 0x27, 0x5a, 0x4e, 0xa6, 0x93, 0x73, 0x32, 0x17, - 0x7c, 0xab, 0xf2, 0xa6, 0xa2, 0xfe, 0x6c, 0x3a, 0x69, 0x69, 0x22, 0x20, 0x5f, 0x87, 0x59, 0x97, - 0x3a, 0x86, 0xde, 0x23, 0x9e, 0x0c, 0x5a, 0x22, 0xba, 0x62, 0xd9, 0x86, 0xa3, 0xde, 0x54, 0xe8, - 0xae, 0x4c, 0x32, 0x74, 0x57, 0xcf, 0x38, 0x74, 0x23, 0x1b, 0x66, 0x3d, 0xc6, 0x8f, 0x58, 0xfd, - 0x20, 0x4e, 0x95, 0x4f, 0x77, 0x93, 0xbe, 0x3a, 0x00, 0x8a, 0x05, 0x86, 0x2d, 0x38, 0x12, 0x82, - 0xd6, 0xe1, 0xa2, 0xa9, 0x5b, 0x22, 0xe0, 0x75, 0x68, 0xcf, 0xb6, 0x34, 0x4f, 0x38, 0xb9, 0xe9, - 0xd6, 0x15, 0xc9, 0x74, 0x71, 0x3b, 0xdd, 0x8d, 0xb3, 0xf4, 0x68, 0x0b, 0x96, 0x5d, 0x7a, 0xa8, - 0x73, 0x35, 0xee, 0xe9, 0x1e, 0xb3, 0xdd, 0xc1, 0x96, 0x6e, 0xea, 0x4c, 0xb8, 0xbe, 0xe9, 0x56, - 0xfd, 0xe4, 0xb8, 0xb1, 0x8c, 0x73, 0xfa, 0x71, 0x2e, 0x17, 0xf7, 0xca, 0x0e, 0xf1, 0x3d, 0xaa, - 0x09, 0x67, 0x36, 0x1b, 0x7b, 0xe5, 0xb6, 0x68, 0xc5, 0xb2, 0x17, 0x99, 0x29, 0xd3, 0x9e, 0x3d, - 0x0b, 0xd3, 0x5e, 0x28, 0x36, 0x6b, 0xb4, 0x0b, 0x57, 0x1c, 0xd7, 0xee, 0xbb, 0xd4, 0xf3, 0x36, - 0x29, 0xd1, 0x0c, 0xdd, 0xa2, 0xe1, 0x7c, 0xcd, 0x89, 0x71, 0xbe, 0x7c, 0x72, 0xdc, 0xb8, 0xd2, - 0xce, 0x27, 0xc1, 0x45, 0xbc, 0xea, 0x4f, 0xab, 0xb0, 0x98, 0x8d, 0xae, 0x3c, 0xa7, 0xb2, 0xbb, - 0x1e, 0x75, 0x0f, 0xa9, 0x76, 0x37, 0x38, 0x71, 0xeb, 0xb6, 0x25, 0x4c, 0xbe, 0x1a, 0x7b, 0x80, - 0x47, 0x43, 0x14, 0x38, 0x87, 0x0b, 0xbd, 0x96, 0xd8, 0x34, 0x41, 0x56, 0x16, 0x59, 0x43, 0xce, - 0xc6, 0x59, 0x87, 0x8b, 0xd2, 0x8b, 0x84, 0x9d, 0x32, 0xf5, 0x8a, 0xac, 0x61, 0x37, 0xdd, 0x8d, - 0xb3, 0xf4, 0xe8, 0x2e, 0x2c, 0x91, 0x43, 0xa2, 0x1b, 0xa4, 0x6b, 0xd0, 0x08, 0x24, 0x48, 0xb9, - 0x5e, 0x92, 0x20, 0x4b, 0xeb, 0x59, 0x02, 0x3c, 0xcc, 0x83, 0xb6, 0xe1, 0x92, 0x6f, 0x0d, 0x43, - 0x05, 0xd6, 0xf9, 0xb2, 0x84, 0xba, 0xb4, 0x3b, 0x4c, 0x82, 0xf3, 0xf8, 0xd0, 0x21, 0x40, 0x2f, - 0x4c, 0x04, 0xbc, 0xfa, 0x79, 0xe1, 0xa9, 0x5b, 0x63, 0xef, 0xad, 0x28, 0xa7, 0x88, 0xfd, 0x61, - 0xd4, 0xe4, 0xe1, 0x84, 0x24, 0xf5, 0x1f, 0x94, 0x64, 0x8c, 0x09, 0x77, 0x20, 0x7a, 0x2b, 0x95, - 0x11, 0x7d, 0x2a, 0x93, 0x11, 0xad, 0x0c, 0x73, 0x24, 0x12, 0xa2, 0x6f, 0xc1, 0x3c, 0xb7, 0x4c, - 0xdd, 0xea, 0x07, 0xab, 0x21, 0x7d, 0xdc, 0x9d, 0x31, 0xac, 0x3f, 0xc2, 0x48, 0xc4, 0xca, 0xa5, - 0x93, 0xe3, 0xc6, 0x7c, 0xaa, 0x13, 0xa7, 0xe5, 0xa9, 0x3f, 0x50, 0x60, 0xe5, 0x4e, 0xe7, 0xae, - 0x6b, 0xfb, 0x4e, 0xa8, 0xde, 0x23, 0x27, 0x88, 0x38, 0xbf, 0x0c, 0x53, 0xae, 0x6f, 0x84, 0xe3, - 0xfa, 0x64, 0x38, 0x2e, 0xec, 0x1b, 0x7c, 0x5c, 0x97, 0x32, 0x5c, 0xc1, 0xa0, 0x38, 0x03, 0xfa, - 0x00, 0xce, 0xbb, 0xc4, 0xea, 0xd3, 0x30, 0x8a, 0x7e, 0xb6, 0xe4, 0x68, 0xee, 0x6f, 0x62, 0xce, - 0x9e, 0xc8, 0xe2, 0x04, 0x1a, 0x96, 0xa8, 0xea, 0x1f, 0x28, 0x70, 0xf1, 0xde, 0xce, 0x4e, 0xfb, - 0xbe, 0x25, 0x36, 0x62, 0x9b, 0xb0, 0x7d, 0x1e, 0xe8, 0x1d, 0xc2, 0xf6, 0xb3, 0x81, 0x9e, 0xf7, - 0x61, 0xd1, 0x83, 0xf6, 0x61, 0x86, 0x3b, 0x00, 0x6a, 0x69, 0x63, 0x66, 0xe7, 0x52, 0x5c, 0x2b, - 0x00, 0x89, 0x53, 0x47, 0xd9, 0x80, 0x43, 0x78, 0xf5, 0x9b, 0xb0, 0x9c, 0x50, 0x8f, 0xcf, 0x97, - 0xb8, 0x1f, 0x41, 0x3d, 0x98, 0xe6, 0x9a, 0x84, 0xb7, 0x1f, 0x65, 0x0f, 0xf3, 0x99, 0x21, 0xc7, - 0x89, 0x10, 0xff, 0xe7, 0xe1, 0x00, 0x5b, 0xfd, 0xe7, 0x0a, 0x5c, 0xb9, 0x67, 0xbb, 0xfa, 0x37, - 0x6c, 0x8b, 0x11, 0xa3, 0x6d, 0x6b, 0xeb, 0x3e, 0xb3, 0xbd, 0x1e, 0x31, 0xa8, 0x3b, 0xc1, 0x73, - 0x8f, 0x91, 0x3a, 0xf7, 0x3c, 0x28, 0x3b, 0xb2, 0x7c, 0x7d, 0x0b, 0x0f, 0x41, 0x2c, 0x73, 0x08, - 0xda, 0x3a, 0x23, 0x79, 0xa3, 0x4f, 0x44, 0xff, 0xa5, 0xc0, 0xcb, 0x05, 0x9c, 0x13, 0x4f, 0x9f, - 0x0f, 0xd2, 0xe9, 0xf3, 0x9d, 0xb3, 0x19, 0x70, 0x41, 0x2e, 0xfd, 0xbf, 0x95, 0xc2, 0x81, 0x8a, - 0xec, 0xed, 0x23, 0x98, 0x15, 0xff, 0x30, 0xdd, 0x93, 0x03, 0xdd, 0x28, 0xa9, 0x4f, 0xc7, 0xef, - 0x86, 0x77, 0x8a, 0x98, 0xee, 0x51, 0x97, 0x5a, 0x3d, 0x9a, 0xc8, 0x6d, 0x24, 0x38, 0x8e, 0xc4, - 0xa0, 0x1b, 0x50, 0x13, 0xb9, 0x4a, 0x2a, 0xfc, 0x5d, 0xe4, 0x67, 0xfe, 0xed, 0xb8, 0x19, 0x27, - 0x69, 0xd0, 0x2d, 0xa8, 0x99, 0xe4, 0x28, 0x13, 0xfc, 0xa2, 0xab, 0x82, 0xed, 0xb8, 0x0b, 0x27, - 0xe9, 0xd0, 0xb7, 0x60, 0xa1, 0xe7, 0xf8, 0x89, 0x2b, 0x6d, 0x99, 0xbc, 0x95, 0x1d, 0x62, 0xde, - 0xed, 0x78, 0x0b, 0xf1, 0xe3, 0xe0, 0x46, 0x7b, 0x37, 0xd1, 0x86, 0x33, 0xe2, 0xd4, 0xbf, 0xa8, - 0xc2, 0xab, 0x23, 0x0d, 0x14, 0xdd, 0x19, 0x91, 0x54, 0xac, 0x94, 0x48, 0x28, 0x08, 0xcc, 0xf3, - 0x83, 0xa1, 0x98, 0x6e, 0x71, 0xe6, 0xac, 0x94, 0x3c, 0x73, 0x8a, 0xf0, 0xb2, 0x95, 0x84, 0xc0, - 0x69, 0x44, 0x9e, 0x85, 0xc8, 0xdb, 0xa6, 0xa2, 0x2c, 0x64, 0x23, 0xdd, 0x8d, 0xb3, 0xf4, 0x1c, - 0x42, 0x5e, 0x06, 0x65, 0x72, 0x90, 0x08, 0x62, 0x33, 0xdd, 0x8d, 0xb3, 0xf4, 0xc8, 0x84, 0x86, - 0x44, 0x4d, 0xcf, 0x7d, 0xe2, 0x8d, 0x22, 0xc8, 0x45, 0x3e, 0x79, 0x72, 0xdc, 0x68, 0x6c, 0x8c, - 0x26, 0xc5, 0xcf, 0xc2, 0x52, 0xb7, 0x61, 0xfe, 0x9e, 0xed, 0xb1, 0xb6, 0xed, 0x32, 0x11, 0xb9, - 0xd0, 0xab, 0x50, 0x35, 0x75, 0x4b, 0x9e, 0x74, 0x6a, 0x52, 0xed, 0x2a, 0xb7, 0x5c, 0xde, 0x2e, - 0xba, 0xc9, 0x91, 0x34, 0xea, 0xb8, 0x9b, 0x1c, 0x61, 0xde, 0xae, 0xde, 0x85, 0x19, 0x19, 0x11, - 0x93, 0x40, 0xd5, 0xd1, 0x40, 0xd5, 0x1c, 0xa0, 0x3f, 0xae, 0xc0, 0x8c, 0x0c, 0x20, 0x13, 0x0c, - 0x05, 0x5f, 0x4d, 0x85, 0x82, 0xb7, 0xc6, 0x0b, 0xb2, 0x85, 0xae, 0x5f, 0xcb, 0xb8, 0xfe, 0x77, - 0xc6, 0xc4, 0x1f, 0xed, 0xea, 0xbf, 0xa7, 0xc0, 0x42, 0x3a, 0xdc, 0x73, 0x77, 0xc2, 0x37, 0x90, - 0xde, 0xa3, 0x0f, 0xe3, 0x0b, 0x85, 0xc8, 0x9d, 0x74, 0xe2, 0x2e, 0x9c, 0xa4, 0x43, 0x34, 0x62, - 0xe3, 0xe6, 0x20, 0x27, 0xa5, 0x59, 0xa0, 0xb4, 0xcf, 0x74, 0xa3, 0x19, 0x3c, 0xd0, 0x35, 0xef, - 0x5b, 0xec, 0x91, 0xdb, 0x61, 0xae, 0x6e, 0xf5, 0x87, 0xc4, 0x08, 0xcb, 0x4a, 0xe2, 0xaa, 0x7f, - 0xad, 0x40, 0x4d, 0x2a, 0x3c, 0xf1, 0x58, 0xf4, 0x95, 0x74, 0x2c, 0xfa, 0xec, 0x98, 0x69, 0x54, - 0x7e, 0xec, 0xf9, 0x61, 0x3c, 0x10, 0x9e, 0x38, 0xf1, 0xbc, 0x6e, 0xdf, 0xf6, 0x58, 0x36, 0xaf, - 0xe3, 0xfb, 0x0b, 0x8b, 0x1e, 0xf4, 0x5b, 0x0a, 0x2c, 0xea, 0x99, 0x54, 0x4b, 0xce, 0xf3, 0x17, - 0xc6, 0x53, 0x2d, 0x82, 0x89, 0xdf, 0x2c, 0xb3, 0x3d, 0x78, 0x48, 0xa4, 0xea, 0xc3, 0x10, 0x15, - 0x22, 0x30, 0xb5, 0xcf, 0x98, 0x33, 0x66, 0x94, 0xcc, 0x4b, 0x22, 0x5b, 0xb3, 0x62, 0xf8, 0x3b, - 0x3b, 0x6d, 0x2c, 0xa0, 0xd5, 0xef, 0x55, 0xa2, 0x09, 0xeb, 0x04, 0x1b, 0x24, 0x4a, 0x73, 0x95, - 0xb3, 0x48, 0x73, 0x6b, 0x79, 0x29, 0x2e, 0x7a, 0x0f, 0xaa, 0xcc, 0x18, 0xf7, 0x32, 0x4f, 0x4a, - 0xd8, 0xd9, 0xea, 0xc4, 0x4e, 0x6a, 0x67, 0xab, 0x83, 0x39, 0x24, 0xfa, 0x1a, 0x4c, 0xf3, 0x43, - 0x04, 0xdf, 0xdf, 0xd5, 0xf1, 0xfd, 0x07, 0x9f, 0xaf, 0xd8, 0xc2, 0xf8, 0x3f, 0x0f, 0x07, 0xb8, - 0xea, 0x37, 0x61, 0x3e, 0xe5, 0x04, 0xd0, 0x87, 0x70, 0xc1, 0xb0, 0x89, 0xd6, 0x22, 0x06, 0xb1, - 0x7a, 0x34, 0x7c, 0x21, 0xfa, 0xc5, 0xd1, 0xee, 0x70, 0x2b, 0xc1, 0x21, 0x9d, 0x49, 0xf4, 0x6e, - 0x9c, 0xec, 0xc3, 0x29, 0x6c, 0x95, 0x00, 0xc4, 0xa3, 0x47, 0x0d, 0x98, 0xe6, 0x26, 0x1c, 0x1c, - 0x08, 0xe6, 0x5a, 0x73, 0x5c, 0x57, 0x6e, 0xd9, 0x1e, 0x0e, 0xda, 0xd1, 0x4d, 0x00, 0x8f, 0xf6, - 0x5c, 0xca, 0x84, 0xcf, 0x09, 0xee, 0xcc, 0x23, 0xef, 0xdb, 0x89, 0x7a, 0x70, 0x82, 0x4a, 0xfd, - 0xbd, 0x0a, 0x54, 0x1f, 0xd8, 0xdd, 0x09, 0x7a, 0xf8, 0xf7, 0x52, 0x1e, 0xbe, 0xec, 0xfe, 0x7f, - 0x60, 0x77, 0x0b, 0xbd, 0xfb, 0xaf, 0x67, 0xbc, 0xfb, 0x9b, 0x63, 0x60, 0x8f, 0xf6, 0xec, 0x3f, - 0xaa, 0xc2, 0x85, 0x07, 0x76, 0x37, 0x7e, 0xcf, 0x78, 0x23, 0x75, 0x7a, 0xbf, 0x96, 0x39, 0xbd, - 0x2f, 0x26, 0x69, 0x5f, 0xc0, 0x43, 0x06, 0x0d, 0x52, 0xb2, 0xb6, 0x6b, 0x77, 0x83, 0x94, 0xac, - 0x5a, 0x32, 0x25, 0xbb, 0x2c, 0x15, 0x11, 0x69, 0x59, 0x04, 0x83, 0xd3, 0xa8, 0x05, 0x4f, 0x0e, - 0x53, 0x93, 0x7d, 0x72, 0x48, 0xbc, 0xd2, 0x4c, 0x3f, 0xef, 0x2b, 0xcd, 0xf9, 0xd1, 0xaf, 0x34, - 0xea, 0x9f, 0x2b, 0x30, 0xf3, 0xc0, 0xee, 0x4e, 0x3c, 0xe6, 0x7d, 0x39, 0x1d, 0xf3, 0x6e, 0x96, - 0xb7, 0xcb, 0x82, 0x78, 0xf7, 0xfd, 0xaa, 0x18, 0x80, 0x70, 0xdd, 0x37, 0xa0, 0xe6, 0x10, 0x97, - 0x18, 0x06, 0x35, 0x74, 0xcf, 0x94, 0xe9, 0xa2, 0x38, 0xe4, 0xb4, 0xe3, 0x66, 0x9c, 0xa4, 0xe1, - 0x2c, 0x3d, 0xdb, 0x74, 0x0c, 0x1a, 0xbe, 0x5a, 0x44, 0x2c, 0x1b, 0x71, 0x33, 0x4e, 0xd2, 0xa0, - 0x47, 0x70, 0x99, 0xf4, 0x98, 0x7e, 0x48, 0xb3, 0x97, 0x9f, 0x55, 0x91, 0x36, 0xbe, 0x74, 0x72, - 0xdc, 0xb8, 0xbc, 0x9e, 0x47, 0x80, 0xf3, 0xf9, 0x52, 0x57, 0xf4, 0x53, 0x67, 0x7d, 0x45, 0xff, - 0x06, 0x5c, 0x20, 0x3e, 0xb3, 0xc3, 0x1e, 0x61, 0x39, 0xb3, 0xad, 0x45, 0xee, 0x66, 0xd7, 0x13, - 0xed, 0x38, 0x45, 0x95, 0xba, 0xd8, 0x3f, 0x7f, 0xd6, 0x6f, 0xf2, 0x7f, 0x56, 0x85, 0xb9, 0xc8, - 0xd1, 0x20, 0x3b, 0x75, 0x19, 0x19, 0xdc, 0xec, 0xbc, 0x5d, 0xde, 0x3c, 0x9e, 0xfb, 0x16, 0x12, - 0xed, 0xc2, 0x9c, 0xc7, 0x88, 0xcb, 0xc6, 0x3a, 0xb1, 0xcd, 0x9f, 0x1c, 0x37, 0xe6, 0x3a, 0x21, - 0x3b, 0x8e, 0x91, 0x90, 0x06, 0x0b, 0xb1, 0x95, 0x8c, 0xe5, 0x7a, 0x82, 0xc3, 0x6d, 0x0a, 0x03, - 0x67, 0x30, 0xb9, 0x0b, 0x08, 0x8c, 0x48, 0x9e, 0xe1, 0x22, 0x17, 0x10, 0x58, 0x1c, 0x96, 0xbd, - 0x68, 0x0d, 0xe6, 0x3c, 0xbf, 0xd7, 0xa3, 0x54, 0xa3, 0x9a, 0x3c, 0x9b, 0x2d, 0x49, 0xd2, 0xb9, - 0x4e, 0xd8, 0x81, 0x63, 0x1a, 0x0e, 0xbc, 0x47, 0x74, 0x83, 0x6a, 0xf2, 0xad, 0x22, 0x02, 0xbe, - 0x23, 0x5a, 0xb1, 0xec, 0x55, 0xff, 0x5e, 0x81, 0xf9, 0x87, 0x94, 0x7d, 0xdd, 0x76, 0x0f, 0xda, - 0xb6, 0xa1, 0xf7, 0x06, 0x13, 0x8c, 0x93, 0xdd, 0x54, 0x9c, 0xfc, 0x62, 0x49, 0xa3, 0x48, 0x69, - 0x59, 0x14, 0x31, 0xd5, 0xff, 0x54, 0xa0, 0x9e, 0xa2, 0x4c, 0x26, 0xcf, 0x14, 0xa6, 0x1d, 0xdb, - 0x65, 0xa1, 0x59, 0x9e, 0x4a, 0x03, 0x7e, 0xcc, 0x48, 0x5c, 0x39, 0x72, 0x58, 0x1c, 0xa0, 0xf3, - 0x71, 0xee, 0xb9, 0xb6, 0x29, 0x7d, 0xe3, 0xe9, 0xa4, 0x50, 0xea, 0xc6, 0xe3, 0xbc, 0xe3, 0xda, - 0x26, 0x16, 0xd8, 0xea, 0x3f, 0x2a, 0xb0, 0x94, 0xa2, 0x9c, 0xb8, 0xcb, 0x27, 0x69, 0x97, 0xff, - 0xce, 0x69, 0x86, 0x55, 0xe0, 0xfc, 0xff, 0x3b, 0x3b, 0x28, 0x3e, 0x7c, 0xa4, 0x41, 0xcd, 0xb1, - 0xb5, 0xce, 0xa9, 0x0b, 0x96, 0x82, 0xc8, 0x11, 0x23, 0xe1, 0x24, 0x2c, 0x3a, 0x84, 0x25, 0x8b, - 0x98, 0xd4, 0x73, 0x48, 0x8f, 0x76, 0x4e, 0xfd, 0xc2, 0x7a, 0xf9, 0xe4, 0xb8, 0xb1, 0xf4, 0x30, - 0x8b, 0x87, 0x87, 0x45, 0xa8, 0x7f, 0x3a, 0x34, 0x66, 0xdb, 0x65, 0xe8, 0x4b, 0x30, 0x2b, 0xea, - 0x50, 0x7b, 0xb6, 0x21, 0x33, 0xb1, 0x5b, 0x7c, 0x59, 0xda, 0xb2, 0xed, 0xe9, 0x71, 0xe3, 0x17, - 0x46, 0xe6, 0x53, 0x21, 0x21, 0x8e, 0x60, 0xd0, 0x16, 0x4c, 0x39, 0xe3, 0x1f, 0xb9, 0xc5, 0x31, - 0x4b, 0x9c, 0xb3, 0x05, 0xca, 0xf0, 0x52, 0x89, 0x88, 0xbd, 0x7f, 0x46, 0x4b, 0x15, 0x1d, 0xf0, - 0x0b, 0x97, 0xcb, 0x85, 0x19, 0x79, 0xe2, 0x94, 0xf6, 0x78, 0xf7, 0x34, 0xf6, 0x98, 0x3c, 0x25, - 0x45, 0xc9, 0x55, 0xd8, 0x18, 0x0a, 0x52, 0xff, 0x49, 0x81, 0x25, 0xa1, 0x50, 0xcf, 0x77, 0x75, - 0x36, 0x98, 0xb8, 0xbf, 0xdc, 0x4b, 0xf9, 0xcb, 0xcd, 0x92, 0x03, 0x1c, 0xd2, 0xb4, 0xd0, 0x67, - 0xfe, 0xab, 0x02, 0x97, 0x87, 0xa8, 0x27, 0xee, 0x4f, 0x68, 0xda, 0x9f, 0x7c, 0xf1, 0xb4, 0xc3, - 0x2b, 0xf0, 0x29, 0x4f, 0x20, 0x67, 0x70, 0xc2, 0x58, 0x6f, 0x02, 0x38, 0xae, 0x7e, 0xa8, 0x1b, - 0xb4, 0x2f, 0x6b, 0x05, 0x67, 0xe3, 0x05, 0x69, 0x47, 0x3d, 0x38, 0x41, 0x85, 0x7e, 0x03, 0x56, - 0x34, 0xba, 0x47, 0x7c, 0x83, 0xad, 0x6b, 0xda, 0x06, 0x71, 0x48, 0x57, 0x37, 0x74, 0xa6, 0xcb, - 0xa7, 0xbd, 0xb9, 0xd6, 0xed, 0xa0, 0x86, 0x2f, 0x8f, 0xe2, 0xe9, 0x71, 0xe3, 0xd3, 0xa3, 0xcf, - 0x40, 0x21, 0xf1, 0x00, 0x17, 0x08, 0x41, 0xbf, 0xa9, 0x40, 0xdd, 0xa5, 0x1f, 0xf9, 0xba, 0x4b, - 0xb5, 0x4d, 0xd7, 0x76, 0x52, 0x1a, 0x54, 0x85, 0x06, 0x77, 0x4f, 0x8e, 0x1b, 0x75, 0x5c, 0x40, - 0x53, 0x46, 0x87, 0x42, 0x41, 0x88, 0xc1, 0x25, 0x62, 0x18, 0xf6, 0xd7, 0x69, 0x7a, 0x06, 0xa6, - 0x84, 0xfc, 0xd6, 0xc9, 0x71, 0xe3, 0xd2, 0xfa, 0x70, 0x77, 0x19, 0xd1, 0x79, 0xf0, 0x68, 0x0d, - 0x66, 0x0e, 0x6d, 0xc3, 0x37, 0xa9, 0x57, 0x9f, 0x16, 0x92, 0xb8, 0x8f, 0x9d, 0x79, 0x1c, 0x34, - 0x3d, 0xe5, 0x99, 0x4d, 0x47, 0x1c, 0x48, 0x43, 0x2a, 0x74, 0x0b, 0x6a, 0xfb, 0xb6, 0xc7, 0xe4, - 0x46, 0x17, 0x79, 0xd0, 0x6c, 0xec, 0x59, 0xee, 0xc5, 0x5d, 0x38, 0x49, 0x87, 0x4c, 0x98, 0xdb, - 0x97, 0xb7, 0xd5, 0x5e, 0x7d, 0x66, 0xac, 0x58, 0x97, 0xba, 0xed, 0x8e, 0x13, 0xb5, 0xb0, 0xd9, - 0xc3, 0xb1, 0x04, 0x7e, 0xb8, 0x13, 0x7f, 0xee, 0x6f, 0x8a, 0x4a, 0x8f, 0xd9, 0xd8, 0xff, 0xdc, - 0x0b, 0x9a, 0x71, 0xd8, 0x1f, 0x92, 0xde, 0x6f, 0x6f, 0x88, 0xc2, 0x8c, 0x0c, 0xe9, 0xfd, 0xf6, - 0x06, 0x0e, 0xfb, 0x91, 0x03, 0x33, 0x1e, 0xdd, 0xd2, 0x2d, 0xff, 0xa8, 0x0e, 0x62, 0xdf, 0xde, - 0x2e, 0xfb, 0x22, 0x75, 0x5b, 0x70, 0x67, 0xde, 0xc0, 0x63, 0x89, 0xb2, 0x1f, 0x87, 0x62, 0xd0, - 0x11, 0xcc, 0xb9, 0xbe, 0xb5, 0xee, 0xed, 0x7a, 0xd4, 0xad, 0xd7, 0x84, 0xcc, 0xb2, 0x2e, 0x19, - 0x87, 0xfc, 0x59, 0xa9, 0xd1, 0x0c, 0x46, 0x14, 0x38, 0x16, 0x86, 0x7e, 0x5f, 0x01, 0xe4, 0xf9, - 0x8e, 0x63, 0x50, 0x93, 0x5a, 0x8c, 0x18, 0xe2, 0x19, 0xde, 0xab, 0x5f, 0x10, 0x3a, 0xb4, 0x4b, - 0xbf, 0xc4, 0x65, 0x81, 0xb2, 0xca, 0x44, 0xa7, 0xfc, 0x61, 0x52, 0x9c, 0xa3, 0x07, 0x5f, 0x8a, - 0x3d, 0x4f, 0xfc, 0xae, 0xcf, 0x8f, 0xb5, 0x14, 0xf9, 0xe5, 0x08, 0xf1, 0x52, 0xc8, 0x7e, 0x1c, - 0x8a, 0x41, 0x8f, 0x61, 0xc5, 0xa5, 0x44, 0x7b, 0x64, 0x19, 0x03, 0x6c, 0xdb, 0xec, 0x8e, 0x6e, - 0x50, 0x6f, 0xe0, 0x31, 0x6a, 0xd6, 0x17, 0x84, 0xd9, 0x44, 0xc5, 0xc6, 0x38, 0x97, 0x0a, 0x17, - 0x70, 0x8b, 0xaa, 0x61, 0xf9, 0x86, 0x34, 0xd9, 0xcf, 0x08, 0x4e, 0x57, 0x35, 0x1c, 0xab, 0x38, - 0xb1, 0xaa, 0xe1, 0x84, 0x88, 0xd1, 0xd7, 0x6b, 0xff, 0x53, 0x81, 0x4b, 0x31, 0xf1, 0x73, 0x57, - 0x0d, 0xe7, 0xb0, 0xbc, 0x80, 0xcb, 0xb6, 0xfc, 0x5b, 0xb0, 0xea, 0x0b, 0xbb, 0x05, 0x3b, 0xab, - 0x5a, 0x65, 0x51, 0xcb, 0x1b, 0x4f, 0xe1, 0xff, 0xf7, 0x5a, 0xde, 0x58, 0xd3, 0xa2, 0x37, 0xa0, - 0x4a, 0x72, 0x38, 0x3f, 0x37, 0x05, 0xa3, 0x39, 0xf5, 0x9b, 0x53, 0xe5, 0xea, 0x37, 0xd5, 0x9f, - 0x54, 0x61, 0x31, 0xbb, 0x57, 0x53, 0x75, 0x83, 0xca, 0x33, 0xeb, 0x06, 0xdb, 0xb0, 0xbc, 0xe7, - 0x1b, 0xc6, 0x40, 0x4c, 0x48, 0xe2, 0xcd, 0x3d, 0xb8, 0x5a, 0x7c, 0x45, 0x72, 0x2e, 0xdf, 0xc9, - 0xa1, 0xc1, 0xb9, 0x9c, 0x05, 0x35, 0x90, 0xd5, 0xb1, 0x6a, 0x20, 0xdf, 0x86, 0x79, 0x57, 0x7c, - 0xde, 0x91, 0x2e, 0x05, 0x88, 0x6e, 0xbd, 0x71, 0xb2, 0x13, 0xa7, 0x69, 0xf3, 0xeb, 0x19, 0xa7, - 0xc7, 0xa8, 0x67, 0x3c, 0x8b, 0x02, 0xc4, 0x1c, 0x97, 0xf7, 0xcc, 0x02, 0xc4, 0x57, 0xe0, 0xaa, - 0x64, 0xe3, 0xff, 0x37, 0x6c, 0x8b, 0xb9, 0xb6, 0x61, 0x50, 0x77, 0xd3, 0x37, 0xcd, 0x81, 0xfa, - 0x2e, 0x2c, 0xa4, 0xab, 0x60, 0x83, 0x95, 0x0f, 0x0a, 0x73, 0x65, 0xcd, 0x40, 0x62, 0xe5, 0x83, - 0x76, 0x1c, 0x51, 0xa8, 0x3f, 0x55, 0xe0, 0x4a, 0x41, 0x21, 0x21, 0xfa, 0x10, 0x16, 0x4c, 0x72, - 0x94, 0xa8, 0xd0, 0x94, 0x4e, 0xa5, 0xec, 0xb1, 0x5a, 0xdc, 0x11, 0x6e, 0xa7, 0x90, 0x70, 0x06, - 0x59, 0xc4, 0x59, 0x72, 0xd4, 0xf1, 0xdd, 0x3e, 0x1d, 0xf3, 0xf0, 0x2e, 0xb6, 0xef, 0xb6, 0xc4, - 0xc0, 0x11, 0x9a, 0xfa, 0x03, 0x05, 0xea, 0x45, 0x49, 0x17, 0xba, 0x95, 0x2a, 0x77, 0xfc, 0x44, - 0xa6, 0xdc, 0x71, 0x69, 0x88, 0xef, 0x05, 0x15, 0x3b, 0xfe, 0x50, 0x81, 0x95, 0xfc, 0xe4, 0x14, - 0xfd, 0x52, 0x4a, 0xe3, 0x46, 0x46, 0xe3, 0x8b, 0x19, 0x2e, 0xa9, 0xef, 0x3e, 0x2c, 0xc8, 0x14, - 0x56, 0xc2, 0x3c, 0xc7, 0xf7, 0x9f, 0x87, 0x51, 0x7e, 0x1c, 0x26, 0x63, 0x62, 0x1d, 0xd3, 0x6d, - 0x38, 0x83, 0xab, 0xfe, 0x61, 0x05, 0xa6, 0x45, 0x25, 0xd0, 0x04, 0x33, 0xa7, 0xf7, 0x53, 0x99, - 0x53, 0xd9, 0xe7, 0x42, 0xa1, 0x5d, 0x61, 0xd2, 0xd4, 0xcd, 0x24, 0x4d, 0x6f, 0x8d, 0x85, 0x3e, - 0x3a, 0x5f, 0xfa, 0x1c, 0xcc, 0x45, 0x4a, 0x94, 0x73, 0xd4, 0x3c, 0x3b, 0xad, 0x25, 0x44, 0x94, - 0x74, 0xf3, 0x87, 0xa9, 0x30, 0x39, 0xce, 0x87, 0xca, 0x09, 0xd9, 0xcd, 0x30, 0x54, 0x06, 0x9f, - 0xb6, 0xc4, 0x85, 0x7c, 0xc3, 0x11, 0xf4, 0x5d, 0x58, 0x08, 0xbe, 0xf6, 0x8e, 0x2e, 0xcd, 0xaa, - 0xc2, 0x7a, 0xa3, 0x8f, 0xa5, 0x76, 0x52, 0xbd, 0x38, 0x43, 0x7d, 0xf5, 0x6d, 0x98, 0x4f, 0x09, - 0x2b, 0xf5, 0x25, 0xca, 0x5f, 0x29, 0xb0, 0x9c, 0x57, 0x7a, 0x88, 0xae, 0xc1, 0xd4, 0x81, 0x2e, - 0x2b, 0x26, 0x12, 0x55, 0x26, 0xbf, 0xa2, 0x5b, 0x1a, 0x16, 0x3d, 0xd1, 0x87, 0x44, 0x95, 0xc2, - 0x0f, 0x89, 0x6e, 0x02, 0x10, 0x47, 0x97, 0x5f, 0xd0, 0xcb, 0x51, 0x45, 0xc6, 0x1b, 0x7f, 0x5b, - 0x8f, 0x13, 0x54, 0xa2, 0xa8, 0x28, 0xd6, 0x47, 0x26, 0x84, 0x71, 0xb5, 0x4f, 0x42, 0xd5, 0x24, - 0x9d, 0xfa, 0x37, 0x0a, 0x7c, 0xe2, 0x99, 0x07, 0x37, 0xd4, 0x4a, 0xb9, 0x87, 0x66, 0xc6, 0x3d, - 0xac, 0x16, 0x03, 0xbc, 0xc0, 0x52, 0xee, 0xef, 0x54, 0x00, 0xed, 0xec, 0xeb, 0xae, 0xd6, 0x26, - 0x2e, 0x1b, 0x60, 0x39, 0xc0, 0x09, 0x3a, 0x8c, 0x5b, 0x50, 0xd3, 0xa8, 0xd7, 0x73, 0x75, 0x31, - 0x49, 0x72, 0x39, 0xa3, 0x19, 0xdf, 0x8c, 0xbb, 0x70, 0x92, 0x0e, 0xf5, 0x61, 0xf6, 0x30, 0x58, - 0xb3, 0xb0, 0x30, 0xa5, 0x6c, 0xd6, 0x1b, 0x5b, 0x40, 0xbc, 0x3f, 0x64, 0x83, 0x87, 0x23, 0x70, - 0xf5, 0xbb, 0x0a, 0xac, 0x0c, 0x4f, 0xc8, 0x66, 0x50, 0x76, 0x31, 0xa9, 0x49, 0x79, 0x05, 0xa6, - 0x04, 0x2a, 0x9f, 0x8d, 0x0b, 0xc1, 0xd5, 0x37, 0x97, 0x88, 0x45, 0xab, 0xfa, 0x33, 0x05, 0xae, - 0xe6, 0xab, 0x34, 0xf1, 0x93, 0xc6, 0x87, 0xe9, 0x93, 0x46, 0xd9, 0x9b, 0x84, 0x7c, 0xad, 0x0b, - 0x4e, 0x1d, 0x3f, 0xc9, 0x9d, 0xf9, 0x89, 0x0f, 0x71, 0x2f, 0x3d, 0xc4, 0xf5, 0x53, 0x0f, 0x31, - 0x7f, 0x78, 0xad, 0xcf, 0x3c, 0xf9, 0x78, 0xf5, 0xdc, 0x8f, 0x3f, 0x5e, 0x3d, 0xf7, 0x2f, 0x1f, - 0xaf, 0x9e, 0xfb, 0xf6, 0xc9, 0xaa, 0xf2, 0xe4, 0x64, 0x55, 0xf9, 0xf1, 0xc9, 0xaa, 0xf2, 0xef, - 0x27, 0xab, 0xca, 0x77, 0xff, 0x63, 0xf5, 0xdc, 0xfb, 0x33, 0x12, 0xf3, 0xff, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xfb, 0xcc, 0x56, 0x9a, 0xd7, 0x45, 0x00, 0x00, + // 3535 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe4, 0x5b, 0x4d, 0x6c, 0x1c, 0xc7, + 0xb1, 0xd6, 0xec, 0x72, 0x45, 0xb2, 0x28, 0x92, 0x62, 0x93, 0xa6, 0xd6, 0xb4, 0xcd, 0x95, 0xc7, + 0x78, 0xb6, 0x0c, 0x48, 0xcb, 0x27, 0xbd, 0x27, 0x3f, 0x5b, 0xb6, 0x65, 0x73, 0x49, 0x51, 0xa2, + 0x1f, 0x29, 0xad, 0x7b, 0x97, 0x8a, 0x63, 0x3b, 0x36, 0x86, 0xbb, 0xcd, 0xe5, 0x88, 0xf3, 0xe7, + 0x99, 0x1e, 0x9a, 0x6b, 0x23, 0xb0, 0x81, 0x20, 0x57, 0xc7, 0xb7, 0xe4, 0x90, 0x1c, 0x72, 0x08, + 0x72, 0x8a, 0x11, 0x03, 0x01, 0x7c, 0xcc, 0x25, 0x3f, 0x4a, 0x90, 0x00, 0x4e, 0x80, 0x20, 0x41, + 0xe0, 0xd0, 0x31, 0xe3, 0xe4, 0x1e, 0xe4, 0xa6, 0x5c, 0x82, 0xee, 0xe9, 0xf9, 0xdd, 0x99, 0x95, + 0x76, 0xc9, 0x35, 0x02, 0xe4, 0xc6, 0xed, 0xae, 0xfa, 0xaa, 0xaa, 0xbb, 0xa6, 0xaa, 0xba, 0xbb, + 0x08, 0xcf, 0xee, 0x3c, 0xe9, 0x94, 0x55, 0x73, 0x61, 0xc7, 0xdd, 0x24, 0xb6, 0x41, 0x28, 0x71, + 0x16, 0xac, 0x9d, 0xd6, 0x82, 0x62, 0xa9, 0xce, 0x02, 0xd9, 0xa3, 0xc4, 0x70, 0x54, 0xd3, 0x70, + 0x16, 0x76, 0xcf, 0x6f, 0x12, 0xaa, 0x9c, 0x5f, 0x68, 0x11, 0x83, 0xd8, 0x0a, 0x25, 0xcd, 0xb2, + 0x65, 0x9b, 0xd4, 0x44, 0xe7, 0x3c, 0xf6, 0x72, 0xc8, 0x5e, 0xb6, 0x76, 0x5a, 0x65, 0xc6, 0x5e, + 0x0e, 0xd9, 0xcb, 0x82, 0x7d, 0xee, 0x5c, 0x4b, 0xa5, 0xdb, 0xee, 0x66, 0xb9, 0x61, 0xea, 0x0b, + 0x2d, 0xb3, 0x65, 0x2e, 0x70, 0x94, 0x4d, 0x77, 0x8b, 0xff, 0xe2, 0x3f, 0xf8, 0x5f, 0x1e, 0xfa, + 0xdc, 0x85, 0x4c, 0xe5, 0x16, 0x6c, 0xe2, 0x98, 0xae, 0xdd, 0x20, 0x49, 0x8d, 0xe6, 0xce, 0x66, + 0xf3, 0xec, 0x76, 0xe8, 0xdf, 0x45, 0x82, 0xb3, 0xa0, 0x13, 0xaa, 0xa4, 0xf1, 0x9c, 0x4b, 0xe7, + 0xb1, 0x5d, 0x83, 0xaa, 0x7a, 0xa7, 0x42, 0xff, 0xdb, 0x9d, 0xdc, 0x69, 0x6c, 0x13, 0x5d, 0xe9, + 0xe0, 0x3a, 0x9f, 0xce, 0xe5, 0x52, 0x55, 0x5b, 0x50, 0x0d, 0xea, 0x50, 0x3b, 0xc9, 0x22, 0x97, + 0x01, 0x16, 0xab, 0xab, 0x37, 0x89, 0xcd, 0xd6, 0x1c, 0x9d, 0x86, 0x21, 0x43, 0xd1, 0x49, 0x51, + 0x3a, 0x2d, 0x9d, 0x19, 0xad, 0x9c, 0xb8, 0xbd, 0x5f, 0x3a, 0x76, 0xb0, 0x5f, 0x1a, 0xba, 0xae, + 0xe8, 0x04, 0xf3, 0x19, 0xf9, 0x55, 0x98, 0x59, 0xaa, 0x6e, 0xd4, 0x15, 0xbb, 0x45, 0xe8, 0x06, + 0x55, 0x35, 0xf5, 0x2d, 0x85, 0x32, 0xce, 0x65, 0x38, 0x49, 0xf9, 0x60, 0x95, 0xd8, 0x0d, 0x62, + 0x50, 0xa5, 0xe5, 0xa1, 0x14, 0x2a, 0x45, 0x81, 0x72, 0xb2, 0x9e, 0x98, 0xc7, 0x1d, 0x1c, 0xf2, + 0x37, 0x25, 0xb8, 0x7f, 0xc9, 0x75, 0xa8, 0xa9, 0xaf, 0x13, 0x6a, 0xab, 0x8d, 0x25, 0xd7, 0xb6, + 0x89, 0x41, 0x6b, 0x54, 0xa1, 0xae, 0x73, 0x77, 0xed, 0xd0, 0x4b, 0x50, 0xd8, 0x55, 0x34, 0x97, + 0x14, 0x73, 0xa7, 0xa5, 0x33, 0x63, 0x17, 0xce, 0x96, 0x33, 0x3d, 0xad, 0xec, 0xfb, 0x42, 0xf9, + 0x45, 0x57, 0x31, 0xa8, 0x4a, 0xdb, 0x95, 0x19, 0x01, 0x78, 0x42, 0x48, 0xbd, 0xc9, 0x90, 0xb0, + 0x07, 0x28, 0xbf, 0x27, 0xc1, 0x43, 0x99, 0x9a, 0xad, 0xa9, 0x0e, 0x45, 0x3a, 0x14, 0x54, 0x4a, + 0x74, 0xa7, 0x28, 0x9d, 0xce, 0x9f, 0x19, 0xbb, 0x70, 0xad, 0xdc, 0x93, 0x97, 0x97, 0x33, 0xc1, + 0x2b, 0xe3, 0x42, 0xaf, 0xc2, 0x2a, 0x83, 0xc7, 0x9e, 0x14, 0xf9, 0x1b, 0x12, 0xa0, 0x28, 0x8f, + 0xb7, 0xba, 0xf7, 0xb0, 0x46, 0x5f, 0x3a, 0xcc, 0x1a, 0x4d, 0x0b, 0xc0, 0x31, 0x4f, 0x5c, 0x6c, + 0x89, 0xde, 0x95, 0x60, 0xb6, 0x53, 0x23, 0xbe, 0x36, 0x5b, 0xf1, 0xb5, 0x59, 0x3c, 0xc4, 0xda, + 0x78, 0xa8, 0x19, 0x8b, 0xf2, 0x83, 0x1c, 0x8c, 0x2e, 0x2b, 0x44, 0x37, 0x8d, 0x1a, 0xa1, 0xe8, + 0x25, 0x18, 0x61, 0x9f, 0x63, 0x53, 0xa1, 0x0a, 0x5f, 0x8f, 0xb1, 0x0b, 0x67, 0xba, 0x18, 0xbb, + 0x7b, 0xbe, 0x7c, 0x63, 0xf3, 0x16, 0x69, 0xd0, 0x75, 0x42, 0x95, 0x0a, 0x12, 0xf8, 0x10, 0x8e, + 0xe1, 0x00, 0x0d, 0xbd, 0x06, 0x43, 0x8e, 0x45, 0x1a, 0x62, 0x09, 0x9f, 0xe9, 0xd1, 0x9c, 0x40, + 0xc3, 0x9a, 0x45, 0x1a, 0xe1, 0x1e, 0xb1, 0x5f, 0x98, 0xe3, 0xa2, 0x2d, 0x38, 0xee, 0xf0, 0xcd, + 0x2f, 0xe6, 0xb9, 0x84, 0xcb, 0x7d, 0x4b, 0xf0, 0x5c, 0x68, 0x42, 0xc8, 0x38, 0xee, 0xfd, 0xc6, + 0x02, 0x5d, 0xfe, 0xa5, 0x04, 0xe3, 0x01, 0x2d, 0xdf, 0xa9, 0x97, 0x3b, 0xd6, 0xec, 0x6c, 0x37, + 0xd9, 0x8c, 0x96, 0xad, 0x1c, 0xe3, 0xe5, 0xeb, 0x76, 0x52, 0x48, 0x1a, 0xf1, 0x47, 0x22, 0xab, + 0xf6, 0x15, 0xdf, 0x0b, 0x72, 0xdc, 0x0b, 0x9e, 0xec, 0xd7, 0xa8, 0x8c, 0xcd, 0xff, 0x45, 0xd4, + 0x18, 0xb6, 0x98, 0xe8, 0x15, 0x18, 0x71, 0x88, 0x46, 0x1a, 0xd4, 0xb4, 0x85, 0x31, 0xe7, 0xef, + 0xc9, 0x18, 0x65, 0x93, 0x68, 0x35, 0xc1, 0x58, 0x39, 0xc1, 0xac, 0xf1, 0x7f, 0xe1, 0x00, 0x90, + 0x81, 0x53, 0xa2, 0x5b, 0x9a, 0x42, 0xfd, 0x4f, 0xe9, 0x5c, 0x77, 0xef, 0xaa, 0x9a, 0xcd, 0xba, + 0x60, 0xe0, 0x1b, 0x1f, 0x2c, 0x95, 0x3f, 0x8a, 0x03, 0x40, 0xf9, 0x27, 0x39, 0x98, 0x4c, 0x6c, + 0x22, 0xba, 0x09, 0xb3, 0x0d, 0x2f, 0x30, 0x5c, 0x77, 0xf5, 0x4d, 0x62, 0xd7, 0x1a, 0xdb, 0xa4, + 0xe9, 0x6a, 0xa4, 0x29, 0x02, 0xed, 0xbc, 0xc0, 0x9b, 0x5d, 0x4a, 0xa5, 0xc2, 0x19, 0xdc, 0xe8, + 0x05, 0x40, 0x06, 0x1f, 0x5a, 0x57, 0x1d, 0x27, 0xc0, 0xcc, 0x71, 0xcc, 0x39, 0x81, 0x89, 0xae, + 0x77, 0x50, 0xe0, 0x14, 0x2e, 0xa6, 0x63, 0x93, 0x38, 0xaa, 0x4d, 0x9a, 0x49, 0x1d, 0xf3, 0x71, + 0x1d, 0x97, 0x53, 0xa9, 0x70, 0x06, 0x37, 0xba, 0x08, 0x63, 0x9e, 0x34, 0x4c, 0x94, 0x66, 0xbb, + 0x38, 0xc4, 0xc1, 0x82, 0x60, 0x74, 0x3d, 0x9c, 0xc2, 0x51, 0x3a, 0xf9, 0x87, 0x39, 0x80, 0x65, + 0x62, 0x69, 0x66, 0x5b, 0x27, 0xc6, 0x20, 0x03, 0xc2, 0xeb, 0xb1, 0x80, 0xf0, 0x6c, 0xaf, 0x9e, + 0x1d, 0xa8, 0x98, 0x19, 0x11, 0x5a, 0x89, 0x88, 0xf0, 0x5c, 0xff, 0x22, 0xba, 0x87, 0x84, 0x3f, + 0xe5, 0x61, 0x3a, 0x24, 0x5e, 0x32, 0x8d, 0xa6, 0xca, 0x13, 0xfc, 0xd3, 0x30, 0x44, 0xdb, 0x96, + 0x9f, 0x58, 0x1e, 0xf3, 0x55, 0xac, 0xb7, 0x2d, 0x72, 0x67, 0xbf, 0x74, 0x2a, 0x85, 0x85, 0x4d, + 0x61, 0xce, 0x84, 0x6e, 0x06, 0xda, 0xe7, 0x38, 0xfb, 0xe5, 0xb8, 0xf0, 0x3b, 0xfb, 0xa5, 0xae, + 0x15, 0x58, 0x39, 0xc0, 0x8c, 0x2b, 0x8b, 0x1e, 0x85, 0xe3, 0x36, 0x51, 0x1c, 0xd3, 0xe0, 0x1e, + 0x31, 0x1a, 0x1a, 0x85, 0xf9, 0x28, 0x16, 0xb3, 0xe8, 0x71, 0x18, 0xd6, 0x89, 0xe3, 0xb0, 0xa2, + 0xa4, 0xc0, 0x09, 0x27, 0x05, 0xe1, 0xf0, 0xba, 0x37, 0x8c, 0xfd, 0x79, 0xb4, 0x0d, 0x13, 0x9a, + 0xe2, 0xd0, 0x0d, 0xab, 0xa9, 0x50, 0x52, 0x57, 0x75, 0x52, 0x3c, 0x7e, 0x37, 0x4f, 0x09, 0x23, + 0x07, 0xa3, 0xaf, 0xcc, 0x0a, 0xec, 0x89, 0xb5, 0x18, 0x0e, 0x4e, 0xe0, 0x22, 0x0a, 0x88, 0x8d, + 0xd4, 0x6d, 0xc5, 0x70, 0xbc, 0x05, 0x63, 0xd2, 0x86, 0x7b, 0x94, 0x16, 0x7c, 0xa1, 0x6b, 0x1d, + 0x58, 0x38, 0x05, 0x5f, 0xfe, 0x95, 0x04, 0x13, 0xe1, 0x66, 0x0d, 0x3c, 0xe6, 0xbf, 0x16, 0x8f, + 0xf9, 0x4f, 0xf5, 0xed, 0xb6, 0x19, 0x41, 0xff, 0x5b, 0x79, 0x40, 0x21, 0x11, 0x36, 0x35, 0x6d, + 0x53, 0x69, 0xec, 0xdc, 0x43, 0x19, 0xf4, 0x3d, 0x09, 0x90, 0xcb, 0x37, 0xa3, 0xb9, 0x68, 0x18, + 0x26, 0xe5, 0x65, 0xac, 0xaf, 0xe6, 0x97, 0xfb, 0x56, 0xd3, 0xd7, 0xa0, 0xbc, 0xd1, 0x81, 0x7d, + 0xc5, 0xa0, 0x76, 0x3b, 0xdc, 0xaf, 0x4e, 0x02, 0x9c, 0xa2, 0x10, 0x7a, 0x03, 0xc0, 0x16, 0x98, + 0x75, 0x53, 0x7c, 0xfc, 0xbd, 0xc6, 0x17, 0x5f, 0xa9, 0x25, 0xd3, 0xd8, 0x52, 0x5b, 0x61, 0x28, + 0xc3, 0x01, 0x30, 0x8e, 0x08, 0x99, 0xbb, 0x02, 0xa7, 0x32, 0xb4, 0x47, 0x27, 0x21, 0xbf, 0x43, + 0xda, 0xde, 0xb2, 0x62, 0xf6, 0x27, 0x9a, 0x89, 0x96, 0x93, 0xa3, 0xa2, 0x16, 0xbc, 0x94, 0x7b, + 0x52, 0x92, 0x3f, 0x2f, 0x44, 0x3d, 0x8d, 0x27, 0xe4, 0x33, 0x30, 0x62, 0x13, 0x4b, 0x53, 0x1b, + 0x8a, 0x23, 0x92, 0x16, 0xcf, 0xae, 0x58, 0x8c, 0xe1, 0x60, 0x36, 0x96, 0xba, 0x73, 0x83, 0x4c, + 0xdd, 0xf9, 0x23, 0x4e, 0xdd, 0xc8, 0x84, 0x11, 0x87, 0xb2, 0x23, 0x56, 0xcb, 0xcb, 0x53, 0xbd, + 0x97, 0xbb, 0xd1, 0x58, 0xed, 0x01, 0x85, 0x02, 0xfd, 0x11, 0x1c, 0x08, 0x41, 0x8b, 0x30, 0xa9, + 0xab, 0x06, 0x4f, 0x78, 0x35, 0xd2, 0x30, 0x8d, 0xa6, 0xc3, 0x83, 0x5c, 0xa1, 0x72, 0x4a, 0x30, + 0x4d, 0xae, 0xc7, 0xa7, 0x71, 0x92, 0x1e, 0xad, 0xc1, 0x8c, 0x4d, 0x76, 0x55, 0xa6, 0xc6, 0x35, + 0xd5, 0xa1, 0xa6, 0xdd, 0x5e, 0x53, 0x75, 0x95, 0xf2, 0xd0, 0x57, 0xa8, 0x14, 0x0f, 0xf6, 0x4b, + 0x33, 0x38, 0x65, 0x1e, 0xa7, 0x72, 0xb1, 0xa8, 0x6c, 0x29, 0xae, 0x43, 0x9a, 0x3c, 0x98, 0x8d, + 0x84, 0x51, 0xb9, 0xca, 0x47, 0xb1, 0x98, 0x45, 0x7a, 0xcc, 0xb5, 0x47, 0x8e, 0xc2, 0xb5, 0x27, + 0xb2, 0xdd, 0x1a, 0x6d, 0xc0, 0x29, 0xcb, 0x36, 0x5b, 0x36, 0x71, 0x9c, 0x65, 0xa2, 0x34, 0x35, + 0xd5, 0x20, 0xfe, 0x7a, 0x8d, 0x72, 0x3b, 0x1f, 0x38, 0xd8, 0x2f, 0x9d, 0xaa, 0xa6, 0x93, 0xe0, + 0x2c, 0x5e, 0xf9, 0xd3, 0x3c, 0x9c, 0x4c, 0x66, 0x57, 0x56, 0x53, 0x99, 0x9b, 0x0e, 0xb1, 0x77, + 0x49, 0xf3, 0xaa, 0x77, 0xe2, 0x56, 0x4d, 0x83, 0xbb, 0x7c, 0x3e, 0x8c, 0x00, 0x37, 0x3a, 0x28, + 0x70, 0x0a, 0x17, 0x3a, 0x1b, 0xf9, 0x68, 0xbc, 0xaa, 0x2c, 0xf0, 0x86, 0x94, 0x0f, 0x67, 0x11, + 0x26, 0x45, 0x14, 0xf1, 0x27, 0x45, 0xe9, 0x15, 0x78, 0xc3, 0x46, 0x7c, 0x1a, 0x27, 0xe9, 0xd1, + 0x55, 0x98, 0x52, 0x76, 0x15, 0x55, 0x53, 0x36, 0x35, 0x12, 0x80, 0x78, 0x25, 0xd7, 0xfd, 0x02, + 0x64, 0x6a, 0x31, 0x49, 0x80, 0x3b, 0x79, 0xd0, 0x3a, 0x4c, 0xbb, 0x46, 0x27, 0x94, 0xe7, 0x9d, + 0x0f, 0x08, 0xa8, 0xe9, 0x8d, 0x4e, 0x12, 0x9c, 0xc6, 0x87, 0x76, 0x01, 0x1a, 0x7e, 0x21, 0xe0, + 0x14, 0x8f, 0xf3, 0x48, 0x5d, 0xe9, 0xfb, 0xdb, 0x0a, 0x6a, 0x8a, 0x30, 0x1e, 0x06, 0x43, 0x0e, + 0x8e, 0x48, 0x92, 0x7f, 0x23, 0x45, 0x73, 0x8c, 0xff, 0x05, 0xa2, 0x4b, 0xb1, 0x8a, 0xe8, 0xd1, + 0x44, 0x45, 0x34, 0xdb, 0xc9, 0x11, 0x29, 0x88, 0xde, 0x81, 0x71, 0xe6, 0x99, 0xaa, 0xd1, 0xf2, + 0x76, 0x43, 0xc4, 0xb8, 0x95, 0x3e, 0xbc, 0x3f, 0xc0, 0x88, 0xe4, 0xca, 0xa9, 0x83, 0xfd, 0xd2, + 0x78, 0x6c, 0x12, 0xc7, 0xe5, 0xc9, 0x1f, 0x4a, 0x30, 0xbb, 0x52, 0xbb, 0x6a, 0x9b, 0xae, 0xe5, + 0xab, 0x77, 0xc3, 0xf2, 0x32, 0xce, 0xff, 0xc1, 0x90, 0xed, 0x6a, 0xbe, 0x5d, 0x8f, 0xf8, 0x76, + 0x61, 0x57, 0x63, 0x76, 0x4d, 0x27, 0xb8, 0x3c, 0xa3, 0x18, 0x03, 0x7a, 0x0d, 0x8e, 0xdb, 0x8a, + 0xd1, 0x22, 0x7e, 0x16, 0x7d, 0xa2, 0x47, 0x6b, 0x56, 0x97, 0x31, 0x63, 0x8f, 0x54, 0x71, 0x1c, + 0x0d, 0x0b, 0x54, 0xf9, 0x3b, 0x12, 0x4c, 0x5e, 0xab, 0xd7, 0xab, 0xab, 0x06, 0xff, 0x10, 0xab, + 0x0a, 0xdd, 0x66, 0x89, 0xde, 0x52, 0xe8, 0x76, 0x32, 0xd1, 0xb3, 0x39, 0xcc, 0x67, 0xd0, 0x36, + 0x0c, 0xb3, 0x00, 0x40, 0x8c, 0x66, 0x9f, 0xd5, 0xb9, 0x10, 0x57, 0xf1, 0x40, 0xc2, 0xd2, 0x51, + 0x0c, 0x60, 0x1f, 0x5e, 0x7e, 0x1b, 0x66, 0x22, 0xea, 0xb1, 0xf5, 0xe2, 0xf7, 0x23, 0xa8, 0x01, + 0x05, 0xa6, 0x89, 0x7f, 0xfb, 0xd1, 0xeb, 0x61, 0x3e, 0x61, 0x72, 0x58, 0x08, 0xb1, 0x5f, 0x0e, + 0xf6, 0xb0, 0xe5, 0xdf, 0xe7, 0xe0, 0xd4, 0x35, 0xd3, 0x56, 0xdf, 0x32, 0x0d, 0xaa, 0x68, 0x55, + 0xb3, 0xb9, 0xe8, 0x52, 0xd3, 0x69, 0x28, 0x1a, 0xb1, 0x07, 0x78, 0xee, 0xd1, 0x62, 0xe7, 0x9e, + 0x17, 0x7a, 0xb5, 0x2c, 0x5d, 0xdf, 0xcc, 0x43, 0x10, 0x4d, 0x1c, 0x82, 0xd6, 0x8e, 0x48, 0x5e, + 0xf7, 0x13, 0xd1, 0xdf, 0x24, 0x78, 0x20, 0x83, 0x73, 0xe0, 0xe5, 0xf3, 0x4e, 0xbc, 0x7c, 0x5e, + 0x39, 0x1a, 0x83, 0x33, 0x6a, 0xe9, 0x7f, 0xe6, 0x32, 0x0d, 0xe5, 0xd5, 0xdb, 0x1b, 0x30, 0xc2, + 0x7f, 0x61, 0xb2, 0x25, 0x0c, 0x5d, 0xea, 0x51, 0x9f, 0x9a, 0xbb, 0xe9, 0xdf, 0x29, 0x62, 0xb2, + 0x45, 0x6c, 0x62, 0x34, 0x48, 0xa4, 0xb6, 0x11, 0xe0, 0x38, 0x10, 0x83, 0xce, 0xc3, 0x18, 0xaf, + 0x55, 0x62, 0xe9, 0x6f, 0x92, 0x9d, 0xf9, 0xd7, 0xc3, 0x61, 0x1c, 0xa5, 0x41, 0x17, 0x61, 0x4c, + 0x57, 0xf6, 0x12, 0xc9, 0x2f, 0xb8, 0x2a, 0x58, 0x0f, 0xa7, 0x70, 0x94, 0x0e, 0xbd, 0x03, 0x13, + 0x0d, 0xcb, 0x8d, 0x5c, 0x69, 0x8b, 0xe2, 0xad, 0x57, 0x13, 0xd3, 0x6e, 0xc7, 0x2b, 0x88, 0x1d, + 0x07, 0x97, 0xaa, 0x1b, 0x91, 0x31, 0x9c, 0x10, 0x27, 0xff, 0x38, 0x0f, 0x0f, 0x75, 0x75, 0x50, + 0xb4, 0xd2, 0xa5, 0xa8, 0x98, 0xed, 0xa1, 0xa0, 0x50, 0x60, 0x9c, 0x1d, 0x0c, 0xf9, 0x72, 0xf3, + 0x33, 0x67, 0xae, 0xc7, 0x33, 0x27, 0x4f, 0x2f, 0x6b, 0x51, 0x08, 0x1c, 0x47, 0x64, 0x55, 0x88, + 0xb8, 0x6d, 0xca, 0xaa, 0x42, 0x96, 0xe2, 0xd3, 0x38, 0x49, 0xcf, 0x20, 0xc4, 0x65, 0x50, 0xa2, + 0x06, 0x09, 0x20, 0x96, 0xe3, 0xd3, 0x38, 0x49, 0x8f, 0x74, 0x28, 0x09, 0xd4, 0xf8, 0xda, 0x47, + 0xde, 0x28, 0xbc, 0x5a, 0xe4, 0x91, 0x83, 0xfd, 0x52, 0x69, 0xa9, 0x3b, 0x29, 0xbe, 0x1b, 0x96, + 0xbc, 0x0e, 0xe3, 0xd7, 0x4c, 0x87, 0x56, 0x4d, 0x9b, 0xf2, 0xcc, 0x85, 0x1e, 0x82, 0xbc, 0xae, + 0x1a, 0xe2, 0xa4, 0x33, 0x26, 0xd4, 0xce, 0x33, 0xcf, 0x65, 0xe3, 0x7c, 0x5a, 0xd9, 0x13, 0x4e, + 0x1d, 0x4e, 0x2b, 0x7b, 0x98, 0x8d, 0xcb, 0x57, 0x61, 0x58, 0x64, 0xc4, 0x28, 0x50, 0xbe, 0x3b, + 0x50, 0x3e, 0x05, 0xe8, 0xfb, 0x39, 0x18, 0x16, 0x09, 0x64, 0x80, 0xa9, 0xe0, 0xd5, 0x58, 0x2a, + 0xb8, 0xd4, 0x5f, 0x92, 0xcd, 0x0c, 0xfd, 0xcd, 0x44, 0xe8, 0x7f, 0xa6, 0x4f, 0xfc, 0xee, 0xa1, + 0xfe, 0x03, 0x09, 0x26, 0xe2, 0xe9, 0x9e, 0x85, 0x13, 0xf6, 0x01, 0xa9, 0x0d, 0x72, 0x3d, 0xbc, + 0x50, 0x08, 0xc2, 0x49, 0x2d, 0x9c, 0xc2, 0x51, 0x3a, 0x44, 0x02, 0x36, 0xe6, 0x0e, 0x62, 0x51, + 0xca, 0x19, 0x4a, 0xbb, 0x54, 0xd5, 0xca, 0xde, 0x03, 0x5d, 0x79, 0xd5, 0xa0, 0x37, 0xec, 0x1a, + 0xb5, 0x55, 0xa3, 0xd5, 0x21, 0x86, 0x7b, 0x56, 0x14, 0x57, 0xfe, 0x99, 0x04, 0x63, 0x42, 0xe1, + 0x81, 0xe7, 0xa2, 0x57, 0xe2, 0xb9, 0xe8, 0x89, 0x3e, 0xcb, 0xa8, 0xf4, 0xdc, 0xf3, 0x51, 0x68, + 0x08, 0x2b, 0x9c, 0x58, 0x5d, 0xb7, 0x6d, 0x3a, 0x34, 0x59, 0xd7, 0xb1, 0xef, 0x0b, 0xf3, 0x19, + 0xf4, 0x75, 0x09, 0x4e, 0xaa, 0x89, 0x52, 0x4b, 0xac, 0xf3, 0x73, 0xfd, 0xa9, 0x16, 0xc0, 0x84, + 0x6f, 0x96, 0xc9, 0x19, 0xdc, 0x21, 0x52, 0x76, 0xa1, 0x83, 0x0a, 0x29, 0x30, 0xb4, 0x4d, 0xa9, + 0xd5, 0x67, 0x96, 0x4c, 0x2b, 0x22, 0x2b, 0x23, 0xdc, 0xfc, 0x7a, 0xbd, 0x8a, 0x39, 0xb4, 0xfc, + 0x41, 0x2e, 0x58, 0xb0, 0x9a, 0xf7, 0x81, 0x04, 0x65, 0xae, 0x74, 0x14, 0x65, 0xee, 0x58, 0x5a, + 0x89, 0x8b, 0x5e, 0x82, 0x3c, 0xd5, 0xfa, 0xbd, 0xcc, 0x13, 0x12, 0xea, 0x6b, 0xb5, 0x30, 0x48, + 0xd5, 0xd7, 0x6a, 0x98, 0x41, 0xa2, 0xd7, 0xa1, 0xc0, 0x0e, 0x11, 0xec, 0xfb, 0xce, 0xf7, 0x1f, + 0x3f, 0xd8, 0x7a, 0x85, 0x1e, 0xc6, 0x7e, 0x39, 0xd8, 0xc3, 0x95, 0xdf, 0x86, 0xf1, 0x58, 0x10, + 0x40, 0xb7, 0xe0, 0x84, 0x66, 0x2a, 0xcd, 0x8a, 0xa2, 0x29, 0x46, 0x83, 0xf8, 0x2f, 0x44, 0xff, + 0xdd, 0x3d, 0x1c, 0xae, 0x45, 0x38, 0x44, 0x30, 0x09, 0xde, 0x8d, 0xa3, 0x73, 0x38, 0x86, 0x2d, + 0x2b, 0x00, 0xa1, 0xf5, 0xa8, 0x04, 0x05, 0xe6, 0xc2, 0xde, 0x81, 0x60, 0xb4, 0x32, 0xca, 0x74, + 0x65, 0x9e, 0xed, 0x60, 0x6f, 0x1c, 0x5d, 0x00, 0x70, 0x48, 0xc3, 0x26, 0x94, 0xc7, 0x1c, 0xef, + 0xce, 0x3c, 0x88, 0xbe, 0xb5, 0x60, 0x06, 0x47, 0xa8, 0xe4, 0x5f, 0x4b, 0x30, 0x7e, 0x9d, 0xd0, + 0x37, 0x4d, 0x7b, 0xa7, 0x6a, 0x6a, 0x6a, 0xa3, 0x3d, 0xc0, 0x58, 0xbf, 0x19, 0x8b, 0xf5, 0xcf, + 0xf7, 0xb8, 0x57, 0x31, 0x2d, 0xb3, 0x22, 0xbe, 0xfc, 0x57, 0x09, 0x8a, 0x31, 0xca, 0x68, 0x78, + 0x20, 0x50, 0xb0, 0x4c, 0x9b, 0xfa, 0x47, 0xaa, 0x43, 0x69, 0xc0, 0x02, 0x69, 0xe4, 0x50, 0xc5, + 0x60, 0xb1, 0x87, 0xce, 0xec, 0xdc, 0xb2, 0x4d, 0x5d, 0xf8, 0xfb, 0xe1, 0xa4, 0x10, 0x62, 0x87, + 0x76, 0xae, 0xd8, 0xa6, 0x8e, 0x39, 0xb6, 0xfc, 0x5b, 0x09, 0xa6, 0x62, 0x94, 0x03, 0x0f, 0xe4, + 0x4a, 0x3c, 0x90, 0x3f, 0x73, 0x18, 0xb3, 0x32, 0xc2, 0xf9, 0xdf, 0x93, 0x46, 0x31, 0xf3, 0x51, + 0x13, 0xc6, 0x2c, 0xb3, 0x59, 0x3b, 0xf4, 0x93, 0x2c, 0x3f, 0x00, 0x54, 0x43, 0x24, 0x1c, 0x85, + 0x45, 0xbb, 0x30, 0x65, 0x28, 0x3a, 0x71, 0x2c, 0xa5, 0x41, 0x6a, 0x87, 0xbe, 0x43, 0xbe, 0xef, + 0x60, 0xbf, 0x34, 0x75, 0x3d, 0x89, 0x87, 0x3b, 0x45, 0xc8, 0x3f, 0xea, 0xb0, 0xd9, 0xb4, 0x29, + 0x7a, 0x11, 0x46, 0x78, 0xa7, 0x4d, 0xc3, 0xd4, 0x44, 0x32, 0xbb, 0xc8, 0xb6, 0xa5, 0x2a, 0xc6, + 0xee, 0xec, 0x97, 0xfe, 0xab, 0xeb, 0xd3, 0x97, 0x4f, 0x88, 0x03, 0x18, 0xb4, 0x06, 0x43, 0x56, + 0xff, 0x45, 0x05, 0x4f, 0x24, 0xbc, 0x92, 0xe0, 0x28, 0x9d, 0x5b, 0xc5, 0xd3, 0xc9, 0xf6, 0x11, + 0x6d, 0x55, 0x50, 0xc2, 0x64, 0x6e, 0x97, 0x0d, 0xc3, 0x22, 0xa7, 0x0a, 0x7f, 0xbc, 0x7a, 0x18, + 0x7f, 0x8c, 0xe6, 0x81, 0xe0, 0xa6, 0xc6, 0x1f, 0xf4, 0x05, 0xc9, 0xbf, 0x93, 0x60, 0x8a, 0x2b, + 0xd4, 0x70, 0x6d, 0x95, 0xb6, 0x07, 0x1e, 0x2f, 0xb7, 0x62, 0xf1, 0x72, 0xb9, 0x47, 0x03, 0x3b, + 0x34, 0xcd, 0x8c, 0x99, 0x7f, 0x94, 0xe0, 0xbe, 0x0e, 0xea, 0x81, 0xc7, 0x13, 0x12, 0x8f, 0x27, + 0xcf, 0x1f, 0xd6, 0xbc, 0x8c, 0x98, 0x72, 0x1b, 0x52, 0x8c, 0xe3, 0xce, 0x7a, 0x01, 0xc0, 0xb2, + 0xd5, 0x5d, 0x55, 0x23, 0x2d, 0xd1, 0x0d, 0x31, 0x12, 0x6e, 0x48, 0x35, 0x98, 0xc1, 0x11, 0x2a, + 0xf4, 0x55, 0x98, 0x6d, 0x92, 0x2d, 0xc5, 0xd5, 0xe8, 0x62, 0xb3, 0xb9, 0xa4, 0x58, 0xca, 0xa6, + 0xaa, 0xa9, 0x54, 0x15, 0x97, 0x97, 0xa3, 0x95, 0x2b, 0x5e, 0x97, 0x42, 0x1a, 0xc5, 0x9d, 0xfd, + 0xd2, 0x63, 0xdd, 0x9f, 0xab, 0x7d, 0xe2, 0x36, 0xce, 0x10, 0x82, 0xbe, 0x26, 0x41, 0xd1, 0x26, + 0x6f, 0xb8, 0xec, 0xbc, 0xba, 0x6c, 0x9b, 0x56, 0x4c, 0x83, 0x3c, 0xd7, 0xe0, 0xea, 0xc1, 0x7e, + 0xa9, 0x88, 0x33, 0x68, 0x7a, 0xd1, 0x21, 0x53, 0x10, 0xa2, 0x30, 0xad, 0x68, 0x9a, 0xf9, 0x26, + 0x89, 0xaf, 0xc0, 0x10, 0x97, 0x5f, 0x39, 0xd8, 0x2f, 0x4d, 0x2f, 0x76, 0x4e, 0xf7, 0x22, 0x3a, + 0x0d, 0x1e, 0x2d, 0xc0, 0xf0, 0xae, 0xa9, 0xb9, 0x3a, 0x71, 0x8a, 0x05, 0x2e, 0x89, 0xc5, 0xd8, + 0xe1, 0x9b, 0xde, 0xd0, 0x9d, 0xfd, 0xd2, 0xf1, 0x95, 0x1a, 0xbf, 0x55, 0xf6, 0xa9, 0xd8, 0x19, + 0x8c, 0xd5, 0x45, 0xe2, 0x43, 0xe7, 0xaf, 0x52, 0x23, 0x61, 0x64, 0xb9, 0x16, 0x4e, 0xe1, 0x28, + 0x1d, 0xd2, 0x61, 0x74, 0x5b, 0x9c, 0xc7, 0x9d, 0xe2, 0x70, 0x5f, 0xb9, 0x2e, 0x76, 0x9e, 0xaf, + 0x4c, 0x09, 0x91, 0xa3, 0xfe, 0xb0, 0x83, 0x43, 0x09, 0xe8, 0x71, 0x18, 0xe6, 0x3f, 0x56, 0x97, + 0xf9, 0x5b, 0xd6, 0x48, 0x18, 0x7f, 0xae, 0x79, 0xc3, 0xd8, 0x9f, 0xf7, 0x49, 0x57, 0xab, 0x4b, + 0xfc, 0xe9, 0x29, 0x41, 0xba, 0x5a, 0x5d, 0xc2, 0xfe, 0x3c, 0xb2, 0x60, 0xd8, 0x21, 0x6b, 0xaa, + 0xe1, 0xee, 0x15, 0x81, 0x7f, 0xb7, 0x57, 0x7a, 0xbd, 0x73, 0xbb, 0xc2, 0xb9, 0x13, 0xb7, 0xfc, + 0xa1, 0x44, 0x31, 0x8f, 0x7d, 0x31, 0x68, 0x0f, 0x46, 0x6d, 0xd7, 0x58, 0x74, 0x36, 0x1c, 0x62, + 0x17, 0xc7, 0xb8, 0xcc, 0x5e, 0x43, 0x32, 0xf6, 0xf9, 0x93, 0x52, 0x83, 0x15, 0x0c, 0x28, 0x70, + 0x28, 0x0c, 0x7d, 0x5b, 0x02, 0xe4, 0xb8, 0x96, 0xa5, 0x11, 0x9d, 0x18, 0x54, 0xd1, 0xf8, 0x43, + 0x83, 0x53, 0x3c, 0xc1, 0x75, 0xa8, 0xf6, 0x7c, 0xd7, 0x98, 0x04, 0x4a, 0x2a, 0x13, 0x3c, 0xc4, + 0x75, 0x92, 0xe2, 0x14, 0x3d, 0xd8, 0x56, 0x6c, 0x39, 0xfc, 0xef, 0xe2, 0x78, 0x5f, 0x5b, 0x91, + 0xfe, 0xe0, 0x12, 0x6e, 0x85, 0x98, 0xc7, 0xbe, 0x18, 0x74, 0x13, 0x66, 0x6d, 0xa2, 0x34, 0x6f, + 0x18, 0x5a, 0x1b, 0x9b, 0x26, 0x5d, 0x51, 0x35, 0xe2, 0xb4, 0x1d, 0x4a, 0xf4, 0xe2, 0x04, 0x77, + 0x9b, 0xa0, 0x9d, 0x0a, 0xa7, 0x52, 0xe1, 0x0c, 0x6e, 0xde, 0x17, 0x25, 0x6e, 0xc9, 0x06, 0xdb, + 0x28, 0x79, 0xb8, 0xbe, 0xa8, 0x50, 0xc5, 0x81, 0xf5, 0x45, 0x45, 0x44, 0x74, 0xbf, 0x1a, 0xfa, + 0x47, 0x0e, 0xa6, 0x43, 0xe2, 0x7b, 0xee, 0x8b, 0x4a, 0x61, 0xf9, 0x02, 0xfa, 0xa2, 0xd2, 0x5b, + 0x8b, 0xf2, 0x83, 0x6d, 0x2d, 0x1a, 0x40, 0x37, 0x16, 0xef, 0x56, 0x0a, 0x97, 0xf0, 0xdf, 0xbd, + 0x5b, 0x29, 0xd4, 0x34, 0xeb, 0x96, 0x2b, 0x17, 0x35, 0xe7, 0x3f, 0xa6, 0x25, 0x26, 0xa5, 0x43, + 0x65, 0xa8, 0xb7, 0x0e, 0x15, 0xf9, 0x93, 0x3c, 0x9c, 0x4c, 0x7e, 0xab, 0xb1, 0xce, 0x08, 0xe9, + 0xae, 0x9d, 0x11, 0x55, 0x98, 0xd9, 0x72, 0x35, 0xad, 0xcd, 0x17, 0x24, 0xf2, 0xaa, 0xe0, 0xdd, + 0xbf, 0x3f, 0x28, 0x38, 0x67, 0x56, 0x52, 0x68, 0x70, 0x2a, 0x67, 0x46, 0x97, 0x47, 0xbe, 0xaf, + 0x2e, 0x8f, 0xa7, 0x61, 0xdc, 0xe6, 0x0d, 0xac, 0xf1, 0xc7, 0x8e, 0xfb, 0x04, 0xcc, 0x38, 0x8e, + 0x4e, 0xe2, 0x38, 0x6d, 0x7a, 0xc7, 0x46, 0xa1, 0x8f, 0x8e, 0x8d, 0xa3, 0x68, 0xb1, 0x48, 0x09, + 0x79, 0x77, 0x6d, 0xb1, 0x78, 0x10, 0xe6, 0x04, 0x1b, 0xfb, 0xbd, 0x64, 0x1a, 0xd4, 0x36, 0x35, + 0x8d, 0xd8, 0xcb, 0xae, 0xae, 0xb7, 0xe5, 0xcb, 0x30, 0x11, 0xef, 0xf3, 0xf1, 0x76, 0xde, 0x6b, + 0x3d, 0x12, 0xaf, 0x22, 0x91, 0x9d, 0xf7, 0xc6, 0x71, 0x40, 0x21, 0x7f, 0x2a, 0xc1, 0xa9, 0x8c, + 0x56, 0x09, 0x74, 0x0b, 0x26, 0x74, 0x65, 0x2f, 0xd2, 0x83, 0x22, 0x82, 0x4a, 0xaf, 0xc7, 0x6a, + 0xfe, 0xc4, 0xb7, 0x1e, 0x43, 0xc2, 0x09, 0x64, 0x9e, 0x67, 0x95, 0xbd, 0x9a, 0x6b, 0xb7, 0x48, + 0x9f, 0x87, 0x77, 0xfe, 0xf9, 0xae, 0x0b, 0x0c, 0x1c, 0xa0, 0xc9, 0x1f, 0x4a, 0x50, 0xcc, 0x2a, + 0xba, 0xd0, 0xc5, 0x58, 0x43, 0xc7, 0xc3, 0x89, 0x86, 0x8e, 0xa9, 0x0e, 0xbe, 0x2f, 0xa8, 0x9d, + 0xe3, 0x23, 0x09, 0x66, 0xd3, 0x8b, 0x53, 0xf4, 0x3f, 0x31, 0x8d, 0x4b, 0x09, 0x8d, 0x27, 0x13, + 0x5c, 0x42, 0xdf, 0x6d, 0x98, 0x10, 0x25, 0xac, 0x80, 0xb9, 0x87, 0xff, 0x70, 0xd9, 0x0d, 0xea, + 0x63, 0xbf, 0x18, 0xe3, 0xfb, 0x18, 0x1f, 0xc3, 0x09, 0x5c, 0xf9, 0xbb, 0x39, 0x28, 0xf0, 0xb7, + 0xce, 0x01, 0x56, 0x4e, 0x2f, 0xc7, 0x2a, 0xa7, 0x5e, 0xff, 0x57, 0x82, 0x6b, 0x97, 0x59, 0x34, + 0x6d, 0x26, 0x8a, 0xa6, 0x4b, 0x7d, 0xa1, 0x77, 0xaf, 0x97, 0x9e, 0x82, 0xd1, 0x40, 0x89, 0xde, + 0x02, 0x35, 0xab, 0x4e, 0xc7, 0x22, 0x22, 0x7a, 0x0c, 0xf3, 0xbb, 0xb1, 0x34, 0xd9, 0xcf, 0xbf, + 0x62, 0x45, 0x64, 0x97, 0xfd, 0x54, 0xe9, 0x35, 0xef, 0x86, 0xad, 0x0a, 0x9d, 0x19, 0xf4, 0x32, + 0x4c, 0x78, 0xff, 0xcf, 0x16, 0x5c, 0x9a, 0xe5, 0xb9, 0xf7, 0x06, 0xed, 0xe0, 0xf5, 0xd8, 0x2c, + 0x4e, 0x50, 0xcf, 0x3d, 0x0d, 0xe3, 0x31, 0x61, 0x3d, 0xf5, 0xda, 0xfe, 0x54, 0x82, 0x99, 0xb4, + 0xe6, 0x0a, 0x74, 0x1a, 0x86, 0x76, 0x54, 0xf1, 0x26, 0x14, 0x79, 0x47, 0xfb, 0x7f, 0xd5, 0x68, + 0x62, 0x3e, 0x13, 0xb4, 0x4a, 0xe7, 0x32, 0x5b, 0xa5, 0x2f, 0x00, 0x28, 0x96, 0x2a, 0xfe, 0x47, + 0x50, 0x58, 0x15, 0x38, 0x6f, 0xf8, 0xdf, 0x83, 0x38, 0x42, 0xc5, 0x9f, 0x4d, 0x43, 0x7d, 0x44, + 0x41, 0x18, 0xbe, 0x67, 0x46, 0x54, 0x8d, 0xd2, 0xc9, 0x3f, 0x97, 0xe0, 0xe1, 0xbb, 0x1e, 0xdc, + 0x50, 0x25, 0x16, 0x1e, 0xca, 0x89, 0xf0, 0x30, 0x9f, 0x0d, 0xf0, 0x05, 0x36, 0xab, 0xbd, 0x97, + 0x03, 0x54, 0xdf, 0x56, 0xed, 0x66, 0x55, 0xb1, 0x69, 0x1b, 0x0b, 0x03, 0x07, 0x18, 0x30, 0x2e, + 0xc2, 0x58, 0x93, 0x38, 0x0d, 0x5b, 0xe5, 0x8b, 0x24, 0xb6, 0x33, 0x58, 0xf1, 0xe5, 0x70, 0x0a, + 0x47, 0xe9, 0x50, 0x0b, 0x46, 0x76, 0xbd, 0x3d, 0xf3, 0x9f, 0xde, 0x7a, 0xad, 0x7a, 0x43, 0x0f, + 0x08, 0xbf, 0x0f, 0x31, 0xe0, 0xe0, 0x00, 0x5c, 0x7e, 0x5f, 0x82, 0xd9, 0xce, 0x05, 0x59, 0x66, + 0xaa, 0x0f, 0x6e, 0x51, 0x1e, 0x84, 0x21, 0x8e, 0xca, 0x56, 0xe3, 0x84, 0x77, 0xf5, 0xcd, 0x24, + 0x62, 0x3e, 0x2a, 0x7f, 0x2e, 0xc1, 0x5c, 0xba, 0x4a, 0x03, 0x3f, 0x69, 0xdc, 0x8a, 0x9f, 0x34, + 0x7a, 0xbd, 0x49, 0x48, 0xd7, 0x3a, 0xe3, 0xd4, 0xf1, 0x49, 0xea, 0xca, 0x0f, 0xdc, 0xc4, 0xad, + 0xb8, 0x89, 0x8b, 0x87, 0x36, 0x31, 0xdd, 0xbc, 0xca, 0xe3, 0xb7, 0x3f, 0x9b, 0x3f, 0xf6, 0xf1, + 0x67, 0xf3, 0xc7, 0xfe, 0xf0, 0xd9, 0xfc, 0xb1, 0x77, 0x0f, 0xe6, 0xa5, 0xdb, 0x07, 0xf3, 0xd2, + 0xc7, 0x07, 0xf3, 0xd2, 0x9f, 0x0f, 0xe6, 0xa5, 0xf7, 0xff, 0x32, 0x7f, 0xec, 0xe5, 0x61, 0x81, + 0xf9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x62, 0xad, 0x66, 0xb9, 0x3e, 0x00, 0x00, } diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto index 865877f66aa..087534ee4aa 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto @@ -541,138 +541,6 @@ message IngressTLS { optional string secretName = 2; } -// Job represents the configuration of a single job. -// DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead. -message Job { - // Standard object's metadata. - // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - // +optional - optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; - - // 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 - optional JobSpec spec = 2; - - // 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 - optional JobStatus status = 3; -} - -// JobCondition describes current state of a job. -message JobCondition { - // Type of job condition, Complete or Failed. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition was checked. - // +optional - optional k8s.io.kubernetes.pkg.apis.meta.v1.Time lastProbeTime = 3; - - // Last time the condition transit from one status to another. - // +optional - optional k8s.io.kubernetes.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // (brief) reason for the condition's last transition. - // +optional - optional string reason = 5; - - // Human readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// JobList is a collection of jobs. -// DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead. -message JobList { - // Standard list metadata - // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - // +optional - optional k8s.io.kubernetes.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Job. - repeated Job items = 2; -} - -// JobSpec describes how the job execution will look like. -message JobSpec { - // 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 - // +optional - optional int32 parallelism = 1; - - // 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 - // +optional - optional int32 completions = 2; - - // 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 - optional int64 activeDeadlineSeconds = 3; - - // 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 - // +optional - optional k8s.io.kubernetes.pkg.apis.meta.v1.LabelSelector selector = 4; - - // 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 - optional bool autoSelector = 5; - - // 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 - optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 6; -} - -// JobStatus represents the current state of a Job. -message JobStatus { - // Conditions represent the latest available observations of an object's current state. - // More info: http://kubernetes.io/docs/user-guide/jobs - // +optional - repeated JobCondition conditions = 1; - - // 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 - optional k8s.io.kubernetes.pkg.apis.meta.v1.Time startTime = 2; - - // 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 - optional k8s.io.kubernetes.pkg.apis.meta.v1.Time completionTime = 3; - - // Active is the number of actively running pods. - // +optional - optional int32 active = 4; - - // Succeeded is the number of pods which reached Phase Succeeded. - // +optional - optional int32 succeeded = 5; - - // Failed is the number of pods which reached Phase Failed. - // +optional - optional int32 failed = 6; -} - message NetworkPolicy { // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go index a9a9ee3bb57..ca5c8d8f46e 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go @@ -48,8 +48,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DeploymentRollback{}, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, - &Job{}, - &JobList{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go index 412588d7ce9..c8516827f86 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go @@ -9948,7 +9948,7 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -10093,7 +10093,7 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10123,7 +10123,7 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *Job) 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 @@ -10166,14 +10166,14 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } case "spec": if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.Spec = IngressSpec{} } else { yyv869 := &x.Spec yyv869.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.Status = IngressStatus{} } else { yyv870 := &x.Status yyv870.CodecDecodeSelf(d) @@ -10185,7 +10185,7 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10253,7 +10253,7 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = JobSpec{} + x.Spec = IngressSpec{} } else { yyv875 := &x.Spec yyv875.CodecDecodeSelf(d) @@ -10270,7 +10270,7 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = JobStatus{} + x.Status = IngressStatus{} } else { yyv876 := &x.Status yyv876.CodecDecodeSelf(d) @@ -10291,7 +10291,7 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -10412,7 +10412,7 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym891 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + h.encSliceIngress(([]Ingress)(x.Items), e) } } } else { @@ -10426,7 +10426,7 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym892 if false { } else { - h.encSliceJob(([]Job)(x.Items), e) + h.encSliceIngress(([]Ingress)(x.Items), e) } } } @@ -10439,7 +10439,7 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10469,7 +10469,7 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10525,7 +10525,7 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { _ = yym901 if false { } else { - h.decSliceJob((*[]Job)(yyv900), d) + h.decSliceIngress((*[]Ingress)(yyv900), d) } } default: @@ -10535,7 +10535,7 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10616,7 +10616,7 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { _ = yym908 if false { } else { - h.decSliceJob((*[]Job)(yyv907), d) + h.decSliceIngress((*[]Ingress)(yyv907), d) } } for { @@ -10635,7 +10635,7 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -10649,19 +10649,17 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep910 := !z.EncBinary() yy2arr910 := z.EncBasicHandle().StructToArray - var yyq910 [6]bool + var yyq910 [3]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 + yyq910[0] = x.Backend != nil + yyq910[1] = len(x.TLS) != 0 + yyq910[2] = len(x.Rules) != 0 var yynn910 int if yyr910 || yy2arr910 { - r.EncodeArrayStart(6) + r.EncodeArrayStart(3) } else { - yynn910 = 1 + yynn910 = 0 for _, b := range yyq910 { if b { yynn910++ @@ -10673,2245 +10671,6 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq910[0] { - if x.Parallelism == nil { - r.EncodeNil() - } else { - yy912 := *x.Parallelism - yym913 := z.EncBinary() - _ = yym913 - if false { - } else { - r.EncodeInt(int64(yy912)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq910[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("parallelism")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Parallelism == nil { - r.EncodeNil() - } else { - yy914 := *x.Parallelism - yym915 := z.EncBinary() - _ = yym915 - if false { - } else { - r.EncodeInt(int64(yy914)) - } - } - } - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq910[1] { - if x.Completions == nil { - r.EncodeNil() - } else { - yy917 := *x.Completions - yym918 := z.EncBinary() - _ = yym918 - if false { - } else { - r.EncodeInt(int64(yy917)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq910[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("completions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Completions == nil { - r.EncodeNil() - } else { - yy919 := *x.Completions - yym920 := z.EncBinary() - _ = yym920 - if false { - } else { - r.EncodeInt(int64(yy919)) - } - } - } - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq910[2] { - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy922 := *x.ActiveDeadlineSeconds - yym923 := z.EncBinary() - _ = yym923 - if false { - } else { - r.EncodeInt(int64(yy922)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq910[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ActiveDeadlineSeconds == nil { - r.EncodeNil() - } else { - yy924 := *x.ActiveDeadlineSeconds - yym925 := z.EncBinary() - _ = yym925 - if false { - } else { - r.EncodeInt(int64(yy924)) - } - } - } - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq910[3] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym927 := z.EncBinary() - _ = yym927 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq910[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym928 := z.EncBinary() - _ = yym928 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq910[4] { - if x.AutoSelector == nil { - r.EncodeNil() - } else { - yy930 := *x.AutoSelector - yym931 := z.EncBinary() - _ = yym931 - if false { - } else { - r.EncodeBool(bool(yy930)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq910[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("autoSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AutoSelector == nil { - r.EncodeNil() - } else { - yy932 := *x.AutoSelector - yym933 := z.EncBinary() - _ = yym933 - if false { - } else { - r.EncodeBool(bool(yy932)) - } - } - } - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy935 := &x.Template - yy935.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy936 := &x.Template - yy936.CodecEncodeSelf(e) - } - if yyr910 || yy2arr910 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym937 := z.DecBinary() - _ = yym937 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct938 := r.ContainerType() - if yyct938 == codecSelferValueTypeMap1234 { - yyl938 := r.ReadMapStart() - if yyl938 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl938, d) - } - } else if yyct938 == codecSelferValueTypeArray1234 { - yyl938 := r.ReadArrayStart() - if yyl938 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl938, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys939Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys939Slc - var yyhl939 bool = l >= 0 - for yyj939 := 0; ; yyj939++ { - if yyhl939 { - if yyj939 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys939Slc = r.DecodeBytes(yys939Slc, true, true) - yys939 := string(yys939Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys939 { - case "parallelism": - if r.TryDecodeAsNil() { - if x.Parallelism != nil { - x.Parallelism = nil - } - } else { - if x.Parallelism == nil { - x.Parallelism = new(int32) - } - yym941 := z.DecBinary() - _ = yym941 - if false { - } else { - *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) - } - } - case "completions": - if r.TryDecodeAsNil() { - if x.Completions != nil { - x.Completions = nil - } - } else { - if x.Completions == nil { - x.Completions = new(int32) - } - yym943 := z.DecBinary() - _ = yym943 - if false { - } else { - *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) - } - } - case "activeDeadlineSeconds": - if r.TryDecodeAsNil() { - if x.ActiveDeadlineSeconds != nil { - x.ActiveDeadlineSeconds = nil - } - } else { - if x.ActiveDeadlineSeconds == nil { - x.ActiveDeadlineSeconds = new(int64) - } - yym945 := z.DecBinary() - _ = yym945 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym947 := z.DecBinary() - _ = yym947 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - case "autoSelector": - if r.TryDecodeAsNil() { - if x.AutoSelector != nil { - x.AutoSelector = nil - } - } else { - if x.AutoSelector == nil { - x.AutoSelector = new(bool) - } - yym949 := z.DecBinary() - _ = yym949 - if false { - } else { - *((*bool)(x.AutoSelector)) = r.DecodeBool() - } - } - case "template": - if r.TryDecodeAsNil() { - x.Template = pkg2_v1.PodTemplateSpec{} - } else { - yyv950 := &x.Template - yyv950.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys939) - } // end switch yys939 - } // end for yyj939 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj951 int - var yyb951 bool - var yyhl951 bool = l >= 0 - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Parallelism != nil { - x.Parallelism = nil - } - } else { - if x.Parallelism == nil { - x.Parallelism = new(int32) - } - yym953 := z.DecBinary() - _ = yym953 - if false { - } else { - *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) - } - } - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Completions != nil { - x.Completions = nil - } - } else { - if x.Completions == nil { - x.Completions = new(int32) - } - yym955 := z.DecBinary() - _ = yym955 - if false { - } else { - *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) - } - } - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - 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) - } - yym957 := z.DecBinary() - _ = yym957 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg1_v1.LabelSelector) - } - yym959 := z.DecBinary() - _ = yym959 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.AutoSelector != nil { - x.AutoSelector = nil - } - } else { - if x.AutoSelector == nil { - x.AutoSelector = new(bool) - } - yym961 := z.DecBinary() - _ = yym961 - if false { - } else { - *((*bool)(x.AutoSelector)) = r.DecodeBool() - } - } - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Template = pkg2_v1.PodTemplateSpec{} - } else { - yyv962 := &x.Template - yyv962.CodecDecodeSelf(d) - } - for { - yyj951++ - if yyhl951 { - yyb951 = yyj951 > l - } else { - yyb951 = r.CheckBreak() - } - if yyb951 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj951-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym963 := z.EncBinary() - _ = yym963 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn964 = 0 - for _, b := range yyq964 { - if b { - yynn964++ - } - } - r.EncodeMapStart(yynn964) - yynn964 = 0 - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[0] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym966 := z.EncBinary() - _ = yym966 - if false { - } else { - h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq964[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym967 := z.EncBinary() - _ = yym967 - if false { - } else { - h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) - } - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[1] { - if x.StartTime == nil { - r.EncodeNil() - } else { - yym969 := z.EncBinary() - _ = yym969 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym969 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym969 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq964[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.StartTime == nil { - r.EncodeNil() - } else { - yym970 := z.EncBinary() - _ = yym970 - if false { - } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym970 { - z.EncBinaryMarshal(x.StartTime) - } else if !yym970 && z.IsJSONHandle() { - z.EncJSONMarshal(x.StartTime) - } else { - z.EncFallback(x.StartTime) - } - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[2] { - if x.CompletionTime == nil { - r.EncodeNil() - } else { - yym972 := z.EncBinary() - _ = yym972 - if false { - } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym972 { - z.EncBinaryMarshal(x.CompletionTime) - } else if !yym972 && z.IsJSONHandle() { - z.EncJSONMarshal(x.CompletionTime) - } else { - z.EncFallback(x.CompletionTime) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq964[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("completionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.CompletionTime == nil { - r.EncodeNil() - } else { - yym973 := z.EncBinary() - _ = yym973 - if false { - } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym973 { - z.EncBinaryMarshal(x.CompletionTime) - } else if !yym973 && z.IsJSONHandle() { - z.EncJSONMarshal(x.CompletionTime) - } else { - z.EncFallback(x.CompletionTime) - } - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[3] { - yym975 := z.EncBinary() - _ = yym975 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq964[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("active")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym976 := z.EncBinary() - _ = yym976 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[4] { - yym978 := z.EncBinary() - _ = yym978 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq964[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("succeeded")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym979 := z.EncBinary() - _ = yym979 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq964[5] { - yym981 := z.EncBinary() - _ = yym981 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq964[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("failed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym982 := z.EncBinary() - _ = yym982 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } - } - if yyr964 || yy2arr964 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym983 := z.DecBinary() - _ = yym983 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct984 := r.ContainerType() - if yyct984 == codecSelferValueTypeMap1234 { - yyl984 := r.ReadMapStart() - if yyl984 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl984, d) - } - } else if yyct984 == codecSelferValueTypeArray1234 { - yyl984 := r.ReadArrayStart() - if yyl984 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl984, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys985Slc = r.DecodeBytes(yys985Slc, true, true) - yys985 := string(yys985Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys985 { - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv986 := &x.Conditions - yym987 := z.DecBinary() - _ = yym987 - if false { - } else { - h.decSliceJobCondition((*[]JobCondition)(yyv986), d) - } - } - case "startTime": - if r.TryDecodeAsNil() { - if x.StartTime != nil { - x.StartTime = nil - } - } else { - if x.StartTime == nil { - x.StartTime = new(pkg1_v1.Time) - } - yym989 := z.DecBinary() - _ = yym989 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym989 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym989 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - case "completionTime": - if r.TryDecodeAsNil() { - if x.CompletionTime != nil { - x.CompletionTime = nil - } - } else { - if x.CompletionTime == nil { - x.CompletionTime = new(pkg1_v1.Time) - } - yym991 := z.DecBinary() - _ = yym991 - if false { - } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym991 { - z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym991 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.CompletionTime) - } else { - z.DecFallback(x.CompletionTime, false) - } - } - case "active": - if r.TryDecodeAsNil() { - x.Active = 0 - } else { - x.Active = int32(r.DecodeInt(32)) - } - case "succeeded": - if r.TryDecodeAsNil() { - x.Succeeded = 0 - } else { - x.Succeeded = int32(r.DecodeInt(32)) - } - case "failed": - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - x.Failed = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys985) - } // end switch yys985 - } // end for yyj985 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj995 int - var yyb995 bool - var yyhl995 bool = l >= 0 - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv996 := &x.Conditions - yym997 := z.DecBinary() - _ = yym997 - if false { - } else { - h.decSliceJobCondition((*[]JobCondition)(yyv996), d) - } - } - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.StartTime != nil { - x.StartTime = nil - } - } else { - if x.StartTime == nil { - x.StartTime = new(pkg1_v1.Time) - } - yym999 := z.DecBinary() - _ = yym999 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym999 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym999 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.CompletionTime != nil { - x.CompletionTime = nil - } - } else { - if x.CompletionTime == nil { - x.CompletionTime = new(pkg1_v1.Time) - } - yym1001 := z.DecBinary() - _ = yym1001 - if false { - } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym1001 { - z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym1001 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.CompletionTime) - } else { - z.DecFallback(x.CompletionTime, false) - } - } - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Active = 0 - } else { - x.Active = int32(r.DecodeInt(32)) - } - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Succeeded = 0 - } else { - x.Succeeded = int32(r.DecodeInt(32)) - } - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - x.Failed = int32(r.DecodeInt(32)) - } - for { - yyj995++ - if yyhl995 { - yyb995 = yyj995 > l - } else { - yyb995 = r.CheckBreak() - } - if yyb995 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj995-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1005 := z.EncBinary() - _ = yym1005 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1006 := z.DecBinary() - _ = yym1006 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1007 := z.EncBinary() - _ = yym1007 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1008 = 2 - for _, b := range yyq1008 { - if b { - yynn1008++ - } - } - r.EncodeMapStart(yynn1008) - yynn1008 = 0 - } - if yyr1008 || yy2arr1008 { - 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 yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1011 := z.EncBinary() - _ = yym1011 - 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) - yym1012 := z.EncBinary() - _ = yym1012 - if false { - } else if z.HasExtensions() && z.EncExt(x.Status) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Status)) - } - } - if yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1008[2] { - yy1014 := &x.LastProbeTime - yym1015 := z.EncBinary() - _ = yym1015 - if false { - } else if z.HasExtensions() && z.EncExt(yy1014) { - } else if yym1015 { - z.EncBinaryMarshal(yy1014) - } else if !yym1015 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1014) - } else { - z.EncFallback(yy1014) - } - } else { - r.EncodeNil() - } - } else { - if yyq1008[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1016 := &x.LastProbeTime - yym1017 := z.EncBinary() - _ = yym1017 - if false { - } else if z.HasExtensions() && z.EncExt(yy1016) { - } else if yym1017 { - z.EncBinaryMarshal(yy1016) - } else if !yym1017 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1016) - } else { - z.EncFallback(yy1016) - } - } - } - if yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1008[3] { - yy1019 := &x.LastTransitionTime - yym1020 := z.EncBinary() - _ = yym1020 - if false { - } else if z.HasExtensions() && z.EncExt(yy1019) { - } else if yym1020 { - z.EncBinaryMarshal(yy1019) - } else if !yym1020 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1019) - } else { - z.EncFallback(yy1019) - } - } else { - r.EncodeNil() - } - } else { - if yyq1008[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1021 := &x.LastTransitionTime - yym1022 := z.EncBinary() - _ = yym1022 - if false { - } else if z.HasExtensions() && z.EncExt(yy1021) { - } else if yym1022 { - z.EncBinaryMarshal(yy1021) - } else if !yym1022 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1021) - } else { - z.EncFallback(yy1021) - } - } - } - if yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1008[4] { - yym1024 := z.EncBinary() - _ = yym1024 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1008[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1025 := z.EncBinary() - _ = yym1025 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1008[5] { - yym1027 := z.EncBinary() - _ = yym1027 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1008[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1028 := z.EncBinary() - _ = yym1028 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr1008 || yy2arr1008 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1029 := z.DecBinary() - _ = yym1029 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1030 := r.ContainerType() - if yyct1030 == codecSelferValueTypeMap1234 { - yyl1030 := r.ReadMapStart() - if yyl1030 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1030, d) - } - } else if yyct1030 == codecSelferValueTypeArray1234 { - yyl1030 := r.ReadArrayStart() - if yyl1030 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1030, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1031Slc = r.DecodeBytes(yys1031Slc, true, true) - yys1031 := string(yys1031Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1031 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = JobConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) - } - case "lastProbeTime": - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg1_v1.Time{} - } else { - yyv1034 := &x.LastProbeTime - yym1035 := z.DecBinary() - _ = yym1035 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1034) { - } else if yym1035 { - z.DecBinaryUnmarshal(yyv1034) - } else if !yym1035 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1034) - } else { - z.DecFallback(yyv1034, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} - } else { - yyv1036 := &x.LastTransitionTime - yym1037 := z.DecBinary() - _ = yym1037 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1036) { - } else if yym1037 { - z.DecBinaryUnmarshal(yyv1036) - } else if !yym1037 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1036) - } else { - z.DecFallback(yyv1036, 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, yys1031) - } // end switch yys1031 - } // end for yyj1031 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1040 int - var yyb1040 bool - var yyhl1040 bool = l >= 0 - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = JobConditionType(r.DecodeString()) - } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) - } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg1_v1.Time{} - } else { - yyv1043 := &x.LastProbeTime - yym1044 := z.DecBinary() - _ = yym1044 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1043) { - } else if yym1044 { - z.DecBinaryUnmarshal(yyv1043) - } else if !yym1044 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1043) - } else { - z.DecFallback(yyv1043, false) - } - } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} - } else { - yyv1045 := &x.LastTransitionTime - yym1046 := z.DecBinary() - _ = yym1046 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1045) { - } else if yym1046 { - z.DecBinaryUnmarshal(yyv1045) - } else if !yym1046 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1045) - } else { - z.DecFallback(yyv1045, false) - } - } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l - } else { - yyb1040 = r.CheckBreak() - } - if yyb1040 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1040-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1049 := z.EncBinary() - _ = yym1049 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1050 = 0 - for _, b := range yyq1050 { - if b { - yynn1050++ - } - } - r.EncodeMapStart(yynn1050) - yynn1050 = 0 - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[0] { - yym1052 := z.EncBinary() - _ = yym1052 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1050[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1053 := z.EncBinary() - _ = yym1053 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[1] { - yym1055 := z.EncBinary() - _ = yym1055 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1050[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1056 := z.EncBinary() - _ = yym1056 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[2] { - yy1058 := &x.ObjectMeta - yy1058.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1050[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1059 := &x.ObjectMeta - yy1059.CodecEncodeSelf(e) - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[3] { - yy1061 := &x.Spec - yy1061.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1050[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1062 := &x.Spec - yy1062.CodecEncodeSelf(e) - } - } - if yyr1050 || yy2arr1050 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[4] { - yy1064 := &x.Status - yy1064.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq1050[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1065 := &x.Status - yy1065.CodecEncodeSelf(e) - } - } - if yyr1050 || yy2arr1050 { - 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 - yym1066 := z.DecBinary() - _ = yym1066 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1067 := r.ContainerType() - if yyct1067 == codecSelferValueTypeMap1234 { - yyl1067 := r.ReadMapStart() - if yyl1067 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1067, d) - } - } else if yyct1067 == codecSelferValueTypeArray1234 { - yyl1067 := r.ReadArrayStart() - if yyl1067 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1067, 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 yys1068Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1068Slc - var yyhl1068 bool = l >= 0 - for yyj1068 := 0; ; yyj1068++ { - if yyhl1068 { - if yyj1068 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1068Slc = r.DecodeBytes(yys1068Slc, true, true) - 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_v1.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_v1.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 { @@ -12921,7 +10680,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1113[0] { + if yyq910[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12932,14 +10691,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1113 || yy2arr1113 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1113[1] { + if yyq910[1] { if x.TLS == nil { r.EncodeNil() } else { - yym1116 := z.EncBinary() - _ = yym1116 + yym913 := z.EncBinary() + _ = yym913 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -12949,15 +10708,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1113[1] { + if yyq910[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 + yym914 := z.EncBinary() + _ = yym914 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -12965,14 +10724,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1113 || yy2arr1113 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1113[2] { + if yyq910[2] { if x.Rules == nil { r.EncodeNil() } else { - yym1119 := z.EncBinary() - _ = yym1119 + yym916 := z.EncBinary() + _ = yym916 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -12982,15 +10741,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1113[2] { + if yyq910[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 + yym917 := z.EncBinary() + _ = yym917 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -12998,7 +10757,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1113 || yy2arr1113 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13011,25 +10770,25 @@ func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1121 := z.DecBinary() - _ = yym1121 + yym918 := z.DecBinary() + _ = yym918 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1122 := r.ContainerType() - if yyct1122 == codecSelferValueTypeMap1234 { - yyl1122 := r.ReadMapStart() - if yyl1122 == 0 { + yyct919 := r.ContainerType() + if yyct919 == codecSelferValueTypeMap1234 { + yyl919 := r.ReadMapStart() + if yyl919 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1122, d) + x.codecDecodeSelfFromMap(yyl919, d) } - } else if yyct1122 == codecSelferValueTypeArray1234 { - yyl1122 := r.ReadArrayStart() - if yyl1122 == 0 { + } else if yyct919 == codecSelferValueTypeArray1234 { + yyl919 := r.ReadArrayStart() + if yyl919 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1122, d) + x.codecDecodeSelfFromArray(yyl919, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13041,12 +10800,12 @@ 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 { + var yys920Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys920Slc + var yyhl920 bool = l >= 0 + for yyj920 := 0; ; yyj920++ { + if yyhl920 { + if yyj920 >= l { break } } else { @@ -13055,10 +10814,10 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1123Slc = r.DecodeBytes(yys1123Slc, true, true) - yys1123 := string(yys1123Slc) + yys920Slc = r.DecodeBytes(yys920Slc, true, true) + yys920 := string(yys920Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1123 { + switch yys920 { case "backend": if r.TryDecodeAsNil() { if x.Backend != nil { @@ -13074,30 +10833,30 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv1125 := &x.TLS - yym1126 := z.DecBinary() - _ = yym1126 + yyv922 := &x.TLS + yym923 := z.DecBinary() + _ = yym923 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv1125), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv922), d) } } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv1127 := &x.Rules - yym1128 := z.DecBinary() - _ = yym1128 + yyv924 := &x.Rules + yym925 := z.DecBinary() + _ = yym925 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv1127), d) + h.decSliceIngressRule((*[]IngressRule)(yyv924), d) } } default: - z.DecStructFieldNotFound(-1, yys1123) - } // end switch yys1123 - } // end for yyj1123 + z.DecStructFieldNotFound(-1, yys920) + } // end switch yys920 + } // end for yyj920 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13105,16 +10864,16 @@ 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 + var yyj926 int + var yyb926 bool + var yyhl926 bool = l >= 0 + yyj926++ + if yyhl926 { + yyb926 = yyj926 > l } else { - yyb1129 = r.CheckBreak() + yyb926 = r.CheckBreak() } - if yyb1129 { + if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13129,13 +10888,13 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Backend.CodecDecodeSelf(d) } - yyj1129++ - if yyhl1129 { - yyb1129 = yyj1129 > l + yyj926++ + if yyhl926 { + yyb926 = yyj926 > l } else { - yyb1129 = r.CheckBreak() + yyb926 = r.CheckBreak() } - if yyb1129 { + if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13143,21 +10902,21 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv1131 := &x.TLS - yym1132 := z.DecBinary() - _ = yym1132 + yyv928 := &x.TLS + yym929 := z.DecBinary() + _ = yym929 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv1131), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv928), d) } } - yyj1129++ - if yyhl1129 { - yyb1129 = yyj1129 > l + yyj926++ + if yyhl926 { + yyb926 = yyj926 > l } else { - yyb1129 = r.CheckBreak() + yyb926 = r.CheckBreak() } - if yyb1129 { + if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13165,26 +10924,26 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv1133 := &x.Rules - yym1134 := z.DecBinary() - _ = yym1134 + yyv930 := &x.Rules + yym931 := z.DecBinary() + _ = yym931 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv1133), d) + h.decSliceIngressRule((*[]IngressRule)(yyv930), d) } } for { - yyj1129++ - if yyhl1129 { - yyb1129 = yyj1129 > l + yyj926++ + if yyhl926 { + yyb926 = yyj926 > l } else { - yyb1129 = r.CheckBreak() + yyb926 = r.CheckBreak() } - if yyb1129 { + if yyb926 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1129-1, "") + z.DecStructFieldNotFound(yyj926-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13196,39 +10955,39 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1135 := z.EncBinary() - _ = yym1135 + yym932 := z.EncBinary() + _ = yym932 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 { + yysep933 := !z.EncBinary() + yy2arr933 := z.EncBasicHandle().StructToArray + var yyq933 [2]bool + _, _, _ = yysep933, yyq933, yy2arr933 + const yyr933 bool = false + yyq933[0] = len(x.Hosts) != 0 + yyq933[1] = x.SecretName != "" + var yynn933 int + if yyr933 || yy2arr933 { r.EncodeArrayStart(2) } else { - yynn1136 = 0 - for _, b := range yyq1136 { + yynn933 = 0 + for _, b := range yyq933 { if b { - yynn1136++ + yynn933++ } } - r.EncodeMapStart(yynn1136) - yynn1136 = 0 + r.EncodeMapStart(yynn933) + yynn933 = 0 } - if yyr1136 || yy2arr1136 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1136[0] { + if yyq933[0] { if x.Hosts == nil { r.EncodeNil() } else { - yym1138 := z.EncBinary() - _ = yym1138 + yym935 := z.EncBinary() + _ = yym935 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -13238,15 +10997,15 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1136[0] { + if yyq933[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 + yym936 := z.EncBinary() + _ = yym936 if false { } else { z.F.EncSliceStringV(x.Hosts, false, e) @@ -13254,11 +11013,11 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1136 || yy2arr1136 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1136[1] { - yym1141 := z.EncBinary() - _ = yym1141 + if yyq933[1] { + yym938 := z.EncBinary() + _ = yym938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -13267,19 +11026,19 @@ func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1136[1] { + if yyq933[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1142 := z.EncBinary() - _ = yym1142 + yym939 := z.EncBinary() + _ = yym939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr1136 || yy2arr1136 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13292,25 +11051,25 @@ func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1143 := z.DecBinary() - _ = yym1143 + yym940 := z.DecBinary() + _ = yym940 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1144 := r.ContainerType() - if yyct1144 == codecSelferValueTypeMap1234 { - yyl1144 := r.ReadMapStart() - if yyl1144 == 0 { + yyct941 := r.ContainerType() + if yyct941 == codecSelferValueTypeMap1234 { + yyl941 := r.ReadMapStart() + if yyl941 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1144, d) + x.codecDecodeSelfFromMap(yyl941, d) } - } else if yyct1144 == codecSelferValueTypeArray1234 { - yyl1144 := r.ReadArrayStart() - if yyl1144 == 0 { + } else if yyct941 == codecSelferValueTypeArray1234 { + yyl941 := r.ReadArrayStart() + if yyl941 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1144, d) + x.codecDecodeSelfFromArray(yyl941, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13322,12 +11081,12 @@ 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 { + 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 { @@ -13336,20 +11095,20 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1145Slc = r.DecodeBytes(yys1145Slc, true, true) - yys1145 := string(yys1145Slc) + yys942Slc = r.DecodeBytes(yys942Slc, true, true) + yys942 := string(yys942Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1145 { + switch yys942 { case "hosts": if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv1146 := &x.Hosts - yym1147 := z.DecBinary() - _ = yym1147 + yyv943 := &x.Hosts + yym944 := z.DecBinary() + _ = yym944 if false { } else { - z.F.DecSliceStringX(yyv1146, false, d) + z.F.DecSliceStringX(yyv943, false, d) } } case "secretName": @@ -13359,9 +11118,9 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1145) - } // end switch yys1145 - } // end for yyj1145 + z.DecStructFieldNotFound(-1, yys942) + } // end switch yys942 + } // end for yyj942 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13369,16 +11128,16 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1149 int - var yyb1149 bool - var yyhl1149 bool = l >= 0 - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + var yyj946 int + var yyb946 bool + var yyhl946 bool = l >= 0 + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb1149 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb1149 { + if yyb946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13386,21 +11145,21 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv1150 := &x.Hosts - yym1151 := z.DecBinary() - _ = yym1151 + yyv947 := &x.Hosts + yym948 := z.DecBinary() + _ = yym948 if false { } else { - z.F.DecSliceStringX(yyv1150, false, d) + z.F.DecSliceStringX(yyv947, false, d) } } - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb1149 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb1149 { + if yyb946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13411,17 +11170,17 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } for { - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb1149 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb1149 { + if yyb946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1149-1, "") + z.DecStructFieldNotFound(yyj946-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13433,48 +11192,48 @@ func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1153 := z.EncBinary() - _ = yym1153 + yym950 := z.EncBinary() + _ = yym950 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep951 := !z.EncBinary() + yy2arr951 := z.EncBasicHandle().StructToArray + var yyq951 [1]bool + _, _, _ = yysep951, yyq951, yy2arr951 + const yyr951 bool = false + yyq951[0] = true + var yynn951 int + if yyr951 || yy2arr951 { r.EncodeArrayStart(1) } else { - yynn1154 = 0 - for _, b := range yyq1154 { + yynn951 = 0 + for _, b := range yyq951 { if b { - yynn1154++ + yynn951++ } } - r.EncodeMapStart(yynn1154) - yynn1154 = 0 + r.EncodeMapStart(yynn951) + yynn951 = 0 } - if yyr1154 || yy2arr1154 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1154[0] { - yy1156 := &x.LoadBalancer - yy1156.CodecEncodeSelf(e) + if yyq951[0] { + yy953 := &x.LoadBalancer + yy953.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1154[0] { + if yyq951[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1157 := &x.LoadBalancer - yy1157.CodecEncodeSelf(e) + yy954 := &x.LoadBalancer + yy954.CodecEncodeSelf(e) } } - if yyr1154 || yy2arr1154 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13487,25 +11246,25 @@ func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1158 := z.DecBinary() - _ = yym1158 + yym955 := z.DecBinary() + _ = yym955 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1159 := r.ContainerType() - if yyct1159 == codecSelferValueTypeMap1234 { - yyl1159 := r.ReadMapStart() - if yyl1159 == 0 { + yyct956 := r.ContainerType() + if yyct956 == codecSelferValueTypeMap1234 { + yyl956 := r.ReadMapStart() + if yyl956 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1159, d) + x.codecDecodeSelfFromMap(yyl956, d) } - } else if yyct1159 == codecSelferValueTypeArray1234 { - yyl1159 := r.ReadArrayStart() - if yyl1159 == 0 { + } else if yyct956 == codecSelferValueTypeArray1234 { + yyl956 := r.ReadArrayStart() + if yyl956 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1159, d) + x.codecDecodeSelfFromArray(yyl956, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13517,12 +11276,12 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1160Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1160Slc - var yyhl1160 bool = l >= 0 - for yyj1160 := 0; ; yyj1160++ { - if yyhl1160 { - if yyj1160 >= l { + var yys957Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys957Slc + var yyhl957 bool = l >= 0 + for yyj957 := 0; ; yyj957++ { + if yyhl957 { + if yyj957 >= l { break } } else { @@ -13531,21 +11290,21 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1160Slc = r.DecodeBytes(yys1160Slc, true, true) - yys1160 := string(yys1160Slc) + yys957Slc = r.DecodeBytes(yys957Slc, true, true) + yys957 := string(yys957Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1160 { + switch yys957 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv1161 := &x.LoadBalancer - yyv1161.CodecDecodeSelf(d) + yyv958 := &x.LoadBalancer + yyv958.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1160) - } // end switch yys1160 - } // end for yyj1160 + z.DecStructFieldNotFound(-1, yys957) + } // end switch yys957 + } // end for yyj957 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13553,16 +11312,16 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1162 int - var yyb1162 bool - var yyhl1162 bool = l >= 0 - yyj1162++ - if yyhl1162 { - yyb1162 = yyj1162 > l + var yyj959 int + var yyb959 bool + var yyhl959 bool = l >= 0 + yyj959++ + if yyhl959 { + yyb959 = yyj959 > l } else { - yyb1162 = r.CheckBreak() + yyb959 = r.CheckBreak() } - if yyb1162 { + if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13570,21 +11329,21 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv1163 := &x.LoadBalancer - yyv1163.CodecDecodeSelf(d) + yyv960 := &x.LoadBalancer + yyv960.CodecDecodeSelf(d) } for { - yyj1162++ - if yyhl1162 { - yyb1162 = yyj1162 > l + yyj959++ + if yyhl959 { + yyb959 = yyj959 > l } else { - yyb1162 = r.CheckBreak() + yyb959 = r.CheckBreak() } - if yyb1162 { + if yyb959 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1162-1, "") + z.DecStructFieldNotFound(yyj959-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13596,36 +11355,36 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1164 := z.EncBinary() - _ = yym1164 + yym961 := z.EncBinary() + _ = yym961 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep962 := !z.EncBinary() + yy2arr962 := z.EncBasicHandle().StructToArray + var yyq962 [2]bool + _, _, _ = yysep962, yyq962, yy2arr962 + const yyr962 bool = false + yyq962[0] = x.Host != "" + yyq962[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn962 int + if yyr962 || yy2arr962 { r.EncodeArrayStart(2) } else { - yynn1165 = 0 - for _, b := range yyq1165 { + yynn962 = 0 + for _, b := range yyq962 { if b { - yynn1165++ + yynn962++ } } - r.EncodeMapStart(yynn1165) - yynn1165 = 0 + r.EncodeMapStart(yynn962) + yynn962 = 0 } - if yyr1165 || yy2arr1165 { + if yyr962 || yy2arr962 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1165[0] { - yym1167 := z.EncBinary() - _ = yym1167 + if yyq962[0] { + yym964 := z.EncBinary() + _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -13634,30 +11393,30 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1165[0] { + if yyq962[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1168 := z.EncBinary() - _ = yym1168 + yym965 := z.EncBinary() + _ = yym965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - var yyn1169 bool + var yyn966 bool if x.IngressRuleValue.HTTP == nil { - yyn1169 = true - goto LABEL1169 + yyn966 = true + goto LABEL966 } - LABEL1169: - if yyr1165 || yy2arr1165 { - if yyn1169 { + LABEL966: + if yyr962 || yy2arr962 { + if yyn966 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1165[1] { + if yyq962[1] { if x.HTTP == nil { r.EncodeNil() } else { @@ -13668,11 +11427,11 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1165[1] { + if yyq962[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1169 { + if yyn966 { r.EncodeNil() } else { if x.HTTP == nil { @@ -13683,7 +11442,7 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1165 || yy2arr1165 { + if yyr962 || yy2arr962 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13696,25 +11455,25 @@ func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1170 := z.DecBinary() - _ = yym1170 + yym967 := z.DecBinary() + _ = yym967 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1171 := r.ContainerType() - if yyct1171 == codecSelferValueTypeMap1234 { - yyl1171 := r.ReadMapStart() - if yyl1171 == 0 { + yyct968 := r.ContainerType() + if yyct968 == codecSelferValueTypeMap1234 { + yyl968 := r.ReadMapStart() + if yyl968 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1171, d) + x.codecDecodeSelfFromMap(yyl968, d) } - } else if yyct1171 == codecSelferValueTypeArray1234 { - yyl1171 := r.ReadArrayStart() - if yyl1171 == 0 { + } else if yyct968 == codecSelferValueTypeArray1234 { + yyl968 := r.ReadArrayStart() + if yyl968 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1171, d) + x.codecDecodeSelfFromArray(yyl968, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13726,12 +11485,12 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1172Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1172Slc - var yyhl1172 bool = l >= 0 - for yyj1172 := 0; ; yyj1172++ { - if yyhl1172 { - if yyj1172 >= l { + var yys969Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys969Slc + var yyhl969 bool = l >= 0 + for yyj969 := 0; ; yyj969++ { + if yyhl969 { + if yyj969 >= l { break } } else { @@ -13740,10 +11499,10 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1172Slc = r.DecodeBytes(yys1172Slc, true, true) - yys1172 := string(yys1172Slc) + yys969Slc = r.DecodeBytes(yys969Slc, true, true) + yys969 := string(yys969Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1172 { + switch yys969 { case "host": if r.TryDecodeAsNil() { x.Host = "" @@ -13765,9 +11524,9 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1172) - } // end switch yys1172 - } // end for yyj1172 + z.DecStructFieldNotFound(-1, yys969) + } // end switch yys969 + } // end for yyj969 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13775,16 +11534,16 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1175 int - var yyb1175 bool - var yyhl1175 bool = l >= 0 - yyj1175++ - if yyhl1175 { - yyb1175 = yyj1175 > l + var yyj972 int + var yyb972 bool + var yyhl972 bool = l >= 0 + yyj972++ + if yyhl972 { + yyb972 = yyj972 > l } else { - yyb1175 = r.CheckBreak() + yyb972 = r.CheckBreak() } - if yyb1175 { + if yyb972 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13797,13 +11556,13 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.IngressRuleValue.HTTP == nil { x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) } - yyj1175++ - if yyhl1175 { - yyb1175 = yyj1175 > l + yyj972++ + if yyhl972 { + yyb972 = yyj972 > l } else { - yyb1175 = r.CheckBreak() + yyb972 = r.CheckBreak() } - if yyb1175 { + if yyb972 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13819,17 +11578,17 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } for { - yyj1175++ - if yyhl1175 { - yyb1175 = yyj1175 > l + yyj972++ + if yyhl972 { + yyb972 = yyj972 > l } else { - yyb1175 = r.CheckBreak() + yyb972 = r.CheckBreak() } - if yyb1175 { + if yyb972 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1175-1, "") + z.DecStructFieldNotFound(yyj972-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13841,33 +11600,33 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1178 := z.EncBinary() - _ = yym1178 + yym975 := z.EncBinary() + _ = yym975 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep976 := !z.EncBinary() + yy2arr976 := z.EncBasicHandle().StructToArray + var yyq976 [1]bool + _, _, _ = yysep976, yyq976, yy2arr976 + const yyr976 bool = false + yyq976[0] = x.HTTP != nil + var yynn976 int + if yyr976 || yy2arr976 { r.EncodeArrayStart(1) } else { - yynn1179 = 0 - for _, b := range yyq1179 { + yynn976 = 0 + for _, b := range yyq976 { if b { - yynn1179++ + yynn976++ } } - r.EncodeMapStart(yynn1179) - yynn1179 = 0 + r.EncodeMapStart(yynn976) + yynn976 = 0 } - if yyr1179 || yy2arr1179 { + if yyr976 || yy2arr976 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1179[0] { + if yyq976[0] { if x.HTTP == nil { r.EncodeNil() } else { @@ -13877,7 +11636,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1179[0] { + if yyq976[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13888,7 +11647,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1179 || yy2arr1179 { + if yyr976 || yy2arr976 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13901,25 +11660,25 @@ func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1181 := z.DecBinary() - _ = yym1181 + yym978 := z.DecBinary() + _ = yym978 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1182 := r.ContainerType() - if yyct1182 == codecSelferValueTypeMap1234 { - yyl1182 := r.ReadMapStart() - if yyl1182 == 0 { + yyct979 := r.ContainerType() + if yyct979 == codecSelferValueTypeMap1234 { + yyl979 := r.ReadMapStart() + if yyl979 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1182, d) + x.codecDecodeSelfFromMap(yyl979, d) } - } else if yyct1182 == codecSelferValueTypeArray1234 { - yyl1182 := r.ReadArrayStart() - if yyl1182 == 0 { + } else if yyct979 == codecSelferValueTypeArray1234 { + yyl979 := r.ReadArrayStart() + if yyl979 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1182, d) + x.codecDecodeSelfFromArray(yyl979, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13931,12 +11690,12 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1183Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1183Slc - var yyhl1183 bool = l >= 0 - for yyj1183 := 0; ; yyj1183++ { - if yyhl1183 { - if yyj1183 >= l { + var yys980Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys980Slc + var yyhl980 bool = l >= 0 + for yyj980 := 0; ; yyj980++ { + if yyhl980 { + if yyj980 >= l { break } } else { @@ -13945,10 +11704,10 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1183Slc = r.DecodeBytes(yys1183Slc, true, true) - yys1183 := string(yys1183Slc) + yys980Slc = r.DecodeBytes(yys980Slc, true, true) + yys980 := string(yys980Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1183 { + switch yys980 { case "http": if r.TryDecodeAsNil() { if x.HTTP != nil { @@ -13961,9 +11720,9 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1183) - } // end switch yys1183 - } // end for yyj1183 + z.DecStructFieldNotFound(-1, yys980) + } // end switch yys980 + } // end for yyj980 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13971,16 +11730,16 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1185 int - var yyb1185 bool - var yyhl1185 bool = l >= 0 - yyj1185++ - if yyhl1185 { - yyb1185 = yyj1185 > l + var yyj982 int + var yyb982 bool + var yyhl982 bool = l >= 0 + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb1185 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb1185 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13996,17 +11755,17 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.HTTP.CodecDecodeSelf(d) } for { - yyj1185++ - if yyhl1185 { - yyb1185 = yyj1185 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb1185 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb1185 { + if yyb982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1185-1, "") + z.DecStructFieldNotFound(yyj982-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14018,36 +11777,36 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1187 := z.EncBinary() - _ = yym1187 + yym984 := z.EncBinary() + _ = yym984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1188 := !z.EncBinary() - yy2arr1188 := z.EncBasicHandle().StructToArray - var yyq1188 [1]bool - _, _, _ = yysep1188, yyq1188, yy2arr1188 - const yyr1188 bool = false - var yynn1188 int - if yyr1188 || yy2arr1188 { + yysep985 := !z.EncBinary() + yy2arr985 := z.EncBasicHandle().StructToArray + var yyq985 [1]bool + _, _, _ = yysep985, yyq985, yy2arr985 + const yyr985 bool = false + var yynn985 int + if yyr985 || yy2arr985 { r.EncodeArrayStart(1) } else { - yynn1188 = 1 - for _, b := range yyq1188 { + yynn985 = 1 + for _, b := range yyq985 { if b { - yynn1188++ + yynn985++ } } - r.EncodeMapStart(yynn1188) - yynn1188 = 0 + r.EncodeMapStart(yynn985) + yynn985 = 0 } - if yyr1188 || yy2arr1188 { + if yyr985 || yy2arr985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Paths == nil { r.EncodeNil() } else { - yym1190 := z.EncBinary() - _ = yym1190 + yym987 := z.EncBinary() + _ = yym987 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) @@ -14060,15 +11819,15 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x.Paths == nil { r.EncodeNil() } else { - yym1191 := z.EncBinary() - _ = yym1191 + yym988 := z.EncBinary() + _ = yym988 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) } } } - if yyr1188 || yy2arr1188 { + if yyr985 || yy2arr985 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14081,25 +11840,25 @@ func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1192 := z.DecBinary() - _ = yym1192 + yym989 := z.DecBinary() + _ = yym989 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1193 := r.ContainerType() - if yyct1193 == codecSelferValueTypeMap1234 { - yyl1193 := r.ReadMapStart() - if yyl1193 == 0 { + yyct990 := r.ContainerType() + if yyct990 == codecSelferValueTypeMap1234 { + yyl990 := r.ReadMapStart() + if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1193, d) + x.codecDecodeSelfFromMap(yyl990, d) } - } else if yyct1193 == codecSelferValueTypeArray1234 { - yyl1193 := r.ReadArrayStart() - if yyl1193 == 0 { + } else if yyct990 == codecSelferValueTypeArray1234 { + yyl990 := r.ReadArrayStart() + if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1193, d) + x.codecDecodeSelfFromArray(yyl990, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14111,12 +11870,12 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1194Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1194Slc - var yyhl1194 bool = l >= 0 - for yyj1194 := 0; ; yyj1194++ { - if yyhl1194 { - if yyj1194 >= l { + var yys991Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys991Slc + var yyhl991 bool = l >= 0 + for yyj991 := 0; ; yyj991++ { + if yyhl991 { + if yyj991 >= l { break } } else { @@ -14125,26 +11884,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1194Slc = r.DecodeBytes(yys1194Slc, true, true) - yys1194 := string(yys1194Slc) + yys991Slc = r.DecodeBytes(yys991Slc, true, true) + yys991 := string(yys991Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1194 { + switch yys991 { case "paths": if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv1195 := &x.Paths - yym1196 := z.DecBinary() - _ = yym1196 + yyv992 := &x.Paths + yym993 := z.DecBinary() + _ = yym993 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1195), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv992), d) } } default: - z.DecStructFieldNotFound(-1, yys1194) - } // end switch yys1194 - } // end for yyj1194 + z.DecStructFieldNotFound(-1, yys991) + } // end switch yys991 + } // end for yyj991 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14152,16 +11911,16 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1197 int - var yyb1197 bool - var yyhl1197 bool = l >= 0 - yyj1197++ - if yyhl1197 { - yyb1197 = yyj1197 > l + var yyj994 int + var yyb994 bool + var yyhl994 bool = l >= 0 + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb1197 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb1197 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14169,26 +11928,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv1198 := &x.Paths - yym1199 := z.DecBinary() - _ = yym1199 + yyv995 := &x.Paths + yym996 := z.DecBinary() + _ = yym996 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1198), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv995), d) } } for { - yyj1197++ - if yyhl1197 { - yyb1197 = yyj1197 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb1197 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb1197 { + if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1197-1, "") + z.DecStructFieldNotFound(yyj994-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14200,35 +11959,35 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1200 := z.EncBinary() - _ = yym1200 + yym997 := z.EncBinary() + _ = yym997 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] = x.Path != "" - var yynn1201 int - if yyr1201 || yy2arr1201 { + yysep998 := !z.EncBinary() + yy2arr998 := z.EncBasicHandle().StructToArray + var yyq998 [2]bool + _, _, _ = yysep998, yyq998, yy2arr998 + const yyr998 bool = false + yyq998[0] = x.Path != "" + var yynn998 int + if yyr998 || yy2arr998 { r.EncodeArrayStart(2) } else { - yynn1201 = 1 - for _, b := range yyq1201 { + yynn998 = 1 + for _, b := range yyq998 { if b { - yynn1201++ + yynn998++ } } - r.EncodeMapStart(yynn1201) - yynn1201 = 0 + r.EncodeMapStart(yynn998) + yynn998 = 0 } - if yyr1201 || yy2arr1201 { + if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1201[0] { - yym1203 := z.EncBinary() - _ = yym1203 + if yyq998[0] { + yym1000 := z.EncBinary() + _ = yym1000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -14237,30 +11996,30 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1201[0] { + if yyq998[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1204 := z.EncBinary() - _ = yym1204 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1201 || yy2arr1201 { + if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1206 := &x.Backend - yy1206.CodecEncodeSelf(e) + yy1003 := &x.Backend + yy1003.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1207 := &x.Backend - yy1207.CodecEncodeSelf(e) + yy1004 := &x.Backend + yy1004.CodecEncodeSelf(e) } - if yyr1201 || yy2arr1201 { + if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14273,25 +12032,25 @@ func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1208 := z.DecBinary() - _ = yym1208 + yym1005 := z.DecBinary() + _ = yym1005 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1209 := r.ContainerType() - if yyct1209 == codecSelferValueTypeMap1234 { - yyl1209 := r.ReadMapStart() - if yyl1209 == 0 { + yyct1006 := r.ContainerType() + if yyct1006 == codecSelferValueTypeMap1234 { + yyl1006 := r.ReadMapStart() + if yyl1006 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1209, d) + x.codecDecodeSelfFromMap(yyl1006, d) } - } else if yyct1209 == codecSelferValueTypeArray1234 { - yyl1209 := r.ReadArrayStart() - if yyl1209 == 0 { + } else if yyct1006 == codecSelferValueTypeArray1234 { + yyl1006 := r.ReadArrayStart() + if yyl1006 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1209, d) + x.codecDecodeSelfFromArray(yyl1006, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14303,12 +12062,12 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 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 yys1007Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1007Slc + var yyhl1007 bool = l >= 0 + for yyj1007 := 0; ; yyj1007++ { + if yyhl1007 { + if yyj1007 >= l { break } } else { @@ -14317,10 +12076,10 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1210Slc = r.DecodeBytes(yys1210Slc, true, true) - yys1210 := string(yys1210Slc) + yys1007Slc = r.DecodeBytes(yys1007Slc, true, true) + yys1007 := string(yys1007Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1210 { + switch yys1007 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -14331,13 +12090,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv1212 := &x.Backend - yyv1212.CodecDecodeSelf(d) + yyv1009 := &x.Backend + yyv1009.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1210) - } // end switch yys1210 - } // end for yyj1210 + z.DecStructFieldNotFound(-1, yys1007) + } // end switch yys1007 + } // end for yyj1007 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14345,16 +12104,16 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1213 int - var yyb1213 bool - var yyhl1213 bool = l >= 0 - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l + var yyj1010 int + var yyb1010 bool + var yyhl1010 bool = l >= 0 + yyj1010++ + if yyhl1010 { + yyb1010 = yyj1010 > l } else { - yyb1213 = r.CheckBreak() + yyb1010 = r.CheckBreak() } - if yyb1213 { + if yyb1010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14364,13 +12123,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l + yyj1010++ + if yyhl1010 { + yyb1010 = yyj1010 > l } else { - yyb1213 = r.CheckBreak() + yyb1010 = r.CheckBreak() } - if yyb1213 { + if yyb1010 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14378,21 +12137,21 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv1215 := &x.Backend - yyv1215.CodecDecodeSelf(d) + yyv1012 := &x.Backend + yyv1012.CodecDecodeSelf(d) } for { - yyj1213++ - if yyhl1213 { - yyb1213 = yyj1213 > l + yyj1010++ + if yyhl1010 { + yyb1010 = yyj1010 > l } else { - yyb1213 = r.CheckBreak() + yyb1010 = r.CheckBreak() } - if yyb1213 { + if yyb1010 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1213-1, "") + z.DecStructFieldNotFound(yyj1010-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14404,33 +12163,33 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1216 := z.EncBinary() - _ = yym1216 + yym1013 := z.EncBinary() + _ = yym1013 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1217 := !z.EncBinary() - yy2arr1217 := z.EncBasicHandle().StructToArray - var yyq1217 [2]bool - _, _, _ = yysep1217, yyq1217, yy2arr1217 - const yyr1217 bool = false - var yynn1217 int - if yyr1217 || yy2arr1217 { + yysep1014 := !z.EncBinary() + yy2arr1014 := z.EncBasicHandle().StructToArray + var yyq1014 [2]bool + _, _, _ = yysep1014, yyq1014, yy2arr1014 + const yyr1014 bool = false + var yynn1014 int + if yyr1014 || yy2arr1014 { r.EncodeArrayStart(2) } else { - yynn1217 = 2 - for _, b := range yyq1217 { + yynn1014 = 2 + for _, b := range yyq1014 { if b { - yynn1217++ + yynn1014++ } } - r.EncodeMapStart(yynn1217) - yynn1217 = 0 + r.EncodeMapStart(yynn1014) + yynn1014 = 0 } - if yyr1217 || yy2arr1217 { + if yyr1014 || yy2arr1014 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1219 := z.EncBinary() - _ = yym1219 + yym1016 := z.EncBinary() + _ = yym1016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -14439,41 +12198,41 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1220 := z.EncBinary() - _ = yym1220 + yym1017 := z.EncBinary() + _ = yym1017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr1217 || yy2arr1217 { + if yyr1014 || yy2arr1014 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1222 := &x.ServicePort - yym1223 := z.EncBinary() - _ = yym1223 + yy1019 := &x.ServicePort + yym1020 := z.EncBinary() + _ = yym1020 if false { - } else if z.HasExtensions() && z.EncExt(yy1222) { - } else if !yym1223 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1222) + } else if z.HasExtensions() && z.EncExt(yy1019) { + } else if !yym1020 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1019) } else { - z.EncFallback(yy1222) + z.EncFallback(yy1019) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("servicePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1224 := &x.ServicePort - yym1225 := z.EncBinary() - _ = yym1225 + yy1021 := &x.ServicePort + yym1022 := z.EncBinary() + _ = yym1022 if false { - } else if z.HasExtensions() && z.EncExt(yy1224) { - } else if !yym1225 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1224) + } else if z.HasExtensions() && z.EncExt(yy1021) { + } else if !yym1022 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1021) } else { - z.EncFallback(yy1224) + z.EncFallback(yy1021) } } - if yyr1217 || yy2arr1217 { + if yyr1014 || yy2arr1014 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14486,25 +12245,25 @@ func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1226 := z.DecBinary() - _ = yym1226 + yym1023 := z.DecBinary() + _ = yym1023 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1227 := r.ContainerType() - if yyct1227 == codecSelferValueTypeMap1234 { - yyl1227 := r.ReadMapStart() - if yyl1227 == 0 { + yyct1024 := r.ContainerType() + if yyct1024 == codecSelferValueTypeMap1234 { + yyl1024 := r.ReadMapStart() + if yyl1024 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1227, d) + x.codecDecodeSelfFromMap(yyl1024, d) } - } else if yyct1227 == codecSelferValueTypeArray1234 { - yyl1227 := r.ReadArrayStart() - if yyl1227 == 0 { + } else if yyct1024 == codecSelferValueTypeArray1234 { + yyl1024 := r.ReadArrayStart() + if yyl1024 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1227, d) + x.codecDecodeSelfFromArray(yyl1024, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14516,12 +12275,12 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1228Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1228Slc - var yyhl1228 bool = l >= 0 - for yyj1228 := 0; ; yyj1228++ { - if yyhl1228 { - if yyj1228 >= l { + var yys1025Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1025Slc + var yyhl1025 bool = l >= 0 + for yyj1025 := 0; ; yyj1025++ { + if yyhl1025 { + if yyj1025 >= l { break } } else { @@ -14530,10 +12289,10 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1228Slc = r.DecodeBytes(yys1228Slc, true, true) - yys1228 := string(yys1228Slc) + yys1025Slc = r.DecodeBytes(yys1025Slc, true, true) + yys1025 := string(yys1025Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1228 { + switch yys1025 { case "serviceName": if r.TryDecodeAsNil() { x.ServiceName = "" @@ -14544,21 +12303,21 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv1230 := &x.ServicePort - yym1231 := z.DecBinary() - _ = yym1231 + yyv1027 := &x.ServicePort + yym1028 := z.DecBinary() + _ = yym1028 if false { - } else if z.HasExtensions() && z.DecExt(yyv1230) { - } else if !yym1231 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1230) + } else if z.HasExtensions() && z.DecExt(yyv1027) { + } else if !yym1028 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1027) } else { - z.DecFallback(yyv1230, false) + z.DecFallback(yyv1027, false) } } default: - z.DecStructFieldNotFound(-1, yys1228) - } // end switch yys1228 - } // end for yyj1228 + z.DecStructFieldNotFound(-1, yys1025) + } // end switch yys1025 + } // end for yyj1025 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14566,16 +12325,16 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1232 int - var yyb1232 bool - var yyhl1232 bool = l >= 0 - yyj1232++ - if yyhl1232 { - yyb1232 = yyj1232 > l + var yyj1029 int + var yyb1029 bool + var yyhl1029 bool = l >= 0 + yyj1029++ + if yyhl1029 { + yyb1029 = yyj1029 > l } else { - yyb1232 = r.CheckBreak() + yyb1029 = r.CheckBreak() } - if yyb1232 { + if yyb1029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14585,13 +12344,13 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceName = string(r.DecodeString()) } - yyj1232++ - if yyhl1232 { - yyb1232 = yyj1232 > l + yyj1029++ + if yyhl1029 { + yyb1029 = yyj1029 > l } else { - yyb1232 = r.CheckBreak() + yyb1029 = r.CheckBreak() } - if yyb1232 { + if yyb1029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14599,29 +12358,29 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv1234 := &x.ServicePort - yym1235 := z.DecBinary() - _ = yym1235 + yyv1031 := &x.ServicePort + yym1032 := z.DecBinary() + _ = yym1032 if false { - } else if z.HasExtensions() && z.DecExt(yyv1234) { - } else if !yym1235 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1234) + } else if z.HasExtensions() && z.DecExt(yyv1031) { + } else if !yym1032 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1031) } else { - z.DecFallback(yyv1234, false) + z.DecFallback(yyv1031, false) } } for { - yyj1232++ - if yyhl1232 { - yyb1232 = yyj1232 > l + yyj1029++ + if yyhl1029 { + yyb1029 = yyj1029 > l } else { - yyb1232 = r.CheckBreak() + yyb1029 = r.CheckBreak() } - if yyb1232 { + if yyb1029 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1232-1, "") + z.DecStructFieldNotFound(yyj1029-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14633,39 +12392,39 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1236 := z.EncBinary() - _ = yym1236 + yym1033 := z.EncBinary() + _ = yym1033 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1237 := !z.EncBinary() - yy2arr1237 := z.EncBasicHandle().StructToArray - var yyq1237 [5]bool - _, _, _ = yysep1237, yyq1237, yy2arr1237 - const yyr1237 bool = false - yyq1237[0] = x.Kind != "" - yyq1237[1] = x.APIVersion != "" - yyq1237[2] = true - yyq1237[3] = true - yyq1237[4] = true - var yynn1237 int - if yyr1237 || yy2arr1237 { + yysep1034 := !z.EncBinary() + yy2arr1034 := z.EncBasicHandle().StructToArray + var yyq1034 [5]bool + _, _, _ = yysep1034, yyq1034, yy2arr1034 + const yyr1034 bool = false + yyq1034[0] = x.Kind != "" + yyq1034[1] = x.APIVersion != "" + yyq1034[2] = true + yyq1034[3] = true + yyq1034[4] = true + var yynn1034 int + if yyr1034 || yy2arr1034 { r.EncodeArrayStart(5) } else { - yynn1237 = 0 - for _, b := range yyq1237 { + yynn1034 = 0 + for _, b := range yyq1034 { if b { - yynn1237++ + yynn1034++ } } - r.EncodeMapStart(yynn1237) - yynn1237 = 0 + r.EncodeMapStart(yynn1034) + yynn1034 = 0 } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[0] { - yym1239 := z.EncBinary() - _ = yym1239 + if yyq1034[0] { + yym1036 := z.EncBinary() + _ = yym1036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -14674,23 +12433,23 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1237[0] { + if yyq1034[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1240 := z.EncBinary() - _ = yym1240 + yym1037 := z.EncBinary() + _ = yym1037 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[1] { - yym1242 := z.EncBinary() - _ = yym1242 + if yyq1034[1] { + yym1039 := z.EncBinary() + _ = yym1039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -14699,70 +12458,70 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1237[1] { + if yyq1034[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1243 := z.EncBinary() - _ = yym1243 + yym1040 := z.EncBinary() + _ = yym1040 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[2] { - yy1245 := &x.ObjectMeta - yy1245.CodecEncodeSelf(e) + if yyq1034[2] { + yy1042 := &x.ObjectMeta + yy1042.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1237[2] { + if yyq1034[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1246 := &x.ObjectMeta - yy1246.CodecEncodeSelf(e) + yy1043 := &x.ObjectMeta + yy1043.CodecEncodeSelf(e) } } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[3] { - yy1248 := &x.Spec - yy1248.CodecEncodeSelf(e) + if yyq1034[3] { + yy1045 := &x.Spec + yy1045.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1237[3] { + if yyq1034[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1249 := &x.Spec - yy1249.CodecEncodeSelf(e) + yy1046 := &x.Spec + yy1046.CodecEncodeSelf(e) } } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[4] { - yy1251 := &x.Status - yy1251.CodecEncodeSelf(e) + if yyq1034[4] { + yy1048 := &x.Status + yy1048.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1237[4] { + if yyq1034[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1252 := &x.Status - yy1252.CodecEncodeSelf(e) + yy1049 := &x.Status + yy1049.CodecEncodeSelf(e) } } - if yyr1237 || yy2arr1237 { + if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14775,25 +12534,25 @@ func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1253 := z.DecBinary() - _ = yym1253 + yym1050 := z.DecBinary() + _ = yym1050 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1254 := r.ContainerType() - if yyct1254 == codecSelferValueTypeMap1234 { - yyl1254 := r.ReadMapStart() - if yyl1254 == 0 { + yyct1051 := r.ContainerType() + if yyct1051 == codecSelferValueTypeMap1234 { + yyl1051 := r.ReadMapStart() + if yyl1051 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1254, d) + x.codecDecodeSelfFromMap(yyl1051, d) } - } else if yyct1254 == codecSelferValueTypeArray1234 { - yyl1254 := r.ReadArrayStart() - if yyl1254 == 0 { + } else if yyct1051 == codecSelferValueTypeArray1234 { + yyl1051 := r.ReadArrayStart() + if yyl1051 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1254, d) + x.codecDecodeSelfFromArray(yyl1051, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14805,12 +12564,12 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1255Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1255Slc - var yyhl1255 bool = l >= 0 - for yyj1255 := 0; ; yyj1255++ { - if yyhl1255 { - if yyj1255 >= l { + var yys1052Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1052Slc + var yyhl1052 bool = l >= 0 + for yyj1052 := 0; ; yyj1052++ { + if yyhl1052 { + if yyj1052 >= l { break } } else { @@ -14819,10 +12578,10 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1255Slc = r.DecodeBytes(yys1255Slc, true, true) - yys1255 := string(yys1255Slc) + yys1052Slc = r.DecodeBytes(yys1052Slc, true, true) + yys1052 := string(yys1052Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1255 { + switch yys1052 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14839,27 +12598,27 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1258 := &x.ObjectMeta - yyv1258.CodecDecodeSelf(d) + yyv1055 := &x.ObjectMeta + yyv1055.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv1259 := &x.Spec - yyv1259.CodecDecodeSelf(d) + yyv1056 := &x.Spec + yyv1056.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv1260 := &x.Status - yyv1260.CodecDecodeSelf(d) + yyv1057 := &x.Status + yyv1057.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1255) - } // end switch yys1255 - } // end for yyj1255 + z.DecStructFieldNotFound(-1, yys1052) + } // end switch yys1052 + } // end for yyj1052 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14867,16 +12626,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1261 int - var yyb1261 bool - var yyhl1261 bool = l >= 0 - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + var yyj1058 int + var yyb1058 bool + var yyhl1058 bool = l >= 0 + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14886,13 +12645,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14902,13 +12661,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14916,16 +12675,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1264 := &x.ObjectMeta - yyv1264.CodecDecodeSelf(d) + yyv1061 := &x.ObjectMeta + yyv1061.CodecDecodeSelf(d) } - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14933,16 +12692,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv1265 := &x.Spec - yyv1265.CodecDecodeSelf(d) + yyv1062 := &x.Spec + yyv1062.CodecDecodeSelf(d) } - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14950,21 +12709,21 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv1266 := &x.Status - yyv1266.CodecDecodeSelf(d) + yyv1063 := &x.Status + yyv1063.CodecDecodeSelf(d) } for { - yyj1261++ - if yyhl1261 { - yyb1261 = yyj1261 > l + yyj1058++ + if yyhl1058 { + yyb1058 = yyj1058 > l } else { - yyb1261 = r.CheckBreak() + yyb1058 = r.CheckBreak() } - if yyb1261 { + if yyb1058 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1261-1, "") + z.DecStructFieldNotFound(yyj1058-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14976,37 +12735,37 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1267 := z.EncBinary() - _ = yym1267 + yym1064 := z.EncBinary() + _ = yym1064 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1268 := !z.EncBinary() - yy2arr1268 := z.EncBasicHandle().StructToArray - var yyq1268 [4]bool - _, _, _ = yysep1268, yyq1268, yy2arr1268 - const yyr1268 bool = false - yyq1268[0] = x.Kind != "" - yyq1268[1] = x.APIVersion != "" - yyq1268[2] = true - var yynn1268 int - if yyr1268 || yy2arr1268 { + yysep1065 := !z.EncBinary() + yy2arr1065 := z.EncBasicHandle().StructToArray + var yyq1065 [4]bool + _, _, _ = yysep1065, yyq1065, yy2arr1065 + const yyr1065 bool = false + yyq1065[0] = x.Kind != "" + yyq1065[1] = x.APIVersion != "" + yyq1065[2] = true + var yynn1065 int + if yyr1065 || yy2arr1065 { r.EncodeArrayStart(4) } else { - yynn1268 = 1 - for _, b := range yyq1268 { + yynn1065 = 1 + for _, b := range yyq1065 { if b { - yynn1268++ + yynn1065++ } } - r.EncodeMapStart(yynn1268) - yynn1268 = 0 + r.EncodeMapStart(yynn1065) + yynn1065 = 0 } - if yyr1268 || yy2arr1268 { + if yyr1065 || yy2arr1065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1268[0] { - yym1270 := z.EncBinary() - _ = yym1270 + if yyq1065[0] { + yym1067 := z.EncBinary() + _ = yym1067 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15015,23 +12774,23 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1268[0] { + if yyq1065[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1271 := z.EncBinary() - _ = yym1271 + yym1068 := z.EncBinary() + _ = yym1068 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1268 || yy2arr1268 { + if yyr1065 || yy2arr1065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1268[1] { - yym1273 := z.EncBinary() - _ = yym1273 + if yyq1065[1] { + yym1070 := z.EncBinary() + _ = yym1070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15040,54 +12799,54 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1268[1] { + if yyq1065[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1274 := z.EncBinary() - _ = yym1274 + yym1071 := z.EncBinary() + _ = yym1071 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1268 || yy2arr1268 { + if yyr1065 || yy2arr1065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1268[2] { - yy1276 := &x.ListMeta - yym1277 := z.EncBinary() - _ = yym1277 + if yyq1065[2] { + yy1073 := &x.ListMeta + yym1074 := z.EncBinary() + _ = yym1074 if false { - } else if z.HasExtensions() && z.EncExt(yy1276) { + } else if z.HasExtensions() && z.EncExt(yy1073) { } else { - z.EncFallback(yy1276) + z.EncFallback(yy1073) } } else { r.EncodeNil() } } else { - if yyq1268[2] { + if yyq1065[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1278 := &x.ListMeta - yym1279 := z.EncBinary() - _ = yym1279 + yy1075 := &x.ListMeta + yym1076 := z.EncBinary() + _ = yym1076 if false { - } else if z.HasExtensions() && z.EncExt(yy1278) { + } else if z.HasExtensions() && z.EncExt(yy1075) { } else { - z.EncFallback(yy1278) + z.EncFallback(yy1075) } } } - if yyr1268 || yy2arr1268 { + if yyr1065 || yy2arr1065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1281 := z.EncBinary() - _ = yym1281 + yym1078 := z.EncBinary() + _ = yym1078 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) @@ -15100,15 +12859,15 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1282 := z.EncBinary() - _ = yym1282 + yym1079 := z.EncBinary() + _ = yym1079 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } } } - if yyr1268 || yy2arr1268 { + if yyr1065 || yy2arr1065 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15121,25 +12880,25 @@ func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1283 := z.DecBinary() - _ = yym1283 + yym1080 := z.DecBinary() + _ = yym1080 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1284 := r.ContainerType() - if yyct1284 == codecSelferValueTypeMap1234 { - yyl1284 := r.ReadMapStart() - if yyl1284 == 0 { + yyct1081 := r.ContainerType() + if yyct1081 == codecSelferValueTypeMap1234 { + yyl1081 := r.ReadMapStart() + if yyl1081 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1284, d) + x.codecDecodeSelfFromMap(yyl1081, d) } - } else if yyct1284 == codecSelferValueTypeArray1234 { - yyl1284 := r.ReadArrayStart() - if yyl1284 == 0 { + } else if yyct1081 == codecSelferValueTypeArray1234 { + yyl1081 := r.ReadArrayStart() + if yyl1081 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1284, d) + x.codecDecodeSelfFromArray(yyl1081, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15151,12 +12910,12 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1285Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1285Slc - var yyhl1285 bool = l >= 0 - for yyj1285 := 0; ; yyj1285++ { - if yyhl1285 { - if yyj1285 >= l { + var yys1082Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1082Slc + var yyhl1082 bool = l >= 0 + for yyj1082 := 0; ; yyj1082++ { + if yyhl1082 { + if yyj1082 >= l { break } } else { @@ -15165,10 +12924,10 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1285Slc = r.DecodeBytes(yys1285Slc, true, true) - yys1285 := string(yys1285Slc) + yys1082Slc = r.DecodeBytes(yys1082Slc, true, true) + yys1082 := string(yys1082Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1285 { + switch yys1082 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15185,31 +12944,31 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1288 := &x.ListMeta - yym1289 := z.DecBinary() - _ = yym1289 + yyv1085 := &x.ListMeta + yym1086 := z.DecBinary() + _ = yym1086 if false { - } else if z.HasExtensions() && z.DecExt(yyv1288) { + } else if z.HasExtensions() && z.DecExt(yyv1085) { } else { - z.DecFallback(yyv1288, false) + z.DecFallback(yyv1085, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1290 := &x.Items - yym1291 := z.DecBinary() - _ = yym1291 + yyv1087 := &x.Items + yym1088 := z.DecBinary() + _ = yym1088 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv1290), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1087), d) } } default: - z.DecStructFieldNotFound(-1, yys1285) - } // end switch yys1285 - } // end for yyj1285 + z.DecStructFieldNotFound(-1, yys1082) + } // end switch yys1082 + } // end for yyj1082 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15217,16 +12976,16 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1292 int - var yyb1292 bool - var yyhl1292 bool = l >= 0 - yyj1292++ - if yyhl1292 { - yyb1292 = yyj1292 > l + var yyj1089 int + var yyb1089 bool + var yyhl1089 bool = l >= 0 + yyj1089++ + if yyhl1089 { + yyb1089 = yyj1089 > l } else { - yyb1292 = r.CheckBreak() + yyb1089 = r.CheckBreak() } - if yyb1292 { + if yyb1089 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15236,13 +12995,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1292++ - if yyhl1292 { - yyb1292 = yyj1292 > l + yyj1089++ + if yyhl1089 { + yyb1089 = yyj1089 > l } else { - yyb1292 = r.CheckBreak() + yyb1089 = r.CheckBreak() } - if yyb1292 { + if yyb1089 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15252,13 +13011,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1292++ - if yyhl1292 { - yyb1292 = yyj1292 > l + yyj1089++ + if yyhl1089 { + yyb1089 = yyj1089 > l } else { - yyb1292 = r.CheckBreak() + yyb1089 = r.CheckBreak() } - if yyb1292 { + if yyb1089 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15266,22 +13025,22 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1295 := &x.ListMeta - yym1296 := z.DecBinary() - _ = yym1296 + yyv1092 := &x.ListMeta + yym1093 := z.DecBinary() + _ = yym1093 if false { - } else if z.HasExtensions() && z.DecExt(yyv1295) { + } else if z.HasExtensions() && z.DecExt(yyv1092) { } else { - z.DecFallback(yyv1295, false) + z.DecFallback(yyv1092, false) } } - yyj1292++ - if yyhl1292 { - yyb1292 = yyj1292 > l + yyj1089++ + if yyhl1089 { + yyb1089 = yyj1089 > l } else { - yyb1292 = r.CheckBreak() + yyb1089 = r.CheckBreak() } - if yyb1292 { + if yyb1089 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15289,26 +13048,26 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1297 := &x.Items - yym1298 := z.DecBinary() - _ = yym1298 + yyv1094 := &x.Items + yym1095 := z.DecBinary() + _ = yym1095 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv1297), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1094), d) } } for { - yyj1292++ - if yyhl1292 { - yyb1292 = yyj1292 > l + yyj1089++ + if yyhl1089 { + yyb1089 = yyj1089 > l } else { - yyb1292 = r.CheckBreak() + yyb1089 = r.CheckBreak() } - if yyb1292 { + if yyb1089 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1292-1, "") + z.DecStructFieldNotFound(yyj1089-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15320,73 +13079,73 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1299 := z.EncBinary() - _ = yym1299 + yym1096 := z.EncBinary() + _ = yym1096 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1300 := !z.EncBinary() - yy2arr1300 := z.EncBasicHandle().StructToArray - var yyq1300 [4]bool - _, _, _ = yysep1300, yyq1300, yy2arr1300 - const yyr1300 bool = false - yyq1300[0] = x.Replicas != nil - yyq1300[1] = x.MinReadySeconds != 0 - yyq1300[2] = x.Selector != nil - yyq1300[3] = true - var yynn1300 int - if yyr1300 || yy2arr1300 { + yysep1097 := !z.EncBinary() + yy2arr1097 := z.EncBasicHandle().StructToArray + var yyq1097 [4]bool + _, _, _ = yysep1097, yyq1097, yy2arr1097 + const yyr1097 bool = false + yyq1097[0] = x.Replicas != nil + yyq1097[1] = x.MinReadySeconds != 0 + yyq1097[2] = x.Selector != nil + yyq1097[3] = true + var yynn1097 int + if yyr1097 || yy2arr1097 { r.EncodeArrayStart(4) } else { - yynn1300 = 0 - for _, b := range yyq1300 { + yynn1097 = 0 + for _, b := range yyq1097 { if b { - yynn1300++ + yynn1097++ } } - r.EncodeMapStart(yynn1300) - yynn1300 = 0 + r.EncodeMapStart(yynn1097) + yynn1097 = 0 } - if yyr1300 || yy2arr1300 { + if yyr1097 || yy2arr1097 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1300[0] { + if yyq1097[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy1302 := *x.Replicas - yym1303 := z.EncBinary() - _ = yym1303 + yy1099 := *x.Replicas + yym1100 := z.EncBinary() + _ = yym1100 if false { } else { - r.EncodeInt(int64(yy1302)) + r.EncodeInt(int64(yy1099)) } } } else { r.EncodeNil() } } else { - if yyq1300[0] { + if yyq1097[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy1304 := *x.Replicas - yym1305 := z.EncBinary() - _ = yym1305 + yy1101 := *x.Replicas + yym1102 := z.EncBinary() + _ = yym1102 if false { } else { - r.EncodeInt(int64(yy1304)) + r.EncodeInt(int64(yy1101)) } } } } - if yyr1300 || yy2arr1300 { + if yyr1097 || yy2arr1097 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1300[1] { - yym1307 := z.EncBinary() - _ = yym1307 + if yyq1097[1] { + yym1104 := z.EncBinary() + _ = yym1104 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -15395,26 +13154,26 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1300[1] { + if yyq1097[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1308 := z.EncBinary() - _ = yym1308 + yym1105 := z.EncBinary() + _ = yym1105 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } } - if yyr1300 || yy2arr1300 { + if yyr1097 || yy2arr1097 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1300[2] { + if yyq1097[2] { if x.Selector == nil { r.EncodeNil() } else { - yym1310 := z.EncBinary() - _ = yym1310 + yym1107 := z.EncBinary() + _ = yym1107 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -15425,15 +13184,15 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1300[2] { + if yyq1097[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym1311 := z.EncBinary() - _ = yym1311 + yym1108 := z.EncBinary() + _ = yym1108 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -15442,24 +13201,24 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1300 || yy2arr1300 { + if yyr1097 || yy2arr1097 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1300[3] { - yy1313 := &x.Template - yy1313.CodecEncodeSelf(e) + if yyq1097[3] { + yy1110 := &x.Template + yy1110.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1300[3] { + if yyq1097[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1314 := &x.Template - yy1314.CodecEncodeSelf(e) + yy1111 := &x.Template + yy1111.CodecEncodeSelf(e) } } - if yyr1300 || yy2arr1300 { + if yyr1097 || yy2arr1097 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15472,25 +13231,25 @@ func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1315 := z.DecBinary() - _ = yym1315 + yym1112 := z.DecBinary() + _ = yym1112 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1316 := r.ContainerType() - if yyct1316 == codecSelferValueTypeMap1234 { - yyl1316 := r.ReadMapStart() - if yyl1316 == 0 { + yyct1113 := r.ContainerType() + if yyct1113 == codecSelferValueTypeMap1234 { + yyl1113 := r.ReadMapStart() + if yyl1113 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1316, d) + x.codecDecodeSelfFromMap(yyl1113, d) } - } else if yyct1316 == codecSelferValueTypeArray1234 { - yyl1316 := r.ReadArrayStart() - if yyl1316 == 0 { + } else if yyct1113 == codecSelferValueTypeArray1234 { + yyl1113 := r.ReadArrayStart() + if yyl1113 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1316, d) + x.codecDecodeSelfFromArray(yyl1113, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15502,12 +13261,12 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1317Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1317Slc - var yyhl1317 bool = l >= 0 - for yyj1317 := 0; ; yyj1317++ { - if yyhl1317 { - if yyj1317 >= l { + var yys1114Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1114Slc + var yyhl1114 bool = l >= 0 + for yyj1114 := 0; ; yyj1114++ { + if yyhl1114 { + if yyj1114 >= l { break } } else { @@ -15516,10 +13275,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1317Slc = r.DecodeBytes(yys1317Slc, true, true) - yys1317 := string(yys1317Slc) + yys1114Slc = r.DecodeBytes(yys1114Slc, true, true) + yys1114 := string(yys1114Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1317 { + switch yys1114 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -15529,8 +13288,8 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym1319 := z.DecBinary() - _ = yym1319 + yym1116 := z.DecBinary() + _ = yym1116 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -15551,8 +13310,8 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_v1.LabelSelector) } - yym1322 := z.DecBinary() - _ = yym1322 + yym1119 := z.DecBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -15563,13 +13322,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv1323 := &x.Template - yyv1323.CodecDecodeSelf(d) + yyv1120 := &x.Template + yyv1120.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1317) - } // end switch yys1317 - } // end for yyj1317 + z.DecStructFieldNotFound(-1, yys1114) + } // end switch yys1114 + } // end for yyj1114 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15577,16 +13336,16 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1324 int - var yyb1324 bool - var yyhl1324 bool = l >= 0 - yyj1324++ - if yyhl1324 { - yyb1324 = yyj1324 > l + var yyj1121 int + var yyb1121 bool + var yyhl1121 bool = l >= 0 + yyj1121++ + if yyhl1121 { + yyb1121 = yyj1121 > l } else { - yyb1324 = r.CheckBreak() + yyb1121 = r.CheckBreak() } - if yyb1324 { + if yyb1121 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15599,20 +13358,20 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym1326 := z.DecBinary() - _ = yym1326 + yym1123 := z.DecBinary() + _ = yym1123 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj1324++ - if yyhl1324 { - yyb1324 = yyj1324 > l + yyj1121++ + if yyhl1121 { + yyb1121 = yyj1121 > l } else { - yyb1324 = r.CheckBreak() + yyb1121 = r.CheckBreak() } - if yyb1324 { + if yyb1121 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15622,13 +13381,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj1324++ - if yyhl1324 { - yyb1324 = yyj1324 > l + yyj1121++ + if yyhl1121 { + yyb1121 = yyj1121 > l } else { - yyb1324 = r.CheckBreak() + yyb1121 = r.CheckBreak() } - if yyb1324 { + if yyb1121 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15641,21 +13400,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_v1.LabelSelector) } - yym1329 := z.DecBinary() - _ = yym1329 + yym1126 := z.DecBinary() + _ = yym1126 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj1324++ - if yyhl1324 { - yyb1324 = yyj1324 > l + yyj1121++ + if yyhl1121 { + yyb1121 = yyj1121 > l } else { - yyb1324 = r.CheckBreak() + yyb1121 = r.CheckBreak() } - if yyb1324 { + if yyb1121 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15663,21 +13422,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv1330 := &x.Template - yyv1330.CodecDecodeSelf(d) + yyv1127 := &x.Template + yyv1127.CodecDecodeSelf(d) } for { - yyj1324++ - if yyhl1324 { - yyb1324 = yyj1324 > l + yyj1121++ + if yyhl1121 { + yyb1121 = yyj1121 > l } else { - yyb1324 = r.CheckBreak() + yyb1121 = r.CheckBreak() } - if yyb1324 { + if yyb1121 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1324-1, "") + z.DecStructFieldNotFound(yyj1121-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15689,38 +13448,38 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1331 := z.EncBinary() - _ = yym1331 + yym1128 := z.EncBinary() + _ = yym1128 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1332 := !z.EncBinary() - yy2arr1332 := z.EncBasicHandle().StructToArray - var yyq1332 [6]bool - _, _, _ = yysep1332, yyq1332, yy2arr1332 - const yyr1332 bool = false - yyq1332[1] = x.FullyLabeledReplicas != 0 - yyq1332[2] = x.ReadyReplicas != 0 - yyq1332[3] = x.AvailableReplicas != 0 - yyq1332[4] = x.ObservedGeneration != 0 - yyq1332[5] = len(x.Conditions) != 0 - var yynn1332 int - if yyr1332 || yy2arr1332 { + yysep1129 := !z.EncBinary() + yy2arr1129 := z.EncBasicHandle().StructToArray + var yyq1129 [6]bool + _, _, _ = yysep1129, yyq1129, yy2arr1129 + const yyr1129 bool = false + yyq1129[1] = x.FullyLabeledReplicas != 0 + yyq1129[2] = x.ReadyReplicas != 0 + yyq1129[3] = x.AvailableReplicas != 0 + yyq1129[4] = x.ObservedGeneration != 0 + yyq1129[5] = len(x.Conditions) != 0 + var yynn1129 int + if yyr1129 || yy2arr1129 { r.EncodeArrayStart(6) } else { - yynn1332 = 1 - for _, b := range yyq1332 { + yynn1129 = 1 + for _, b := range yyq1129 { if b { - yynn1332++ + yynn1129++ } } - r.EncodeMapStart(yynn1332) - yynn1332 = 0 + r.EncodeMapStart(yynn1129) + yynn1129 = 0 } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1334 := z.EncBinary() - _ = yym1334 + yym1131 := z.EncBinary() + _ = yym1131 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -15729,18 +13488,18 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1335 := z.EncBinary() - _ = yym1335 + yym1132 := z.EncBinary() + _ = yym1132 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1332[1] { - yym1337 := z.EncBinary() - _ = yym1337 + if yyq1129[1] { + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -15749,23 +13508,23 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1332[1] { + if yyq1129[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1338 := z.EncBinary() - _ = yym1338 + yym1135 := z.EncBinary() + _ = yym1135 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1332[2] { - yym1340 := z.EncBinary() - _ = yym1340 + if yyq1129[2] { + yym1137 := z.EncBinary() + _ = yym1137 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) @@ -15774,23 +13533,23 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1332[2] { + if yyq1129[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1341 := z.EncBinary() - _ = yym1341 + yym1138 := z.EncBinary() + _ = yym1138 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1332[3] { - yym1343 := z.EncBinary() - _ = yym1343 + if yyq1129[3] { + yym1140 := z.EncBinary() + _ = yym1140 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) @@ -15799,23 +13558,23 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1332[3] { + if yyq1129[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1344 := z.EncBinary() - _ = yym1344 + yym1141 := z.EncBinary() + _ = yym1141 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1332[4] { - yym1346 := z.EncBinary() - _ = yym1346 + if yyq1129[4] { + yym1143 := z.EncBinary() + _ = yym1143 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -15824,26 +13583,26 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1332[4] { + if yyq1129[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1347 := z.EncBinary() - _ = yym1347 + yym1144 := z.EncBinary() + _ = yym1144 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1332[5] { + if yyq1129[5] { if x.Conditions == nil { r.EncodeNil() } else { - yym1349 := z.EncBinary() - _ = yym1349 + yym1146 := z.EncBinary() + _ = yym1146 if false { } else { h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) @@ -15853,15 +13612,15 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1332[5] { + if yyq1129[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym1350 := z.EncBinary() - _ = yym1350 + yym1147 := z.EncBinary() + _ = yym1147 if false { } else { h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) @@ -15869,7 +13628,7 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1332 || yy2arr1332 { + if yyr1129 || yy2arr1129 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15882,25 +13641,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1351 := z.DecBinary() - _ = yym1351 + yym1148 := z.DecBinary() + _ = yym1148 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1352 := r.ContainerType() - if yyct1352 == codecSelferValueTypeMap1234 { - yyl1352 := r.ReadMapStart() - if yyl1352 == 0 { + yyct1149 := r.ContainerType() + if yyct1149 == codecSelferValueTypeMap1234 { + yyl1149 := r.ReadMapStart() + if yyl1149 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1352, d) + x.codecDecodeSelfFromMap(yyl1149, d) } - } else if yyct1352 == codecSelferValueTypeArray1234 { - yyl1352 := r.ReadArrayStart() - if yyl1352 == 0 { + } else if yyct1149 == codecSelferValueTypeArray1234 { + yyl1149 := r.ReadArrayStart() + if yyl1149 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1352, d) + x.codecDecodeSelfFromArray(yyl1149, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15912,12 +13671,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1353Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1353Slc - var yyhl1353 bool = l >= 0 - for yyj1353 := 0; ; yyj1353++ { - if yyhl1353 { - if yyj1353 >= l { + var yys1150Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1150Slc + var yyhl1150 bool = l >= 0 + for yyj1150 := 0; ; yyj1150++ { + if yyhl1150 { + if yyj1150 >= l { break } } else { @@ -15926,10 +13685,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1353Slc = r.DecodeBytes(yys1353Slc, true, true) - yys1353 := string(yys1353Slc) + yys1150Slc = r.DecodeBytes(yys1150Slc, true, true) + yys1150 := string(yys1150Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1353 { + switch yys1150 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -15964,18 +13723,18 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv1359 := &x.Conditions - yym1360 := z.DecBinary() - _ = yym1360 + yyv1156 := &x.Conditions + yym1157 := z.DecBinary() + _ = yym1157 if false { } else { - h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1359), d) + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1156), d) } } default: - z.DecStructFieldNotFound(-1, yys1353) - } // end switch yys1353 - } // end for yyj1353 + z.DecStructFieldNotFound(-1, yys1150) + } // end switch yys1150 + } // end for yyj1150 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15983,16 +13742,16 @@ func (x *ReplicaSetStatus) 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 yyj1158 int + var yyb1158 bool + var yyhl1158 bool = l >= 0 + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16002,13 +13761,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16018,13 +13777,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16034,13 +13793,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16050,13 +13809,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16066,13 +13825,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16080,26 +13839,26 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv1367 := &x.Conditions - yym1368 := z.DecBinary() - _ = yym1368 + yyv1164 := &x.Conditions + yym1165 := z.DecBinary() + _ = yym1165 if false { } else { - h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1367), d) + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1164), d) } } for { - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1158++ + if yyhl1158 { + yyb1158 = yyj1158 > l } else { - yyb1361 = r.CheckBreak() + yyb1158 = r.CheckBreak() } - if yyb1361 { + if yyb1158 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1361-1, "") + z.DecStructFieldNotFound(yyj1158-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16108,8 +13867,8 @@ func (x ReplicaSetConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1369 := z.EncBinary() - _ = yym1369 + yym1166 := z.EncBinary() + _ = yym1166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -16121,8 +13880,8 @@ func (x *ReplicaSetConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1370 := z.DecBinary() - _ = yym1370 + yym1167 := z.DecBinary() + _ = yym1167 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -16137,33 +13896,33 @@ func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1371 := z.EncBinary() - _ = yym1371 + yym1168 := z.EncBinary() + _ = yym1168 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1372 := !z.EncBinary() - yy2arr1372 := z.EncBasicHandle().StructToArray - var yyq1372 [5]bool - _, _, _ = yysep1372, yyq1372, yy2arr1372 - const yyr1372 bool = false - yyq1372[2] = true - yyq1372[3] = x.Reason != "" - yyq1372[4] = x.Message != "" - var yynn1372 int - if yyr1372 || yy2arr1372 { + yysep1169 := !z.EncBinary() + yy2arr1169 := z.EncBasicHandle().StructToArray + var yyq1169 [5]bool + _, _, _ = yysep1169, yyq1169, yy2arr1169 + const yyr1169 bool = false + yyq1169[2] = true + yyq1169[3] = x.Reason != "" + yyq1169[4] = x.Message != "" + var yynn1169 int + if yyr1169 || yy2arr1169 { r.EncodeArrayStart(5) } else { - yynn1372 = 2 - for _, b := range yyq1372 { + yynn1169 = 2 + for _, b := range yyq1169 { if b { - yynn1372++ + yynn1169++ } } - r.EncodeMapStart(yynn1372) - yynn1372 = 0 + r.EncodeMapStart(yynn1169) + yynn1169 = 0 } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -16172,10 +13931,10 @@ func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1375 := z.EncBinary() - _ = yym1375 + yym1172 := z.EncBinary() + _ = yym1172 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { @@ -16185,56 +13944,56 @@ func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1376 := z.EncBinary() - _ = yym1376 + yym1173 := z.EncBinary() + _ = yym1173 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Status)) } } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1372[2] { - yy1378 := &x.LastTransitionTime - yym1379 := z.EncBinary() - _ = yym1379 + if yyq1169[2] { + yy1175 := &x.LastTransitionTime + yym1176 := z.EncBinary() + _ = yym1176 if false { - } else if z.HasExtensions() && z.EncExt(yy1378) { - } else if yym1379 { - z.EncBinaryMarshal(yy1378) - } else if !yym1379 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1378) + } else if z.HasExtensions() && z.EncExt(yy1175) { + } else if yym1176 { + z.EncBinaryMarshal(yy1175) + } else if !yym1176 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1175) } else { - z.EncFallback(yy1378) + z.EncFallback(yy1175) } } else { r.EncodeNil() } } else { - if yyq1372[2] { + if yyq1169[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1380 := &x.LastTransitionTime - yym1381 := z.EncBinary() - _ = yym1381 + yy1177 := &x.LastTransitionTime + yym1178 := z.EncBinary() + _ = yym1178 if false { - } else if z.HasExtensions() && z.EncExt(yy1380) { - } else if yym1381 { - z.EncBinaryMarshal(yy1380) - } else if !yym1381 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1380) + } else if z.HasExtensions() && z.EncExt(yy1177) { + } else if yym1178 { + z.EncBinaryMarshal(yy1177) + } else if !yym1178 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1177) } else { - z.EncFallback(yy1380) + z.EncFallback(yy1177) } } } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1372[3] { - yym1383 := z.EncBinary() - _ = yym1383 + if yyq1169[3] { + yym1180 := z.EncBinary() + _ = yym1180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -16243,23 +14002,23 @@ func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1372[3] { + if yyq1169[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1384 := z.EncBinary() - _ = yym1384 + yym1181 := z.EncBinary() + _ = yym1181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1372[4] { - yym1386 := z.EncBinary() - _ = yym1386 + if yyq1169[4] { + yym1183 := z.EncBinary() + _ = yym1183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -16268,19 +14027,19 @@ func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1372[4] { + if yyq1169[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1387 := z.EncBinary() - _ = yym1387 + yym1184 := z.EncBinary() + _ = yym1184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1372 || yy2arr1372 { + if yyr1169 || yy2arr1169 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16293,25 +14052,25 @@ func (x *ReplicaSetCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1388 := z.DecBinary() - _ = yym1388 + yym1185 := z.DecBinary() + _ = yym1185 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1389 := r.ContainerType() - if yyct1389 == codecSelferValueTypeMap1234 { - yyl1389 := r.ReadMapStart() - if yyl1389 == 0 { + yyct1186 := r.ContainerType() + if yyct1186 == codecSelferValueTypeMap1234 { + yyl1186 := r.ReadMapStart() + if yyl1186 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1389, d) + x.codecDecodeSelfFromMap(yyl1186, d) } - } else if yyct1389 == codecSelferValueTypeArray1234 { - yyl1389 := r.ReadArrayStart() - if yyl1389 == 0 { + } else if yyct1186 == codecSelferValueTypeArray1234 { + yyl1186 := r.ReadArrayStart() + if yyl1186 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1389, d) + x.codecDecodeSelfFromArray(yyl1186, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16323,12 +14082,12 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1390Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1390Slc - var yyhl1390 bool = l >= 0 - for yyj1390 := 0; ; yyj1390++ { - if yyhl1390 { - if yyj1390 >= l { + var yys1187Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1187Slc + var yyhl1187 bool = l >= 0 + for yyj1187 := 0; ; yyj1187++ { + if yyhl1187 { + if yyj1187 >= l { break } } else { @@ -16337,10 +14096,10 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1390Slc = r.DecodeBytes(yys1390Slc, true, true) - yys1390 := string(yys1390Slc) + yys1187Slc = r.DecodeBytes(yys1187Slc, true, true) + yys1187 := string(yys1187Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1390 { + switch yys1187 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -16357,17 +14116,17 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_v1.Time{} } else { - yyv1393 := &x.LastTransitionTime - yym1394 := z.DecBinary() - _ = yym1394 + yyv1190 := &x.LastTransitionTime + yym1191 := z.DecBinary() + _ = yym1191 if false { - } else if z.HasExtensions() && z.DecExt(yyv1393) { - } else if yym1394 { - z.DecBinaryUnmarshal(yyv1393) - } else if !yym1394 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1393) + } else if z.HasExtensions() && z.DecExt(yyv1190) { + } else if yym1191 { + z.DecBinaryUnmarshal(yyv1190) + } else if !yym1191 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1190) } else { - z.DecFallback(yyv1393, false) + z.DecFallback(yyv1190, false) } } case "reason": @@ -16383,9 +14142,9 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1390) - } // end switch yys1390 - } // end for yyj1390 + z.DecStructFieldNotFound(-1, yys1187) + } // end switch yys1187 + } // end for yyj1187 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16393,16 +14152,16 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1397 int - var yyb1397 bool - var yyhl1397 bool = l >= 0 - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + var yyj1194 int + var yyb1194 bool + var yyhl1194 bool = l >= 0 + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16412,13 +14171,13 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Type = ReplicaSetConditionType(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16428,13 +14187,13 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16442,26 +14201,26 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_v1.Time{} } else { - yyv1400 := &x.LastTransitionTime - yym1401 := z.DecBinary() - _ = yym1401 + yyv1197 := &x.LastTransitionTime + yym1198 := z.DecBinary() + _ = yym1198 if false { - } else if z.HasExtensions() && z.DecExt(yyv1400) { - } else if yym1401 { - z.DecBinaryUnmarshal(yyv1400) - } else if !yym1401 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1400) + } else if z.HasExtensions() && z.DecExt(yyv1197) { + } else if yym1198 { + z.DecBinaryUnmarshal(yyv1197) + } else if !yym1198 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1197) } else { - z.DecFallback(yyv1400, false) + z.DecFallback(yyv1197, false) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16471,13 +14230,13 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Reason = string(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16488,17 +14247,17 @@ func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Message = string(r.DecodeString()) } for { - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1194++ + if yyhl1194 { + yyb1194 = yyj1194 > l } else { - yyb1397 = r.CheckBreak() + yyb1194 = r.CheckBreak() } - if yyb1397 { + if yyb1194 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1397-1, "") + z.DecStructFieldNotFound(yyj1194-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16510,38 +14269,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1404 := z.EncBinary() - _ = yym1404 + yym1201 := z.EncBinary() + _ = yym1201 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1405 := !z.EncBinary() - yy2arr1405 := z.EncBasicHandle().StructToArray - var yyq1405 [4]bool - _, _, _ = yysep1405, yyq1405, yy2arr1405 - const yyr1405 bool = false - yyq1405[0] = x.Kind != "" - yyq1405[1] = x.APIVersion != "" - yyq1405[2] = true - yyq1405[3] = true - var yynn1405 int - if yyr1405 || yy2arr1405 { + yysep1202 := !z.EncBinary() + yy2arr1202 := z.EncBasicHandle().StructToArray + var yyq1202 [4]bool + _, _, _ = yysep1202, yyq1202, yy2arr1202 + const yyr1202 bool = false + yyq1202[0] = x.Kind != "" + yyq1202[1] = x.APIVersion != "" + yyq1202[2] = true + yyq1202[3] = true + var yynn1202 int + if yyr1202 || yy2arr1202 { r.EncodeArrayStart(4) } else { - yynn1405 = 0 - for _, b := range yyq1405 { + yynn1202 = 0 + for _, b := range yyq1202 { if b { - yynn1405++ + yynn1202++ } } - r.EncodeMapStart(yynn1405) - yynn1405 = 0 + r.EncodeMapStart(yynn1202) + yynn1202 = 0 } - if yyr1405 || yy2arr1405 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1405[0] { - yym1407 := z.EncBinary() - _ = yym1407 + if yyq1202[0] { + yym1204 := z.EncBinary() + _ = yym1204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -16550,23 +14309,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1405[0] { + if yyq1202[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1408 := z.EncBinary() - _ = yym1408 + yym1205 := z.EncBinary() + _ = yym1205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1405 || yy2arr1405 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1405[1] { - yym1410 := z.EncBinary() - _ = yym1410 + if yyq1202[1] { + yym1207 := z.EncBinary() + _ = yym1207 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -16575,53 +14334,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1405[1] { + if yyq1202[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1411 := z.EncBinary() - _ = yym1411 + yym1208 := z.EncBinary() + _ = yym1208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1405 || yy2arr1405 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1405[2] { - yy1413 := &x.ObjectMeta - yy1413.CodecEncodeSelf(e) + if yyq1202[2] { + yy1210 := &x.ObjectMeta + yy1210.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1405[2] { + if yyq1202[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1414 := &x.ObjectMeta - yy1414.CodecEncodeSelf(e) + yy1211 := &x.ObjectMeta + yy1211.CodecEncodeSelf(e) } } - if yyr1405 || yy2arr1405 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1405[3] { - yy1416 := &x.Spec - yy1416.CodecEncodeSelf(e) + if yyq1202[3] { + yy1213 := &x.Spec + yy1213.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1405[3] { + if yyq1202[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1417 := &x.Spec - yy1417.CodecEncodeSelf(e) + yy1214 := &x.Spec + yy1214.CodecEncodeSelf(e) } } - if yyr1405 || yy2arr1405 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16634,25 +14393,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1418 := z.DecBinary() - _ = yym1418 + yym1215 := z.DecBinary() + _ = yym1215 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1419 := r.ContainerType() - if yyct1419 == codecSelferValueTypeMap1234 { - yyl1419 := r.ReadMapStart() - if yyl1419 == 0 { + yyct1216 := r.ContainerType() + if yyct1216 == codecSelferValueTypeMap1234 { + yyl1216 := r.ReadMapStart() + if yyl1216 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1419, d) + x.codecDecodeSelfFromMap(yyl1216, d) } - } else if yyct1419 == codecSelferValueTypeArray1234 { - yyl1419 := r.ReadArrayStart() - if yyl1419 == 0 { + } else if yyct1216 == codecSelferValueTypeArray1234 { + yyl1216 := r.ReadArrayStart() + if yyl1216 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1419, d) + x.codecDecodeSelfFromArray(yyl1216, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16664,12 +14423,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1420Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1420Slc - var yyhl1420 bool = l >= 0 - for yyj1420 := 0; ; yyj1420++ { - if yyhl1420 { - if yyj1420 >= l { + var yys1217Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1217Slc + var yyhl1217 bool = l >= 0 + for yyj1217 := 0; ; yyj1217++ { + if yyhl1217 { + if yyj1217 >= l { break } } else { @@ -16678,10 +14437,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1420Slc = r.DecodeBytes(yys1420Slc, true, true) - yys1420 := string(yys1420Slc) + yys1217Slc = r.DecodeBytes(yys1217Slc, true, true) + yys1217 := string(yys1217Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1420 { + switch yys1217 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -16698,20 +14457,20 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1423 := &x.ObjectMeta - yyv1423.CodecDecodeSelf(d) + yyv1220 := &x.ObjectMeta + yyv1220.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1424 := &x.Spec - yyv1424.CodecDecodeSelf(d) + yyv1221 := &x.Spec + yyv1221.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1420) - } // end switch yys1420 - } // end for yyj1420 + z.DecStructFieldNotFound(-1, yys1217) + } // end switch yys1217 + } // end for yyj1217 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16719,16 +14478,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1425 int - var yyb1425 bool - var yyhl1425 bool = l >= 0 - yyj1425++ - if yyhl1425 { - yyb1425 = yyj1425 > l + var yyj1222 int + var yyb1222 bool + var yyhl1222 bool = l >= 0 + yyj1222++ + if yyhl1222 { + yyb1222 = yyj1222 > l } else { - yyb1425 = r.CheckBreak() + yyb1222 = r.CheckBreak() } - if yyb1425 { + if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16738,13 +14497,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1425++ - if yyhl1425 { - yyb1425 = yyj1425 > l + yyj1222++ + if yyhl1222 { + yyb1222 = yyj1222 > l } else { - yyb1425 = r.CheckBreak() + yyb1222 = r.CheckBreak() } - if yyb1425 { + if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16754,13 +14513,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1425++ - if yyhl1425 { - yyb1425 = yyj1425 > l + yyj1222++ + if yyhl1222 { + yyb1222 = yyj1222 > l } else { - yyb1425 = r.CheckBreak() + yyb1222 = r.CheckBreak() } - if yyb1425 { + if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16768,16 +14527,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1428 := &x.ObjectMeta - yyv1428.CodecDecodeSelf(d) + yyv1225 := &x.ObjectMeta + yyv1225.CodecDecodeSelf(d) } - yyj1425++ - if yyhl1425 { - yyb1425 = yyj1425 > l + yyj1222++ + if yyhl1222 { + yyb1222 = yyj1222 > l } else { - yyb1425 = r.CheckBreak() + yyb1222 = r.CheckBreak() } - if yyb1425 { + if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16785,21 +14544,21 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1429 := &x.Spec - yyv1429.CodecDecodeSelf(d) + yyv1226 := &x.Spec + yyv1226.CodecDecodeSelf(d) } for { - yyj1425++ - if yyhl1425 { - yyb1425 = yyj1425 > l + yyj1222++ + if yyhl1222 { + yyb1222 = yyj1222 > l } else { - yyb1425 = r.CheckBreak() + yyb1222 = r.CheckBreak() } - if yyb1425 { + if yyb1222 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1425-1, "") + z.DecStructFieldNotFound(yyj1222-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16811,44 +14570,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1430 := z.EncBinary() - _ = yym1430 + yym1227 := z.EncBinary() + _ = yym1227 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1431 := !z.EncBinary() - yy2arr1431 := z.EncBasicHandle().StructToArray - var yyq1431 [14]bool - _, _, _ = yysep1431, yyq1431, yy2arr1431 - const yyr1431 bool = false - yyq1431[0] = x.Privileged != false - yyq1431[1] = len(x.DefaultAddCapabilities) != 0 - yyq1431[2] = len(x.RequiredDropCapabilities) != 0 - yyq1431[3] = len(x.AllowedCapabilities) != 0 - yyq1431[4] = len(x.Volumes) != 0 - yyq1431[5] = x.HostNetwork != false - yyq1431[6] = len(x.HostPorts) != 0 - yyq1431[7] = x.HostPID != false - yyq1431[8] = x.HostIPC != false - yyq1431[13] = x.ReadOnlyRootFilesystem != false - var yynn1431 int - if yyr1431 || yy2arr1431 { + yysep1228 := !z.EncBinary() + yy2arr1228 := z.EncBasicHandle().StructToArray + var yyq1228 [14]bool + _, _, _ = yysep1228, yyq1228, yy2arr1228 + const yyr1228 bool = false + yyq1228[0] = x.Privileged != false + yyq1228[1] = len(x.DefaultAddCapabilities) != 0 + yyq1228[2] = len(x.RequiredDropCapabilities) != 0 + yyq1228[3] = len(x.AllowedCapabilities) != 0 + yyq1228[4] = len(x.Volumes) != 0 + yyq1228[5] = x.HostNetwork != false + yyq1228[6] = len(x.HostPorts) != 0 + yyq1228[7] = x.HostPID != false + yyq1228[8] = x.HostIPC != false + yyq1228[13] = x.ReadOnlyRootFilesystem != false + var yynn1228 int + if yyr1228 || yy2arr1228 { r.EncodeArrayStart(14) } else { - yynn1431 = 4 - for _, b := range yyq1431 { + yynn1228 = 4 + for _, b := range yyq1228 { if b { - yynn1431++ + yynn1228++ } } - r.EncodeMapStart(yynn1431) - yynn1431 = 0 + r.EncodeMapStart(yynn1228) + yynn1228 = 0 } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[0] { - yym1433 := z.EncBinary() - _ = yym1433 + if yyq1228[0] { + yym1230 := z.EncBinary() + _ = yym1230 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -16857,26 +14616,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1431[0] { + if yyq1228[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1434 := z.EncBinary() - _ = yym1434 + yym1231 := z.EncBinary() + _ = yym1231 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[1] { + if yyq1228[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1436 := z.EncBinary() - _ = yym1436 + yym1233 := z.EncBinary() + _ = yym1233 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16886,15 +14645,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1431[1] { + if yyq1228[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1437 := z.EncBinary() - _ = yym1437 + yym1234 := z.EncBinary() + _ = yym1234 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16902,14 +14661,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[2] { + if yyq1228[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1439 := z.EncBinary() - _ = yym1439 + yym1236 := z.EncBinary() + _ = yym1236 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16919,15 +14678,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1431[2] { + if yyq1228[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1440 := z.EncBinary() - _ = yym1440 + yym1237 := z.EncBinary() + _ = yym1237 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16935,14 +14694,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[3] { + if yyq1228[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1442 := z.EncBinary() - _ = yym1442 + yym1239 := z.EncBinary() + _ = yym1239 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16952,15 +14711,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1431[3] { + if yyq1228[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1443 := z.EncBinary() - _ = yym1443 + yym1240 := z.EncBinary() + _ = yym1240 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16968,14 +14727,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[4] { + if yyq1228[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym1445 := z.EncBinary() - _ = yym1445 + yym1242 := z.EncBinary() + _ = yym1242 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16985,15 +14744,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1431[4] { + if yyq1228[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1446 := z.EncBinary() - _ = yym1446 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -17001,11 +14760,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[5] { - yym1448 := z.EncBinary() - _ = yym1448 + if yyq1228[5] { + yym1245 := z.EncBinary() + _ = yym1245 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -17014,26 +14773,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1431[5] { + if yyq1228[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1449 := z.EncBinary() - _ = yym1449 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[6] { + if yyq1228[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym1451 := z.EncBinary() - _ = yym1451 + yym1248 := z.EncBinary() + _ = yym1248 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17043,15 +14802,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1431[6] { + if yyq1228[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPorts == nil { r.EncodeNil() } else { - yym1452 := z.EncBinary() - _ = yym1452 + yym1249 := z.EncBinary() + _ = yym1249 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17059,11 +14818,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[7] { - yym1454 := z.EncBinary() - _ = yym1454 + if yyq1228[7] { + yym1251 := z.EncBinary() + _ = yym1251 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -17072,23 +14831,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1431[7] { + if yyq1228[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1455 := z.EncBinary() - _ = yym1455 + yym1252 := z.EncBinary() + _ = yym1252 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[8] { - yym1457 := z.EncBinary() - _ = yym1457 + if yyq1228[8] { + yym1254 := z.EncBinary() + _ = yym1254 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -17097,67 +14856,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1431[8] { + if yyq1228[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1458 := z.EncBinary() - _ = yym1458 + yym1255 := z.EncBinary() + _ = yym1255 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1460 := &x.SELinux - yy1460.CodecEncodeSelf(e) + yy1257 := &x.SELinux + yy1257.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1461 := &x.SELinux - yy1461.CodecEncodeSelf(e) + yy1258 := &x.SELinux + yy1258.CodecEncodeSelf(e) } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1463 := &x.RunAsUser - yy1463.CodecEncodeSelf(e) + yy1260 := &x.RunAsUser + yy1260.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1464 := &x.RunAsUser - yy1464.CodecEncodeSelf(e) + yy1261 := &x.RunAsUser + yy1261.CodecEncodeSelf(e) } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1466 := &x.SupplementalGroups - yy1466.CodecEncodeSelf(e) + yy1263 := &x.SupplementalGroups + yy1263.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1467 := &x.SupplementalGroups - yy1467.CodecEncodeSelf(e) + yy1264 := &x.SupplementalGroups + yy1264.CodecEncodeSelf(e) } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1469 := &x.FSGroup - yy1469.CodecEncodeSelf(e) + yy1266 := &x.FSGroup + yy1266.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1470 := &x.FSGroup - yy1470.CodecEncodeSelf(e) + yy1267 := &x.FSGroup + yy1267.CodecEncodeSelf(e) } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1431[13] { - yym1472 := z.EncBinary() - _ = yym1472 + if yyq1228[13] { + yym1269 := z.EncBinary() + _ = yym1269 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -17166,19 +14925,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1431[13] { + if yyq1228[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1473 := z.EncBinary() - _ = yym1473 + yym1270 := z.EncBinary() + _ = yym1270 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr1431 || yy2arr1431 { + if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17191,25 +14950,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1474 := z.DecBinary() - _ = yym1474 + yym1271 := z.DecBinary() + _ = yym1271 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1475 := r.ContainerType() - if yyct1475 == codecSelferValueTypeMap1234 { - yyl1475 := r.ReadMapStart() - if yyl1475 == 0 { + yyct1272 := r.ContainerType() + if yyct1272 == codecSelferValueTypeMap1234 { + yyl1272 := r.ReadMapStart() + if yyl1272 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1475, d) + x.codecDecodeSelfFromMap(yyl1272, d) } - } else if yyct1475 == codecSelferValueTypeArray1234 { - yyl1475 := r.ReadArrayStart() - if yyl1475 == 0 { + } else if yyct1272 == codecSelferValueTypeArray1234 { + yyl1272 := r.ReadArrayStart() + if yyl1272 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1475, d) + x.codecDecodeSelfFromArray(yyl1272, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17221,12 +14980,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1476Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1476Slc - var yyhl1476 bool = l >= 0 - for yyj1476 := 0; ; yyj1476++ { - if yyhl1476 { - if yyj1476 >= l { + var yys1273Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1273Slc + var yyhl1273 bool = l >= 0 + for yyj1273 := 0; ; yyj1273++ { + if yyhl1273 { + if yyj1273 >= l { break } } else { @@ -17235,10 +14994,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1476Slc = r.DecodeBytes(yys1476Slc, true, true) - yys1476 := string(yys1476Slc) + yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) + yys1273 := string(yys1273Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1476 { + switch yys1273 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -17249,48 +15008,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1478 := &x.DefaultAddCapabilities - yym1479 := z.DecBinary() - _ = yym1479 + yyv1275 := &x.DefaultAddCapabilities + yym1276 := z.DecBinary() + _ = yym1276 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1478), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1275), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1480 := &x.RequiredDropCapabilities - yym1481 := z.DecBinary() - _ = yym1481 + yyv1277 := &x.RequiredDropCapabilities + yym1278 := z.DecBinary() + _ = yym1278 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1480), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1277), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1482 := &x.AllowedCapabilities - yym1483 := z.DecBinary() - _ = yym1483 + yyv1279 := &x.AllowedCapabilities + yym1280 := z.DecBinary() + _ = yym1280 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1482), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1279), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1484 := &x.Volumes - yym1485 := z.DecBinary() - _ = yym1485 + yyv1281 := &x.Volumes + yym1282 := z.DecBinary() + _ = yym1282 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1484), d) + h.decSliceFSType((*[]FSType)(yyv1281), d) } } case "hostNetwork": @@ -17303,12 +15062,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1487 := &x.HostPorts - yym1488 := z.DecBinary() - _ = yym1488 + yyv1284 := &x.HostPorts + yym1285 := z.DecBinary() + _ = yym1285 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1487), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1284), d) } } case "hostPID": @@ -17327,29 +15086,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1491 := &x.SELinux - yyv1491.CodecDecodeSelf(d) + yyv1288 := &x.SELinux + yyv1288.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1492 := &x.RunAsUser - yyv1492.CodecDecodeSelf(d) + yyv1289 := &x.RunAsUser + yyv1289.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1493 := &x.SupplementalGroups - yyv1493.CodecDecodeSelf(d) + yyv1290 := &x.SupplementalGroups + yyv1290.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1494 := &x.FSGroup - yyv1494.CodecDecodeSelf(d) + yyv1291 := &x.FSGroup + yyv1291.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -17358,9 +15117,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1476) - } // end switch yys1476 - } // end for yyj1476 + z.DecStructFieldNotFound(-1, yys1273) + } // end switch yys1273 + } // end for yyj1273 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17368,16 +15127,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1496 int - var yyb1496 bool - var yyhl1496 bool = l >= 0 - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + var yyj1293 int + var yyb1293 bool + var yyhl1293 bool = l >= 0 + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17387,13 +15146,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17401,21 +15160,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1498 := &x.DefaultAddCapabilities - yym1499 := z.DecBinary() - _ = yym1499 + yyv1295 := &x.DefaultAddCapabilities + yym1296 := z.DecBinary() + _ = yym1296 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1498), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1295), d) } } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17423,21 +15182,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1500 := &x.RequiredDropCapabilities - yym1501 := z.DecBinary() - _ = yym1501 + yyv1297 := &x.RequiredDropCapabilities + yym1298 := z.DecBinary() + _ = yym1298 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1500), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1297), d) } } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17445,21 +15204,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1502 := &x.AllowedCapabilities - yym1503 := z.DecBinary() - _ = yym1503 + yyv1299 := &x.AllowedCapabilities + yym1300 := z.DecBinary() + _ = yym1300 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1502), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1299), d) } } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17467,21 +15226,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1504 := &x.Volumes - yym1505 := z.DecBinary() - _ = yym1505 + yyv1301 := &x.Volumes + yym1302 := z.DecBinary() + _ = yym1302 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1504), d) + h.decSliceFSType((*[]FSType)(yyv1301), d) } } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17491,13 +15250,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17505,21 +15264,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1507 := &x.HostPorts - yym1508 := z.DecBinary() - _ = yym1508 + yyv1304 := &x.HostPorts + yym1305 := z.DecBinary() + _ = yym1305 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1507), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1304), d) } } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17529,13 +15288,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17545,13 +15304,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17559,16 +15318,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1511 := &x.SELinux - yyv1511.CodecDecodeSelf(d) + yyv1308 := &x.SELinux + yyv1308.CodecDecodeSelf(d) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17576,16 +15335,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1512 := &x.RunAsUser - yyv1512.CodecDecodeSelf(d) + yyv1309 := &x.RunAsUser + yyv1309.CodecDecodeSelf(d) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17593,16 +15352,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1513 := &x.SupplementalGroups - yyv1513.CodecDecodeSelf(d) + yyv1310 := &x.SupplementalGroups + yyv1310.CodecDecodeSelf(d) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17610,16 +15369,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1514 := &x.FSGroup - yyv1514.CodecDecodeSelf(d) + yyv1311 := &x.FSGroup + yyv1311.CodecDecodeSelf(d) } - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17630,17 +15389,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj1496++ - if yyhl1496 { - yyb1496 = yyj1496 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1496 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1496 { + if yyb1293 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1496-1, "") + z.DecStructFieldNotFound(yyj1293-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17649,8 +15408,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1516 := z.EncBinary() - _ = yym1516 + yym1313 := z.EncBinary() + _ = yym1313 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17662,8 +15421,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1517 := z.DecBinary() - _ = yym1517 + yym1314 := z.DecBinary() + _ = yym1314 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17678,33 +15437,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1518 := z.EncBinary() - _ = yym1518 + yym1315 := z.EncBinary() + _ = yym1315 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1519 := !z.EncBinary() - yy2arr1519 := z.EncBasicHandle().StructToArray - var yyq1519 [2]bool - _, _, _ = yysep1519, yyq1519, yy2arr1519 - const yyr1519 bool = false - var yynn1519 int - if yyr1519 || yy2arr1519 { + yysep1316 := !z.EncBinary() + yy2arr1316 := z.EncBasicHandle().StructToArray + var yyq1316 [2]bool + _, _, _ = yysep1316, yyq1316, yy2arr1316 + const yyr1316 bool = false + var yynn1316 int + if yyr1316 || yy2arr1316 { r.EncodeArrayStart(2) } else { - yynn1519 = 2 - for _, b := range yyq1519 { + yynn1316 = 2 + for _, b := range yyq1316 { if b { - yynn1519++ + yynn1316++ } } - r.EncodeMapStart(yynn1519) - yynn1519 = 0 + r.EncodeMapStart(yynn1316) + yynn1316 = 0 } - if yyr1519 || yy2arr1519 { + if yyr1316 || yy2arr1316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1521 := z.EncBinary() - _ = yym1521 + yym1318 := z.EncBinary() + _ = yym1318 if false { } else { r.EncodeInt(int64(x.Min)) @@ -17713,17 +15472,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1522 := z.EncBinary() - _ = yym1522 + yym1319 := z.EncBinary() + _ = yym1319 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1519 || yy2arr1519 { + if yyr1316 || yy2arr1316 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1524 := z.EncBinary() - _ = yym1524 + yym1321 := z.EncBinary() + _ = yym1321 if false { } else { r.EncodeInt(int64(x.Max)) @@ -17732,14 +15491,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1525 := z.EncBinary() - _ = yym1525 + yym1322 := z.EncBinary() + _ = yym1322 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1519 || yy2arr1519 { + if yyr1316 || yy2arr1316 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17752,25 +15511,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1526 := z.DecBinary() - _ = yym1526 + yym1323 := z.DecBinary() + _ = yym1323 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1527 := r.ContainerType() - if yyct1527 == codecSelferValueTypeMap1234 { - yyl1527 := r.ReadMapStart() - if yyl1527 == 0 { + yyct1324 := r.ContainerType() + if yyct1324 == codecSelferValueTypeMap1234 { + yyl1324 := r.ReadMapStart() + if yyl1324 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1527, d) + x.codecDecodeSelfFromMap(yyl1324, d) } - } else if yyct1527 == codecSelferValueTypeArray1234 { - yyl1527 := r.ReadArrayStart() - if yyl1527 == 0 { + } else if yyct1324 == codecSelferValueTypeArray1234 { + yyl1324 := r.ReadArrayStart() + if yyl1324 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1527, d) + x.codecDecodeSelfFromArray(yyl1324, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17782,12 +15541,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1528Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1528Slc - var yyhl1528 bool = l >= 0 - for yyj1528 := 0; ; yyj1528++ { - if yyhl1528 { - if yyj1528 >= l { + var yys1325Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1325Slc + var yyhl1325 bool = l >= 0 + for yyj1325 := 0; ; yyj1325++ { + if yyhl1325 { + if yyj1325 >= l { break } } else { @@ -17796,10 +15555,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1528Slc = r.DecodeBytes(yys1528Slc, true, true) - yys1528 := string(yys1528Slc) + yys1325Slc = r.DecodeBytes(yys1325Slc, true, true) + yys1325 := string(yys1325Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1528 { + switch yys1325 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -17813,9 +15572,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1528) - } // end switch yys1528 - } // end for yyj1528 + z.DecStructFieldNotFound(-1, yys1325) + } // end switch yys1325 + } // end for yyj1325 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17823,16 +15582,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1531 int - var yyb1531 bool - var yyhl1531 bool = l >= 0 - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l + var yyj1328 int + var yyb1328 bool + var yyhl1328 bool = l >= 0 + yyj1328++ + if yyhl1328 { + yyb1328 = yyj1328 > l } else { - yyb1531 = r.CheckBreak() + yyb1328 = r.CheckBreak() } - if yyb1531 { + if yyb1328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17842,13 +15601,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int32(r.DecodeInt(32)) } - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l + yyj1328++ + if yyhl1328 { + yyb1328 = yyj1328 > l } else { - yyb1531 = r.CheckBreak() + yyb1328 = r.CheckBreak() } - if yyb1531 { + if yyb1328 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17859,17 +15618,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } for { - yyj1531++ - if yyhl1531 { - yyb1531 = yyj1531 > l + yyj1328++ + if yyhl1328 { + yyb1328 = yyj1328 > l } else { - yyb1531 = r.CheckBreak() + yyb1328 = r.CheckBreak() } - if yyb1531 { + if yyb1328 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1531-1, "") + z.DecStructFieldNotFound(yyj1328-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17881,31 +15640,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1534 := z.EncBinary() - _ = yym1534 + yym1331 := z.EncBinary() + _ = yym1331 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1535 := !z.EncBinary() - yy2arr1535 := z.EncBasicHandle().StructToArray - var yyq1535 [2]bool - _, _, _ = yysep1535, yyq1535, yy2arr1535 - const yyr1535 bool = false - yyq1535[1] = x.SELinuxOptions != nil - var yynn1535 int - if yyr1535 || yy2arr1535 { + yysep1332 := !z.EncBinary() + yy2arr1332 := z.EncBasicHandle().StructToArray + var yyq1332 [2]bool + _, _, _ = yysep1332, yyq1332, yy2arr1332 + const yyr1332 bool = false + yyq1332[1] = x.SELinuxOptions != nil + var yynn1332 int + if yyr1332 || yy2arr1332 { r.EncodeArrayStart(2) } else { - yynn1535 = 1 - for _, b := range yyq1535 { + yynn1332 = 1 + for _, b := range yyq1332 { if b { - yynn1535++ + yynn1332++ } } - r.EncodeMapStart(yynn1535) - yynn1535 = 0 + r.EncodeMapStart(yynn1332) + yynn1332 = 0 } - if yyr1535 || yy2arr1535 { + if yyr1332 || yy2arr1332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -17914,9 +15673,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1535 || yy2arr1535 { + if yyr1332 || yy2arr1332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1535[1] { + if yyq1332[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -17926,7 +15685,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1535[1] { + if yyq1332[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17937,7 +15696,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1535 || yy2arr1535 { + if yyr1332 || yy2arr1332 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17950,25 +15709,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1538 := z.DecBinary() - _ = yym1538 + yym1335 := z.DecBinary() + _ = yym1335 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1539 := r.ContainerType() - if yyct1539 == codecSelferValueTypeMap1234 { - yyl1539 := r.ReadMapStart() - if yyl1539 == 0 { + yyct1336 := r.ContainerType() + if yyct1336 == codecSelferValueTypeMap1234 { + yyl1336 := r.ReadMapStart() + if yyl1336 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1539, d) + x.codecDecodeSelfFromMap(yyl1336, d) } - } else if yyct1539 == codecSelferValueTypeArray1234 { - yyl1539 := r.ReadArrayStart() - if yyl1539 == 0 { + } else if yyct1336 == codecSelferValueTypeArray1234 { + yyl1336 := r.ReadArrayStart() + if yyl1336 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1539, d) + x.codecDecodeSelfFromArray(yyl1336, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17980,12 +15739,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1540Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1540Slc - var yyhl1540 bool = l >= 0 - for yyj1540 := 0; ; yyj1540++ { - if yyhl1540 { - if yyj1540 >= l { + var yys1337Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1337Slc + var yyhl1337 bool = l >= 0 + for yyj1337 := 0; ; yyj1337++ { + if yyhl1337 { + if yyj1337 >= l { break } } else { @@ -17994,10 +15753,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1540Slc = r.DecodeBytes(yys1540Slc, true, true) - yys1540 := string(yys1540Slc) + yys1337Slc = r.DecodeBytes(yys1337Slc, true, true) + yys1337 := string(yys1337Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1540 { + switch yys1337 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18016,9 +15775,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1540) - } // end switch yys1540 - } // end for yyj1540 + z.DecStructFieldNotFound(-1, yys1337) + } // end switch yys1337 + } // end for yyj1337 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18026,16 +15785,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1543 int - var yyb1543 bool - var yyhl1543 bool = l >= 0 - yyj1543++ - if yyhl1543 { - yyb1543 = yyj1543 > l + var yyj1340 int + var yyb1340 bool + var yyhl1340 bool = l >= 0 + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1543 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1543 { + if yyb1340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18045,13 +15804,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj1543++ - if yyhl1543 { - yyb1543 = yyj1543 > l + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1543 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1543 { + if yyb1340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18067,17 +15826,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj1543++ - if yyhl1543 { - yyb1543 = yyj1543 > l + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1543 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1543 { + if yyb1340 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1543-1, "") + z.DecStructFieldNotFound(yyj1340-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18086,8 +15845,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1546 := z.EncBinary() - _ = yym1546 + yym1343 := z.EncBinary() + _ = yym1343 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18099,8 +15858,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1547 := z.DecBinary() - _ = yym1547 + yym1344 := z.DecBinary() + _ = yym1344 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18115,31 +15874,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1548 := z.EncBinary() - _ = yym1548 + yym1345 := z.EncBinary() + _ = yym1345 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1549 := !z.EncBinary() - yy2arr1549 := z.EncBasicHandle().StructToArray - var yyq1549 [2]bool - _, _, _ = yysep1549, yyq1549, yy2arr1549 - const yyr1549 bool = false - yyq1549[1] = len(x.Ranges) != 0 - var yynn1549 int - if yyr1549 || yy2arr1549 { + yysep1346 := !z.EncBinary() + yy2arr1346 := z.EncBasicHandle().StructToArray + var yyq1346 [2]bool + _, _, _ = yysep1346, yyq1346, yy2arr1346 + const yyr1346 bool = false + yyq1346[1] = len(x.Ranges) != 0 + var yynn1346 int + if yyr1346 || yy2arr1346 { r.EncodeArrayStart(2) } else { - yynn1549 = 1 - for _, b := range yyq1549 { + yynn1346 = 1 + for _, b := range yyq1346 { if b { - yynn1549++ + yynn1346++ } } - r.EncodeMapStart(yynn1549) - yynn1549 = 0 + r.EncodeMapStart(yynn1346) + yynn1346 = 0 } - if yyr1549 || yy2arr1549 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -18148,14 +15907,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1549 || yy2arr1549 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1549[1] { + if yyq1346[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1552 := z.EncBinary() - _ = yym1552 + yym1349 := z.EncBinary() + _ = yym1349 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18165,15 +15924,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1549[1] { + if yyq1346[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1553 := z.EncBinary() - _ = yym1553 + yym1350 := z.EncBinary() + _ = yym1350 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18181,7 +15940,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1549 || yy2arr1549 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18194,25 +15953,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1554 := z.DecBinary() - _ = yym1554 + yym1351 := z.DecBinary() + _ = yym1351 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1555 := r.ContainerType() - if yyct1555 == codecSelferValueTypeMap1234 { - yyl1555 := r.ReadMapStart() - if yyl1555 == 0 { + yyct1352 := r.ContainerType() + if yyct1352 == codecSelferValueTypeMap1234 { + yyl1352 := r.ReadMapStart() + if yyl1352 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1555, d) + x.codecDecodeSelfFromMap(yyl1352, d) } - } else if yyct1555 == codecSelferValueTypeArray1234 { - yyl1555 := r.ReadArrayStart() - if yyl1555 == 0 { + } else if yyct1352 == codecSelferValueTypeArray1234 { + yyl1352 := r.ReadArrayStart() + if yyl1352 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1555, d) + x.codecDecodeSelfFromArray(yyl1352, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18224,12 +15983,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De 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 yys1353Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1353Slc + var yyhl1353 bool = l >= 0 + for yyj1353 := 0; ; yyj1353++ { + if yyhl1353 { + if yyj1353 >= l { break } } else { @@ -18238,10 +15997,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1556Slc = r.DecodeBytes(yys1556Slc, true, true) - yys1556 := string(yys1556Slc) + yys1353Slc = r.DecodeBytes(yys1353Slc, true, true) + yys1353 := string(yys1353Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1556 { + switch yys1353 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18252,18 +16011,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1558 := &x.Ranges - yym1559 := z.DecBinary() - _ = yym1559 + yyv1355 := &x.Ranges + yym1356 := z.DecBinary() + _ = yym1356 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1558), d) + h.decSliceIDRange((*[]IDRange)(yyv1355), d) } } default: - z.DecStructFieldNotFound(-1, yys1556) - } // end switch yys1556 - } // end for yyj1556 + z.DecStructFieldNotFound(-1, yys1353) + } // end switch yys1353 + } // end for yyj1353 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18271,16 +16030,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. 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 yyj1357 int + var yyb1357 bool + var yyhl1357 bool = l >= 0 + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1560 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1560 { + if yyb1357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18290,13 +16049,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1560 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1560 { + if yyb1357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18304,26 +16063,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1562 := &x.Ranges - yym1563 := z.DecBinary() - _ = yym1563 + yyv1359 := &x.Ranges + yym1360 := z.DecBinary() + _ = yym1360 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1562), d) + h.decSliceIDRange((*[]IDRange)(yyv1359), d) } } for { - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1560 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1560 { + if yyb1357 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1560-1, "") + z.DecStructFieldNotFound(yyj1357-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18335,33 +16094,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1564 := z.EncBinary() - _ = yym1564 + yym1361 := z.EncBinary() + _ = yym1361 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 - var yynn1565 int - if yyr1565 || yy2arr1565 { + 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 { - yynn1565 = 2 - for _, b := range yyq1565 { + yynn1362 = 2 + for _, b := range yyq1362 { if b { - yynn1565++ + yynn1362++ } } - r.EncodeMapStart(yynn1565) - yynn1565 = 0 + r.EncodeMapStart(yynn1362) + yynn1362 = 0 } - if yyr1565 || yy2arr1565 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1567 := z.EncBinary() - _ = yym1567 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else { r.EncodeInt(int64(x.Min)) @@ -18370,17 +16129,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1568 := z.EncBinary() - _ = yym1568 + yym1365 := z.EncBinary() + _ = yym1365 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1565 || yy2arr1565 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1570 := z.EncBinary() - _ = yym1570 + yym1367 := z.EncBinary() + _ = yym1367 if false { } else { r.EncodeInt(int64(x.Max)) @@ -18389,14 +16148,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1571 := z.EncBinary() - _ = yym1571 + yym1368 := z.EncBinary() + _ = yym1368 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1565 || yy2arr1565 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18409,25 +16168,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1572 := z.DecBinary() - _ = yym1572 + yym1369 := z.DecBinary() + _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1573 := r.ContainerType() - if yyct1573 == codecSelferValueTypeMap1234 { - yyl1573 := r.ReadMapStart() - if yyl1573 == 0 { + yyct1370 := r.ContainerType() + if yyct1370 == codecSelferValueTypeMap1234 { + yyl1370 := r.ReadMapStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1573, d) + x.codecDecodeSelfFromMap(yyl1370, d) } - } else if yyct1573 == codecSelferValueTypeArray1234 { - yyl1573 := r.ReadArrayStart() - if yyl1573 == 0 { + } else if yyct1370 == codecSelferValueTypeArray1234 { + yyl1370 := r.ReadArrayStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1573, d) + x.codecDecodeSelfFromArray(yyl1370, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18439,12 +16198,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1574Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1574Slc - var yyhl1574 bool = l >= 0 - for yyj1574 := 0; ; yyj1574++ { - if yyhl1574 { - if yyj1574 >= 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 { @@ -18453,10 +16212,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1574Slc = r.DecodeBytes(yys1574Slc, true, true) - yys1574 := string(yys1574Slc) + yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) + yys1371 := string(yys1371Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1574 { + switch yys1371 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -18470,9 +16229,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1574) - } // end switch yys1574 - } // end for yyj1574 + z.DecStructFieldNotFound(-1, yys1371) + } // end switch yys1371 + } // end for yyj1371 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18480,16 +16239,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1577 int - var yyb1577 bool - var yyhl1577 bool = l >= 0 - yyj1577++ - if yyhl1577 { - yyb1577 = yyj1577 > l + var yyj1374 int + var yyb1374 bool + var yyhl1374 bool = l >= 0 + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1577 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1577 { + if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18499,13 +16258,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj1577++ - if yyhl1577 { - yyb1577 = yyj1577 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1577 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1577 { + if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18516,17 +16275,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj1577++ - if yyhl1577 { - yyb1577 = yyj1577 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1577 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1577 { + if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1577-1, "") + z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18535,8 +16294,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1580 := z.EncBinary() - _ = yym1580 + yym1377 := z.EncBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18548,8 +16307,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1581 := z.DecBinary() - _ = yym1581 + yym1378 := z.DecBinary() + _ = yym1378 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18564,54 +16323,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1582 := z.EncBinary() - _ = yym1582 + yym1379 := z.EncBinary() + _ = yym1379 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1583 := !z.EncBinary() - yy2arr1583 := z.EncBasicHandle().StructToArray - var yyq1583 [2]bool - _, _, _ = yysep1583, yyq1583, yy2arr1583 - const yyr1583 bool = false - yyq1583[0] = x.Rule != "" - yyq1583[1] = len(x.Ranges) != 0 - var yynn1583 int - if yyr1583 || yy2arr1583 { + yysep1380 := !z.EncBinary() + yy2arr1380 := z.EncBasicHandle().StructToArray + var yyq1380 [2]bool + _, _, _ = yysep1380, yyq1380, yy2arr1380 + const yyr1380 bool = false + yyq1380[0] = x.Rule != "" + yyq1380[1] = len(x.Ranges) != 0 + var yynn1380 int + if yyr1380 || yy2arr1380 { r.EncodeArrayStart(2) } else { - yynn1583 = 0 - for _, b := range yyq1583 { + yynn1380 = 0 + for _, b := range yyq1380 { if b { - yynn1583++ + yynn1380++ } } - r.EncodeMapStart(yynn1583) - yynn1583 = 0 + r.EncodeMapStart(yynn1380) + yynn1380 = 0 } - if yyr1583 || yy2arr1583 { + if yyr1380 || yy2arr1380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1583[0] { + if yyq1380[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1583[0] { + if yyq1380[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1583 || yy2arr1583 { + if yyr1380 || yy2arr1380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1583[1] { + if yyq1380[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1586 := z.EncBinary() - _ = yym1586 + yym1383 := z.EncBinary() + _ = yym1383 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18621,15 +16380,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1583[1] { + if yyq1380[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1587 := z.EncBinary() - _ = yym1587 + yym1384 := z.EncBinary() + _ = yym1384 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18637,7 +16396,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1583 || yy2arr1583 { + if yyr1380 || yy2arr1380 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18650,25 +16409,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1588 := z.DecBinary() - _ = yym1588 + yym1385 := z.DecBinary() + _ = yym1385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1589 := r.ContainerType() - if yyct1589 == codecSelferValueTypeMap1234 { - yyl1589 := r.ReadMapStart() - if yyl1589 == 0 { + yyct1386 := r.ContainerType() + if yyct1386 == codecSelferValueTypeMap1234 { + yyl1386 := r.ReadMapStart() + if yyl1386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1589, d) + x.codecDecodeSelfFromMap(yyl1386, d) } - } else if yyct1589 == codecSelferValueTypeArray1234 { - yyl1589 := r.ReadArrayStart() - if yyl1589 == 0 { + } else if yyct1386 == codecSelferValueTypeArray1234 { + yyl1386 := r.ReadArrayStart() + if yyl1386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1589, d) + x.codecDecodeSelfFromArray(yyl1386, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18680,12 +16439,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1590Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1590Slc - var yyhl1590 bool = l >= 0 - for yyj1590 := 0; ; yyj1590++ { - if yyhl1590 { - if yyj1590 >= 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 { @@ -18694,10 +16453,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1590Slc = r.DecodeBytes(yys1590Slc, true, true) - yys1590 := string(yys1590Slc) + yys1387Slc = r.DecodeBytes(yys1387Slc, true, true) + yys1387 := string(yys1387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1590 { + switch yys1387 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18708,18 +16467,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1592 := &x.Ranges - yym1593 := z.DecBinary() - _ = yym1593 + yyv1389 := &x.Ranges + yym1390 := z.DecBinary() + _ = yym1390 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1592), d) + h.decSliceIDRange((*[]IDRange)(yyv1389), d) } } default: - z.DecStructFieldNotFound(-1, yys1590) - } // end switch yys1590 - } // end for yyj1590 + z.DecStructFieldNotFound(-1, yys1387) + } // end switch yys1387 + } // end for yyj1387 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18727,16 +16486,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1594 int - var yyb1594 bool - var yyhl1594 bool = l >= 0 - yyj1594++ - if yyhl1594 { - yyb1594 = yyj1594 > l + var yyj1391 int + var yyb1391 bool + var yyhl1391 bool = l >= 0 + yyj1391++ + if yyhl1391 { + yyb1391 = yyj1391 > l } else { - yyb1594 = r.CheckBreak() + yyb1391 = r.CheckBreak() } - if yyb1594 { + if yyb1391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18746,13 +16505,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj1594++ - if yyhl1594 { - yyb1594 = yyj1594 > l + yyj1391++ + if yyhl1391 { + yyb1391 = yyj1391 > l } else { - yyb1594 = r.CheckBreak() + yyb1391 = r.CheckBreak() } - if yyb1594 { + if yyb1391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18760,26 +16519,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1596 := &x.Ranges - yym1597 := z.DecBinary() - _ = yym1597 + yyv1393 := &x.Ranges + yym1394 := z.DecBinary() + _ = yym1394 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1596), d) + h.decSliceIDRange((*[]IDRange)(yyv1393), d) } } for { - yyj1594++ - if yyhl1594 { - yyb1594 = yyj1594 > l + yyj1391++ + if yyhl1391 { + yyb1391 = yyj1391 > l } else { - yyb1594 = r.CheckBreak() + yyb1391 = r.CheckBreak() } - if yyb1594 { + if yyb1391 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1594-1, "") + z.DecStructFieldNotFound(yyj1391-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18788,8 +16547,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1598 := z.EncBinary() - _ = yym1598 + yym1395 := z.EncBinary() + _ = yym1395 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18801,8 +16560,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1599 := z.DecBinary() - _ = yym1599 + yym1396 := z.DecBinary() + _ = yym1396 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18817,54 +16576,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1600 := z.EncBinary() - _ = yym1600 + yym1397 := z.EncBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1601 := !z.EncBinary() - yy2arr1601 := z.EncBasicHandle().StructToArray - var yyq1601 [2]bool - _, _, _ = yysep1601, yyq1601, yy2arr1601 - const yyr1601 bool = false - yyq1601[0] = x.Rule != "" - yyq1601[1] = len(x.Ranges) != 0 - var yynn1601 int - if yyr1601 || yy2arr1601 { + yysep1398 := !z.EncBinary() + yy2arr1398 := z.EncBasicHandle().StructToArray + var yyq1398 [2]bool + _, _, _ = yysep1398, yyq1398, yy2arr1398 + const yyr1398 bool = false + yyq1398[0] = x.Rule != "" + yyq1398[1] = len(x.Ranges) != 0 + var yynn1398 int + if yyr1398 || yy2arr1398 { r.EncodeArrayStart(2) } else { - yynn1601 = 0 - for _, b := range yyq1601 { + yynn1398 = 0 + for _, b := range yyq1398 { if b { - yynn1601++ + yynn1398++ } } - r.EncodeMapStart(yynn1601) - yynn1601 = 0 + r.EncodeMapStart(yynn1398) + yynn1398 = 0 } - if yyr1601 || yy2arr1601 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1601[0] { + if yyq1398[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1601[0] { + if yyq1398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1601 || yy2arr1601 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1601[1] { + if yyq1398[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1604 := z.EncBinary() - _ = yym1604 + yym1401 := z.EncBinary() + _ = yym1401 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18874,15 +16633,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq1601[1] { + if yyq1398[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1605 := z.EncBinary() - _ = yym1605 + yym1402 := z.EncBinary() + _ = yym1402 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18890,7 +16649,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr1601 || yy2arr1601 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18903,25 +16662,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1606 := z.DecBinary() - _ = yym1606 + yym1403 := z.DecBinary() + _ = yym1403 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1607 := r.ContainerType() - if yyct1607 == codecSelferValueTypeMap1234 { - yyl1607 := r.ReadMapStart() - if yyl1607 == 0 { + yyct1404 := r.ContainerType() + if yyct1404 == codecSelferValueTypeMap1234 { + yyl1404 := r.ReadMapStart() + if yyl1404 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1607, d) + x.codecDecodeSelfFromMap(yyl1404, d) } - } else if yyct1607 == codecSelferValueTypeArray1234 { - yyl1607 := r.ReadArrayStart() - if yyl1607 == 0 { + } else if yyct1404 == codecSelferValueTypeArray1234 { + yyl1404 := r.ReadArrayStart() + if yyl1404 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1607, d) + x.codecDecodeSelfFromArray(yyl1404, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18933,12 +16692,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1608Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1608Slc - var yyhl1608 bool = l >= 0 - for yyj1608 := 0; ; yyj1608++ { - if yyhl1608 { - if yyj1608 >= l { + var yys1405Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1405Slc + var yyhl1405 bool = l >= 0 + for yyj1405 := 0; ; yyj1405++ { + if yyhl1405 { + if yyj1405 >= l { break } } else { @@ -18947,10 +16706,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1608Slc = r.DecodeBytes(yys1608Slc, true, true) - yys1608 := string(yys1608Slc) + yys1405Slc = r.DecodeBytes(yys1405Slc, true, true) + yys1405 := string(yys1405Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1608 { + switch yys1405 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18961,18 +16720,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1610 := &x.Ranges - yym1611 := z.DecBinary() - _ = yym1611 + yyv1407 := &x.Ranges + yym1408 := z.DecBinary() + _ = yym1408 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1610), d) + h.decSliceIDRange((*[]IDRange)(yyv1407), d) } } default: - z.DecStructFieldNotFound(-1, yys1608) - } // end switch yys1608 - } // end for yyj1608 + z.DecStructFieldNotFound(-1, yys1405) + } // end switch yys1405 + } // end for yyj1405 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18980,16 +16739,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1612 int - var yyb1612 bool - var yyhl1612 bool = l >= 0 - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + var yyj1409 int + var yyb1409 bool + var yyhl1409 bool = l >= 0 + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb1612 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb1612 { + if yyb1409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18999,13 +16758,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb1612 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb1612 { + if yyb1409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19013,26 +16772,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1614 := &x.Ranges - yym1615 := z.DecBinary() - _ = yym1615 + yyv1411 := &x.Ranges + yym1412 := z.DecBinary() + _ = yym1412 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1614), d) + h.decSliceIDRange((*[]IDRange)(yyv1411), d) } } for { - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb1612 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb1612 { + if yyb1409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1612-1, "") + z.DecStructFieldNotFound(yyj1409-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19041,8 +16800,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1616 := z.EncBinary() - _ = yym1616 + yym1413 := z.EncBinary() + _ = yym1413 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19054,8 +16813,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1617 := z.DecBinary() - _ = yym1617 + yym1414 := z.DecBinary() + _ = yym1414 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19070,37 +16829,37 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1618 := z.EncBinary() - _ = yym1618 + yym1415 := z.EncBinary() + _ = yym1415 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1619 := !z.EncBinary() - yy2arr1619 := z.EncBasicHandle().StructToArray - var yyq1619 [4]bool - _, _, _ = yysep1619, yyq1619, yy2arr1619 - const yyr1619 bool = false - yyq1619[0] = x.Kind != "" - yyq1619[1] = x.APIVersion != "" - yyq1619[2] = true - var yynn1619 int - if yyr1619 || yy2arr1619 { + yysep1416 := !z.EncBinary() + yy2arr1416 := z.EncBasicHandle().StructToArray + var yyq1416 [4]bool + _, _, _ = yysep1416, yyq1416, yy2arr1416 + const yyr1416 bool = false + yyq1416[0] = x.Kind != "" + yyq1416[1] = x.APIVersion != "" + yyq1416[2] = true + var yynn1416 int + if yyr1416 || yy2arr1416 { r.EncodeArrayStart(4) } else { - yynn1619 = 1 - for _, b := range yyq1619 { + yynn1416 = 1 + for _, b := range yyq1416 { if b { - yynn1619++ + yynn1416++ } } - r.EncodeMapStart(yynn1619) - yynn1619 = 0 + r.EncodeMapStart(yynn1416) + yynn1416 = 0 } - if yyr1619 || yy2arr1619 { + if yyr1416 || yy2arr1416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1619[0] { - yym1621 := z.EncBinary() - _ = yym1621 + if yyq1416[0] { + yym1418 := z.EncBinary() + _ = yym1418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19109,23 +16868,23 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1619[0] { + if yyq1416[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1622 := z.EncBinary() - _ = yym1622 + yym1419 := z.EncBinary() + _ = yym1419 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1619 || yy2arr1619 { + if yyr1416 || yy2arr1416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1619[1] { - yym1624 := z.EncBinary() - _ = yym1624 + if yyq1416[1] { + yym1421 := z.EncBinary() + _ = yym1421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19134,54 +16893,54 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1619[1] { + if yyq1416[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1625 := z.EncBinary() - _ = yym1625 + yym1422 := z.EncBinary() + _ = yym1422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1619 || yy2arr1619 { + if yyr1416 || yy2arr1416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1619[2] { - yy1627 := &x.ListMeta - yym1628 := z.EncBinary() - _ = yym1628 + if yyq1416[2] { + yy1424 := &x.ListMeta + yym1425 := z.EncBinary() + _ = yym1425 if false { - } else if z.HasExtensions() && z.EncExt(yy1627) { + } else if z.HasExtensions() && z.EncExt(yy1424) { } else { - z.EncFallback(yy1627) + z.EncFallback(yy1424) } } else { r.EncodeNil() } } else { - if yyq1619[2] { + if yyq1416[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1629 := &x.ListMeta - yym1630 := z.EncBinary() - _ = yym1630 + yy1426 := &x.ListMeta + yym1427 := z.EncBinary() + _ = yym1427 if false { - } else if z.HasExtensions() && z.EncExt(yy1629) { + } else if z.HasExtensions() && z.EncExt(yy1426) { } else { - z.EncFallback(yy1629) + z.EncFallback(yy1426) } } } - if yyr1619 || yy2arr1619 { + if yyr1416 || yy2arr1416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1632 := z.EncBinary() - _ = yym1632 + yym1429 := z.EncBinary() + _ = yym1429 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) @@ -19194,15 +16953,15 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1633 := z.EncBinary() - _ = yym1633 + yym1430 := z.EncBinary() + _ = yym1430 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr1619 || yy2arr1619 { + if yyr1416 || yy2arr1416 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19215,25 +16974,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1634 := z.DecBinary() - _ = yym1634 + yym1431 := z.DecBinary() + _ = yym1431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1635 := r.ContainerType() - if yyct1635 == codecSelferValueTypeMap1234 { - yyl1635 := r.ReadMapStart() - if yyl1635 == 0 { + yyct1432 := r.ContainerType() + if yyct1432 == codecSelferValueTypeMap1234 { + yyl1432 := r.ReadMapStart() + if yyl1432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1635, d) + x.codecDecodeSelfFromMap(yyl1432, d) } - } else if yyct1635 == codecSelferValueTypeArray1234 { - yyl1635 := r.ReadArrayStart() - if yyl1635 == 0 { + } else if yyct1432 == codecSelferValueTypeArray1234 { + yyl1432 := r.ReadArrayStart() + if yyl1432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1635, d) + x.codecDecodeSelfFromArray(yyl1432, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19245,12 +17004,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod 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 { + var yys1433Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1433Slc + var yyhl1433 bool = l >= 0 + for yyj1433 := 0; ; yyj1433++ { + if yyhl1433 { + if yyj1433 >= l { break } } else { @@ -19259,10 +17018,10 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1636Slc = r.DecodeBytes(yys1636Slc, true, true) - yys1636 := string(yys1636Slc) + yys1433Slc = r.DecodeBytes(yys1433Slc, true, true) + yys1433 := string(yys1433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1636 { + switch yys1433 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19279,31 +17038,31 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1639 := &x.ListMeta - yym1640 := z.DecBinary() - _ = yym1640 + yyv1436 := &x.ListMeta + yym1437 := z.DecBinary() + _ = yym1437 if false { - } else if z.HasExtensions() && z.DecExt(yyv1639) { + } else if z.HasExtensions() && z.DecExt(yyv1436) { } else { - z.DecFallback(yyv1639, false) + z.DecFallback(yyv1436, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1641 := &x.Items - yym1642 := z.DecBinary() - _ = yym1642 + yyv1438 := &x.Items + yym1439 := z.DecBinary() + _ = yym1439 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1641), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1438), d) } } default: - z.DecStructFieldNotFound(-1, yys1636) - } // end switch yys1636 - } // end for yyj1636 + z.DecStructFieldNotFound(-1, yys1433) + } // end switch yys1433 + } // end for yyj1433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19311,16 +17070,16 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1643 int - var yyb1643 bool - var yyhl1643 bool = l >= 0 - yyj1643++ - if yyhl1643 { - yyb1643 = yyj1643 > l + var yyj1440 int + var yyb1440 bool + var yyhl1440 bool = l >= 0 + yyj1440++ + if yyhl1440 { + yyb1440 = yyj1440 > l } else { - yyb1643 = r.CheckBreak() + yyb1440 = r.CheckBreak() } - if yyb1643 { + if yyb1440 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19330,13 +17089,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj1643++ - if yyhl1643 { - yyb1643 = yyj1643 > l + yyj1440++ + if yyhl1440 { + yyb1440 = yyj1440 > l } else { - yyb1643 = r.CheckBreak() + yyb1440 = r.CheckBreak() } - if yyb1643 { + if yyb1440 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19346,13 +17105,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj1643++ - if yyhl1643 { - yyb1643 = yyj1643 > l + yyj1440++ + if yyhl1440 { + yyb1440 = yyj1440 > l } else { - yyb1643 = r.CheckBreak() + yyb1440 = r.CheckBreak() } - if yyb1643 { + if yyb1440 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19360,22 +17119,22 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1646 := &x.ListMeta - yym1647 := z.DecBinary() - _ = yym1647 + yyv1443 := &x.ListMeta + yym1444 := z.DecBinary() + _ = yym1444 if false { - } else if z.HasExtensions() && z.DecExt(yyv1646) { + } else if z.HasExtensions() && z.DecExt(yyv1443) { } else { - z.DecFallback(yyv1646, false) + z.DecFallback(yyv1443, false) } } - yyj1643++ - if yyhl1643 { - yyb1643 = yyj1643 > l + yyj1440++ + if yyhl1440 { + yyb1440 = yyj1440 > l } else { - yyb1643 = r.CheckBreak() + yyb1440 = r.CheckBreak() } - if yyb1643 { + if yyb1440 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19383,26 +17142,26 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1648 := &x.Items - yym1649 := z.DecBinary() - _ = yym1649 + yyv1445 := &x.Items + yym1446 := z.DecBinary() + _ = yym1446 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1648), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1445), d) } } for { - yyj1643++ - if yyhl1643 { - yyb1643 = yyj1643 > l + yyj1440++ + if yyhl1440 { + yyb1440 = yyj1440 > l } else { - yyb1643 = r.CheckBreak() + yyb1440 = r.CheckBreak() } - if yyb1643 { + if yyb1440 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1643-1, "") + z.DecStructFieldNotFound(yyj1440-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19414,38 +17173,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1650 := z.EncBinary() - _ = yym1650 + yym1447 := z.EncBinary() + _ = yym1447 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1651 := !z.EncBinary() - yy2arr1651 := z.EncBasicHandle().StructToArray - var yyq1651 [4]bool - _, _, _ = yysep1651, yyq1651, yy2arr1651 - const yyr1651 bool = false - yyq1651[0] = x.Kind != "" - yyq1651[1] = x.APIVersion != "" - yyq1651[2] = true - yyq1651[3] = true - var yynn1651 int - if yyr1651 || yy2arr1651 { + yysep1448 := !z.EncBinary() + yy2arr1448 := z.EncBasicHandle().StructToArray + var yyq1448 [4]bool + _, _, _ = yysep1448, yyq1448, yy2arr1448 + const yyr1448 bool = false + yyq1448[0] = x.Kind != "" + yyq1448[1] = x.APIVersion != "" + yyq1448[2] = true + yyq1448[3] = true + var yynn1448 int + if yyr1448 || yy2arr1448 { r.EncodeArrayStart(4) } else { - yynn1651 = 0 - for _, b := range yyq1651 { + yynn1448 = 0 + for _, b := range yyq1448 { if b { - yynn1651++ + yynn1448++ } } - r.EncodeMapStart(yynn1651) - yynn1651 = 0 + r.EncodeMapStart(yynn1448) + yynn1448 = 0 } - if yyr1651 || yy2arr1651 { + if yyr1448 || yy2arr1448 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1651[0] { - yym1653 := z.EncBinary() - _ = yym1653 + if yyq1448[0] { + yym1450 := z.EncBinary() + _ = yym1450 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19454,23 +17213,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1651[0] { + if yyq1448[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1654 := z.EncBinary() - _ = yym1654 + yym1451 := z.EncBinary() + _ = yym1451 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1651 || yy2arr1651 { + if yyr1448 || yy2arr1448 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1651[1] { - yym1656 := z.EncBinary() - _ = yym1656 + if yyq1448[1] { + yym1453 := z.EncBinary() + _ = yym1453 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19479,53 +17238,53 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1651[1] { + if yyq1448[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1657 := z.EncBinary() - _ = yym1657 + yym1454 := z.EncBinary() + _ = yym1454 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1651 || yy2arr1651 { + if yyr1448 || yy2arr1448 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1651[2] { - yy1659 := &x.ObjectMeta - yy1659.CodecEncodeSelf(e) + if yyq1448[2] { + yy1456 := &x.ObjectMeta + yy1456.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1651[2] { + if yyq1448[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1660 := &x.ObjectMeta - yy1660.CodecEncodeSelf(e) + yy1457 := &x.ObjectMeta + yy1457.CodecEncodeSelf(e) } } - if yyr1651 || yy2arr1651 { + if yyr1448 || yy2arr1448 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1651[3] { - yy1662 := &x.Spec - yy1662.CodecEncodeSelf(e) + if yyq1448[3] { + yy1459 := &x.Spec + yy1459.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1651[3] { + if yyq1448[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1663 := &x.Spec - yy1663.CodecEncodeSelf(e) + yy1460 := &x.Spec + yy1460.CodecEncodeSelf(e) } } - if yyr1651 || yy2arr1651 { + if yyr1448 || yy2arr1448 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19538,25 +17297,25 @@ func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1664 := z.DecBinary() - _ = yym1664 + yym1461 := z.DecBinary() + _ = yym1461 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1665 := r.ContainerType() - if yyct1665 == codecSelferValueTypeMap1234 { - yyl1665 := r.ReadMapStart() - if yyl1665 == 0 { + yyct1462 := r.ContainerType() + if yyct1462 == codecSelferValueTypeMap1234 { + yyl1462 := r.ReadMapStart() + if yyl1462 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1665, d) + x.codecDecodeSelfFromMap(yyl1462, d) } - } else if yyct1665 == codecSelferValueTypeArray1234 { - yyl1665 := r.ReadArrayStart() - if yyl1665 == 0 { + } else if yyct1462 == codecSelferValueTypeArray1234 { + yyl1462 := r.ReadArrayStart() + if yyl1462 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1665, d) + x.codecDecodeSelfFromArray(yyl1462, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19568,12 +17327,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1666Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1666Slc - var yyhl1666 bool = l >= 0 - for yyj1666 := 0; ; yyj1666++ { - if yyhl1666 { - if yyj1666 >= l { + var yys1463Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1463Slc + var yyhl1463 bool = l >= 0 + for yyj1463 := 0; ; yyj1463++ { + if yyhl1463 { + if yyj1463 >= l { break } } else { @@ -19582,10 +17341,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1666Slc = r.DecodeBytes(yys1666Slc, true, true) - yys1666 := string(yys1666Slc) + yys1463Slc = r.DecodeBytes(yys1463Slc, true, true) + yys1463 := string(yys1463Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1666 { + switch yys1463 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19602,20 +17361,20 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1669 := &x.ObjectMeta - yyv1669.CodecDecodeSelf(d) + yyv1466 := &x.ObjectMeta + yyv1466.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1670 := &x.Spec - yyv1670.CodecDecodeSelf(d) + yyv1467 := &x.Spec + yyv1467.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1666) - } // end switch yys1666 - } // end for yyj1666 + z.DecStructFieldNotFound(-1, yys1463) + } // end switch yys1463 + } // end for yyj1463 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19623,16 +17382,16 @@ func (x *NetworkPolicy) 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 yyj1468 int + var yyb1468 bool + var yyhl1468 bool = l >= 0 + yyj1468++ + if yyhl1468 { + yyb1468 = yyj1468 > l } else { - yyb1671 = r.CheckBreak() + yyb1468 = r.CheckBreak() } - if yyb1671 { + if yyb1468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19642,13 +17401,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1468++ + if yyhl1468 { + yyb1468 = yyj1468 > l } else { - yyb1671 = r.CheckBreak() + yyb1468 = r.CheckBreak() } - if yyb1671 { + if yyb1468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19658,13 +17417,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1468++ + if yyhl1468 { + yyb1468 = yyj1468 > l } else { - yyb1671 = r.CheckBreak() + yyb1468 = r.CheckBreak() } - if yyb1671 { + if yyb1468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19672,16 +17431,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1674 := &x.ObjectMeta - yyv1674.CodecDecodeSelf(d) + yyv1471 := &x.ObjectMeta + yyv1471.CodecDecodeSelf(d) } - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1468++ + if yyhl1468 { + yyb1468 = yyj1468 > l } else { - yyb1671 = r.CheckBreak() + yyb1468 = r.CheckBreak() } - if yyb1671 { + if yyb1468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19689,21 +17448,21 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1675 := &x.Spec - yyv1675.CodecDecodeSelf(d) + yyv1472 := &x.Spec + yyv1472.CodecDecodeSelf(d) } for { - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1468++ + if yyhl1468 { + yyb1468 = yyj1468 > l } else { - yyb1671 = r.CheckBreak() + yyb1468 = r.CheckBreak() } - if yyb1671 { + if yyb1468 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1671-1, "") + z.DecStructFieldNotFound(yyj1468-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19715,61 +17474,61 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1676 := z.EncBinary() - _ = yym1676 + yym1473 := z.EncBinary() + _ = yym1473 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1677 := !z.EncBinary() - yy2arr1677 := z.EncBasicHandle().StructToArray - var yyq1677 [2]bool - _, _, _ = yysep1677, yyq1677, yy2arr1677 - const yyr1677 bool = false - yyq1677[1] = len(x.Ingress) != 0 - var yynn1677 int - if yyr1677 || yy2arr1677 { + yysep1474 := !z.EncBinary() + yy2arr1474 := z.EncBasicHandle().StructToArray + var yyq1474 [2]bool + _, _, _ = yysep1474, yyq1474, yy2arr1474 + const yyr1474 bool = false + yyq1474[1] = len(x.Ingress) != 0 + var yynn1474 int + if yyr1474 || yy2arr1474 { r.EncodeArrayStart(2) } else { - yynn1677 = 1 - for _, b := range yyq1677 { + yynn1474 = 1 + for _, b := range yyq1474 { if b { - yynn1677++ + yynn1474++ } } - r.EncodeMapStart(yynn1677) - yynn1677 = 0 + r.EncodeMapStart(yynn1474) + yynn1474 = 0 } - if yyr1677 || yy2arr1677 { + if yyr1474 || yy2arr1474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1679 := &x.PodSelector - yym1680 := z.EncBinary() - _ = yym1680 + yy1476 := &x.PodSelector + yym1477 := z.EncBinary() + _ = yym1477 if false { - } else if z.HasExtensions() && z.EncExt(yy1679) { + } else if z.HasExtensions() && z.EncExt(yy1476) { } else { - z.EncFallback(yy1679) + z.EncFallback(yy1476) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1681 := &x.PodSelector - yym1682 := z.EncBinary() - _ = yym1682 + yy1478 := &x.PodSelector + yym1479 := z.EncBinary() + _ = yym1479 if false { - } else if z.HasExtensions() && z.EncExt(yy1681) { + } else if z.HasExtensions() && z.EncExt(yy1478) { } else { - z.EncFallback(yy1681) + z.EncFallback(yy1478) } } - if yyr1677 || yy2arr1677 { + if yyr1474 || yy2arr1474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1677[1] { + if yyq1474[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym1684 := z.EncBinary() - _ = yym1684 + yym1481 := z.EncBinary() + _ = yym1481 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19779,15 +17538,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1677[1] { + if yyq1474[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym1685 := z.EncBinary() - _ = yym1685 + yym1482 := z.EncBinary() + _ = yym1482 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19795,7 +17554,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1677 || yy2arr1677 { + if yyr1474 || yy2arr1474 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19808,25 +17567,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1686 := z.DecBinary() - _ = yym1686 + yym1483 := z.DecBinary() + _ = yym1483 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1687 := r.ContainerType() - if yyct1687 == codecSelferValueTypeMap1234 { - yyl1687 := r.ReadMapStart() - if yyl1687 == 0 { + yyct1484 := r.ContainerType() + if yyct1484 == codecSelferValueTypeMap1234 { + yyl1484 := r.ReadMapStart() + if yyl1484 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1687, d) + x.codecDecodeSelfFromMap(yyl1484, d) } - } else if yyct1687 == codecSelferValueTypeArray1234 { - yyl1687 := r.ReadArrayStart() - if yyl1687 == 0 { + } else if yyct1484 == codecSelferValueTypeArray1234 { + yyl1484 := r.ReadArrayStart() + if yyl1484 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1687, d) + x.codecDecodeSelfFromArray(yyl1484, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19838,12 +17597,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1688Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1688Slc - var yyhl1688 bool = l >= 0 - for yyj1688 := 0; ; yyj1688++ { - if yyhl1688 { - if yyj1688 >= l { + var yys1485Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1485Slc + var yyhl1485 bool = l >= 0 + for yyj1485 := 0; ; yyj1485++ { + if yyhl1485 { + if yyj1485 >= l { break } } else { @@ -19852,39 +17611,39 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1688Slc = r.DecodeBytes(yys1688Slc, true, true) - yys1688 := string(yys1688Slc) + yys1485Slc = r.DecodeBytes(yys1485Slc, true, true) + yys1485 := string(yys1485Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1688 { + switch yys1485 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = pkg1_v1.LabelSelector{} } else { - yyv1689 := &x.PodSelector - yym1690 := z.DecBinary() - _ = yym1690 + yyv1486 := &x.PodSelector + yym1487 := z.DecBinary() + _ = yym1487 if false { - } else if z.HasExtensions() && z.DecExt(yyv1689) { + } else if z.HasExtensions() && z.DecExt(yyv1486) { } else { - z.DecFallback(yyv1689, false) + z.DecFallback(yyv1486, false) } } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1691 := &x.Ingress - yym1692 := z.DecBinary() - _ = yym1692 + yyv1488 := &x.Ingress + yym1489 := z.DecBinary() + _ = yym1489 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1691), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1488), d) } } default: - z.DecStructFieldNotFound(-1, yys1688) - } // end switch yys1688 - } // end for yyj1688 + z.DecStructFieldNotFound(-1, yys1485) + } // end switch yys1485 + } // end for yyj1485 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19892,16 +17651,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1693 int - var yyb1693 bool - var yyhl1693 bool = l >= 0 - yyj1693++ - if yyhl1693 { - yyb1693 = yyj1693 > l + var yyj1490 int + var yyb1490 bool + var yyhl1490 bool = l >= 0 + yyj1490++ + if yyhl1490 { + yyb1490 = yyj1490 > l } else { - yyb1693 = r.CheckBreak() + yyb1490 = r.CheckBreak() } - if yyb1693 { + if yyb1490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19909,22 +17668,22 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PodSelector = pkg1_v1.LabelSelector{} } else { - yyv1694 := &x.PodSelector - yym1695 := z.DecBinary() - _ = yym1695 + yyv1491 := &x.PodSelector + yym1492 := z.DecBinary() + _ = yym1492 if false { - } else if z.HasExtensions() && z.DecExt(yyv1694) { + } else if z.HasExtensions() && z.DecExt(yyv1491) { } else { - z.DecFallback(yyv1694, false) + z.DecFallback(yyv1491, false) } } - yyj1693++ - if yyhl1693 { - yyb1693 = yyj1693 > l + yyj1490++ + if yyhl1490 { + yyb1490 = yyj1490 > l } else { - yyb1693 = r.CheckBreak() + yyb1490 = r.CheckBreak() } - if yyb1693 { + if yyb1490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19932,26 +17691,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1696 := &x.Ingress - yym1697 := z.DecBinary() - _ = yym1697 + yyv1493 := &x.Ingress + yym1494 := z.DecBinary() + _ = yym1494 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1696), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1493), d) } } for { - yyj1693++ - if yyhl1693 { - yyb1693 = yyj1693 > l + yyj1490++ + if yyhl1490 { + yyb1490 = yyj1490 > l } else { - yyb1693 = r.CheckBreak() + yyb1490 = r.CheckBreak() } - if yyb1693 { + if yyb1490 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1693-1, "") + z.DecStructFieldNotFound(yyj1490-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19963,39 +17722,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1698 := z.EncBinary() - _ = yym1698 + yym1495 := z.EncBinary() + _ = yym1495 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1699 := !z.EncBinary() - yy2arr1699 := z.EncBasicHandle().StructToArray - var yyq1699 [2]bool - _, _, _ = yysep1699, yyq1699, yy2arr1699 - const yyr1699 bool = false - yyq1699[0] = len(x.Ports) != 0 - yyq1699[1] = len(x.From) != 0 - var yynn1699 int - if yyr1699 || yy2arr1699 { + yysep1496 := !z.EncBinary() + yy2arr1496 := z.EncBasicHandle().StructToArray + var yyq1496 [2]bool + _, _, _ = yysep1496, yyq1496, yy2arr1496 + const yyr1496 bool = false + yyq1496[0] = len(x.Ports) != 0 + yyq1496[1] = len(x.From) != 0 + var yynn1496 int + if yyr1496 || yy2arr1496 { r.EncodeArrayStart(2) } else { - yynn1699 = 0 - for _, b := range yyq1699 { + yynn1496 = 0 + for _, b := range yyq1496 { if b { - yynn1699++ + yynn1496++ } } - r.EncodeMapStart(yynn1699) - yynn1699 = 0 + r.EncodeMapStart(yynn1496) + yynn1496 = 0 } - if yyr1699 || yy2arr1699 { + if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1699[0] { + if yyq1496[0] { if x.Ports == nil { r.EncodeNil() } else { - yym1701 := z.EncBinary() - _ = yym1701 + yym1498 := z.EncBinary() + _ = yym1498 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -20005,15 +17764,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1699[0] { + if yyq1496[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1702 := z.EncBinary() - _ = yym1702 + yym1499 := z.EncBinary() + _ = yym1499 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -20021,14 +17780,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1699 || yy2arr1699 { + if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1699[1] { + if yyq1496[1] { if x.From == nil { r.EncodeNil() } else { - yym1704 := z.EncBinary() - _ = yym1704 + yym1501 := z.EncBinary() + _ = yym1501 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -20038,15 +17797,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1699[1] { + if yyq1496[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("from")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.From == nil { r.EncodeNil() } else { - yym1705 := z.EncBinary() - _ = yym1705 + yym1502 := z.EncBinary() + _ = yym1502 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -20054,7 +17813,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1699 || yy2arr1699 { + if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20067,25 +17826,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1706 := z.DecBinary() - _ = yym1706 + yym1503 := z.DecBinary() + _ = yym1503 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1707 := r.ContainerType() - if yyct1707 == codecSelferValueTypeMap1234 { - yyl1707 := r.ReadMapStart() - if yyl1707 == 0 { + yyct1504 := r.ContainerType() + if yyct1504 == codecSelferValueTypeMap1234 { + yyl1504 := r.ReadMapStart() + if yyl1504 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1707, d) + x.codecDecodeSelfFromMap(yyl1504, d) } - } else if yyct1707 == codecSelferValueTypeArray1234 { - yyl1707 := r.ReadArrayStart() - if yyl1707 == 0 { + } else if yyct1504 == codecSelferValueTypeArray1234 { + yyl1504 := r.ReadArrayStart() + if yyl1504 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1707, d) + x.codecDecodeSelfFromArray(yyl1504, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20097,12 +17856,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1708Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1708Slc - var yyhl1708 bool = l >= 0 - for yyj1708 := 0; ; yyj1708++ { - if yyhl1708 { - if yyj1708 >= l { + var yys1505Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1505Slc + var yyhl1505 bool = l >= 0 + for yyj1505 := 0; ; yyj1505++ { + if yyhl1505 { + if yyj1505 >= l { break } } else { @@ -20111,38 +17870,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1708Slc = r.DecodeBytes(yys1708Slc, true, true) - yys1708 := string(yys1708Slc) + yys1505Slc = r.DecodeBytes(yys1505Slc, true, true) + yys1505 := string(yys1505Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1708 { + switch yys1505 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1709 := &x.Ports - yym1710 := z.DecBinary() - _ = yym1710 + yyv1506 := &x.Ports + yym1507 := z.DecBinary() + _ = yym1507 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1709), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1506), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv1711 := &x.From - yym1712 := z.DecBinary() - _ = yym1712 + yyv1508 := &x.From + yym1509 := z.DecBinary() + _ = yym1509 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1711), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1508), d) } } default: - z.DecStructFieldNotFound(-1, yys1708) - } // end switch yys1708 - } // end for yyj1708 + z.DecStructFieldNotFound(-1, yys1505) + } // end switch yys1505 + } // end for yyj1505 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20150,16 +17909,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1713 int - var yyb1713 bool - var yyhl1713 bool = l >= 0 - yyj1713++ - if yyhl1713 { - yyb1713 = yyj1713 > l + var yyj1510 int + var yyb1510 bool + var yyhl1510 bool = l >= 0 + yyj1510++ + if yyhl1510 { + yyb1510 = yyj1510 > l } else { - yyb1713 = r.CheckBreak() + yyb1510 = r.CheckBreak() } - if yyb1713 { + if yyb1510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20167,21 +17926,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1714 := &x.Ports - yym1715 := z.DecBinary() - _ = yym1715 + yyv1511 := &x.Ports + yym1512 := z.DecBinary() + _ = yym1512 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1714), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1511), d) } } - yyj1713++ - if yyhl1713 { - yyb1713 = yyj1713 > l + yyj1510++ + if yyhl1510 { + yyb1510 = yyj1510 > l } else { - yyb1713 = r.CheckBreak() + yyb1510 = r.CheckBreak() } - if yyb1713 { + if yyb1510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20189,26 +17948,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv1716 := &x.From - yym1717 := z.DecBinary() - _ = yym1717 + yyv1513 := &x.From + yym1514 := z.DecBinary() + _ = yym1514 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1716), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1513), d) } } for { - yyj1713++ - if yyhl1713 { - yyb1713 = yyj1713 > l + yyj1510++ + if yyhl1510 { + yyb1510 = yyj1510 > l } else { - yyb1713 = r.CheckBreak() + yyb1510 = r.CheckBreak() } - if yyb1713 { + if yyb1510 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1713-1, "") + z.DecStructFieldNotFound(yyj1510-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20220,79 +17979,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1718 := z.EncBinary() - _ = yym1718 + yym1515 := z.EncBinary() + _ = yym1515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1719 := !z.EncBinary() - yy2arr1719 := z.EncBasicHandle().StructToArray - var yyq1719 [2]bool - _, _, _ = yysep1719, yyq1719, yy2arr1719 - const yyr1719 bool = false - yyq1719[0] = x.Protocol != nil - yyq1719[1] = x.Port != nil - var yynn1719 int - if yyr1719 || yy2arr1719 { + yysep1516 := !z.EncBinary() + yy2arr1516 := z.EncBasicHandle().StructToArray + var yyq1516 [2]bool + _, _, _ = yysep1516, yyq1516, yy2arr1516 + const yyr1516 bool = false + yyq1516[0] = x.Protocol != nil + yyq1516[1] = x.Port != nil + var yynn1516 int + if yyr1516 || yy2arr1516 { r.EncodeArrayStart(2) } else { - yynn1719 = 0 - for _, b := range yyq1719 { + yynn1516 = 0 + for _, b := range yyq1516 { if b { - yynn1719++ + yynn1516++ } } - r.EncodeMapStart(yynn1719) - yynn1719 = 0 + r.EncodeMapStart(yynn1516) + yynn1516 = 0 } - if yyr1719 || yy2arr1719 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1719[0] { + if yyq1516[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy1721 := *x.Protocol - yym1722 := z.EncBinary() - _ = yym1722 + yy1518 := *x.Protocol + yym1519 := z.EncBinary() + _ = yym1519 if false { - } else if z.HasExtensions() && z.EncExt(yy1721) { + } else if z.HasExtensions() && z.EncExt(yy1518) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1721)) + r.EncodeString(codecSelferC_UTF81234, string(yy1518)) } } } else { r.EncodeNil() } } else { - if yyq1719[0] { + if yyq1516[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Protocol == nil { r.EncodeNil() } else { - yy1723 := *x.Protocol - yym1724 := z.EncBinary() - _ = yym1724 + yy1520 := *x.Protocol + yym1521 := z.EncBinary() + _ = yym1521 if false { - } else if z.HasExtensions() && z.EncExt(yy1723) { + } else if z.HasExtensions() && z.EncExt(yy1520) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1723)) + r.EncodeString(codecSelferC_UTF81234, string(yy1520)) } } } } - if yyr1719 || yy2arr1719 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1719[1] { + if yyq1516[1] { if x.Port == nil { r.EncodeNil() } else { - yym1726 := z.EncBinary() - _ = yym1726 + yym1523 := z.EncBinary() + _ = yym1523 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1726 && z.IsJSONHandle() { + } else if !yym1523 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20302,18 +18061,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1719[1] { + if yyq1516[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Port == nil { r.EncodeNil() } else { - yym1727 := z.EncBinary() - _ = yym1727 + yym1524 := z.EncBinary() + _ = yym1524 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1727 && z.IsJSONHandle() { + } else if !yym1524 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20321,7 +18080,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1719 || yy2arr1719 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20334,25 +18093,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1728 := z.DecBinary() - _ = yym1728 + yym1525 := z.DecBinary() + _ = yym1525 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1729 := r.ContainerType() - if yyct1729 == codecSelferValueTypeMap1234 { - yyl1729 := r.ReadMapStart() - if yyl1729 == 0 { + yyct1526 := r.ContainerType() + if yyct1526 == codecSelferValueTypeMap1234 { + yyl1526 := r.ReadMapStart() + if yyl1526 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1729, d) + x.codecDecodeSelfFromMap(yyl1526, d) } - } else if yyct1729 == codecSelferValueTypeArray1234 { - yyl1729 := r.ReadArrayStart() - if yyl1729 == 0 { + } else if yyct1526 == codecSelferValueTypeArray1234 { + yyl1526 := r.ReadArrayStart() + if yyl1526 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1729, d) + x.codecDecodeSelfFromArray(yyl1526, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20364,12 +18123,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1730Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1730Slc - var yyhl1730 bool = l >= 0 - for yyj1730 := 0; ; yyj1730++ { - if yyhl1730 { - if yyj1730 >= l { + var yys1527Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1527Slc + var yyhl1527 bool = l >= 0 + for yyj1527 := 0; ; yyj1527++ { + if yyhl1527 { + if yyj1527 >= l { break } } else { @@ -20378,10 +18137,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1730Slc = r.DecodeBytes(yys1730Slc, true, true) - yys1730 := string(yys1730Slc) + yys1527Slc = r.DecodeBytes(yys1527Slc, true, true) + yys1527 := string(yys1527Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1730 { + switch yys1527 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -20402,20 +18161,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1733 := z.DecBinary() - _ = yym1733 + yym1530 := z.DecBinary() + _ = yym1530 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1733 && z.IsJSONHandle() { + } else if !yym1530 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys1730) - } // end switch yys1730 - } // end for yyj1730 + z.DecStructFieldNotFound(-1, yys1527) + } // end switch yys1527 + } // end for yyj1527 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20423,16 +18182,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1734 int - var yyb1734 bool - var yyhl1734 bool = l >= 0 - yyj1734++ - if yyhl1734 { - yyb1734 = yyj1734 > l + var yyj1531 int + var yyb1531 bool + var yyhl1531 bool = l >= 0 + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1734 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1734 { + if yyb1531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20447,13 +18206,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj1734++ - if yyhl1734 { - yyb1734 = yyj1734 > l + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1734 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1734 { + if yyb1531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20466,28 +18225,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1737 := z.DecBinary() - _ = yym1737 + yym1534 := z.DecBinary() + _ = yym1534 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1737 && z.IsJSONHandle() { + } else if !yym1534 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj1734++ - if yyhl1734 { - yyb1734 = yyj1734 > l + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1734 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1734 { + if yyb1531 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1734-1, "") + z.DecStructFieldNotFound(yyj1531-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20499,39 +18258,39 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1738 := z.EncBinary() - _ = yym1738 + yym1535 := z.EncBinary() + _ = yym1535 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1739 := !z.EncBinary() - yy2arr1739 := z.EncBasicHandle().StructToArray - var yyq1739 [2]bool - _, _, _ = yysep1739, yyq1739, yy2arr1739 - const yyr1739 bool = false - yyq1739[0] = x.PodSelector != nil - yyq1739[1] = x.NamespaceSelector != nil - var yynn1739 int - if yyr1739 || yy2arr1739 { + yysep1536 := !z.EncBinary() + yy2arr1536 := z.EncBasicHandle().StructToArray + var yyq1536 [2]bool + _, _, _ = yysep1536, yyq1536, yy2arr1536 + const yyr1536 bool = false + yyq1536[0] = x.PodSelector != nil + yyq1536[1] = x.NamespaceSelector != nil + var yynn1536 int + if yyr1536 || yy2arr1536 { r.EncodeArrayStart(2) } else { - yynn1739 = 0 - for _, b := range yyq1739 { + yynn1536 = 0 + for _, b := range yyq1536 { if b { - yynn1739++ + yynn1536++ } } - r.EncodeMapStart(yynn1739) - yynn1739 = 0 + r.EncodeMapStart(yynn1536) + yynn1536 = 0 } - if yyr1739 || yy2arr1739 { + if yyr1536 || yy2arr1536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1739[0] { + if yyq1536[0] { if x.PodSelector == nil { r.EncodeNil() } else { - yym1741 := z.EncBinary() - _ = yym1741 + yym1538 := z.EncBinary() + _ = yym1538 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -20542,15 +18301,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1739[0] { + if yyq1536[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodSelector == nil { r.EncodeNil() } else { - yym1742 := z.EncBinary() - _ = yym1742 + yym1539 := z.EncBinary() + _ = yym1539 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -20559,14 +18318,14 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1739 || yy2arr1739 { + if yyr1536 || yy2arr1536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1739[1] { + if yyq1536[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1744 := z.EncBinary() - _ = yym1744 + yym1541 := z.EncBinary() + _ = yym1541 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -20577,15 +18336,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1739[1] { + if yyq1536[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1745 := z.EncBinary() - _ = yym1745 + yym1542 := z.EncBinary() + _ = yym1542 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -20594,7 +18353,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1739 || yy2arr1739 { + if yyr1536 || yy2arr1536 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20607,25 +18366,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1746 := z.DecBinary() - _ = yym1746 + yym1543 := z.DecBinary() + _ = yym1543 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1747 := r.ContainerType() - if yyct1747 == codecSelferValueTypeMap1234 { - yyl1747 := r.ReadMapStart() - if yyl1747 == 0 { + yyct1544 := r.ContainerType() + if yyct1544 == codecSelferValueTypeMap1234 { + yyl1544 := r.ReadMapStart() + if yyl1544 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1747, d) + x.codecDecodeSelfFromMap(yyl1544, d) } - } else if yyct1747 == codecSelferValueTypeArray1234 { - yyl1747 := r.ReadArrayStart() - if yyl1747 == 0 { + } else if yyct1544 == codecSelferValueTypeArray1234 { + yyl1544 := r.ReadArrayStart() + if yyl1544 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1747, d) + x.codecDecodeSelfFromArray(yyl1544, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20637,12 +18396,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1748Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1748Slc - var yyhl1748 bool = l >= 0 - for yyj1748 := 0; ; yyj1748++ { - if yyhl1748 { - if yyj1748 >= l { + var yys1545Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1545Slc + var yyhl1545 bool = l >= 0 + for yyj1545 := 0; ; yyj1545++ { + if yyhl1545 { + if yyj1545 >= l { break } } else { @@ -20651,10 +18410,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1748Slc = r.DecodeBytes(yys1748Slc, true, true) - yys1748 := string(yys1748Slc) + yys1545Slc = r.DecodeBytes(yys1545Slc, true, true) + yys1545 := string(yys1545Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1748 { + switch yys1545 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -20664,8 +18423,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.PodSelector == nil { x.PodSelector = new(pkg1_v1.LabelSelector) } - yym1750 := z.DecBinary() - _ = yym1750 + yym1547 := z.DecBinary() + _ = yym1547 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { @@ -20681,8 +18440,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_v1.LabelSelector) } - yym1752 := z.DecBinary() - _ = yym1752 + yym1549 := z.DecBinary() + _ = yym1549 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -20690,9 +18449,9 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } default: - z.DecStructFieldNotFound(-1, yys1748) - } // end switch yys1748 - } // end for yyj1748 + z.DecStructFieldNotFound(-1, yys1545) + } // end switch yys1545 + } // end for yyj1545 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20700,16 +18459,16 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1753 int - var yyb1753 bool - var yyhl1753 bool = l >= 0 - yyj1753++ - if yyhl1753 { - yyb1753 = yyj1753 > l + var yyj1550 int + var yyb1550 bool + var yyhl1550 bool = l >= 0 + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l } else { - yyb1753 = r.CheckBreak() + yyb1550 = r.CheckBreak() } - if yyb1753 { + if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20722,21 +18481,21 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.PodSelector == nil { x.PodSelector = new(pkg1_v1.LabelSelector) } - yym1755 := z.DecBinary() - _ = yym1755 + yym1552 := z.DecBinary() + _ = yym1552 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { z.DecFallback(x.PodSelector, false) } } - yyj1753++ - if yyhl1753 { - yyb1753 = yyj1753 > l + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l } else { - yyb1753 = r.CheckBreak() + yyb1550 = r.CheckBreak() } - if yyb1753 { + if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20749,8 +18508,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_v1.LabelSelector) } - yym1757 := z.DecBinary() - _ = yym1757 + yym1554 := z.DecBinary() + _ = yym1554 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -20758,17 +18517,17 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } for { - yyj1753++ - if yyhl1753 { - yyb1753 = yyj1753 > l + yyj1550++ + if yyhl1550 { + yyb1550 = yyj1550 > l } else { - yyb1753 = r.CheckBreak() + yyb1550 = r.CheckBreak() } - if yyb1753 { + if yyb1550 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1753-1, "") + z.DecStructFieldNotFound(yyj1550-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20780,37 +18539,37 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1758 := z.EncBinary() - _ = yym1758 + yym1555 := z.EncBinary() + _ = yym1555 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1759 := !z.EncBinary() - yy2arr1759 := z.EncBasicHandle().StructToArray - var yyq1759 [4]bool - _, _, _ = yysep1759, yyq1759, yy2arr1759 - const yyr1759 bool = false - yyq1759[0] = x.Kind != "" - yyq1759[1] = x.APIVersion != "" - yyq1759[2] = true - var yynn1759 int - if yyr1759 || yy2arr1759 { + yysep1556 := !z.EncBinary() + yy2arr1556 := z.EncBasicHandle().StructToArray + var yyq1556 [4]bool + _, _, _ = yysep1556, yyq1556, yy2arr1556 + const yyr1556 bool = false + yyq1556[0] = x.Kind != "" + yyq1556[1] = x.APIVersion != "" + yyq1556[2] = true + var yynn1556 int + if yyr1556 || yy2arr1556 { r.EncodeArrayStart(4) } else { - yynn1759 = 1 - for _, b := range yyq1759 { + yynn1556 = 1 + for _, b := range yyq1556 { if b { - yynn1759++ + yynn1556++ } } - r.EncodeMapStart(yynn1759) - yynn1759 = 0 + r.EncodeMapStart(yynn1556) + yynn1556 = 0 } - if yyr1759 || yy2arr1759 { + if yyr1556 || yy2arr1556 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1759[0] { - yym1761 := z.EncBinary() - _ = yym1761 + if yyq1556[0] { + yym1558 := z.EncBinary() + _ = yym1558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -20819,23 +18578,23 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1759[0] { + if yyq1556[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1762 := z.EncBinary() - _ = yym1762 + yym1559 := z.EncBinary() + _ = yym1559 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1759 || yy2arr1759 { + if yyr1556 || yy2arr1556 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1759[1] { - yym1764 := z.EncBinary() - _ = yym1764 + if yyq1556[1] { + yym1561 := z.EncBinary() + _ = yym1561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -20844,54 +18603,54 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1759[1] { + if yyq1556[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1765 := z.EncBinary() - _ = yym1765 + yym1562 := z.EncBinary() + _ = yym1562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1759 || yy2arr1759 { + if yyr1556 || yy2arr1556 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1759[2] { - yy1767 := &x.ListMeta - yym1768 := z.EncBinary() - _ = yym1768 + if yyq1556[2] { + yy1564 := &x.ListMeta + yym1565 := z.EncBinary() + _ = yym1565 if false { - } else if z.HasExtensions() && z.EncExt(yy1767) { + } else if z.HasExtensions() && z.EncExt(yy1564) { } else { - z.EncFallback(yy1767) + z.EncFallback(yy1564) } } else { r.EncodeNil() } } else { - if yyq1759[2] { + if yyq1556[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1769 := &x.ListMeta - yym1770 := z.EncBinary() - _ = yym1770 + yy1566 := &x.ListMeta + yym1567 := z.EncBinary() + _ = yym1567 if false { - } else if z.HasExtensions() && z.EncExt(yy1769) { + } else if z.HasExtensions() && z.EncExt(yy1566) { } else { - z.EncFallback(yy1769) + z.EncFallback(yy1566) } } } - if yyr1759 || yy2arr1759 { + if yyr1556 || yy2arr1556 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1772 := z.EncBinary() - _ = yym1772 + yym1569 := z.EncBinary() + _ = yym1569 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) @@ -20904,15 +18663,15 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1773 := z.EncBinary() - _ = yym1773 + yym1570 := z.EncBinary() + _ = yym1570 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr1759 || yy2arr1759 { + if yyr1556 || yy2arr1556 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20925,25 +18684,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1774 := z.DecBinary() - _ = yym1774 + yym1571 := z.DecBinary() + _ = yym1571 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1775 := r.ContainerType() - if yyct1775 == codecSelferValueTypeMap1234 { - yyl1775 := r.ReadMapStart() - if yyl1775 == 0 { + yyct1572 := r.ContainerType() + if yyct1572 == codecSelferValueTypeMap1234 { + yyl1572 := r.ReadMapStart() + if yyl1572 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1775, d) + x.codecDecodeSelfFromMap(yyl1572, d) } - } else if yyct1775 == codecSelferValueTypeArray1234 { - yyl1775 := r.ReadArrayStart() - if yyl1775 == 0 { + } else if yyct1572 == codecSelferValueTypeArray1234 { + yyl1572 := r.ReadArrayStart() + if yyl1572 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1775, d) + x.codecDecodeSelfFromArray(yyl1572, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20955,12 +18714,12 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1776Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1776Slc - var yyhl1776 bool = l >= 0 - for yyj1776 := 0; ; yyj1776++ { - if yyhl1776 { - if yyj1776 >= l { + var yys1573Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1573Slc + var yyhl1573 bool = l >= 0 + for yyj1573 := 0; ; yyj1573++ { + if yyhl1573 { + if yyj1573 >= l { break } } else { @@ -20969,10 +18728,10 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1776Slc = r.DecodeBytes(yys1776Slc, true, true) - yys1776 := string(yys1776Slc) + yys1573Slc = r.DecodeBytes(yys1573Slc, true, true) + yys1573 := string(yys1573Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1776 { + switch yys1573 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -20989,31 +18748,31 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1779 := &x.ListMeta - yym1780 := z.DecBinary() - _ = yym1780 + yyv1576 := &x.ListMeta + yym1577 := z.DecBinary() + _ = yym1577 if false { - } else if z.HasExtensions() && z.DecExt(yyv1779) { + } else if z.HasExtensions() && z.DecExt(yyv1576) { } else { - z.DecFallback(yyv1779, false) + z.DecFallback(yyv1576, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1781 := &x.Items - yym1782 := z.DecBinary() - _ = yym1782 + yyv1578 := &x.Items + yym1579 := z.DecBinary() + _ = yym1579 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1781), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1578), d) } } default: - z.DecStructFieldNotFound(-1, yys1776) - } // end switch yys1776 - } // end for yyj1776 + z.DecStructFieldNotFound(-1, yys1573) + } // end switch yys1573 + } // end for yyj1573 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21021,16 +18780,16 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1783 int - var yyb1783 bool - var yyhl1783 bool = l >= 0 - yyj1783++ - if yyhl1783 { - yyb1783 = yyj1783 > l + var yyj1580 int + var yyb1580 bool + var yyhl1580 bool = l >= 0 + yyj1580++ + if yyhl1580 { + yyb1580 = yyj1580 > l } else { - yyb1783 = r.CheckBreak() + yyb1580 = r.CheckBreak() } - if yyb1783 { + if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21040,13 +18799,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1783++ - if yyhl1783 { - yyb1783 = yyj1783 > l + yyj1580++ + if yyhl1580 { + yyb1580 = yyj1580 > l } else { - yyb1783 = r.CheckBreak() + yyb1580 = r.CheckBreak() } - if yyb1783 { + if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21056,13 +18815,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1783++ - if yyhl1783 { - yyb1783 = yyj1783 > l + yyj1580++ + if yyhl1580 { + yyb1580 = yyj1580 > l } else { - yyb1783 = r.CheckBreak() + yyb1580 = r.CheckBreak() } - if yyb1783 { + if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21070,22 +18829,22 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv1786 := &x.ListMeta - yym1787 := z.DecBinary() - _ = yym1787 + yyv1583 := &x.ListMeta + yym1584 := z.DecBinary() + _ = yym1584 if false { - } else if z.HasExtensions() && z.DecExt(yyv1786) { + } else if z.HasExtensions() && z.DecExt(yyv1583) { } else { - z.DecFallback(yyv1786, false) + z.DecFallback(yyv1583, false) } } - yyj1783++ - if yyhl1783 { - yyb1783 = yyj1783 > l + yyj1580++ + if yyhl1580 { + yyb1580 = yyj1580 > l } else { - yyb1783 = r.CheckBreak() + yyb1580 = r.CheckBreak() } - if yyb1783 { + if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21093,26 +18852,26 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1788 := &x.Items - yym1789 := z.DecBinary() - _ = yym1789 + yyv1585 := &x.Items + yym1586 := z.DecBinary() + _ = yym1586 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1788), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1585), d) } } for { - yyj1783++ - if yyhl1783 { - yyb1783 = yyj1783 > l + yyj1580++ + if yyhl1580 { + yyb1580 = yyj1580 > l } else { - yyb1783 = r.CheckBreak() + yyb1580 = r.CheckBreak() } - if yyb1783 { + if yyb1580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1783-1, "") + z.DecStructFieldNotFound(yyj1580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21122,10 +18881,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1790 := range v { + for _, yyv1587 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1791 := &yyv1790 - yy1791.CodecEncodeSelf(e) + yy1588 := &yyv1587 + yy1588.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21135,83 +18894,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1792 := *v - yyh1792, yyl1792 := z.DecSliceHelperStart() - var yyc1792 bool - if yyl1792 == 0 { - if yyv1792 == nil { - yyv1792 = []CustomMetricTarget{} - yyc1792 = true - } else if len(yyv1792) != 0 { - yyv1792 = yyv1792[:0] - yyc1792 = true + yyv1589 := *v + yyh1589, yyl1589 := z.DecSliceHelperStart() + var yyc1589 bool + if yyl1589 == 0 { + if yyv1589 == nil { + yyv1589 = []CustomMetricTarget{} + yyc1589 = true + } else if len(yyv1589) != 0 { + yyv1589 = yyv1589[:0] + yyc1589 = true } - } else if yyl1792 > 0 { - var yyrr1792, yyrl1792 int - var yyrt1792 bool - if yyl1792 > cap(yyv1792) { + } else if yyl1589 > 0 { + var yyrr1589, yyrl1589 int + var yyrt1589 bool + if yyl1589 > cap(yyv1589) { - yyrg1792 := len(yyv1792) > 0 - yyv21792 := yyv1792 - yyrl1792, yyrt1792 = z.DecInferLen(yyl1792, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1792 { - if yyrl1792 <= cap(yyv1792) { - yyv1792 = yyv1792[:yyrl1792] + yyrg1589 := len(yyv1589) > 0 + yyv21589 := yyv1589 + yyrl1589, yyrt1589 = z.DecInferLen(yyl1589, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1589 { + if yyrl1589 <= cap(yyv1589) { + yyv1589 = yyv1589[:yyrl1589] } else { - yyv1792 = make([]CustomMetricTarget, yyrl1792) + yyv1589 = make([]CustomMetricTarget, yyrl1589) } } else { - yyv1792 = make([]CustomMetricTarget, yyrl1792) + yyv1589 = make([]CustomMetricTarget, yyrl1589) } - yyc1792 = true - yyrr1792 = len(yyv1792) - if yyrg1792 { - copy(yyv1792, yyv21792) + yyc1589 = true + yyrr1589 = len(yyv1589) + if yyrg1589 { + copy(yyv1589, yyv21589) } - } else if yyl1792 != len(yyv1792) { - yyv1792 = yyv1792[:yyl1792] - yyc1792 = true + } else if yyl1589 != len(yyv1589) { + yyv1589 = yyv1589[:yyl1589] + yyc1589 = true } - yyj1792 := 0 - for ; yyj1792 < yyrr1792; yyj1792++ { - yyh1792.ElemContainerState(yyj1792) + yyj1589 := 0 + for ; yyj1589 < yyrr1589; yyj1589++ { + yyh1589.ElemContainerState(yyj1589) if r.TryDecodeAsNil() { - yyv1792[yyj1792] = CustomMetricTarget{} + yyv1589[yyj1589] = CustomMetricTarget{} } else { - yyv1793 := &yyv1792[yyj1792] - yyv1793.CodecDecodeSelf(d) + yyv1590 := &yyv1589[yyj1589] + yyv1590.CodecDecodeSelf(d) } } - if yyrt1792 { - for ; yyj1792 < yyl1792; yyj1792++ { - yyv1792 = append(yyv1792, CustomMetricTarget{}) - yyh1792.ElemContainerState(yyj1792) + if yyrt1589 { + for ; yyj1589 < yyl1589; yyj1589++ { + yyv1589 = append(yyv1589, CustomMetricTarget{}) + yyh1589.ElemContainerState(yyj1589) if r.TryDecodeAsNil() { - yyv1792[yyj1792] = CustomMetricTarget{} + yyv1589[yyj1589] = CustomMetricTarget{} } else { - yyv1794 := &yyv1792[yyj1792] - yyv1794.CodecDecodeSelf(d) + yyv1591 := &yyv1589[yyj1589] + yyv1591.CodecDecodeSelf(d) } } } } else { - yyj1792 := 0 - for ; !r.CheckBreak(); yyj1792++ { + yyj1589 := 0 + for ; !r.CheckBreak(); yyj1589++ { - if yyj1792 >= len(yyv1792) { - yyv1792 = append(yyv1792, CustomMetricTarget{}) // var yyz1792 CustomMetricTarget - yyc1792 = true + if yyj1589 >= len(yyv1589) { + yyv1589 = append(yyv1589, CustomMetricTarget{}) // var yyz1589 CustomMetricTarget + yyc1589 = true } - yyh1792.ElemContainerState(yyj1792) - if yyj1792 < len(yyv1792) { + yyh1589.ElemContainerState(yyj1589) + if yyj1589 < len(yyv1589) { if r.TryDecodeAsNil() { - yyv1792[yyj1792] = CustomMetricTarget{} + yyv1589[yyj1589] = CustomMetricTarget{} } else { - yyv1795 := &yyv1792[yyj1792] - yyv1795.CodecDecodeSelf(d) + yyv1592 := &yyv1589[yyj1589] + yyv1592.CodecDecodeSelf(d) } } else { @@ -21219,17 +18978,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1792 < len(yyv1792) { - yyv1792 = yyv1792[:yyj1792] - yyc1792 = true - } else if yyj1792 == 0 && yyv1792 == nil { - yyv1792 = []CustomMetricTarget{} - yyc1792 = true + if yyj1589 < len(yyv1589) { + yyv1589 = yyv1589[:yyj1589] + yyc1589 = true + } else if yyj1589 == 0 && yyv1589 == nil { + yyv1589 = []CustomMetricTarget{} + yyc1589 = true } } - yyh1792.End() - if yyc1792 { - *v = yyv1792 + yyh1589.End() + if yyc1589 { + *v = yyv1589 } } @@ -21238,10 +18997,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1796 := range v { + for _, yyv1593 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1797 := &yyv1796 - yy1797.CodecEncodeSelf(e) + yy1594 := &yyv1593 + yy1594.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21251,83 +19010,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1798 := *v - yyh1798, yyl1798 := z.DecSliceHelperStart() - var yyc1798 bool - if yyl1798 == 0 { - if yyv1798 == nil { - yyv1798 = []CustomMetricCurrentStatus{} - yyc1798 = true - } else if len(yyv1798) != 0 { - yyv1798 = yyv1798[:0] - yyc1798 = true + yyv1595 := *v + yyh1595, yyl1595 := z.DecSliceHelperStart() + var yyc1595 bool + if yyl1595 == 0 { + if yyv1595 == nil { + yyv1595 = []CustomMetricCurrentStatus{} + yyc1595 = true + } else if len(yyv1595) != 0 { + yyv1595 = yyv1595[:0] + yyc1595 = true } - } else if yyl1798 > 0 { - var yyrr1798, yyrl1798 int - var yyrt1798 bool - if yyl1798 > cap(yyv1798) { + } else if yyl1595 > 0 { + var yyrr1595, yyrl1595 int + var yyrt1595 bool + if yyl1595 > cap(yyv1595) { - yyrg1798 := len(yyv1798) > 0 - yyv21798 := yyv1798 - yyrl1798, yyrt1798 = z.DecInferLen(yyl1798, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1798 { - if yyrl1798 <= cap(yyv1798) { - yyv1798 = yyv1798[:yyrl1798] + yyrg1595 := len(yyv1595) > 0 + yyv21595 := yyv1595 + yyrl1595, yyrt1595 = z.DecInferLen(yyl1595, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1595 { + if yyrl1595 <= cap(yyv1595) { + yyv1595 = yyv1595[:yyrl1595] } else { - yyv1798 = make([]CustomMetricCurrentStatus, yyrl1798) + yyv1595 = make([]CustomMetricCurrentStatus, yyrl1595) } } else { - yyv1798 = make([]CustomMetricCurrentStatus, yyrl1798) + yyv1595 = make([]CustomMetricCurrentStatus, yyrl1595) } - yyc1798 = true - yyrr1798 = len(yyv1798) - if yyrg1798 { - copy(yyv1798, yyv21798) + yyc1595 = true + yyrr1595 = len(yyv1595) + if yyrg1595 { + copy(yyv1595, yyv21595) } - } else if yyl1798 != len(yyv1798) { - yyv1798 = yyv1798[:yyl1798] - yyc1798 = true + } else if yyl1595 != len(yyv1595) { + yyv1595 = yyv1595[:yyl1595] + yyc1595 = true } - yyj1798 := 0 - for ; yyj1798 < yyrr1798; yyj1798++ { - yyh1798.ElemContainerState(yyj1798) + yyj1595 := 0 + for ; yyj1595 < yyrr1595; yyj1595++ { + yyh1595.ElemContainerState(yyj1595) if r.TryDecodeAsNil() { - yyv1798[yyj1798] = CustomMetricCurrentStatus{} + yyv1595[yyj1595] = CustomMetricCurrentStatus{} } else { - yyv1799 := &yyv1798[yyj1798] - yyv1799.CodecDecodeSelf(d) + yyv1596 := &yyv1595[yyj1595] + yyv1596.CodecDecodeSelf(d) } } - if yyrt1798 { - for ; yyj1798 < yyl1798; yyj1798++ { - yyv1798 = append(yyv1798, CustomMetricCurrentStatus{}) - yyh1798.ElemContainerState(yyj1798) + if yyrt1595 { + for ; yyj1595 < yyl1595; yyj1595++ { + yyv1595 = append(yyv1595, CustomMetricCurrentStatus{}) + yyh1595.ElemContainerState(yyj1595) if r.TryDecodeAsNil() { - yyv1798[yyj1798] = CustomMetricCurrentStatus{} + yyv1595[yyj1595] = CustomMetricCurrentStatus{} } else { - yyv1800 := &yyv1798[yyj1798] - yyv1800.CodecDecodeSelf(d) + yyv1597 := &yyv1595[yyj1595] + yyv1597.CodecDecodeSelf(d) } } } } else { - yyj1798 := 0 - for ; !r.CheckBreak(); yyj1798++ { + yyj1595 := 0 + for ; !r.CheckBreak(); yyj1595++ { - if yyj1798 >= len(yyv1798) { - yyv1798 = append(yyv1798, CustomMetricCurrentStatus{}) // var yyz1798 CustomMetricCurrentStatus - yyc1798 = true + if yyj1595 >= len(yyv1595) { + yyv1595 = append(yyv1595, CustomMetricCurrentStatus{}) // var yyz1595 CustomMetricCurrentStatus + yyc1595 = true } - yyh1798.ElemContainerState(yyj1798) - if yyj1798 < len(yyv1798) { + yyh1595.ElemContainerState(yyj1595) + if yyj1595 < len(yyv1595) { if r.TryDecodeAsNil() { - yyv1798[yyj1798] = CustomMetricCurrentStatus{} + yyv1595[yyj1595] = CustomMetricCurrentStatus{} } else { - yyv1801 := &yyv1798[yyj1798] - yyv1801.CodecDecodeSelf(d) + yyv1598 := &yyv1595[yyj1595] + yyv1598.CodecDecodeSelf(d) } } else { @@ -21335,17 +19094,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1798 < len(yyv1798) { - yyv1798 = yyv1798[:yyj1798] - yyc1798 = true - } else if yyj1798 == 0 && yyv1798 == nil { - yyv1798 = []CustomMetricCurrentStatus{} - yyc1798 = true + if yyj1595 < len(yyv1595) { + yyv1595 = yyv1595[:yyj1595] + yyc1595 = true + } else if yyj1595 == 0 && yyv1595 == nil { + yyv1595 = []CustomMetricCurrentStatus{} + yyc1595 = true } } - yyh1798.End() - if yyc1798 { - *v = yyv1798 + yyh1595.End() + if yyc1595 { + *v = yyv1595 } } @@ -21354,10 +19113,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1802 := range v { + for _, yyv1599 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1803 := &yyv1802 - yy1803.CodecEncodeSelf(e) + yy1600 := &yyv1599 + yy1600.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21367,83 +19126,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1804 := *v - yyh1804, yyl1804 := z.DecSliceHelperStart() - var yyc1804 bool - if yyl1804 == 0 { - if yyv1804 == nil { - yyv1804 = []HorizontalPodAutoscaler{} - yyc1804 = true - } else if len(yyv1804) != 0 { - yyv1804 = yyv1804[:0] - yyc1804 = true + yyv1601 := *v + yyh1601, yyl1601 := z.DecSliceHelperStart() + var yyc1601 bool + if yyl1601 == 0 { + if yyv1601 == nil { + yyv1601 = []HorizontalPodAutoscaler{} + yyc1601 = true + } else if len(yyv1601) != 0 { + yyv1601 = yyv1601[:0] + yyc1601 = true } - } else if yyl1804 > 0 { - var yyrr1804, yyrl1804 int - var yyrt1804 bool - if yyl1804 > cap(yyv1804) { + } else if yyl1601 > 0 { + var yyrr1601, yyrl1601 int + var yyrt1601 bool + if yyl1601 > cap(yyv1601) { - yyrg1804 := len(yyv1804) > 0 - yyv21804 := yyv1804 - yyrl1804, yyrt1804 = z.DecInferLen(yyl1804, z.DecBasicHandle().MaxInitLen, 376) - if yyrt1804 { - if yyrl1804 <= cap(yyv1804) { - yyv1804 = yyv1804[:yyrl1804] + yyrg1601 := len(yyv1601) > 0 + yyv21601 := yyv1601 + yyrl1601, yyrt1601 = z.DecInferLen(yyl1601, z.DecBasicHandle().MaxInitLen, 376) + if yyrt1601 { + if yyrl1601 <= cap(yyv1601) { + yyv1601 = yyv1601[:yyrl1601] } else { - yyv1804 = make([]HorizontalPodAutoscaler, yyrl1804) + yyv1601 = make([]HorizontalPodAutoscaler, yyrl1601) } } else { - yyv1804 = make([]HorizontalPodAutoscaler, yyrl1804) + yyv1601 = make([]HorizontalPodAutoscaler, yyrl1601) } - yyc1804 = true - yyrr1804 = len(yyv1804) - if yyrg1804 { - copy(yyv1804, yyv21804) + yyc1601 = true + yyrr1601 = len(yyv1601) + if yyrg1601 { + copy(yyv1601, yyv21601) } - } else if yyl1804 != len(yyv1804) { - yyv1804 = yyv1804[:yyl1804] - yyc1804 = true + } else if yyl1601 != len(yyv1601) { + yyv1601 = yyv1601[:yyl1601] + yyc1601 = true } - yyj1804 := 0 - for ; yyj1804 < yyrr1804; yyj1804++ { - yyh1804.ElemContainerState(yyj1804) + yyj1601 := 0 + for ; yyj1601 < yyrr1601; yyj1601++ { + yyh1601.ElemContainerState(yyj1601) if r.TryDecodeAsNil() { - yyv1804[yyj1804] = HorizontalPodAutoscaler{} + yyv1601[yyj1601] = HorizontalPodAutoscaler{} } else { - yyv1805 := &yyv1804[yyj1804] - yyv1805.CodecDecodeSelf(d) + yyv1602 := &yyv1601[yyj1601] + yyv1602.CodecDecodeSelf(d) } } - if yyrt1804 { - for ; yyj1804 < yyl1804; yyj1804++ { - yyv1804 = append(yyv1804, HorizontalPodAutoscaler{}) - yyh1804.ElemContainerState(yyj1804) + if yyrt1601 { + for ; yyj1601 < yyl1601; yyj1601++ { + yyv1601 = append(yyv1601, HorizontalPodAutoscaler{}) + yyh1601.ElemContainerState(yyj1601) if r.TryDecodeAsNil() { - yyv1804[yyj1804] = HorizontalPodAutoscaler{} + yyv1601[yyj1601] = HorizontalPodAutoscaler{} } else { - yyv1806 := &yyv1804[yyj1804] - yyv1806.CodecDecodeSelf(d) + yyv1603 := &yyv1601[yyj1601] + yyv1603.CodecDecodeSelf(d) } } } } else { - yyj1804 := 0 - for ; !r.CheckBreak(); yyj1804++ { + yyj1601 := 0 + for ; !r.CheckBreak(); yyj1601++ { - if yyj1804 >= len(yyv1804) { - yyv1804 = append(yyv1804, HorizontalPodAutoscaler{}) // var yyz1804 HorizontalPodAutoscaler - yyc1804 = true + if yyj1601 >= len(yyv1601) { + yyv1601 = append(yyv1601, HorizontalPodAutoscaler{}) // var yyz1601 HorizontalPodAutoscaler + yyc1601 = true } - yyh1804.ElemContainerState(yyj1804) - if yyj1804 < len(yyv1804) { + yyh1601.ElemContainerState(yyj1601) + if yyj1601 < len(yyv1601) { if r.TryDecodeAsNil() { - yyv1804[yyj1804] = HorizontalPodAutoscaler{} + yyv1601[yyj1601] = HorizontalPodAutoscaler{} } else { - yyv1807 := &yyv1804[yyj1804] - yyv1807.CodecDecodeSelf(d) + yyv1604 := &yyv1601[yyj1601] + yyv1604.CodecDecodeSelf(d) } } else { @@ -21451,17 +19210,17 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1804 < len(yyv1804) { - yyv1804 = yyv1804[:yyj1804] - yyc1804 = true - } else if yyj1804 == 0 && yyv1804 == nil { - yyv1804 = []HorizontalPodAutoscaler{} - yyc1804 = true + if yyj1601 < len(yyv1601) { + yyv1601 = yyv1601[:yyj1601] + yyc1601 = true + } else if yyj1601 == 0 && yyv1601 == nil { + yyv1601 = []HorizontalPodAutoscaler{} + yyc1601 = true } } - yyh1804.End() - if yyc1804 { - *v = yyv1804 + yyh1601.End() + if yyc1601 { + *v = yyv1601 } } @@ -21470,10 +19229,10 @@ func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1808 := range v { + for _, yyv1605 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1809 := &yyv1808 - yy1809.CodecEncodeSelf(e) + yy1606 := &yyv1605 + yy1606.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21483,83 +19242,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1810 := *v - yyh1810, yyl1810 := z.DecSliceHelperStart() - var yyc1810 bool - if yyl1810 == 0 { - if yyv1810 == nil { - yyv1810 = []APIVersion{} - yyc1810 = true - } else if len(yyv1810) != 0 { - yyv1810 = yyv1810[:0] - yyc1810 = true + yyv1607 := *v + yyh1607, yyl1607 := z.DecSliceHelperStart() + var yyc1607 bool + if yyl1607 == 0 { + if yyv1607 == nil { + yyv1607 = []APIVersion{} + yyc1607 = true + } else if len(yyv1607) != 0 { + yyv1607 = yyv1607[:0] + yyc1607 = true } - } else if yyl1810 > 0 { - var yyrr1810, yyrl1810 int - var yyrt1810 bool - if yyl1810 > cap(yyv1810) { + } else if yyl1607 > 0 { + var yyrr1607, yyrl1607 int + var yyrt1607 bool + if yyl1607 > cap(yyv1607) { - yyrg1810 := len(yyv1810) > 0 - yyv21810 := yyv1810 - yyrl1810, yyrt1810 = z.DecInferLen(yyl1810, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1810 { - if yyrl1810 <= cap(yyv1810) { - yyv1810 = yyv1810[:yyrl1810] + yyrg1607 := len(yyv1607) > 0 + yyv21607 := yyv1607 + yyrl1607, yyrt1607 = z.DecInferLen(yyl1607, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1607 { + if yyrl1607 <= cap(yyv1607) { + yyv1607 = yyv1607[:yyrl1607] } else { - yyv1810 = make([]APIVersion, yyrl1810) + yyv1607 = make([]APIVersion, yyrl1607) } } else { - yyv1810 = make([]APIVersion, yyrl1810) + yyv1607 = make([]APIVersion, yyrl1607) } - yyc1810 = true - yyrr1810 = len(yyv1810) - if yyrg1810 { - copy(yyv1810, yyv21810) + yyc1607 = true + yyrr1607 = len(yyv1607) + if yyrg1607 { + copy(yyv1607, yyv21607) } - } else if yyl1810 != len(yyv1810) { - yyv1810 = yyv1810[:yyl1810] - yyc1810 = true + } else if yyl1607 != len(yyv1607) { + yyv1607 = yyv1607[:yyl1607] + yyc1607 = true } - yyj1810 := 0 - for ; yyj1810 < yyrr1810; yyj1810++ { - yyh1810.ElemContainerState(yyj1810) + yyj1607 := 0 + for ; yyj1607 < yyrr1607; yyj1607++ { + yyh1607.ElemContainerState(yyj1607) if r.TryDecodeAsNil() { - yyv1810[yyj1810] = APIVersion{} + yyv1607[yyj1607] = APIVersion{} } else { - yyv1811 := &yyv1810[yyj1810] - yyv1811.CodecDecodeSelf(d) + yyv1608 := &yyv1607[yyj1607] + yyv1608.CodecDecodeSelf(d) } } - if yyrt1810 { - for ; yyj1810 < yyl1810; yyj1810++ { - yyv1810 = append(yyv1810, APIVersion{}) - yyh1810.ElemContainerState(yyj1810) + if yyrt1607 { + for ; yyj1607 < yyl1607; yyj1607++ { + yyv1607 = append(yyv1607, APIVersion{}) + yyh1607.ElemContainerState(yyj1607) if r.TryDecodeAsNil() { - yyv1810[yyj1810] = APIVersion{} + yyv1607[yyj1607] = APIVersion{} } else { - yyv1812 := &yyv1810[yyj1810] - yyv1812.CodecDecodeSelf(d) + yyv1609 := &yyv1607[yyj1607] + yyv1609.CodecDecodeSelf(d) } } } } else { - yyj1810 := 0 - for ; !r.CheckBreak(); yyj1810++ { + yyj1607 := 0 + for ; !r.CheckBreak(); yyj1607++ { - if yyj1810 >= len(yyv1810) { - yyv1810 = append(yyv1810, APIVersion{}) // var yyz1810 APIVersion - yyc1810 = true + if yyj1607 >= len(yyv1607) { + yyv1607 = append(yyv1607, APIVersion{}) // var yyz1607 APIVersion + yyc1607 = true } - yyh1810.ElemContainerState(yyj1810) - if yyj1810 < len(yyv1810) { + yyh1607.ElemContainerState(yyj1607) + if yyj1607 < len(yyv1607) { if r.TryDecodeAsNil() { - yyv1810[yyj1810] = APIVersion{} + yyv1607[yyj1607] = APIVersion{} } else { - yyv1813 := &yyv1810[yyj1810] - yyv1813.CodecDecodeSelf(d) + yyv1610 := &yyv1607[yyj1607] + yyv1610.CodecDecodeSelf(d) } } else { @@ -21567,17 +19326,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1810 < len(yyv1810) { - yyv1810 = yyv1810[:yyj1810] - yyc1810 = true - } else if yyj1810 == 0 && yyv1810 == nil { - yyv1810 = []APIVersion{} - yyc1810 = true + if yyj1607 < len(yyv1607) { + yyv1607 = yyv1607[:yyj1607] + yyc1607 = true + } else if yyj1607 == 0 && yyv1607 == nil { + yyv1607 = []APIVersion{} + yyc1607 = true } } - yyh1810.End() - if yyc1810 { - *v = yyv1810 + yyh1607.End() + if yyc1607 { + *v = yyv1607 } } @@ -21586,10 +19345,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1814 := range v { + for _, yyv1611 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1815 := &yyv1814 - yy1815.CodecEncodeSelf(e) + yy1612 := &yyv1611 + yy1612.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21599,83 +19358,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1816 := *v - yyh1816, yyl1816 := z.DecSliceHelperStart() - var yyc1816 bool - if yyl1816 == 0 { - if yyv1816 == nil { - yyv1816 = []ThirdPartyResource{} - yyc1816 = true - } else if len(yyv1816) != 0 { - yyv1816 = yyv1816[:0] - yyc1816 = true + yyv1613 := *v + yyh1613, yyl1613 := z.DecSliceHelperStart() + var yyc1613 bool + if yyl1613 == 0 { + if yyv1613 == nil { + yyv1613 = []ThirdPartyResource{} + yyc1613 = true + } else if len(yyv1613) != 0 { + yyv1613 = yyv1613[:0] + yyc1613 = true } - } else if yyl1816 > 0 { - var yyrr1816, yyrl1816 int - var yyrt1816 bool - if yyl1816 > cap(yyv1816) { + } else if yyl1613 > 0 { + var yyrr1613, yyrl1613 int + var yyrt1613 bool + if yyl1613 > cap(yyv1613) { - yyrg1816 := len(yyv1816) > 0 - yyv21816 := yyv1816 - yyrl1816, yyrt1816 = z.DecInferLen(yyl1816, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1816 { - if yyrl1816 <= cap(yyv1816) { - yyv1816 = yyv1816[:yyrl1816] + yyrg1613 := len(yyv1613) > 0 + yyv21613 := yyv1613 + yyrl1613, yyrt1613 = z.DecInferLen(yyl1613, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1613 { + if yyrl1613 <= cap(yyv1613) { + yyv1613 = yyv1613[:yyrl1613] } else { - yyv1816 = make([]ThirdPartyResource, yyrl1816) + yyv1613 = make([]ThirdPartyResource, yyrl1613) } } else { - yyv1816 = make([]ThirdPartyResource, yyrl1816) + yyv1613 = make([]ThirdPartyResource, yyrl1613) } - yyc1816 = true - yyrr1816 = len(yyv1816) - if yyrg1816 { - copy(yyv1816, yyv21816) + yyc1613 = true + yyrr1613 = len(yyv1613) + if yyrg1613 { + copy(yyv1613, yyv21613) } - } else if yyl1816 != len(yyv1816) { - yyv1816 = yyv1816[:yyl1816] - yyc1816 = true + } else if yyl1613 != len(yyv1613) { + yyv1613 = yyv1613[:yyl1613] + yyc1613 = true } - yyj1816 := 0 - for ; yyj1816 < yyrr1816; yyj1816++ { - yyh1816.ElemContainerState(yyj1816) + yyj1613 := 0 + for ; yyj1613 < yyrr1613; yyj1613++ { + yyh1613.ElemContainerState(yyj1613) if r.TryDecodeAsNil() { - yyv1816[yyj1816] = ThirdPartyResource{} + yyv1613[yyj1613] = ThirdPartyResource{} } else { - yyv1817 := &yyv1816[yyj1816] - yyv1817.CodecDecodeSelf(d) + yyv1614 := &yyv1613[yyj1613] + yyv1614.CodecDecodeSelf(d) } } - if yyrt1816 { - for ; yyj1816 < yyl1816; yyj1816++ { - yyv1816 = append(yyv1816, ThirdPartyResource{}) - yyh1816.ElemContainerState(yyj1816) + if yyrt1613 { + for ; yyj1613 < yyl1613; yyj1613++ { + yyv1613 = append(yyv1613, ThirdPartyResource{}) + yyh1613.ElemContainerState(yyj1613) if r.TryDecodeAsNil() { - yyv1816[yyj1816] = ThirdPartyResource{} + yyv1613[yyj1613] = ThirdPartyResource{} } else { - yyv1818 := &yyv1816[yyj1816] - yyv1818.CodecDecodeSelf(d) + yyv1615 := &yyv1613[yyj1613] + yyv1615.CodecDecodeSelf(d) } } } } else { - yyj1816 := 0 - for ; !r.CheckBreak(); yyj1816++ { + yyj1613 := 0 + for ; !r.CheckBreak(); yyj1613++ { - if yyj1816 >= len(yyv1816) { - yyv1816 = append(yyv1816, ThirdPartyResource{}) // var yyz1816 ThirdPartyResource - yyc1816 = true + if yyj1613 >= len(yyv1613) { + yyv1613 = append(yyv1613, ThirdPartyResource{}) // var yyz1613 ThirdPartyResource + yyc1613 = true } - yyh1816.ElemContainerState(yyj1816) - if yyj1816 < len(yyv1816) { + yyh1613.ElemContainerState(yyj1613) + if yyj1613 < len(yyv1613) { if r.TryDecodeAsNil() { - yyv1816[yyj1816] = ThirdPartyResource{} + yyv1613[yyj1613] = ThirdPartyResource{} } else { - yyv1819 := &yyv1816[yyj1816] - yyv1819.CodecDecodeSelf(d) + yyv1616 := &yyv1613[yyj1613] + yyv1616.CodecDecodeSelf(d) } } else { @@ -21683,17 +19442,17 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1816 < len(yyv1816) { - yyv1816 = yyv1816[:yyj1816] - yyc1816 = true - } else if yyj1816 == 0 && yyv1816 == nil { - yyv1816 = []ThirdPartyResource{} - yyc1816 = true + if yyj1613 < len(yyv1613) { + yyv1613 = yyv1613[:yyj1613] + yyc1613 = true + } else if yyj1613 == 0 && yyv1613 == nil { + yyv1613 = []ThirdPartyResource{} + yyc1613 = true } } - yyh1816.End() - if yyc1816 { - *v = yyv1816 + yyh1613.End() + if yyc1613 { + *v = yyv1613 } } @@ -21702,10 +19461,10 @@ func (x codecSelfer1234) encSliceDeploymentCondition(v []DeploymentCondition, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1820 := range v { + for _, yyv1617 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1821 := &yyv1820 - yy1821.CodecEncodeSelf(e) + yy1618 := &yyv1617 + yy1618.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21715,83 +19474,83 @@ func (x codecSelfer1234) decSliceDeploymentCondition(v *[]DeploymentCondition, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1822 := *v - yyh1822, yyl1822 := z.DecSliceHelperStart() - var yyc1822 bool - if yyl1822 == 0 { - if yyv1822 == nil { - yyv1822 = []DeploymentCondition{} - yyc1822 = true - } else if len(yyv1822) != 0 { - yyv1822 = yyv1822[:0] - yyc1822 = true + yyv1619 := *v + yyh1619, yyl1619 := z.DecSliceHelperStart() + var yyc1619 bool + if yyl1619 == 0 { + if yyv1619 == nil { + yyv1619 = []DeploymentCondition{} + yyc1619 = true + } else if len(yyv1619) != 0 { + yyv1619 = yyv1619[:0] + yyc1619 = true } - } else if yyl1822 > 0 { - var yyrr1822, yyrl1822 int - var yyrt1822 bool - if yyl1822 > cap(yyv1822) { + } else if yyl1619 > 0 { + var yyrr1619, yyrl1619 int + var yyrt1619 bool + if yyl1619 > cap(yyv1619) { - yyrg1822 := len(yyv1822) > 0 - yyv21822 := yyv1822 - yyrl1822, yyrt1822 = z.DecInferLen(yyl1822, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1822 { - if yyrl1822 <= cap(yyv1822) { - yyv1822 = yyv1822[:yyrl1822] + yyrg1619 := len(yyv1619) > 0 + yyv21619 := yyv1619 + yyrl1619, yyrt1619 = z.DecInferLen(yyl1619, z.DecBasicHandle().MaxInitLen, 112) + if yyrt1619 { + if yyrl1619 <= cap(yyv1619) { + yyv1619 = yyv1619[:yyrl1619] } else { - yyv1822 = make([]DeploymentCondition, yyrl1822) + yyv1619 = make([]DeploymentCondition, yyrl1619) } } else { - yyv1822 = make([]DeploymentCondition, yyrl1822) + yyv1619 = make([]DeploymentCondition, yyrl1619) } - yyc1822 = true - yyrr1822 = len(yyv1822) - if yyrg1822 { - copy(yyv1822, yyv21822) + yyc1619 = true + yyrr1619 = len(yyv1619) + if yyrg1619 { + copy(yyv1619, yyv21619) } - } else if yyl1822 != len(yyv1822) { - yyv1822 = yyv1822[:yyl1822] - yyc1822 = true + } else if yyl1619 != len(yyv1619) { + yyv1619 = yyv1619[:yyl1619] + yyc1619 = true } - yyj1822 := 0 - for ; yyj1822 < yyrr1822; yyj1822++ { - yyh1822.ElemContainerState(yyj1822) + yyj1619 := 0 + for ; yyj1619 < yyrr1619; yyj1619++ { + yyh1619.ElemContainerState(yyj1619) if r.TryDecodeAsNil() { - yyv1822[yyj1822] = DeploymentCondition{} + yyv1619[yyj1619] = DeploymentCondition{} } else { - yyv1823 := &yyv1822[yyj1822] - yyv1823.CodecDecodeSelf(d) + yyv1620 := &yyv1619[yyj1619] + yyv1620.CodecDecodeSelf(d) } } - if yyrt1822 { - for ; yyj1822 < yyl1822; yyj1822++ { - yyv1822 = append(yyv1822, DeploymentCondition{}) - yyh1822.ElemContainerState(yyj1822) + if yyrt1619 { + for ; yyj1619 < yyl1619; yyj1619++ { + yyv1619 = append(yyv1619, DeploymentCondition{}) + yyh1619.ElemContainerState(yyj1619) if r.TryDecodeAsNil() { - yyv1822[yyj1822] = DeploymentCondition{} + yyv1619[yyj1619] = DeploymentCondition{} } else { - yyv1824 := &yyv1822[yyj1822] - yyv1824.CodecDecodeSelf(d) + yyv1621 := &yyv1619[yyj1619] + yyv1621.CodecDecodeSelf(d) } } } } else { - yyj1822 := 0 - for ; !r.CheckBreak(); yyj1822++ { + yyj1619 := 0 + for ; !r.CheckBreak(); yyj1619++ { - if yyj1822 >= len(yyv1822) { - yyv1822 = append(yyv1822, DeploymentCondition{}) // var yyz1822 DeploymentCondition - yyc1822 = true + if yyj1619 >= len(yyv1619) { + yyv1619 = append(yyv1619, DeploymentCondition{}) // var yyz1619 DeploymentCondition + yyc1619 = true } - yyh1822.ElemContainerState(yyj1822) - if yyj1822 < len(yyv1822) { + yyh1619.ElemContainerState(yyj1619) + if yyj1619 < len(yyv1619) { if r.TryDecodeAsNil() { - yyv1822[yyj1822] = DeploymentCondition{} + yyv1619[yyj1619] = DeploymentCondition{} } else { - yyv1825 := &yyv1822[yyj1822] - yyv1825.CodecDecodeSelf(d) + yyv1622 := &yyv1619[yyj1619] + yyv1622.CodecDecodeSelf(d) } } else { @@ -21799,17 +19558,17 @@ func (x codecSelfer1234) decSliceDeploymentCondition(v *[]DeploymentCondition, d } } - if yyj1822 < len(yyv1822) { - yyv1822 = yyv1822[:yyj1822] - yyc1822 = true - } else if yyj1822 == 0 && yyv1822 == nil { - yyv1822 = []DeploymentCondition{} - yyc1822 = true + if yyj1619 < len(yyv1619) { + yyv1619 = yyv1619[:yyj1619] + yyc1619 = true + } else if yyj1619 == 0 && yyv1619 == nil { + yyv1619 = []DeploymentCondition{} + yyc1619 = true } } - yyh1822.End() - if yyc1822 { - *v = yyv1822 + yyh1619.End() + if yyc1619 { + *v = yyv1619 } } @@ -21818,10 +19577,10 @@ func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1826 := range v { + for _, yyv1623 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1827 := &yyv1826 - yy1827.CodecEncodeSelf(e) + yy1624 := &yyv1623 + yy1624.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21831,83 +19590,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1828 := *v - yyh1828, yyl1828 := z.DecSliceHelperStart() - var yyc1828 bool - if yyl1828 == 0 { - if yyv1828 == nil { - yyv1828 = []Deployment{} - yyc1828 = true - } else if len(yyv1828) != 0 { - yyv1828 = yyv1828[:0] - yyc1828 = true + yyv1625 := *v + yyh1625, yyl1625 := z.DecSliceHelperStart() + var yyc1625 bool + if yyl1625 == 0 { + if yyv1625 == nil { + yyv1625 = []Deployment{} + yyc1625 = true + } else if len(yyv1625) != 0 { + yyv1625 = yyv1625[:0] + yyc1625 = true } - } else if yyl1828 > 0 { - var yyrr1828, yyrl1828 int - var yyrt1828 bool - if yyl1828 > cap(yyv1828) { + } else if yyl1625 > 0 { + var yyrr1625, yyrl1625 int + var yyrt1625 bool + if yyl1625 > cap(yyv1625) { - yyrg1828 := len(yyv1828) > 0 - yyv21828 := yyv1828 - yyrl1828, yyrt1828 = z.DecInferLen(yyl1828, z.DecBasicHandle().MaxInitLen, 856) - if yyrt1828 { - if yyrl1828 <= cap(yyv1828) { - yyv1828 = yyv1828[:yyrl1828] + yyrg1625 := len(yyv1625) > 0 + yyv21625 := yyv1625 + yyrl1625, yyrt1625 = z.DecInferLen(yyl1625, z.DecBasicHandle().MaxInitLen, 864) + if yyrt1625 { + if yyrl1625 <= cap(yyv1625) { + yyv1625 = yyv1625[:yyrl1625] } else { - yyv1828 = make([]Deployment, yyrl1828) + yyv1625 = make([]Deployment, yyrl1625) } } else { - yyv1828 = make([]Deployment, yyrl1828) + yyv1625 = make([]Deployment, yyrl1625) } - yyc1828 = true - yyrr1828 = len(yyv1828) - if yyrg1828 { - copy(yyv1828, yyv21828) + yyc1625 = true + yyrr1625 = len(yyv1625) + if yyrg1625 { + copy(yyv1625, yyv21625) } - } else if yyl1828 != len(yyv1828) { - yyv1828 = yyv1828[:yyl1828] - yyc1828 = true + } else if yyl1625 != len(yyv1625) { + yyv1625 = yyv1625[:yyl1625] + yyc1625 = true } - yyj1828 := 0 - for ; yyj1828 < yyrr1828; yyj1828++ { - yyh1828.ElemContainerState(yyj1828) + yyj1625 := 0 + for ; yyj1625 < yyrr1625; yyj1625++ { + yyh1625.ElemContainerState(yyj1625) if r.TryDecodeAsNil() { - yyv1828[yyj1828] = Deployment{} + yyv1625[yyj1625] = Deployment{} } else { - yyv1829 := &yyv1828[yyj1828] - yyv1829.CodecDecodeSelf(d) + yyv1626 := &yyv1625[yyj1625] + yyv1626.CodecDecodeSelf(d) } } - if yyrt1828 { - for ; yyj1828 < yyl1828; yyj1828++ { - yyv1828 = append(yyv1828, Deployment{}) - yyh1828.ElemContainerState(yyj1828) + if yyrt1625 { + for ; yyj1625 < yyl1625; yyj1625++ { + yyv1625 = append(yyv1625, Deployment{}) + yyh1625.ElemContainerState(yyj1625) if r.TryDecodeAsNil() { - yyv1828[yyj1828] = Deployment{} + yyv1625[yyj1625] = Deployment{} } else { - yyv1830 := &yyv1828[yyj1828] - yyv1830.CodecDecodeSelf(d) + yyv1627 := &yyv1625[yyj1625] + yyv1627.CodecDecodeSelf(d) } } } } else { - yyj1828 := 0 - for ; !r.CheckBreak(); yyj1828++ { + yyj1625 := 0 + for ; !r.CheckBreak(); yyj1625++ { - if yyj1828 >= len(yyv1828) { - yyv1828 = append(yyv1828, Deployment{}) // var yyz1828 Deployment - yyc1828 = true + if yyj1625 >= len(yyv1625) { + yyv1625 = append(yyv1625, Deployment{}) // var yyz1625 Deployment + yyc1625 = true } - yyh1828.ElemContainerState(yyj1828) - if yyj1828 < len(yyv1828) { + yyh1625.ElemContainerState(yyj1625) + if yyj1625 < len(yyv1625) { if r.TryDecodeAsNil() { - yyv1828[yyj1828] = Deployment{} + yyv1625[yyj1625] = Deployment{} } else { - yyv1831 := &yyv1828[yyj1828] - yyv1831.CodecDecodeSelf(d) + yyv1628 := &yyv1625[yyj1625] + yyv1628.CodecDecodeSelf(d) } } else { @@ -21915,17 +19674,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1828 < len(yyv1828) { - yyv1828 = yyv1828[:yyj1828] - yyc1828 = true - } else if yyj1828 == 0 && yyv1828 == nil { - yyv1828 = []Deployment{} - yyc1828 = true + if yyj1625 < len(yyv1625) { + yyv1625 = yyv1625[:yyj1625] + yyc1625 = true + } else if yyj1625 == 0 && yyv1625 == nil { + yyv1625 = []Deployment{} + yyc1625 = true } } - yyh1828.End() - if yyc1828 { - *v = yyv1828 + yyh1625.End() + if yyc1625 { + *v = yyv1625 } } @@ -21934,10 +19693,10 @@ func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1832 := range v { + for _, yyv1629 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1833 := &yyv1832 - yy1833.CodecEncodeSelf(e) + yy1630 := &yyv1629 + yy1630.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21947,83 +19706,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1834 := *v - yyh1834, yyl1834 := z.DecSliceHelperStart() - var yyc1834 bool - if yyl1834 == 0 { - if yyv1834 == nil { - yyv1834 = []DaemonSet{} - yyc1834 = true - } else if len(yyv1834) != 0 { - yyv1834 = yyv1834[:0] - yyc1834 = true + yyv1631 := *v + yyh1631, yyl1631 := z.DecSliceHelperStart() + var yyc1631 bool + if yyl1631 == 0 { + if yyv1631 == nil { + yyv1631 = []DaemonSet{} + yyc1631 = true + } else if len(yyv1631) != 0 { + yyv1631 = yyv1631[:0] + yyc1631 = true } - } else if yyl1834 > 0 { - var yyrr1834, yyrl1834 int - var yyrt1834 bool - if yyl1834 > cap(yyv1834) { + } else if yyl1631 > 0 { + var yyrr1631, yyrl1631 int + var yyrt1631 bool + if yyl1631 > cap(yyv1631) { - yyrg1834 := len(yyv1834) > 0 - yyv21834 := yyv1834 - yyrl1834, yyrt1834 = z.DecInferLen(yyl1834, z.DecBasicHandle().MaxInitLen, 752) - if yyrt1834 { - if yyrl1834 <= cap(yyv1834) { - yyv1834 = yyv1834[:yyrl1834] + yyrg1631 := len(yyv1631) > 0 + yyv21631 := yyv1631 + yyrl1631, yyrt1631 = z.DecInferLen(yyl1631, z.DecBasicHandle().MaxInitLen, 760) + if yyrt1631 { + if yyrl1631 <= cap(yyv1631) { + yyv1631 = yyv1631[:yyrl1631] } else { - yyv1834 = make([]DaemonSet, yyrl1834) + yyv1631 = make([]DaemonSet, yyrl1631) } } else { - yyv1834 = make([]DaemonSet, yyrl1834) + yyv1631 = make([]DaemonSet, yyrl1631) } - yyc1834 = true - yyrr1834 = len(yyv1834) - if yyrg1834 { - copy(yyv1834, yyv21834) + yyc1631 = true + yyrr1631 = len(yyv1631) + if yyrg1631 { + copy(yyv1631, yyv21631) } - } else if yyl1834 != len(yyv1834) { - yyv1834 = yyv1834[:yyl1834] - yyc1834 = true + } else if yyl1631 != len(yyv1631) { + yyv1631 = yyv1631[:yyl1631] + yyc1631 = true } - yyj1834 := 0 - for ; yyj1834 < yyrr1834; yyj1834++ { - yyh1834.ElemContainerState(yyj1834) + yyj1631 := 0 + for ; yyj1631 < yyrr1631; yyj1631++ { + yyh1631.ElemContainerState(yyj1631) if r.TryDecodeAsNil() { - yyv1834[yyj1834] = DaemonSet{} + yyv1631[yyj1631] = DaemonSet{} } else { - yyv1835 := &yyv1834[yyj1834] - yyv1835.CodecDecodeSelf(d) + yyv1632 := &yyv1631[yyj1631] + yyv1632.CodecDecodeSelf(d) } } - if yyrt1834 { - for ; yyj1834 < yyl1834; yyj1834++ { - yyv1834 = append(yyv1834, DaemonSet{}) - yyh1834.ElemContainerState(yyj1834) + if yyrt1631 { + for ; yyj1631 < yyl1631; yyj1631++ { + yyv1631 = append(yyv1631, DaemonSet{}) + yyh1631.ElemContainerState(yyj1631) if r.TryDecodeAsNil() { - yyv1834[yyj1834] = DaemonSet{} + yyv1631[yyj1631] = DaemonSet{} } else { - yyv1836 := &yyv1834[yyj1834] - yyv1836.CodecDecodeSelf(d) + yyv1633 := &yyv1631[yyj1631] + yyv1633.CodecDecodeSelf(d) } } } } else { - yyj1834 := 0 - for ; !r.CheckBreak(); yyj1834++ { + yyj1631 := 0 + for ; !r.CheckBreak(); yyj1631++ { - if yyj1834 >= len(yyv1834) { - yyv1834 = append(yyv1834, DaemonSet{}) // var yyz1834 DaemonSet - yyc1834 = true + if yyj1631 >= len(yyv1631) { + yyv1631 = append(yyv1631, DaemonSet{}) // var yyz1631 DaemonSet + yyc1631 = true } - yyh1834.ElemContainerState(yyj1834) - if yyj1834 < len(yyv1834) { + yyh1631.ElemContainerState(yyj1631) + if yyj1631 < len(yyv1631) { if r.TryDecodeAsNil() { - yyv1834[yyj1834] = DaemonSet{} + yyv1631[yyj1631] = DaemonSet{} } else { - yyv1837 := &yyv1834[yyj1834] - yyv1837.CodecDecodeSelf(d) + yyv1634 := &yyv1631[yyj1631] + yyv1634.CodecDecodeSelf(d) } } else { @@ -22031,17 +19790,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1834 < len(yyv1834) { - yyv1834 = yyv1834[:yyj1834] - yyc1834 = true - } else if yyj1834 == 0 && yyv1834 == nil { - yyv1834 = []DaemonSet{} - yyc1834 = true + if yyj1631 < len(yyv1631) { + yyv1631 = yyv1631[:yyj1631] + yyc1631 = true + } else if yyj1631 == 0 && yyv1631 == nil { + yyv1631 = []DaemonSet{} + yyc1631 = true } } - yyh1834.End() - if yyc1834 { - *v = yyv1834 + yyh1631.End() + if yyc1631 { + *v = yyv1631 } } @@ -22050,10 +19809,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1838 := range v { + for _, yyv1635 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1839 := &yyv1838 - yy1839.CodecEncodeSelf(e) + yy1636 := &yyv1635 + yy1636.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22063,83 +19822,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1840 := *v - yyh1840, yyl1840 := z.DecSliceHelperStart() - var yyc1840 bool - if yyl1840 == 0 { - if yyv1840 == nil { - yyv1840 = []ThirdPartyResourceData{} - yyc1840 = true - } else if len(yyv1840) != 0 { - yyv1840 = yyv1840[:0] - yyc1840 = true + yyv1637 := *v + yyh1637, yyl1637 := z.DecSliceHelperStart() + var yyc1637 bool + if yyl1637 == 0 { + if yyv1637 == nil { + yyv1637 = []ThirdPartyResourceData{} + yyc1637 = true + } else if len(yyv1637) != 0 { + yyv1637 = yyv1637[:0] + yyc1637 = true } - } else if yyl1840 > 0 { - var yyrr1840, yyrl1840 int - var yyrt1840 bool - if yyl1840 > cap(yyv1840) { + } else if yyl1637 > 0 { + var yyrr1637, yyrl1637 int + var yyrt1637 bool + if yyl1637 > cap(yyv1637) { - yyrg1840 := len(yyv1840) > 0 - yyv21840 := yyv1840 - yyrl1840, yyrt1840 = z.DecInferLen(yyl1840, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1840 { - if yyrl1840 <= cap(yyv1840) { - yyv1840 = yyv1840[:yyrl1840] + yyrg1637 := len(yyv1637) > 0 + yyv21637 := yyv1637 + yyrl1637, yyrt1637 = z.DecInferLen(yyl1637, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1637 { + if yyrl1637 <= cap(yyv1637) { + yyv1637 = yyv1637[:yyrl1637] } else { - yyv1840 = make([]ThirdPartyResourceData, yyrl1840) + yyv1637 = make([]ThirdPartyResourceData, yyrl1637) } } else { - yyv1840 = make([]ThirdPartyResourceData, yyrl1840) + yyv1637 = make([]ThirdPartyResourceData, yyrl1637) } - yyc1840 = true - yyrr1840 = len(yyv1840) - if yyrg1840 { - copy(yyv1840, yyv21840) + yyc1637 = true + yyrr1637 = len(yyv1637) + if yyrg1637 { + copy(yyv1637, yyv21637) } - } else if yyl1840 != len(yyv1840) { - yyv1840 = yyv1840[:yyl1840] - yyc1840 = true + } else if yyl1637 != len(yyv1637) { + yyv1637 = yyv1637[:yyl1637] + yyc1637 = true } - yyj1840 := 0 - for ; yyj1840 < yyrr1840; yyj1840++ { - yyh1840.ElemContainerState(yyj1840) + yyj1637 := 0 + for ; yyj1637 < yyrr1637; yyj1637++ { + yyh1637.ElemContainerState(yyj1637) if r.TryDecodeAsNil() { - yyv1840[yyj1840] = ThirdPartyResourceData{} + yyv1637[yyj1637] = ThirdPartyResourceData{} } else { - yyv1841 := &yyv1840[yyj1840] - yyv1841.CodecDecodeSelf(d) + yyv1638 := &yyv1637[yyj1637] + yyv1638.CodecDecodeSelf(d) } } - if yyrt1840 { - for ; yyj1840 < yyl1840; yyj1840++ { - yyv1840 = append(yyv1840, ThirdPartyResourceData{}) - yyh1840.ElemContainerState(yyj1840) + if yyrt1637 { + for ; yyj1637 < yyl1637; yyj1637++ { + yyv1637 = append(yyv1637, ThirdPartyResourceData{}) + yyh1637.ElemContainerState(yyj1637) if r.TryDecodeAsNil() { - yyv1840[yyj1840] = ThirdPartyResourceData{} + yyv1637[yyj1637] = ThirdPartyResourceData{} } else { - yyv1842 := &yyv1840[yyj1840] - yyv1842.CodecDecodeSelf(d) + yyv1639 := &yyv1637[yyj1637] + yyv1639.CodecDecodeSelf(d) } } } } else { - yyj1840 := 0 - for ; !r.CheckBreak(); yyj1840++ { + yyj1637 := 0 + for ; !r.CheckBreak(); yyj1637++ { - if yyj1840 >= len(yyv1840) { - yyv1840 = append(yyv1840, ThirdPartyResourceData{}) // var yyz1840 ThirdPartyResourceData - yyc1840 = true + if yyj1637 >= len(yyv1637) { + yyv1637 = append(yyv1637, ThirdPartyResourceData{}) // var yyz1637 ThirdPartyResourceData + yyc1637 = true } - yyh1840.ElemContainerState(yyj1840) - if yyj1840 < len(yyv1840) { + yyh1637.ElemContainerState(yyj1637) + if yyj1637 < len(yyv1637) { if r.TryDecodeAsNil() { - yyv1840[yyj1840] = ThirdPartyResourceData{} + yyv1637[yyj1637] = ThirdPartyResourceData{} } else { - yyv1843 := &yyv1840[yyj1840] - yyv1843.CodecDecodeSelf(d) + yyv1640 := &yyv1637[yyj1637] + yyv1640.CodecDecodeSelf(d) } } else { @@ -22147,249 +19906,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1840 < len(yyv1840) { - yyv1840 = yyv1840[:yyj1840] - yyc1840 = true - } else if yyj1840 == 0 && yyv1840 == nil { - yyv1840 = []ThirdPartyResourceData{} - yyc1840 = true + if yyj1637 < len(yyv1637) { + yyv1637 = yyv1637[:yyj1637] + yyc1637 = true + } else if yyj1637 == 0 && yyv1637 == nil { + yyv1637 = []ThirdPartyResourceData{} + yyc1637 = true } } - yyh1840.End() - if yyc1840 { - *v = yyv1840 - } -} - -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 _, yyv1844 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1845 := &yyv1844 - yy1845.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1846 := *v - yyh1846, yyl1846 := z.DecSliceHelperStart() - var yyc1846 bool - if yyl1846 == 0 { - if yyv1846 == nil { - yyv1846 = []Job{} - yyc1846 = true - } else if len(yyv1846) != 0 { - yyv1846 = yyv1846[:0] - yyc1846 = true - } - } else if yyl1846 > 0 { - var yyrr1846, yyrl1846 int - var yyrt1846 bool - if yyl1846 > cap(yyv1846) { - - yyrg1846 := len(yyv1846) > 0 - yyv21846 := yyv1846 - yyrl1846, yyrt1846 = z.DecInferLen(yyl1846, z.DecBasicHandle().MaxInitLen, 824) - if yyrt1846 { - if yyrl1846 <= cap(yyv1846) { - yyv1846 = yyv1846[:yyrl1846] - } else { - yyv1846 = make([]Job, yyrl1846) - } - } else { - yyv1846 = make([]Job, yyrl1846) - } - yyc1846 = true - yyrr1846 = len(yyv1846) - if yyrg1846 { - copy(yyv1846, yyv21846) - } - } else if yyl1846 != len(yyv1846) { - yyv1846 = yyv1846[:yyl1846] - yyc1846 = true - } - yyj1846 := 0 - for ; yyj1846 < yyrr1846; yyj1846++ { - yyh1846.ElemContainerState(yyj1846) - if r.TryDecodeAsNil() { - yyv1846[yyj1846] = Job{} - } else { - yyv1847 := &yyv1846[yyj1846] - yyv1847.CodecDecodeSelf(d) - } - - } - if yyrt1846 { - for ; yyj1846 < yyl1846; yyj1846++ { - yyv1846 = append(yyv1846, Job{}) - yyh1846.ElemContainerState(yyj1846) - if r.TryDecodeAsNil() { - yyv1846[yyj1846] = Job{} - } else { - yyv1848 := &yyv1846[yyj1846] - yyv1848.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1846 := 0 - for ; !r.CheckBreak(); yyj1846++ { - - if yyj1846 >= len(yyv1846) { - yyv1846 = append(yyv1846, Job{}) // var yyz1846 Job - yyc1846 = true - } - yyh1846.ElemContainerState(yyj1846) - if yyj1846 < len(yyv1846) { - if r.TryDecodeAsNil() { - yyv1846[yyj1846] = Job{} - } else { - yyv1849 := &yyv1846[yyj1846] - yyv1849.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1846 < len(yyv1846) { - yyv1846 = yyv1846[:yyj1846] - yyc1846 = true - } else if yyj1846 == 0 && yyv1846 == nil { - yyv1846 = []Job{} - yyc1846 = true - } - } - yyh1846.End() - if yyc1846 { - *v = yyv1846 - } -} - -func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1850 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1851 := &yyv1850 - yy1851.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1852 := *v - yyh1852, yyl1852 := z.DecSliceHelperStart() - var yyc1852 bool - if yyl1852 == 0 { - if yyv1852 == nil { - yyv1852 = []JobCondition{} - yyc1852 = true - } else if len(yyv1852) != 0 { - yyv1852 = yyv1852[:0] - yyc1852 = true - } - } else if yyl1852 > 0 { - var yyrr1852, yyrl1852 int - var yyrt1852 bool - if yyl1852 > cap(yyv1852) { - - yyrg1852 := len(yyv1852) > 0 - yyv21852 := yyv1852 - yyrl1852, yyrt1852 = z.DecInferLen(yyl1852, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1852 { - if yyrl1852 <= cap(yyv1852) { - yyv1852 = yyv1852[:yyrl1852] - } else { - yyv1852 = make([]JobCondition, yyrl1852) - } - } else { - yyv1852 = make([]JobCondition, yyrl1852) - } - yyc1852 = true - yyrr1852 = len(yyv1852) - if yyrg1852 { - copy(yyv1852, yyv21852) - } - } else if yyl1852 != len(yyv1852) { - yyv1852 = yyv1852[:yyl1852] - yyc1852 = true - } - yyj1852 := 0 - for ; yyj1852 < yyrr1852; yyj1852++ { - yyh1852.ElemContainerState(yyj1852) - if r.TryDecodeAsNil() { - yyv1852[yyj1852] = JobCondition{} - } else { - yyv1853 := &yyv1852[yyj1852] - yyv1853.CodecDecodeSelf(d) - } - - } - if yyrt1852 { - for ; yyj1852 < yyl1852; yyj1852++ { - yyv1852 = append(yyv1852, JobCondition{}) - yyh1852.ElemContainerState(yyj1852) - if r.TryDecodeAsNil() { - yyv1852[yyj1852] = JobCondition{} - } else { - yyv1854 := &yyv1852[yyj1852] - yyv1854.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1852 := 0 - for ; !r.CheckBreak(); yyj1852++ { - - if yyj1852 >= len(yyv1852) { - yyv1852 = append(yyv1852, JobCondition{}) // var yyz1852 JobCondition - yyc1852 = true - } - yyh1852.ElemContainerState(yyj1852) - if yyj1852 < len(yyv1852) { - if r.TryDecodeAsNil() { - yyv1852[yyj1852] = JobCondition{} - } else { - yyv1855 := &yyv1852[yyj1852] - yyv1855.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1852 < len(yyv1852) { - yyv1852 = yyv1852[:yyj1852] - yyc1852 = true - } else if yyj1852 == 0 && yyv1852 == nil { - yyv1852 = []JobCondition{} - yyc1852 = true - } - } - yyh1852.End() - if yyc1852 { - *v = yyv1852 + yyh1637.End() + if yyc1637 { + *v = yyv1637 } } @@ -22398,10 +19925,10 @@ func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1856 := range v { + for _, yyv1641 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1857 := &yyv1856 - yy1857.CodecEncodeSelf(e) + yy1642 := &yyv1641 + yy1642.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22411,83 +19938,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1858 := *v - yyh1858, yyl1858 := z.DecSliceHelperStart() - var yyc1858 bool - if yyl1858 == 0 { - if yyv1858 == nil { - yyv1858 = []Ingress{} - yyc1858 = true - } else if len(yyv1858) != 0 { - yyv1858 = yyv1858[:0] - yyc1858 = true + yyv1643 := *v + yyh1643, yyl1643 := z.DecSliceHelperStart() + var yyc1643 bool + if yyl1643 == 0 { + if yyv1643 == nil { + yyv1643 = []Ingress{} + yyc1643 = true + } else if len(yyv1643) != 0 { + yyv1643 = yyv1643[:0] + yyc1643 = true } - } else if yyl1858 > 0 { - var yyrr1858, yyrl1858 int - var yyrt1858 bool - if yyl1858 > cap(yyv1858) { + } else if yyl1643 > 0 { + var yyrr1643, yyrl1643 int + var yyrt1643 bool + if yyl1643 > cap(yyv1643) { - yyrg1858 := len(yyv1858) > 0 - yyv21858 := yyv1858 - yyrl1858, yyrt1858 = z.DecInferLen(yyl1858, z.DecBasicHandle().MaxInitLen, 336) - if yyrt1858 { - if yyrl1858 <= cap(yyv1858) { - yyv1858 = yyv1858[:yyrl1858] + yyrg1643 := len(yyv1643) > 0 + yyv21643 := yyv1643 + yyrl1643, yyrt1643 = z.DecInferLen(yyl1643, z.DecBasicHandle().MaxInitLen, 336) + if yyrt1643 { + if yyrl1643 <= cap(yyv1643) { + yyv1643 = yyv1643[:yyrl1643] } else { - yyv1858 = make([]Ingress, yyrl1858) + yyv1643 = make([]Ingress, yyrl1643) } } else { - yyv1858 = make([]Ingress, yyrl1858) + yyv1643 = make([]Ingress, yyrl1643) } - yyc1858 = true - yyrr1858 = len(yyv1858) - if yyrg1858 { - copy(yyv1858, yyv21858) + yyc1643 = true + yyrr1643 = len(yyv1643) + if yyrg1643 { + copy(yyv1643, yyv21643) } - } else if yyl1858 != len(yyv1858) { - yyv1858 = yyv1858[:yyl1858] - yyc1858 = true + } else if yyl1643 != len(yyv1643) { + yyv1643 = yyv1643[:yyl1643] + yyc1643 = true } - yyj1858 := 0 - for ; yyj1858 < yyrr1858; yyj1858++ { - yyh1858.ElemContainerState(yyj1858) + yyj1643 := 0 + for ; yyj1643 < yyrr1643; yyj1643++ { + yyh1643.ElemContainerState(yyj1643) if r.TryDecodeAsNil() { - yyv1858[yyj1858] = Ingress{} + yyv1643[yyj1643] = Ingress{} } else { - yyv1859 := &yyv1858[yyj1858] - yyv1859.CodecDecodeSelf(d) + yyv1644 := &yyv1643[yyj1643] + yyv1644.CodecDecodeSelf(d) } } - if yyrt1858 { - for ; yyj1858 < yyl1858; yyj1858++ { - yyv1858 = append(yyv1858, Ingress{}) - yyh1858.ElemContainerState(yyj1858) + if yyrt1643 { + for ; yyj1643 < yyl1643; yyj1643++ { + yyv1643 = append(yyv1643, Ingress{}) + yyh1643.ElemContainerState(yyj1643) if r.TryDecodeAsNil() { - yyv1858[yyj1858] = Ingress{} + yyv1643[yyj1643] = Ingress{} } else { - yyv1860 := &yyv1858[yyj1858] - yyv1860.CodecDecodeSelf(d) + yyv1645 := &yyv1643[yyj1643] + yyv1645.CodecDecodeSelf(d) } } } } else { - yyj1858 := 0 - for ; !r.CheckBreak(); yyj1858++ { + yyj1643 := 0 + for ; !r.CheckBreak(); yyj1643++ { - if yyj1858 >= len(yyv1858) { - yyv1858 = append(yyv1858, Ingress{}) // var yyz1858 Ingress - yyc1858 = true + if yyj1643 >= len(yyv1643) { + yyv1643 = append(yyv1643, Ingress{}) // var yyz1643 Ingress + yyc1643 = true } - yyh1858.ElemContainerState(yyj1858) - if yyj1858 < len(yyv1858) { + yyh1643.ElemContainerState(yyj1643) + if yyj1643 < len(yyv1643) { if r.TryDecodeAsNil() { - yyv1858[yyj1858] = Ingress{} + yyv1643[yyj1643] = Ingress{} } else { - yyv1861 := &yyv1858[yyj1858] - yyv1861.CodecDecodeSelf(d) + yyv1646 := &yyv1643[yyj1643] + yyv1646.CodecDecodeSelf(d) } } else { @@ -22495,17 +20022,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1858 < len(yyv1858) { - yyv1858 = yyv1858[:yyj1858] - yyc1858 = true - } else if yyj1858 == 0 && yyv1858 == nil { - yyv1858 = []Ingress{} - yyc1858 = true + if yyj1643 < len(yyv1643) { + yyv1643 = yyv1643[:yyj1643] + yyc1643 = true + } else if yyj1643 == 0 && yyv1643 == nil { + yyv1643 = []Ingress{} + yyc1643 = true } } - yyh1858.End() - if yyc1858 { - *v = yyv1858 + yyh1643.End() + if yyc1643 { + *v = yyv1643 } } @@ -22514,10 +20041,10 @@ func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1862 := range v { + for _, yyv1647 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1863 := &yyv1862 - yy1863.CodecEncodeSelf(e) + yy1648 := &yyv1647 + yy1648.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22527,83 +20054,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1864 := *v - yyh1864, yyl1864 := z.DecSliceHelperStart() - var yyc1864 bool - if yyl1864 == 0 { - if yyv1864 == nil { - yyv1864 = []IngressTLS{} - yyc1864 = true - } else if len(yyv1864) != 0 { - yyv1864 = yyv1864[:0] - yyc1864 = true + yyv1649 := *v + yyh1649, yyl1649 := z.DecSliceHelperStart() + var yyc1649 bool + if yyl1649 == 0 { + if yyv1649 == nil { + yyv1649 = []IngressTLS{} + yyc1649 = true + } else if len(yyv1649) != 0 { + yyv1649 = yyv1649[:0] + yyc1649 = true } - } else if yyl1864 > 0 { - var yyrr1864, yyrl1864 int - var yyrt1864 bool - if yyl1864 > cap(yyv1864) { + } else if yyl1649 > 0 { + var yyrr1649, yyrl1649 int + var yyrt1649 bool + if yyl1649 > cap(yyv1649) { - yyrg1864 := len(yyv1864) > 0 - yyv21864 := yyv1864 - yyrl1864, yyrt1864 = z.DecInferLen(yyl1864, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1864 { - if yyrl1864 <= cap(yyv1864) { - yyv1864 = yyv1864[:yyrl1864] + yyrg1649 := len(yyv1649) > 0 + yyv21649 := yyv1649 + yyrl1649, yyrt1649 = z.DecInferLen(yyl1649, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1649 { + if yyrl1649 <= cap(yyv1649) { + yyv1649 = yyv1649[:yyrl1649] } else { - yyv1864 = make([]IngressTLS, yyrl1864) + yyv1649 = make([]IngressTLS, yyrl1649) } } else { - yyv1864 = make([]IngressTLS, yyrl1864) + yyv1649 = make([]IngressTLS, yyrl1649) } - yyc1864 = true - yyrr1864 = len(yyv1864) - if yyrg1864 { - copy(yyv1864, yyv21864) + yyc1649 = true + yyrr1649 = len(yyv1649) + if yyrg1649 { + copy(yyv1649, yyv21649) } - } else if yyl1864 != len(yyv1864) { - yyv1864 = yyv1864[:yyl1864] - yyc1864 = true + } else if yyl1649 != len(yyv1649) { + yyv1649 = yyv1649[:yyl1649] + yyc1649 = true } - yyj1864 := 0 - for ; yyj1864 < yyrr1864; yyj1864++ { - yyh1864.ElemContainerState(yyj1864) + yyj1649 := 0 + for ; yyj1649 < yyrr1649; yyj1649++ { + yyh1649.ElemContainerState(yyj1649) if r.TryDecodeAsNil() { - yyv1864[yyj1864] = IngressTLS{} + yyv1649[yyj1649] = IngressTLS{} } else { - yyv1865 := &yyv1864[yyj1864] - yyv1865.CodecDecodeSelf(d) + yyv1650 := &yyv1649[yyj1649] + yyv1650.CodecDecodeSelf(d) } } - if yyrt1864 { - for ; yyj1864 < yyl1864; yyj1864++ { - yyv1864 = append(yyv1864, IngressTLS{}) - yyh1864.ElemContainerState(yyj1864) + if yyrt1649 { + for ; yyj1649 < yyl1649; yyj1649++ { + yyv1649 = append(yyv1649, IngressTLS{}) + yyh1649.ElemContainerState(yyj1649) if r.TryDecodeAsNil() { - yyv1864[yyj1864] = IngressTLS{} + yyv1649[yyj1649] = IngressTLS{} } else { - yyv1866 := &yyv1864[yyj1864] - yyv1866.CodecDecodeSelf(d) + yyv1651 := &yyv1649[yyj1649] + yyv1651.CodecDecodeSelf(d) } } } } else { - yyj1864 := 0 - for ; !r.CheckBreak(); yyj1864++ { + yyj1649 := 0 + for ; !r.CheckBreak(); yyj1649++ { - if yyj1864 >= len(yyv1864) { - yyv1864 = append(yyv1864, IngressTLS{}) // var yyz1864 IngressTLS - yyc1864 = true + if yyj1649 >= len(yyv1649) { + yyv1649 = append(yyv1649, IngressTLS{}) // var yyz1649 IngressTLS + yyc1649 = true } - yyh1864.ElemContainerState(yyj1864) - if yyj1864 < len(yyv1864) { + yyh1649.ElemContainerState(yyj1649) + if yyj1649 < len(yyv1649) { if r.TryDecodeAsNil() { - yyv1864[yyj1864] = IngressTLS{} + yyv1649[yyj1649] = IngressTLS{} } else { - yyv1867 := &yyv1864[yyj1864] - yyv1867.CodecDecodeSelf(d) + yyv1652 := &yyv1649[yyj1649] + yyv1652.CodecDecodeSelf(d) } } else { @@ -22611,17 +20138,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1864 < len(yyv1864) { - yyv1864 = yyv1864[:yyj1864] - yyc1864 = true - } else if yyj1864 == 0 && yyv1864 == nil { - yyv1864 = []IngressTLS{} - yyc1864 = true + if yyj1649 < len(yyv1649) { + yyv1649 = yyv1649[:yyj1649] + yyc1649 = true + } else if yyj1649 == 0 && yyv1649 == nil { + yyv1649 = []IngressTLS{} + yyc1649 = true } } - yyh1864.End() - if yyc1864 { - *v = yyv1864 + yyh1649.End() + if yyc1649 { + *v = yyv1649 } } @@ -22630,10 +20157,10 @@ func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1868 := range v { + for _, yyv1653 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1869 := &yyv1868 - yy1869.CodecEncodeSelf(e) + yy1654 := &yyv1653 + yy1654.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22643,83 +20170,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1870 := *v - yyh1870, yyl1870 := z.DecSliceHelperStart() - var yyc1870 bool - if yyl1870 == 0 { - if yyv1870 == nil { - yyv1870 = []IngressRule{} - yyc1870 = true - } else if len(yyv1870) != 0 { - yyv1870 = yyv1870[:0] - yyc1870 = true + yyv1655 := *v + yyh1655, yyl1655 := z.DecSliceHelperStart() + var yyc1655 bool + if yyl1655 == 0 { + if yyv1655 == nil { + yyv1655 = []IngressRule{} + yyc1655 = true + } else if len(yyv1655) != 0 { + yyv1655 = yyv1655[:0] + yyc1655 = true } - } else if yyl1870 > 0 { - var yyrr1870, yyrl1870 int - var yyrt1870 bool - if yyl1870 > cap(yyv1870) { + } else if yyl1655 > 0 { + var yyrr1655, yyrl1655 int + var yyrt1655 bool + if yyl1655 > cap(yyv1655) { - yyrg1870 := len(yyv1870) > 0 - yyv21870 := yyv1870 - yyrl1870, yyrt1870 = z.DecInferLen(yyl1870, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1870 { - if yyrl1870 <= cap(yyv1870) { - yyv1870 = yyv1870[:yyrl1870] + yyrg1655 := len(yyv1655) > 0 + yyv21655 := yyv1655 + yyrl1655, yyrt1655 = z.DecInferLen(yyl1655, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1655 { + if yyrl1655 <= cap(yyv1655) { + yyv1655 = yyv1655[:yyrl1655] } else { - yyv1870 = make([]IngressRule, yyrl1870) + yyv1655 = make([]IngressRule, yyrl1655) } } else { - yyv1870 = make([]IngressRule, yyrl1870) + yyv1655 = make([]IngressRule, yyrl1655) } - yyc1870 = true - yyrr1870 = len(yyv1870) - if yyrg1870 { - copy(yyv1870, yyv21870) + yyc1655 = true + yyrr1655 = len(yyv1655) + if yyrg1655 { + copy(yyv1655, yyv21655) } - } else if yyl1870 != len(yyv1870) { - yyv1870 = yyv1870[:yyl1870] - yyc1870 = true + } else if yyl1655 != len(yyv1655) { + yyv1655 = yyv1655[:yyl1655] + yyc1655 = true } - yyj1870 := 0 - for ; yyj1870 < yyrr1870; yyj1870++ { - yyh1870.ElemContainerState(yyj1870) + yyj1655 := 0 + for ; yyj1655 < yyrr1655; yyj1655++ { + yyh1655.ElemContainerState(yyj1655) if r.TryDecodeAsNil() { - yyv1870[yyj1870] = IngressRule{} + yyv1655[yyj1655] = IngressRule{} } else { - yyv1871 := &yyv1870[yyj1870] - yyv1871.CodecDecodeSelf(d) + yyv1656 := &yyv1655[yyj1655] + yyv1656.CodecDecodeSelf(d) } } - if yyrt1870 { - for ; yyj1870 < yyl1870; yyj1870++ { - yyv1870 = append(yyv1870, IngressRule{}) - yyh1870.ElemContainerState(yyj1870) + if yyrt1655 { + for ; yyj1655 < yyl1655; yyj1655++ { + yyv1655 = append(yyv1655, IngressRule{}) + yyh1655.ElemContainerState(yyj1655) if r.TryDecodeAsNil() { - yyv1870[yyj1870] = IngressRule{} + yyv1655[yyj1655] = IngressRule{} } else { - yyv1872 := &yyv1870[yyj1870] - yyv1872.CodecDecodeSelf(d) + yyv1657 := &yyv1655[yyj1655] + yyv1657.CodecDecodeSelf(d) } } } } else { - yyj1870 := 0 - for ; !r.CheckBreak(); yyj1870++ { + yyj1655 := 0 + for ; !r.CheckBreak(); yyj1655++ { - if yyj1870 >= len(yyv1870) { - yyv1870 = append(yyv1870, IngressRule{}) // var yyz1870 IngressRule - yyc1870 = true + if yyj1655 >= len(yyv1655) { + yyv1655 = append(yyv1655, IngressRule{}) // var yyz1655 IngressRule + yyc1655 = true } - yyh1870.ElemContainerState(yyj1870) - if yyj1870 < len(yyv1870) { + yyh1655.ElemContainerState(yyj1655) + if yyj1655 < len(yyv1655) { if r.TryDecodeAsNil() { - yyv1870[yyj1870] = IngressRule{} + yyv1655[yyj1655] = IngressRule{} } else { - yyv1873 := &yyv1870[yyj1870] - yyv1873.CodecDecodeSelf(d) + yyv1658 := &yyv1655[yyj1655] + yyv1658.CodecDecodeSelf(d) } } else { @@ -22727,17 +20254,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1870 < len(yyv1870) { - yyv1870 = yyv1870[:yyj1870] - yyc1870 = true - } else if yyj1870 == 0 && yyv1870 == nil { - yyv1870 = []IngressRule{} - yyc1870 = true + if yyj1655 < len(yyv1655) { + yyv1655 = yyv1655[:yyj1655] + yyc1655 = true + } else if yyj1655 == 0 && yyv1655 == nil { + yyv1655 = []IngressRule{} + yyc1655 = true } } - yyh1870.End() - if yyc1870 { - *v = yyv1870 + yyh1655.End() + if yyc1655 { + *v = yyv1655 } } @@ -22746,10 +20273,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1874 := range v { + for _, yyv1659 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1875 := &yyv1874 - yy1875.CodecEncodeSelf(e) + yy1660 := &yyv1659 + yy1660.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22759,83 +20286,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1876 := *v - yyh1876, yyl1876 := z.DecSliceHelperStart() - var yyc1876 bool - if yyl1876 == 0 { - if yyv1876 == nil { - yyv1876 = []HTTPIngressPath{} - yyc1876 = true - } else if len(yyv1876) != 0 { - yyv1876 = yyv1876[:0] - yyc1876 = true + yyv1661 := *v + yyh1661, yyl1661 := z.DecSliceHelperStart() + var yyc1661 bool + if yyl1661 == 0 { + if yyv1661 == nil { + yyv1661 = []HTTPIngressPath{} + yyc1661 = true + } else if len(yyv1661) != 0 { + yyv1661 = yyv1661[:0] + yyc1661 = true } - } else if yyl1876 > 0 { - var yyrr1876, yyrl1876 int - var yyrt1876 bool - if yyl1876 > cap(yyv1876) { + } else if yyl1661 > 0 { + var yyrr1661, yyrl1661 int + var yyrt1661 bool + if yyl1661 > cap(yyv1661) { - yyrg1876 := len(yyv1876) > 0 - yyv21876 := yyv1876 - yyrl1876, yyrt1876 = z.DecInferLen(yyl1876, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1876 { - if yyrl1876 <= cap(yyv1876) { - yyv1876 = yyv1876[:yyrl1876] + yyrg1661 := len(yyv1661) > 0 + yyv21661 := yyv1661 + yyrl1661, yyrt1661 = z.DecInferLen(yyl1661, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1661 { + if yyrl1661 <= cap(yyv1661) { + yyv1661 = yyv1661[:yyrl1661] } else { - yyv1876 = make([]HTTPIngressPath, yyrl1876) + yyv1661 = make([]HTTPIngressPath, yyrl1661) } } else { - yyv1876 = make([]HTTPIngressPath, yyrl1876) + yyv1661 = make([]HTTPIngressPath, yyrl1661) } - yyc1876 = true - yyrr1876 = len(yyv1876) - if yyrg1876 { - copy(yyv1876, yyv21876) + yyc1661 = true + yyrr1661 = len(yyv1661) + if yyrg1661 { + copy(yyv1661, yyv21661) } - } else if yyl1876 != len(yyv1876) { - yyv1876 = yyv1876[:yyl1876] - yyc1876 = true + } else if yyl1661 != len(yyv1661) { + yyv1661 = yyv1661[:yyl1661] + yyc1661 = true } - yyj1876 := 0 - for ; yyj1876 < yyrr1876; yyj1876++ { - yyh1876.ElemContainerState(yyj1876) + yyj1661 := 0 + for ; yyj1661 < yyrr1661; yyj1661++ { + yyh1661.ElemContainerState(yyj1661) if r.TryDecodeAsNil() { - yyv1876[yyj1876] = HTTPIngressPath{} + yyv1661[yyj1661] = HTTPIngressPath{} } else { - yyv1877 := &yyv1876[yyj1876] - yyv1877.CodecDecodeSelf(d) + yyv1662 := &yyv1661[yyj1661] + yyv1662.CodecDecodeSelf(d) } } - if yyrt1876 { - for ; yyj1876 < yyl1876; yyj1876++ { - yyv1876 = append(yyv1876, HTTPIngressPath{}) - yyh1876.ElemContainerState(yyj1876) + if yyrt1661 { + for ; yyj1661 < yyl1661; yyj1661++ { + yyv1661 = append(yyv1661, HTTPIngressPath{}) + yyh1661.ElemContainerState(yyj1661) if r.TryDecodeAsNil() { - yyv1876[yyj1876] = HTTPIngressPath{} + yyv1661[yyj1661] = HTTPIngressPath{} } else { - yyv1878 := &yyv1876[yyj1876] - yyv1878.CodecDecodeSelf(d) + yyv1663 := &yyv1661[yyj1661] + yyv1663.CodecDecodeSelf(d) } } } } else { - yyj1876 := 0 - for ; !r.CheckBreak(); yyj1876++ { + yyj1661 := 0 + for ; !r.CheckBreak(); yyj1661++ { - if yyj1876 >= len(yyv1876) { - yyv1876 = append(yyv1876, HTTPIngressPath{}) // var yyz1876 HTTPIngressPath - yyc1876 = true + if yyj1661 >= len(yyv1661) { + yyv1661 = append(yyv1661, HTTPIngressPath{}) // var yyz1661 HTTPIngressPath + yyc1661 = true } - yyh1876.ElemContainerState(yyj1876) - if yyj1876 < len(yyv1876) { + yyh1661.ElemContainerState(yyj1661) + if yyj1661 < len(yyv1661) { if r.TryDecodeAsNil() { - yyv1876[yyj1876] = HTTPIngressPath{} + yyv1661[yyj1661] = HTTPIngressPath{} } else { - yyv1879 := &yyv1876[yyj1876] - yyv1879.CodecDecodeSelf(d) + yyv1664 := &yyv1661[yyj1661] + yyv1664.CodecDecodeSelf(d) } } else { @@ -22843,17 +20370,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1876 < len(yyv1876) { - yyv1876 = yyv1876[:yyj1876] - yyc1876 = true - } else if yyj1876 == 0 && yyv1876 == nil { - yyv1876 = []HTTPIngressPath{} - yyc1876 = true + if yyj1661 < len(yyv1661) { + yyv1661 = yyv1661[:yyj1661] + yyc1661 = true + } else if yyj1661 == 0 && yyv1661 == nil { + yyv1661 = []HTTPIngressPath{} + yyc1661 = true } } - yyh1876.End() - if yyc1876 { - *v = yyv1876 + yyh1661.End() + if yyc1661 { + *v = yyv1661 } } @@ -22862,10 +20389,10 @@ func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1880 := range v { + for _, yyv1665 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1881 := &yyv1880 - yy1881.CodecEncodeSelf(e) + yy1666 := &yyv1665 + yy1666.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22875,83 +20402,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1882 := *v - yyh1882, yyl1882 := z.DecSliceHelperStart() - var yyc1882 bool - if yyl1882 == 0 { - if yyv1882 == nil { - yyv1882 = []ReplicaSet{} - yyc1882 = true - } else if len(yyv1882) != 0 { - yyv1882 = yyv1882[:0] - yyc1882 = true + yyv1667 := *v + yyh1667, yyl1667 := z.DecSliceHelperStart() + var yyc1667 bool + if yyl1667 == 0 { + if yyv1667 == nil { + yyv1667 = []ReplicaSet{} + yyc1667 = true + } else if len(yyv1667) != 0 { + yyv1667 = yyv1667[:0] + yyc1667 = true } - } else if yyl1882 > 0 { - var yyrr1882, yyrl1882 int - var yyrt1882 bool - if yyl1882 > cap(yyv1882) { + } else if yyl1667 > 0 { + var yyrr1667, yyrl1667 int + var yyrt1667 bool + if yyl1667 > cap(yyv1667) { - yyrg1882 := len(yyv1882) > 0 - yyv21882 := yyv1882 - yyrl1882, yyrt1882 = z.DecInferLen(yyl1882, z.DecBasicHandle().MaxInitLen, 800) - if yyrt1882 { - if yyrl1882 <= cap(yyv1882) { - yyv1882 = yyv1882[:yyrl1882] + yyrg1667 := len(yyv1667) > 0 + yyv21667 := yyv1667 + yyrl1667, yyrt1667 = z.DecInferLen(yyl1667, z.DecBasicHandle().MaxInitLen, 808) + if yyrt1667 { + if yyrl1667 <= cap(yyv1667) { + yyv1667 = yyv1667[:yyrl1667] } else { - yyv1882 = make([]ReplicaSet, yyrl1882) + yyv1667 = make([]ReplicaSet, yyrl1667) } } else { - yyv1882 = make([]ReplicaSet, yyrl1882) + yyv1667 = make([]ReplicaSet, yyrl1667) } - yyc1882 = true - yyrr1882 = len(yyv1882) - if yyrg1882 { - copy(yyv1882, yyv21882) + yyc1667 = true + yyrr1667 = len(yyv1667) + if yyrg1667 { + copy(yyv1667, yyv21667) } - } else if yyl1882 != len(yyv1882) { - yyv1882 = yyv1882[:yyl1882] - yyc1882 = true + } else if yyl1667 != len(yyv1667) { + yyv1667 = yyv1667[:yyl1667] + yyc1667 = true } - yyj1882 := 0 - for ; yyj1882 < yyrr1882; yyj1882++ { - yyh1882.ElemContainerState(yyj1882) + yyj1667 := 0 + for ; yyj1667 < yyrr1667; yyj1667++ { + yyh1667.ElemContainerState(yyj1667) if r.TryDecodeAsNil() { - yyv1882[yyj1882] = ReplicaSet{} + yyv1667[yyj1667] = ReplicaSet{} } else { - yyv1883 := &yyv1882[yyj1882] - yyv1883.CodecDecodeSelf(d) + yyv1668 := &yyv1667[yyj1667] + yyv1668.CodecDecodeSelf(d) } } - if yyrt1882 { - for ; yyj1882 < yyl1882; yyj1882++ { - yyv1882 = append(yyv1882, ReplicaSet{}) - yyh1882.ElemContainerState(yyj1882) + if yyrt1667 { + for ; yyj1667 < yyl1667; yyj1667++ { + yyv1667 = append(yyv1667, ReplicaSet{}) + yyh1667.ElemContainerState(yyj1667) if r.TryDecodeAsNil() { - yyv1882[yyj1882] = ReplicaSet{} + yyv1667[yyj1667] = ReplicaSet{} } else { - yyv1884 := &yyv1882[yyj1882] - yyv1884.CodecDecodeSelf(d) + yyv1669 := &yyv1667[yyj1667] + yyv1669.CodecDecodeSelf(d) } } } } else { - yyj1882 := 0 - for ; !r.CheckBreak(); yyj1882++ { + yyj1667 := 0 + for ; !r.CheckBreak(); yyj1667++ { - if yyj1882 >= len(yyv1882) { - yyv1882 = append(yyv1882, ReplicaSet{}) // var yyz1882 ReplicaSet - yyc1882 = true + if yyj1667 >= len(yyv1667) { + yyv1667 = append(yyv1667, ReplicaSet{}) // var yyz1667 ReplicaSet + yyc1667 = true } - yyh1882.ElemContainerState(yyj1882) - if yyj1882 < len(yyv1882) { + yyh1667.ElemContainerState(yyj1667) + if yyj1667 < len(yyv1667) { if r.TryDecodeAsNil() { - yyv1882[yyj1882] = ReplicaSet{} + yyv1667[yyj1667] = ReplicaSet{} } else { - yyv1885 := &yyv1882[yyj1882] - yyv1885.CodecDecodeSelf(d) + yyv1670 := &yyv1667[yyj1667] + yyv1670.CodecDecodeSelf(d) } } else { @@ -22959,17 +20486,17 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1882 < len(yyv1882) { - yyv1882 = yyv1882[:yyj1882] - yyc1882 = true - } else if yyj1882 == 0 && yyv1882 == nil { - yyv1882 = []ReplicaSet{} - yyc1882 = true + if yyj1667 < len(yyv1667) { + yyv1667 = yyv1667[:yyj1667] + yyc1667 = true + } else if yyj1667 == 0 && yyv1667 == nil { + yyv1667 = []ReplicaSet{} + yyc1667 = true } } - yyh1882.End() - if yyc1882 { - *v = yyv1882 + yyh1667.End() + if yyc1667 { + *v = yyv1667 } } @@ -22978,10 +20505,10 @@ func (x codecSelfer1234) encSliceReplicaSetCondition(v []ReplicaSetCondition, e z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1886 := range v { + for _, yyv1671 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1887 := &yyv1886 - yy1887.CodecEncodeSelf(e) + yy1672 := &yyv1671 + yy1672.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22991,83 +20518,83 @@ func (x codecSelfer1234) decSliceReplicaSetCondition(v *[]ReplicaSetCondition, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1888 := *v - yyh1888, yyl1888 := z.DecSliceHelperStart() - var yyc1888 bool - if yyl1888 == 0 { - if yyv1888 == nil { - yyv1888 = []ReplicaSetCondition{} - yyc1888 = true - } else if len(yyv1888) != 0 { - yyv1888 = yyv1888[:0] - yyc1888 = true + yyv1673 := *v + yyh1673, yyl1673 := z.DecSliceHelperStart() + var yyc1673 bool + if yyl1673 == 0 { + if yyv1673 == nil { + yyv1673 = []ReplicaSetCondition{} + yyc1673 = true + } else if len(yyv1673) != 0 { + yyv1673 = yyv1673[:0] + yyc1673 = true } - } else if yyl1888 > 0 { - var yyrr1888, yyrl1888 int - var yyrt1888 bool - if yyl1888 > cap(yyv1888) { + } else if yyl1673 > 0 { + var yyrr1673, yyrl1673 int + var yyrt1673 bool + if yyl1673 > cap(yyv1673) { - yyrg1888 := len(yyv1888) > 0 - yyv21888 := yyv1888 - yyrl1888, yyrt1888 = z.DecInferLen(yyl1888, z.DecBasicHandle().MaxInitLen, 88) - if yyrt1888 { - if yyrl1888 <= cap(yyv1888) { - yyv1888 = yyv1888[:yyrl1888] + yyrg1673 := len(yyv1673) > 0 + yyv21673 := yyv1673 + yyrl1673, yyrt1673 = z.DecInferLen(yyl1673, z.DecBasicHandle().MaxInitLen, 88) + if yyrt1673 { + if yyrl1673 <= cap(yyv1673) { + yyv1673 = yyv1673[:yyrl1673] } else { - yyv1888 = make([]ReplicaSetCondition, yyrl1888) + yyv1673 = make([]ReplicaSetCondition, yyrl1673) } } else { - yyv1888 = make([]ReplicaSetCondition, yyrl1888) + yyv1673 = make([]ReplicaSetCondition, yyrl1673) } - yyc1888 = true - yyrr1888 = len(yyv1888) - if yyrg1888 { - copy(yyv1888, yyv21888) + yyc1673 = true + yyrr1673 = len(yyv1673) + if yyrg1673 { + copy(yyv1673, yyv21673) } - } else if yyl1888 != len(yyv1888) { - yyv1888 = yyv1888[:yyl1888] - yyc1888 = true + } else if yyl1673 != len(yyv1673) { + yyv1673 = yyv1673[:yyl1673] + yyc1673 = true } - yyj1888 := 0 - for ; yyj1888 < yyrr1888; yyj1888++ { - yyh1888.ElemContainerState(yyj1888) + yyj1673 := 0 + for ; yyj1673 < yyrr1673; yyj1673++ { + yyh1673.ElemContainerState(yyj1673) if r.TryDecodeAsNil() { - yyv1888[yyj1888] = ReplicaSetCondition{} + yyv1673[yyj1673] = ReplicaSetCondition{} } else { - yyv1889 := &yyv1888[yyj1888] - yyv1889.CodecDecodeSelf(d) + yyv1674 := &yyv1673[yyj1673] + yyv1674.CodecDecodeSelf(d) } } - if yyrt1888 { - for ; yyj1888 < yyl1888; yyj1888++ { - yyv1888 = append(yyv1888, ReplicaSetCondition{}) - yyh1888.ElemContainerState(yyj1888) + if yyrt1673 { + for ; yyj1673 < yyl1673; yyj1673++ { + yyv1673 = append(yyv1673, ReplicaSetCondition{}) + yyh1673.ElemContainerState(yyj1673) if r.TryDecodeAsNil() { - yyv1888[yyj1888] = ReplicaSetCondition{} + yyv1673[yyj1673] = ReplicaSetCondition{} } else { - yyv1890 := &yyv1888[yyj1888] - yyv1890.CodecDecodeSelf(d) + yyv1675 := &yyv1673[yyj1673] + yyv1675.CodecDecodeSelf(d) } } } } else { - yyj1888 := 0 - for ; !r.CheckBreak(); yyj1888++ { + yyj1673 := 0 + for ; !r.CheckBreak(); yyj1673++ { - if yyj1888 >= len(yyv1888) { - yyv1888 = append(yyv1888, ReplicaSetCondition{}) // var yyz1888 ReplicaSetCondition - yyc1888 = true + if yyj1673 >= len(yyv1673) { + yyv1673 = append(yyv1673, ReplicaSetCondition{}) // var yyz1673 ReplicaSetCondition + yyc1673 = true } - yyh1888.ElemContainerState(yyj1888) - if yyj1888 < len(yyv1888) { + yyh1673.ElemContainerState(yyj1673) + if yyj1673 < len(yyv1673) { if r.TryDecodeAsNil() { - yyv1888[yyj1888] = ReplicaSetCondition{} + yyv1673[yyj1673] = ReplicaSetCondition{} } else { - yyv1891 := &yyv1888[yyj1888] - yyv1891.CodecDecodeSelf(d) + yyv1676 := &yyv1673[yyj1673] + yyv1676.CodecDecodeSelf(d) } } else { @@ -23075,17 +20602,17 @@ func (x codecSelfer1234) decSliceReplicaSetCondition(v *[]ReplicaSetCondition, d } } - if yyj1888 < len(yyv1888) { - yyv1888 = yyv1888[:yyj1888] - yyc1888 = true - } else if yyj1888 == 0 && yyv1888 == nil { - yyv1888 = []ReplicaSetCondition{} - yyc1888 = true + if yyj1673 < len(yyv1673) { + yyv1673 = yyv1673[:yyj1673] + yyc1673 = true + } else if yyj1673 == 0 && yyv1673 == nil { + yyv1673 = []ReplicaSetCondition{} + yyc1673 = true } } - yyh1888.End() - if yyc1888 { - *v = yyv1888 + yyh1673.End() + if yyc1673 { + *v = yyv1673 } } @@ -23094,14 +20621,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 _, yyv1892 := range v { + for _, yyv1677 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1893 := z.EncBinary() - _ = yym1893 + yym1678 := z.EncBinary() + _ = yym1678 if false { - } else if z.HasExtensions() && z.EncExt(yyv1892) { + } else if z.HasExtensions() && z.EncExt(yyv1677) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1892)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1677)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -23112,75 +20639,75 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1894 := *v - yyh1894, yyl1894 := z.DecSliceHelperStart() - var yyc1894 bool - if yyl1894 == 0 { - if yyv1894 == nil { - yyv1894 = []pkg2_v1.Capability{} - yyc1894 = true - } else if len(yyv1894) != 0 { - yyv1894 = yyv1894[:0] - yyc1894 = true + yyv1679 := *v + yyh1679, yyl1679 := z.DecSliceHelperStart() + var yyc1679 bool + if yyl1679 == 0 { + if yyv1679 == nil { + yyv1679 = []pkg2_v1.Capability{} + yyc1679 = true + } else if len(yyv1679) != 0 { + yyv1679 = yyv1679[:0] + yyc1679 = true } - } else if yyl1894 > 0 { - var yyrr1894, yyrl1894 int - var yyrt1894 bool - if yyl1894 > cap(yyv1894) { + } else if yyl1679 > 0 { + var yyrr1679, yyrl1679 int + var yyrt1679 bool + if yyl1679 > cap(yyv1679) { - yyrl1894, yyrt1894 = z.DecInferLen(yyl1894, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1894 { - if yyrl1894 <= cap(yyv1894) { - yyv1894 = yyv1894[:yyrl1894] + yyrl1679, yyrt1679 = z.DecInferLen(yyl1679, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1679 { + if yyrl1679 <= cap(yyv1679) { + yyv1679 = yyv1679[:yyrl1679] } else { - yyv1894 = make([]pkg2_v1.Capability, yyrl1894) + yyv1679 = make([]pkg2_v1.Capability, yyrl1679) } } else { - yyv1894 = make([]pkg2_v1.Capability, yyrl1894) + yyv1679 = make([]pkg2_v1.Capability, yyrl1679) } - yyc1894 = true - yyrr1894 = len(yyv1894) - } else if yyl1894 != len(yyv1894) { - yyv1894 = yyv1894[:yyl1894] - yyc1894 = true + yyc1679 = true + yyrr1679 = len(yyv1679) + } else if yyl1679 != len(yyv1679) { + yyv1679 = yyv1679[:yyl1679] + yyc1679 = true } - yyj1894 := 0 - for ; yyj1894 < yyrr1894; yyj1894++ { - yyh1894.ElemContainerState(yyj1894) + yyj1679 := 0 + for ; yyj1679 < yyrr1679; yyj1679++ { + yyh1679.ElemContainerState(yyj1679) if r.TryDecodeAsNil() { - yyv1894[yyj1894] = "" + yyv1679[yyj1679] = "" } else { - yyv1894[yyj1894] = pkg2_v1.Capability(r.DecodeString()) + yyv1679[yyj1679] = pkg2_v1.Capability(r.DecodeString()) } } - if yyrt1894 { - for ; yyj1894 < yyl1894; yyj1894++ { - yyv1894 = append(yyv1894, "") - yyh1894.ElemContainerState(yyj1894) + if yyrt1679 { + for ; yyj1679 < yyl1679; yyj1679++ { + yyv1679 = append(yyv1679, "") + yyh1679.ElemContainerState(yyj1679) if r.TryDecodeAsNil() { - yyv1894[yyj1894] = "" + yyv1679[yyj1679] = "" } else { - yyv1894[yyj1894] = pkg2_v1.Capability(r.DecodeString()) + yyv1679[yyj1679] = pkg2_v1.Capability(r.DecodeString()) } } } } else { - yyj1894 := 0 - for ; !r.CheckBreak(); yyj1894++ { + yyj1679 := 0 + for ; !r.CheckBreak(); yyj1679++ { - if yyj1894 >= len(yyv1894) { - yyv1894 = append(yyv1894, "") // var yyz1894 pkg2_v1.Capability - yyc1894 = true + if yyj1679 >= len(yyv1679) { + yyv1679 = append(yyv1679, "") // var yyz1679 pkg2_v1.Capability + yyc1679 = true } - yyh1894.ElemContainerState(yyj1894) - if yyj1894 < len(yyv1894) { + yyh1679.ElemContainerState(yyj1679) + if yyj1679 < len(yyv1679) { if r.TryDecodeAsNil() { - yyv1894[yyj1894] = "" + yyv1679[yyj1679] = "" } else { - yyv1894[yyj1894] = pkg2_v1.Capability(r.DecodeString()) + yyv1679[yyj1679] = pkg2_v1.Capability(r.DecodeString()) } } else { @@ -23188,17 +20715,17 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec } } - if yyj1894 < len(yyv1894) { - yyv1894 = yyv1894[:yyj1894] - yyc1894 = true - } else if yyj1894 == 0 && yyv1894 == nil { - yyv1894 = []pkg2_v1.Capability{} - yyc1894 = true + if yyj1679 < len(yyv1679) { + yyv1679 = yyv1679[:yyj1679] + yyc1679 = true + } else if yyj1679 == 0 && yyv1679 == nil { + yyv1679 = []pkg2_v1.Capability{} + yyc1679 = true } } - yyh1894.End() - if yyc1894 { - *v = yyv1894 + yyh1679.End() + if yyc1679 { + *v = yyv1679 } } @@ -23207,9 +20734,9 @@ func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1898 := range v { + for _, yyv1683 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1898.CodecEncodeSelf(e) + yyv1683.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23219,75 +20746,75 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1899 := *v - yyh1899, yyl1899 := z.DecSliceHelperStart() - var yyc1899 bool - if yyl1899 == 0 { - if yyv1899 == nil { - yyv1899 = []FSType{} - yyc1899 = true - } else if len(yyv1899) != 0 { - yyv1899 = yyv1899[:0] - yyc1899 = true + yyv1684 := *v + yyh1684, yyl1684 := z.DecSliceHelperStart() + var yyc1684 bool + if yyl1684 == 0 { + if yyv1684 == nil { + yyv1684 = []FSType{} + yyc1684 = true + } else if len(yyv1684) != 0 { + yyv1684 = yyv1684[:0] + yyc1684 = true } - } else if yyl1899 > 0 { - var yyrr1899, yyrl1899 int - var yyrt1899 bool - if yyl1899 > cap(yyv1899) { + } else if yyl1684 > 0 { + var yyrr1684, yyrl1684 int + var yyrt1684 bool + if yyl1684 > cap(yyv1684) { - yyrl1899, yyrt1899 = z.DecInferLen(yyl1899, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1899 { - if yyrl1899 <= cap(yyv1899) { - yyv1899 = yyv1899[:yyrl1899] + yyrl1684, yyrt1684 = z.DecInferLen(yyl1684, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1684 { + if yyrl1684 <= cap(yyv1684) { + yyv1684 = yyv1684[:yyrl1684] } else { - yyv1899 = make([]FSType, yyrl1899) + yyv1684 = make([]FSType, yyrl1684) } } else { - yyv1899 = make([]FSType, yyrl1899) + yyv1684 = make([]FSType, yyrl1684) } - yyc1899 = true - yyrr1899 = len(yyv1899) - } else if yyl1899 != len(yyv1899) { - yyv1899 = yyv1899[:yyl1899] - yyc1899 = true + yyc1684 = true + yyrr1684 = len(yyv1684) + } else if yyl1684 != len(yyv1684) { + yyv1684 = yyv1684[:yyl1684] + yyc1684 = true } - yyj1899 := 0 - for ; yyj1899 < yyrr1899; yyj1899++ { - yyh1899.ElemContainerState(yyj1899) + yyj1684 := 0 + for ; yyj1684 < yyrr1684; yyj1684++ { + yyh1684.ElemContainerState(yyj1684) if r.TryDecodeAsNil() { - yyv1899[yyj1899] = "" + yyv1684[yyj1684] = "" } else { - yyv1899[yyj1899] = FSType(r.DecodeString()) + yyv1684[yyj1684] = FSType(r.DecodeString()) } } - if yyrt1899 { - for ; yyj1899 < yyl1899; yyj1899++ { - yyv1899 = append(yyv1899, "") - yyh1899.ElemContainerState(yyj1899) + if yyrt1684 { + for ; yyj1684 < yyl1684; yyj1684++ { + yyv1684 = append(yyv1684, "") + yyh1684.ElemContainerState(yyj1684) if r.TryDecodeAsNil() { - yyv1899[yyj1899] = "" + yyv1684[yyj1684] = "" } else { - yyv1899[yyj1899] = FSType(r.DecodeString()) + yyv1684[yyj1684] = FSType(r.DecodeString()) } } } } else { - yyj1899 := 0 - for ; !r.CheckBreak(); yyj1899++ { + yyj1684 := 0 + for ; !r.CheckBreak(); yyj1684++ { - if yyj1899 >= len(yyv1899) { - yyv1899 = append(yyv1899, "") // var yyz1899 FSType - yyc1899 = true + if yyj1684 >= len(yyv1684) { + yyv1684 = append(yyv1684, "") // var yyz1684 FSType + yyc1684 = true } - yyh1899.ElemContainerState(yyj1899) - if yyj1899 < len(yyv1899) { + yyh1684.ElemContainerState(yyj1684) + if yyj1684 < len(yyv1684) { if r.TryDecodeAsNil() { - yyv1899[yyj1899] = "" + yyv1684[yyj1684] = "" } else { - yyv1899[yyj1899] = FSType(r.DecodeString()) + yyv1684[yyj1684] = FSType(r.DecodeString()) } } else { @@ -23295,17 +20822,17 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } - if yyj1899 < len(yyv1899) { - yyv1899 = yyv1899[:yyj1899] - yyc1899 = true - } else if yyj1899 == 0 && yyv1899 == nil { - yyv1899 = []FSType{} - yyc1899 = true + if yyj1684 < len(yyv1684) { + yyv1684 = yyv1684[:yyj1684] + yyc1684 = true + } else if yyj1684 == 0 && yyv1684 == nil { + yyv1684 = []FSType{} + yyc1684 = true } } - yyh1899.End() - if yyc1899 { - *v = yyv1899 + yyh1684.End() + if yyc1684 { + *v = yyv1684 } } @@ -23314,10 +20841,10 @@ func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1903 := range v { + for _, yyv1688 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1904 := &yyv1903 - yy1904.CodecEncodeSelf(e) + yy1689 := &yyv1688 + yy1689.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23327,83 +20854,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1905 := *v - yyh1905, yyl1905 := z.DecSliceHelperStart() - var yyc1905 bool - if yyl1905 == 0 { - if yyv1905 == nil { - yyv1905 = []HostPortRange{} - yyc1905 = true - } else if len(yyv1905) != 0 { - yyv1905 = yyv1905[:0] - yyc1905 = true + yyv1690 := *v + yyh1690, yyl1690 := z.DecSliceHelperStart() + var yyc1690 bool + if yyl1690 == 0 { + if yyv1690 == nil { + yyv1690 = []HostPortRange{} + yyc1690 = true + } else if len(yyv1690) != 0 { + yyv1690 = yyv1690[:0] + yyc1690 = true } - } else if yyl1905 > 0 { - var yyrr1905, yyrl1905 int - var yyrt1905 bool - if yyl1905 > cap(yyv1905) { + } else if yyl1690 > 0 { + var yyrr1690, yyrl1690 int + var yyrt1690 bool + if yyl1690 > cap(yyv1690) { - yyrg1905 := len(yyv1905) > 0 - yyv21905 := yyv1905 - yyrl1905, yyrt1905 = z.DecInferLen(yyl1905, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1905 { - if yyrl1905 <= cap(yyv1905) { - yyv1905 = yyv1905[:yyrl1905] + yyrg1690 := len(yyv1690) > 0 + yyv21690 := yyv1690 + yyrl1690, yyrt1690 = z.DecInferLen(yyl1690, z.DecBasicHandle().MaxInitLen, 8) + if yyrt1690 { + if yyrl1690 <= cap(yyv1690) { + yyv1690 = yyv1690[:yyrl1690] } else { - yyv1905 = make([]HostPortRange, yyrl1905) + yyv1690 = make([]HostPortRange, yyrl1690) } } else { - yyv1905 = make([]HostPortRange, yyrl1905) + yyv1690 = make([]HostPortRange, yyrl1690) } - yyc1905 = true - yyrr1905 = len(yyv1905) - if yyrg1905 { - copy(yyv1905, yyv21905) + yyc1690 = true + yyrr1690 = len(yyv1690) + if yyrg1690 { + copy(yyv1690, yyv21690) } - } else if yyl1905 != len(yyv1905) { - yyv1905 = yyv1905[:yyl1905] - yyc1905 = true + } else if yyl1690 != len(yyv1690) { + yyv1690 = yyv1690[:yyl1690] + yyc1690 = true } - yyj1905 := 0 - for ; yyj1905 < yyrr1905; yyj1905++ { - yyh1905.ElemContainerState(yyj1905) + yyj1690 := 0 + for ; yyj1690 < yyrr1690; yyj1690++ { + yyh1690.ElemContainerState(yyj1690) if r.TryDecodeAsNil() { - yyv1905[yyj1905] = HostPortRange{} + yyv1690[yyj1690] = HostPortRange{} } else { - yyv1906 := &yyv1905[yyj1905] - yyv1906.CodecDecodeSelf(d) + yyv1691 := &yyv1690[yyj1690] + yyv1691.CodecDecodeSelf(d) } } - if yyrt1905 { - for ; yyj1905 < yyl1905; yyj1905++ { - yyv1905 = append(yyv1905, HostPortRange{}) - yyh1905.ElemContainerState(yyj1905) + if yyrt1690 { + for ; yyj1690 < yyl1690; yyj1690++ { + yyv1690 = append(yyv1690, HostPortRange{}) + yyh1690.ElemContainerState(yyj1690) if r.TryDecodeAsNil() { - yyv1905[yyj1905] = HostPortRange{} + yyv1690[yyj1690] = HostPortRange{} } else { - yyv1907 := &yyv1905[yyj1905] - yyv1907.CodecDecodeSelf(d) + yyv1692 := &yyv1690[yyj1690] + yyv1692.CodecDecodeSelf(d) } } } } else { - yyj1905 := 0 - for ; !r.CheckBreak(); yyj1905++ { + yyj1690 := 0 + for ; !r.CheckBreak(); yyj1690++ { - if yyj1905 >= len(yyv1905) { - yyv1905 = append(yyv1905, HostPortRange{}) // var yyz1905 HostPortRange - yyc1905 = true + if yyj1690 >= len(yyv1690) { + yyv1690 = append(yyv1690, HostPortRange{}) // var yyz1690 HostPortRange + yyc1690 = true } - yyh1905.ElemContainerState(yyj1905) - if yyj1905 < len(yyv1905) { + yyh1690.ElemContainerState(yyj1690) + if yyj1690 < len(yyv1690) { if r.TryDecodeAsNil() { - yyv1905[yyj1905] = HostPortRange{} + yyv1690[yyj1690] = HostPortRange{} } else { - yyv1908 := &yyv1905[yyj1905] - yyv1908.CodecDecodeSelf(d) + yyv1693 := &yyv1690[yyj1690] + yyv1693.CodecDecodeSelf(d) } } else { @@ -23411,17 +20938,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1905 < len(yyv1905) { - yyv1905 = yyv1905[:yyj1905] - yyc1905 = true - } else if yyj1905 == 0 && yyv1905 == nil { - yyv1905 = []HostPortRange{} - yyc1905 = true + if yyj1690 < len(yyv1690) { + yyv1690 = yyv1690[:yyj1690] + yyc1690 = true + } else if yyj1690 == 0 && yyv1690 == nil { + yyv1690 = []HostPortRange{} + yyc1690 = true } } - yyh1905.End() - if yyc1905 { - *v = yyv1905 + yyh1690.End() + if yyc1690 { + *v = yyv1690 } } @@ -23430,10 +20957,10 @@ func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1909 := range v { + for _, yyv1694 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1910 := &yyv1909 - yy1910.CodecEncodeSelf(e) + yy1695 := &yyv1694 + yy1695.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23443,83 +20970,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1911 := *v - yyh1911, yyl1911 := z.DecSliceHelperStart() - var yyc1911 bool - if yyl1911 == 0 { - if yyv1911 == nil { - yyv1911 = []IDRange{} - yyc1911 = true - } else if len(yyv1911) != 0 { - yyv1911 = yyv1911[:0] - yyc1911 = true + yyv1696 := *v + yyh1696, yyl1696 := z.DecSliceHelperStart() + var yyc1696 bool + if yyl1696 == 0 { + if yyv1696 == nil { + yyv1696 = []IDRange{} + yyc1696 = true + } else if len(yyv1696) != 0 { + yyv1696 = yyv1696[:0] + yyc1696 = true } - } else if yyl1911 > 0 { - var yyrr1911, yyrl1911 int - var yyrt1911 bool - if yyl1911 > cap(yyv1911) { + } else if yyl1696 > 0 { + var yyrr1696, yyrl1696 int + var yyrt1696 bool + if yyl1696 > cap(yyv1696) { - yyrg1911 := len(yyv1911) > 0 - yyv21911 := yyv1911 - yyrl1911, yyrt1911 = z.DecInferLen(yyl1911, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1911 { - if yyrl1911 <= cap(yyv1911) { - yyv1911 = yyv1911[:yyrl1911] + yyrg1696 := len(yyv1696) > 0 + yyv21696 := yyv1696 + yyrl1696, yyrt1696 = z.DecInferLen(yyl1696, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1696 { + if yyrl1696 <= cap(yyv1696) { + yyv1696 = yyv1696[:yyrl1696] } else { - yyv1911 = make([]IDRange, yyrl1911) + yyv1696 = make([]IDRange, yyrl1696) } } else { - yyv1911 = make([]IDRange, yyrl1911) + yyv1696 = make([]IDRange, yyrl1696) } - yyc1911 = true - yyrr1911 = len(yyv1911) - if yyrg1911 { - copy(yyv1911, yyv21911) + yyc1696 = true + yyrr1696 = len(yyv1696) + if yyrg1696 { + copy(yyv1696, yyv21696) } - } else if yyl1911 != len(yyv1911) { - yyv1911 = yyv1911[:yyl1911] - yyc1911 = true + } else if yyl1696 != len(yyv1696) { + yyv1696 = yyv1696[:yyl1696] + yyc1696 = true } - yyj1911 := 0 - for ; yyj1911 < yyrr1911; yyj1911++ { - yyh1911.ElemContainerState(yyj1911) + yyj1696 := 0 + for ; yyj1696 < yyrr1696; yyj1696++ { + yyh1696.ElemContainerState(yyj1696) if r.TryDecodeAsNil() { - yyv1911[yyj1911] = IDRange{} + yyv1696[yyj1696] = IDRange{} } else { - yyv1912 := &yyv1911[yyj1911] - yyv1912.CodecDecodeSelf(d) + yyv1697 := &yyv1696[yyj1696] + yyv1697.CodecDecodeSelf(d) } } - if yyrt1911 { - for ; yyj1911 < yyl1911; yyj1911++ { - yyv1911 = append(yyv1911, IDRange{}) - yyh1911.ElemContainerState(yyj1911) + if yyrt1696 { + for ; yyj1696 < yyl1696; yyj1696++ { + yyv1696 = append(yyv1696, IDRange{}) + yyh1696.ElemContainerState(yyj1696) if r.TryDecodeAsNil() { - yyv1911[yyj1911] = IDRange{} + yyv1696[yyj1696] = IDRange{} } else { - yyv1913 := &yyv1911[yyj1911] - yyv1913.CodecDecodeSelf(d) + yyv1698 := &yyv1696[yyj1696] + yyv1698.CodecDecodeSelf(d) } } } } else { - yyj1911 := 0 - for ; !r.CheckBreak(); yyj1911++ { + yyj1696 := 0 + for ; !r.CheckBreak(); yyj1696++ { - if yyj1911 >= len(yyv1911) { - yyv1911 = append(yyv1911, IDRange{}) // var yyz1911 IDRange - yyc1911 = true + if yyj1696 >= len(yyv1696) { + yyv1696 = append(yyv1696, IDRange{}) // var yyz1696 IDRange + yyc1696 = true } - yyh1911.ElemContainerState(yyj1911) - if yyj1911 < len(yyv1911) { + yyh1696.ElemContainerState(yyj1696) + if yyj1696 < len(yyv1696) { if r.TryDecodeAsNil() { - yyv1911[yyj1911] = IDRange{} + yyv1696[yyj1696] = IDRange{} } else { - yyv1914 := &yyv1911[yyj1911] - yyv1914.CodecDecodeSelf(d) + yyv1699 := &yyv1696[yyj1696] + yyv1699.CodecDecodeSelf(d) } } else { @@ -23527,17 +21054,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1911 < len(yyv1911) { - yyv1911 = yyv1911[:yyj1911] - yyc1911 = true - } else if yyj1911 == 0 && yyv1911 == nil { - yyv1911 = []IDRange{} - yyc1911 = true + if yyj1696 < len(yyv1696) { + yyv1696 = yyv1696[:yyj1696] + yyc1696 = true + } else if yyj1696 == 0 && yyv1696 == nil { + yyv1696 = []IDRange{} + yyc1696 = true } } - yyh1911.End() - if yyc1911 { - *v = yyv1911 + yyh1696.End() + if yyc1696 { + *v = yyv1696 } } @@ -23546,10 +21073,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1915 := range v { + for _, yyv1700 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1916 := &yyv1915 - yy1916.CodecEncodeSelf(e) + yy1701 := &yyv1700 + yy1701.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23559,83 +21086,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1917 := *v - yyh1917, yyl1917 := z.DecSliceHelperStart() - var yyc1917 bool - if yyl1917 == 0 { - if yyv1917 == nil { - yyv1917 = []PodSecurityPolicy{} - yyc1917 = true - } else if len(yyv1917) != 0 { - yyv1917 = yyv1917[:0] - yyc1917 = true + yyv1702 := *v + yyh1702, yyl1702 := z.DecSliceHelperStart() + var yyc1702 bool + if yyl1702 == 0 { + if yyv1702 == nil { + yyv1702 = []PodSecurityPolicy{} + yyc1702 = true + } else if len(yyv1702) != 0 { + yyv1702 = yyv1702[:0] + yyc1702 = true } - } else if yyl1917 > 0 { - var yyrr1917, yyrl1917 int - var yyrt1917 bool - if yyl1917 > cap(yyv1917) { + } else if yyl1702 > 0 { + var yyrr1702, yyrl1702 int + var yyrt1702 bool + if yyl1702 > cap(yyv1702) { - yyrg1917 := len(yyv1917) > 0 - yyv21917 := yyv1917 - yyrl1917, yyrt1917 = z.DecInferLen(yyl1917, z.DecBasicHandle().MaxInitLen, 552) - if yyrt1917 { - if yyrl1917 <= cap(yyv1917) { - yyv1917 = yyv1917[:yyrl1917] + yyrg1702 := len(yyv1702) > 0 + yyv21702 := yyv1702 + yyrl1702, yyrt1702 = z.DecInferLen(yyl1702, z.DecBasicHandle().MaxInitLen, 552) + if yyrt1702 { + if yyrl1702 <= cap(yyv1702) { + yyv1702 = yyv1702[:yyrl1702] } else { - yyv1917 = make([]PodSecurityPolicy, yyrl1917) + yyv1702 = make([]PodSecurityPolicy, yyrl1702) } } else { - yyv1917 = make([]PodSecurityPolicy, yyrl1917) + yyv1702 = make([]PodSecurityPolicy, yyrl1702) } - yyc1917 = true - yyrr1917 = len(yyv1917) - if yyrg1917 { - copy(yyv1917, yyv21917) + yyc1702 = true + yyrr1702 = len(yyv1702) + if yyrg1702 { + copy(yyv1702, yyv21702) } - } else if yyl1917 != len(yyv1917) { - yyv1917 = yyv1917[:yyl1917] - yyc1917 = true + } else if yyl1702 != len(yyv1702) { + yyv1702 = yyv1702[:yyl1702] + yyc1702 = true } - yyj1917 := 0 - for ; yyj1917 < yyrr1917; yyj1917++ { - yyh1917.ElemContainerState(yyj1917) + yyj1702 := 0 + for ; yyj1702 < yyrr1702; yyj1702++ { + yyh1702.ElemContainerState(yyj1702) if r.TryDecodeAsNil() { - yyv1917[yyj1917] = PodSecurityPolicy{} + yyv1702[yyj1702] = PodSecurityPolicy{} } else { - yyv1918 := &yyv1917[yyj1917] - yyv1918.CodecDecodeSelf(d) + yyv1703 := &yyv1702[yyj1702] + yyv1703.CodecDecodeSelf(d) } } - if yyrt1917 { - for ; yyj1917 < yyl1917; yyj1917++ { - yyv1917 = append(yyv1917, PodSecurityPolicy{}) - yyh1917.ElemContainerState(yyj1917) + if yyrt1702 { + for ; yyj1702 < yyl1702; yyj1702++ { + yyv1702 = append(yyv1702, PodSecurityPolicy{}) + yyh1702.ElemContainerState(yyj1702) if r.TryDecodeAsNil() { - yyv1917[yyj1917] = PodSecurityPolicy{} + yyv1702[yyj1702] = PodSecurityPolicy{} } else { - yyv1919 := &yyv1917[yyj1917] - yyv1919.CodecDecodeSelf(d) + yyv1704 := &yyv1702[yyj1702] + yyv1704.CodecDecodeSelf(d) } } } } else { - yyj1917 := 0 - for ; !r.CheckBreak(); yyj1917++ { + yyj1702 := 0 + for ; !r.CheckBreak(); yyj1702++ { - if yyj1917 >= len(yyv1917) { - yyv1917 = append(yyv1917, PodSecurityPolicy{}) // var yyz1917 PodSecurityPolicy - yyc1917 = true + if yyj1702 >= len(yyv1702) { + yyv1702 = append(yyv1702, PodSecurityPolicy{}) // var yyz1702 PodSecurityPolicy + yyc1702 = true } - yyh1917.ElemContainerState(yyj1917) - if yyj1917 < len(yyv1917) { + yyh1702.ElemContainerState(yyj1702) + if yyj1702 < len(yyv1702) { if r.TryDecodeAsNil() { - yyv1917[yyj1917] = PodSecurityPolicy{} + yyv1702[yyj1702] = PodSecurityPolicy{} } else { - yyv1920 := &yyv1917[yyj1917] - yyv1920.CodecDecodeSelf(d) + yyv1705 := &yyv1702[yyj1702] + yyv1705.CodecDecodeSelf(d) } } else { @@ -23643,17 +21170,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1917 < len(yyv1917) { - yyv1917 = yyv1917[:yyj1917] - yyc1917 = true - } else if yyj1917 == 0 && yyv1917 == nil { - yyv1917 = []PodSecurityPolicy{} - yyc1917 = true + if yyj1702 < len(yyv1702) { + yyv1702 = yyv1702[:yyj1702] + yyc1702 = true + } else if yyj1702 == 0 && yyv1702 == nil { + yyv1702 = []PodSecurityPolicy{} + yyc1702 = true } } - yyh1917.End() - if yyc1917 { - *v = yyv1917 + yyh1702.End() + if yyc1702 { + *v = yyv1702 } } @@ -23662,10 +21189,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1921 := range v { + for _, yyv1706 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1922 := &yyv1921 - yy1922.CodecEncodeSelf(e) + yy1707 := &yyv1706 + yy1707.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23675,83 +21202,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1923 := *v - yyh1923, yyl1923 := z.DecSliceHelperStart() - var yyc1923 bool - if yyl1923 == 0 { - if yyv1923 == nil { - yyv1923 = []NetworkPolicyIngressRule{} - yyc1923 = true - } else if len(yyv1923) != 0 { - yyv1923 = yyv1923[:0] - yyc1923 = true + yyv1708 := *v + yyh1708, yyl1708 := z.DecSliceHelperStart() + var yyc1708 bool + if yyl1708 == 0 { + if yyv1708 == nil { + yyv1708 = []NetworkPolicyIngressRule{} + yyc1708 = true + } else if len(yyv1708) != 0 { + yyv1708 = yyv1708[:0] + yyc1708 = true } - } else if yyl1923 > 0 { - var yyrr1923, yyrl1923 int - var yyrt1923 bool - if yyl1923 > cap(yyv1923) { + } else if yyl1708 > 0 { + var yyrr1708, yyrl1708 int + var yyrt1708 bool + if yyl1708 > cap(yyv1708) { - yyrg1923 := len(yyv1923) > 0 - yyv21923 := yyv1923 - yyrl1923, yyrt1923 = z.DecInferLen(yyl1923, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1923 { - if yyrl1923 <= cap(yyv1923) { - yyv1923 = yyv1923[:yyrl1923] + yyrg1708 := len(yyv1708) > 0 + yyv21708 := yyv1708 + yyrl1708, yyrt1708 = z.DecInferLen(yyl1708, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1708 { + if yyrl1708 <= cap(yyv1708) { + yyv1708 = yyv1708[:yyrl1708] } else { - yyv1923 = make([]NetworkPolicyIngressRule, yyrl1923) + yyv1708 = make([]NetworkPolicyIngressRule, yyrl1708) } } else { - yyv1923 = make([]NetworkPolicyIngressRule, yyrl1923) + yyv1708 = make([]NetworkPolicyIngressRule, yyrl1708) } - yyc1923 = true - yyrr1923 = len(yyv1923) - if yyrg1923 { - copy(yyv1923, yyv21923) + yyc1708 = true + yyrr1708 = len(yyv1708) + if yyrg1708 { + copy(yyv1708, yyv21708) } - } else if yyl1923 != len(yyv1923) { - yyv1923 = yyv1923[:yyl1923] - yyc1923 = true + } else if yyl1708 != len(yyv1708) { + yyv1708 = yyv1708[:yyl1708] + yyc1708 = true } - yyj1923 := 0 - for ; yyj1923 < yyrr1923; yyj1923++ { - yyh1923.ElemContainerState(yyj1923) + yyj1708 := 0 + for ; yyj1708 < yyrr1708; yyj1708++ { + yyh1708.ElemContainerState(yyj1708) if r.TryDecodeAsNil() { - yyv1923[yyj1923] = NetworkPolicyIngressRule{} + yyv1708[yyj1708] = NetworkPolicyIngressRule{} } else { - yyv1924 := &yyv1923[yyj1923] - yyv1924.CodecDecodeSelf(d) + yyv1709 := &yyv1708[yyj1708] + yyv1709.CodecDecodeSelf(d) } } - if yyrt1923 { - for ; yyj1923 < yyl1923; yyj1923++ { - yyv1923 = append(yyv1923, NetworkPolicyIngressRule{}) - yyh1923.ElemContainerState(yyj1923) + if yyrt1708 { + for ; yyj1708 < yyl1708; yyj1708++ { + yyv1708 = append(yyv1708, NetworkPolicyIngressRule{}) + yyh1708.ElemContainerState(yyj1708) if r.TryDecodeAsNil() { - yyv1923[yyj1923] = NetworkPolicyIngressRule{} + yyv1708[yyj1708] = NetworkPolicyIngressRule{} } else { - yyv1925 := &yyv1923[yyj1923] - yyv1925.CodecDecodeSelf(d) + yyv1710 := &yyv1708[yyj1708] + yyv1710.CodecDecodeSelf(d) } } } } else { - yyj1923 := 0 - for ; !r.CheckBreak(); yyj1923++ { + yyj1708 := 0 + for ; !r.CheckBreak(); yyj1708++ { - if yyj1923 >= len(yyv1923) { - yyv1923 = append(yyv1923, NetworkPolicyIngressRule{}) // var yyz1923 NetworkPolicyIngressRule - yyc1923 = true + if yyj1708 >= len(yyv1708) { + yyv1708 = append(yyv1708, NetworkPolicyIngressRule{}) // var yyz1708 NetworkPolicyIngressRule + yyc1708 = true } - yyh1923.ElemContainerState(yyj1923) - if yyj1923 < len(yyv1923) { + yyh1708.ElemContainerState(yyj1708) + if yyj1708 < len(yyv1708) { if r.TryDecodeAsNil() { - yyv1923[yyj1923] = NetworkPolicyIngressRule{} + yyv1708[yyj1708] = NetworkPolicyIngressRule{} } else { - yyv1926 := &yyv1923[yyj1923] - yyv1926.CodecDecodeSelf(d) + yyv1711 := &yyv1708[yyj1708] + yyv1711.CodecDecodeSelf(d) } } else { @@ -23759,17 +21286,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1923 < len(yyv1923) { - yyv1923 = yyv1923[:yyj1923] - yyc1923 = true - } else if yyj1923 == 0 && yyv1923 == nil { - yyv1923 = []NetworkPolicyIngressRule{} - yyc1923 = true + if yyj1708 < len(yyv1708) { + yyv1708 = yyv1708[:yyj1708] + yyc1708 = true + } else if yyj1708 == 0 && yyv1708 == nil { + yyv1708 = []NetworkPolicyIngressRule{} + yyc1708 = true } } - yyh1923.End() - if yyc1923 { - *v = yyv1923 + yyh1708.End() + if yyc1708 { + *v = yyv1708 } } @@ -23778,10 +21305,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1927 := range v { + for _, yyv1712 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1928 := &yyv1927 - yy1928.CodecEncodeSelf(e) + yy1713 := &yyv1712 + yy1713.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23791,83 +21318,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1929 := *v - yyh1929, yyl1929 := z.DecSliceHelperStart() - var yyc1929 bool - if yyl1929 == 0 { - if yyv1929 == nil { - yyv1929 = []NetworkPolicyPort{} - yyc1929 = true - } else if len(yyv1929) != 0 { - yyv1929 = yyv1929[:0] - yyc1929 = true + yyv1714 := *v + yyh1714, yyl1714 := z.DecSliceHelperStart() + var yyc1714 bool + if yyl1714 == 0 { + if yyv1714 == nil { + yyv1714 = []NetworkPolicyPort{} + yyc1714 = true + } else if len(yyv1714) != 0 { + yyv1714 = yyv1714[:0] + yyc1714 = true } - } else if yyl1929 > 0 { - var yyrr1929, yyrl1929 int - var yyrt1929 bool - if yyl1929 > cap(yyv1929) { + } else if yyl1714 > 0 { + var yyrr1714, yyrl1714 int + var yyrt1714 bool + if yyl1714 > cap(yyv1714) { - yyrg1929 := len(yyv1929) > 0 - yyv21929 := yyv1929 - yyrl1929, yyrt1929 = z.DecInferLen(yyl1929, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1929 { - if yyrl1929 <= cap(yyv1929) { - yyv1929 = yyv1929[:yyrl1929] + yyrg1714 := len(yyv1714) > 0 + yyv21714 := yyv1714 + yyrl1714, yyrt1714 = z.DecInferLen(yyl1714, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1714 { + if yyrl1714 <= cap(yyv1714) { + yyv1714 = yyv1714[:yyrl1714] } else { - yyv1929 = make([]NetworkPolicyPort, yyrl1929) + yyv1714 = make([]NetworkPolicyPort, yyrl1714) } } else { - yyv1929 = make([]NetworkPolicyPort, yyrl1929) + yyv1714 = make([]NetworkPolicyPort, yyrl1714) } - yyc1929 = true - yyrr1929 = len(yyv1929) - if yyrg1929 { - copy(yyv1929, yyv21929) + yyc1714 = true + yyrr1714 = len(yyv1714) + if yyrg1714 { + copy(yyv1714, yyv21714) } - } else if yyl1929 != len(yyv1929) { - yyv1929 = yyv1929[:yyl1929] - yyc1929 = true + } else if yyl1714 != len(yyv1714) { + yyv1714 = yyv1714[:yyl1714] + yyc1714 = true } - yyj1929 := 0 - for ; yyj1929 < yyrr1929; yyj1929++ { - yyh1929.ElemContainerState(yyj1929) + yyj1714 := 0 + for ; yyj1714 < yyrr1714; yyj1714++ { + yyh1714.ElemContainerState(yyj1714) if r.TryDecodeAsNil() { - yyv1929[yyj1929] = NetworkPolicyPort{} + yyv1714[yyj1714] = NetworkPolicyPort{} } else { - yyv1930 := &yyv1929[yyj1929] - yyv1930.CodecDecodeSelf(d) + yyv1715 := &yyv1714[yyj1714] + yyv1715.CodecDecodeSelf(d) } } - if yyrt1929 { - for ; yyj1929 < yyl1929; yyj1929++ { - yyv1929 = append(yyv1929, NetworkPolicyPort{}) - yyh1929.ElemContainerState(yyj1929) + if yyrt1714 { + for ; yyj1714 < yyl1714; yyj1714++ { + yyv1714 = append(yyv1714, NetworkPolicyPort{}) + yyh1714.ElemContainerState(yyj1714) if r.TryDecodeAsNil() { - yyv1929[yyj1929] = NetworkPolicyPort{} + yyv1714[yyj1714] = NetworkPolicyPort{} } else { - yyv1931 := &yyv1929[yyj1929] - yyv1931.CodecDecodeSelf(d) + yyv1716 := &yyv1714[yyj1714] + yyv1716.CodecDecodeSelf(d) } } } } else { - yyj1929 := 0 - for ; !r.CheckBreak(); yyj1929++ { + yyj1714 := 0 + for ; !r.CheckBreak(); yyj1714++ { - if yyj1929 >= len(yyv1929) { - yyv1929 = append(yyv1929, NetworkPolicyPort{}) // var yyz1929 NetworkPolicyPort - yyc1929 = true + if yyj1714 >= len(yyv1714) { + yyv1714 = append(yyv1714, NetworkPolicyPort{}) // var yyz1714 NetworkPolicyPort + yyc1714 = true } - yyh1929.ElemContainerState(yyj1929) - if yyj1929 < len(yyv1929) { + yyh1714.ElemContainerState(yyj1714) + if yyj1714 < len(yyv1714) { if r.TryDecodeAsNil() { - yyv1929[yyj1929] = NetworkPolicyPort{} + yyv1714[yyj1714] = NetworkPolicyPort{} } else { - yyv1932 := &yyv1929[yyj1929] - yyv1932.CodecDecodeSelf(d) + yyv1717 := &yyv1714[yyj1714] + yyv1717.CodecDecodeSelf(d) } } else { @@ -23875,17 +21402,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1929 < len(yyv1929) { - yyv1929 = yyv1929[:yyj1929] - yyc1929 = true - } else if yyj1929 == 0 && yyv1929 == nil { - yyv1929 = []NetworkPolicyPort{} - yyc1929 = true + if yyj1714 < len(yyv1714) { + yyv1714 = yyv1714[:yyj1714] + yyc1714 = true + } else if yyj1714 == 0 && yyv1714 == nil { + yyv1714 = []NetworkPolicyPort{} + yyc1714 = true } } - yyh1929.End() - if yyc1929 { - *v = yyv1929 + yyh1714.End() + if yyc1714 { + *v = yyv1714 } } @@ -23894,10 +21421,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1933 := range v { + for _, yyv1718 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1934 := &yyv1933 - yy1934.CodecEncodeSelf(e) + yy1719 := &yyv1718 + yy1719.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23907,83 +21434,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1935 := *v - yyh1935, yyl1935 := z.DecSliceHelperStart() - var yyc1935 bool - if yyl1935 == 0 { - if yyv1935 == nil { - yyv1935 = []NetworkPolicyPeer{} - yyc1935 = true - } else if len(yyv1935) != 0 { - yyv1935 = yyv1935[:0] - yyc1935 = true + yyv1720 := *v + yyh1720, yyl1720 := z.DecSliceHelperStart() + var yyc1720 bool + if yyl1720 == 0 { + if yyv1720 == nil { + yyv1720 = []NetworkPolicyPeer{} + yyc1720 = true + } else if len(yyv1720) != 0 { + yyv1720 = yyv1720[:0] + yyc1720 = true } - } else if yyl1935 > 0 { - var yyrr1935, yyrl1935 int - var yyrt1935 bool - if yyl1935 > cap(yyv1935) { + } else if yyl1720 > 0 { + var yyrr1720, yyrl1720 int + var yyrt1720 bool + if yyl1720 > cap(yyv1720) { - yyrg1935 := len(yyv1935) > 0 - yyv21935 := yyv1935 - yyrl1935, yyrt1935 = z.DecInferLen(yyl1935, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1935 { - if yyrl1935 <= cap(yyv1935) { - yyv1935 = yyv1935[:yyrl1935] + yyrg1720 := len(yyv1720) > 0 + yyv21720 := yyv1720 + yyrl1720, yyrt1720 = z.DecInferLen(yyl1720, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1720 { + if yyrl1720 <= cap(yyv1720) { + yyv1720 = yyv1720[:yyrl1720] } else { - yyv1935 = make([]NetworkPolicyPeer, yyrl1935) + yyv1720 = make([]NetworkPolicyPeer, yyrl1720) } } else { - yyv1935 = make([]NetworkPolicyPeer, yyrl1935) + yyv1720 = make([]NetworkPolicyPeer, yyrl1720) } - yyc1935 = true - yyrr1935 = len(yyv1935) - if yyrg1935 { - copy(yyv1935, yyv21935) + yyc1720 = true + yyrr1720 = len(yyv1720) + if yyrg1720 { + copy(yyv1720, yyv21720) } - } else if yyl1935 != len(yyv1935) { - yyv1935 = yyv1935[:yyl1935] - yyc1935 = true + } else if yyl1720 != len(yyv1720) { + yyv1720 = yyv1720[:yyl1720] + yyc1720 = true } - yyj1935 := 0 - for ; yyj1935 < yyrr1935; yyj1935++ { - yyh1935.ElemContainerState(yyj1935) + yyj1720 := 0 + for ; yyj1720 < yyrr1720; yyj1720++ { + yyh1720.ElemContainerState(yyj1720) if r.TryDecodeAsNil() { - yyv1935[yyj1935] = NetworkPolicyPeer{} + yyv1720[yyj1720] = NetworkPolicyPeer{} } else { - yyv1936 := &yyv1935[yyj1935] - yyv1936.CodecDecodeSelf(d) + yyv1721 := &yyv1720[yyj1720] + yyv1721.CodecDecodeSelf(d) } } - if yyrt1935 { - for ; yyj1935 < yyl1935; yyj1935++ { - yyv1935 = append(yyv1935, NetworkPolicyPeer{}) - yyh1935.ElemContainerState(yyj1935) + if yyrt1720 { + for ; yyj1720 < yyl1720; yyj1720++ { + yyv1720 = append(yyv1720, NetworkPolicyPeer{}) + yyh1720.ElemContainerState(yyj1720) if r.TryDecodeAsNil() { - yyv1935[yyj1935] = NetworkPolicyPeer{} + yyv1720[yyj1720] = NetworkPolicyPeer{} } else { - yyv1937 := &yyv1935[yyj1935] - yyv1937.CodecDecodeSelf(d) + yyv1722 := &yyv1720[yyj1720] + yyv1722.CodecDecodeSelf(d) } } } } else { - yyj1935 := 0 - for ; !r.CheckBreak(); yyj1935++ { + yyj1720 := 0 + for ; !r.CheckBreak(); yyj1720++ { - if yyj1935 >= len(yyv1935) { - yyv1935 = append(yyv1935, NetworkPolicyPeer{}) // var yyz1935 NetworkPolicyPeer - yyc1935 = true + if yyj1720 >= len(yyv1720) { + yyv1720 = append(yyv1720, NetworkPolicyPeer{}) // var yyz1720 NetworkPolicyPeer + yyc1720 = true } - yyh1935.ElemContainerState(yyj1935) - if yyj1935 < len(yyv1935) { + yyh1720.ElemContainerState(yyj1720) + if yyj1720 < len(yyv1720) { if r.TryDecodeAsNil() { - yyv1935[yyj1935] = NetworkPolicyPeer{} + yyv1720[yyj1720] = NetworkPolicyPeer{} } else { - yyv1938 := &yyv1935[yyj1935] - yyv1938.CodecDecodeSelf(d) + yyv1723 := &yyv1720[yyj1720] + yyv1723.CodecDecodeSelf(d) } } else { @@ -23991,17 +21518,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1935 < len(yyv1935) { - yyv1935 = yyv1935[:yyj1935] - yyc1935 = true - } else if yyj1935 == 0 && yyv1935 == nil { - yyv1935 = []NetworkPolicyPeer{} - yyc1935 = true + if yyj1720 < len(yyv1720) { + yyv1720 = yyv1720[:yyj1720] + yyc1720 = true + } else if yyj1720 == 0 && yyv1720 == nil { + yyv1720 = []NetworkPolicyPeer{} + yyc1720 = true } } - yyh1935.End() - if yyc1935 { - *v = yyv1935 + yyh1720.End() + if yyc1720 { + *v = yyv1720 } } @@ -24010,10 +21537,10 @@ func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1939 := range v { + for _, yyv1724 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1940 := &yyv1939 - yy1940.CodecEncodeSelf(e) + yy1725 := &yyv1724 + yy1725.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24023,83 +21550,83 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1941 := *v - yyh1941, yyl1941 := z.DecSliceHelperStart() - var yyc1941 bool - if yyl1941 == 0 { - if yyv1941 == nil { - yyv1941 = []NetworkPolicy{} - yyc1941 = true - } else if len(yyv1941) != 0 { - yyv1941 = yyv1941[:0] - yyc1941 = true + yyv1726 := *v + yyh1726, yyl1726 := z.DecSliceHelperStart() + var yyc1726 bool + if yyl1726 == 0 { + if yyv1726 == nil { + yyv1726 = []NetworkPolicy{} + yyc1726 = true + } else if len(yyv1726) != 0 { + yyv1726 = yyv1726[:0] + yyc1726 = true } - } else if yyl1941 > 0 { - var yyrr1941, yyrl1941 int - var yyrt1941 bool - if yyl1941 > cap(yyv1941) { + } else if yyl1726 > 0 { + var yyrr1726, yyrl1726 int + var yyrt1726 bool + if yyl1726 > cap(yyv1726) { - yyrg1941 := len(yyv1941) > 0 - yyv21941 := yyv1941 - yyrl1941, yyrt1941 = z.DecInferLen(yyl1941, z.DecBasicHandle().MaxInitLen, 312) - if yyrt1941 { - if yyrl1941 <= cap(yyv1941) { - yyv1941 = yyv1941[:yyrl1941] + yyrg1726 := len(yyv1726) > 0 + yyv21726 := yyv1726 + yyrl1726, yyrt1726 = z.DecInferLen(yyl1726, z.DecBasicHandle().MaxInitLen, 312) + if yyrt1726 { + if yyrl1726 <= cap(yyv1726) { + yyv1726 = yyv1726[:yyrl1726] } else { - yyv1941 = make([]NetworkPolicy, yyrl1941) + yyv1726 = make([]NetworkPolicy, yyrl1726) } } else { - yyv1941 = make([]NetworkPolicy, yyrl1941) + yyv1726 = make([]NetworkPolicy, yyrl1726) } - yyc1941 = true - yyrr1941 = len(yyv1941) - if yyrg1941 { - copy(yyv1941, yyv21941) + yyc1726 = true + yyrr1726 = len(yyv1726) + if yyrg1726 { + copy(yyv1726, yyv21726) } - } else if yyl1941 != len(yyv1941) { - yyv1941 = yyv1941[:yyl1941] - yyc1941 = true + } else if yyl1726 != len(yyv1726) { + yyv1726 = yyv1726[:yyl1726] + yyc1726 = true } - yyj1941 := 0 - for ; yyj1941 < yyrr1941; yyj1941++ { - yyh1941.ElemContainerState(yyj1941) + yyj1726 := 0 + for ; yyj1726 < yyrr1726; yyj1726++ { + yyh1726.ElemContainerState(yyj1726) if r.TryDecodeAsNil() { - yyv1941[yyj1941] = NetworkPolicy{} + yyv1726[yyj1726] = NetworkPolicy{} } else { - yyv1942 := &yyv1941[yyj1941] - yyv1942.CodecDecodeSelf(d) + yyv1727 := &yyv1726[yyj1726] + yyv1727.CodecDecodeSelf(d) } } - if yyrt1941 { - for ; yyj1941 < yyl1941; yyj1941++ { - yyv1941 = append(yyv1941, NetworkPolicy{}) - yyh1941.ElemContainerState(yyj1941) + if yyrt1726 { + for ; yyj1726 < yyl1726; yyj1726++ { + yyv1726 = append(yyv1726, NetworkPolicy{}) + yyh1726.ElemContainerState(yyj1726) if r.TryDecodeAsNil() { - yyv1941[yyj1941] = NetworkPolicy{} + yyv1726[yyj1726] = NetworkPolicy{} } else { - yyv1943 := &yyv1941[yyj1941] - yyv1943.CodecDecodeSelf(d) + yyv1728 := &yyv1726[yyj1726] + yyv1728.CodecDecodeSelf(d) } } } } else { - yyj1941 := 0 - for ; !r.CheckBreak(); yyj1941++ { + yyj1726 := 0 + for ; !r.CheckBreak(); yyj1726++ { - if yyj1941 >= len(yyv1941) { - yyv1941 = append(yyv1941, NetworkPolicy{}) // var yyz1941 NetworkPolicy - yyc1941 = true + if yyj1726 >= len(yyv1726) { + yyv1726 = append(yyv1726, NetworkPolicy{}) // var yyz1726 NetworkPolicy + yyc1726 = true } - yyh1941.ElemContainerState(yyj1941) - if yyj1941 < len(yyv1941) { + yyh1726.ElemContainerState(yyj1726) + if yyj1726 < len(yyv1726) { if r.TryDecodeAsNil() { - yyv1941[yyj1941] = NetworkPolicy{} + yyv1726[yyj1726] = NetworkPolicy{} } else { - yyv1944 := &yyv1941[yyj1941] - yyv1944.CodecDecodeSelf(d) + yyv1729 := &yyv1726[yyj1726] + yyv1729.CodecDecodeSelf(d) } } else { @@ -24107,16 +21634,16 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1941 < len(yyv1941) { - yyv1941 = yyv1941[:yyj1941] - yyc1941 = true - } else if yyj1941 == 0 && yyv1941 == nil { - yyv1941 = []NetworkPolicy{} - yyc1941 = true + if yyj1726 < len(yyv1726) { + yyv1726 = yyv1726[:yyj1726] + yyc1726 = true + } else if yyj1726 == 0 && yyv1726 == nil { + yyv1726 = []NetworkPolicy{} + yyc1726 = true } } - yyh1941.End() - if yyc1941 { - *v = yyv1941 + yyh1726.End() + if yyc1726 { + *v = yyv1726 } } diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go index b46ac7eb951..7e9939c6ab0 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go @@ -616,149 +616,6 @@ 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 { - metav1.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 { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Job. - Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// JobSpec describes how the job execution will look like. -type JobSpec struct { - - // Parallelism specifies the maximum desired number of pods the job should - // run at any given time. The actual number of pods running in steady state will - // be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), - // i.e. when the work left to do is less than max parallelism. - // 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 - // 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 - // +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://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - Selector *metav1.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://kubernetes.io/docs/user-guide/jobs - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"` -} - -// JobStatus represents the current state of a Job. -type JobStatus struct { - - // Conditions represent the latest available observations of an object's current state. - // 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 *metav1.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 *metav1.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"` -} - -type JobConditionType string - -// These are valid conditions of a job. -const ( - // JobComplete means the job has completed its execution. - JobComplete JobConditionType = "Complete" - // JobFailed means the job has failed its execution. - JobFailed JobConditionType = "Failed" -) - -// JobCondition describes current state of a job. -type JobCondition struct { - // Type of job condition, Complete or Failed. - Type JobConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=JobConditionType"` - // 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 metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` - // Last time the condition transit from one status to another. - // +optional - LastTransitionTime metav1.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"` -} - -// +genclient=true - // Ingress is a collection of rules that allow inbound connections to reach the // endpoints defined by a backend. An Ingress can be configured to give services // externally-reachable urls, load balance traffic, terminate SSL, offer name diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go index e3630e049eb..18ae1d0f9d0 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go @@ -366,69 +366,6 @@ func (IngressTLS) SwaggerDoc() map[string]string { return map_IngressTLS } -var map_Job = map[string]string{ - "": "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", -} - -func (Job) SwaggerDoc() map[string]string { - return map_Job -} - -var map_JobCondition = map[string]string{ - "": "JobCondition describes current state of a job.", - "type": "Type of job condition, Complete or Failed.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastProbeTime": "Last time the condition was checked.", - "lastTransitionTime": "Last time the condition transit from one status to another.", - "reason": "(brief) reason for the condition's last transition.", - "message": "Human readable message indicating details about last transition.", -} - -func (JobCondition) SwaggerDoc() map[string]string { - return map_JobCondition -} - -var map_JobList = map[string]string{ - "": "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.", -} - -func (JobList) SwaggerDoc() map[string]string { - return map_JobList -} - -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://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://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://kubernetes.io/docs/user-guide/jobs", -} - -func (JobSpec) SwaggerDoc() map[string]string { - return map_JobSpec -} - -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://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.", - "succeeded": "Succeeded is the number of pods which reached Phase Succeeded.", - "failed": "Failed is the number of pods which reached Phase Failed.", -} - -func (JobStatus) SwaggerDoc() map[string]string { - return map_JobStatus -} - 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.", diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go index ab21541dee7..c418b49f95f 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go @@ -24,7 +24,6 @@ import ( api "k8s.io/client-go/pkg/api" api_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" v1 "k8s.io/client-go/pkg/apis/meta/v1" conversion "k8s.io/client-go/pkg/conversion" @@ -107,16 +106,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_extensions_IngressStatus_To_v1beta1_IngressStatus, Convert_v1beta1_IngressTLS_To_extensions_IngressTLS, Convert_extensions_IngressTLS_To_v1beta1_IngressTLS, - Convert_v1beta1_Job_To_batch_Job, - Convert_batch_Job_To_v1beta1_Job, - Convert_v1beta1_JobCondition_To_batch_JobCondition, - Convert_batch_JobCondition_To_v1beta1_JobCondition, - Convert_v1beta1_JobList_To_batch_JobList, - Convert_batch_JobList_To_v1beta1_JobList, - Convert_v1beta1_JobSpec_To_batch_JobSpec, - Convert_batch_JobSpec_To_v1beta1_JobSpec, - Convert_v1beta1_JobStatus_To_batch_JobStatus, - Convert_batch_JobStatus_To_v1beta1_JobStatus, Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy, Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy, Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule, @@ -1020,162 +1009,6 @@ func Convert_extensions_IngressTLS_To_v1beta1_IngressTLS(in *extensions.IngressT return autoConvert_extensions_IngressTLS_To_v1beta1_IngressTLS(in, out, s) } -func autoConvert_v1beta1_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_v1beta1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - return autoConvert_v1beta1_Job_To_batch_Job(in, out, s) -} - -func autoConvert_batch_Job_To_v1beta1_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_v1beta1_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_batch_JobStatus_To_v1beta1_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scope) error { - return autoConvert_batch_Job_To_v1beta1_Job(in, out, s) -} - -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) - out.LastProbeTime = in.LastProbeTime - out.LastTransitionTime = in.LastTransitionTime - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { - return autoConvert_v1beta1_JobCondition_To_batch_JobCondition(in, out, s) -} - -func autoConvert_batch_JobCondition_To_v1beta1_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_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { - return autoConvert_batch_JobCondition_To_v1beta1_JobCondition(in, out, s) -} - -func autoConvert_v1beta1_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_v1beta1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { - return autoConvert_v1beta1_JobList_To_batch_JobList(in, out, s) -} - -func autoConvert_batch_JobList_To_v1beta1_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_v1beta1_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { - return autoConvert_batch_JobList_To_v1beta1_JobList(in, out, s) -} - -func autoConvert_v1beta1_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 = (*v1.LabelSelector)(unsafe.Pointer(in.Selector)) - // WARNING: in.AutoSelector requires manual conversion: does not exist in peer-type - 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_v1beta1_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 = (*v1.LabelSelector)(unsafe.Pointer(in.Selector)) - // WARNING: in.ManualSelector requires manual conversion: does not exist in peer-type - if err := api_v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func autoConvert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - out.Conditions = *(*[]batch.JobCondition)(unsafe.Pointer(&in.Conditions)) - out.StartTime = (*v1.Time)(unsafe.Pointer(in.StartTime)) - out.CompletionTime = (*v1.Time)(unsafe.Pointer(in.CompletionTime)) - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - return autoConvert_v1beta1_JobStatus_To_batch_JobStatus(in, out, s) -} - -func autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - out.Conditions = *(*[]JobCondition)(unsafe.Pointer(&in.Conditions)) - out.StartTime = (*v1.Time)(unsafe.Pointer(in.StartTime)) - out.CompletionTime = (*v1.Time)(unsafe.Pointer(in.CompletionTime)) - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - return autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in, out, s) -} - func autoConvert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error { // TODO: Inefficient conversion - can we improve it? if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go index 655b053f849..ccabe27a736 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go @@ -71,11 +71,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Job, InType: reflect.TypeOf(&Job{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobList, InType: reflect.TypeOf(&JobList{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_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{})}, @@ -721,143 +716,6 @@ func DeepCopy_v1beta1_IngressTLS(in interface{}, out interface{}, c *conversion. } } -func DeepCopy_v1beta1_Job(in interface{}, out interface{}, c *conversion.Cloner) error { - { - in := in.(*Job) - out := out.(*Job) - out.TypeMeta = in.TypeMeta - if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_JobSpec(&in.Spec, &out.Spec, c); err != nil { - return err - } - if err := DeepCopy_v1beta1_JobStatus(&in.Status, &out.Status, c); err != nil { - return err - } - return nil - } -} - -func DeepCopy_v1beta1_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { - { - in := in.(*JobCondition) - out := out.(*JobCondition) - out.Type = in.Type - out.Status = in.Status - out.LastProbeTime = in.LastProbeTime.DeepCopy() - out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message - return nil - } -} - -func DeepCopy_v1beta1_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { - { - in := in.(*JobList) - out := out.(*JobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Job, len(*in)) - for i := range *in { - if err := DeepCopy_v1beta1_Job(&(*in)[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil - } -} - -func DeepCopy_v1beta1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { - { - in := in.(*JobSpec) - out := out.(*JobSpec) - if in.Parallelism != nil { - in, out := &in.Parallelism, &out.Parallelism - *out = new(int32) - **out = **in - } else { - out.Parallelism = nil - } - if in.Completions != nil { - in, out := &in.Completions, &out.Completions - *out = new(int32) - **out = **in - } else { - out.Completions = nil - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } else { - out.ActiveDeadlineSeconds = nil - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(meta_v1.LabelSelector) - if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { - return err - } - } else { - out.Selector = nil - } - if in.AutoSelector != nil { - in, out := &in.AutoSelector, &out.AutoSelector - *out = new(bool) - **out = **in - } else { - out.AutoSelector = nil - } - if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { - return err - } - return nil - } -} - -func DeepCopy_v1beta1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { - { - in := in.(*JobStatus) - out := out.(*JobStatus) - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]JobCondition, len(*in)) - for i := range *in { - if err := DeepCopy_v1beta1_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if in.StartTime != nil { - in, out := &in.StartTime, &out.StartTime - *out = new(meta_v1.Time) - **out = (*in).DeepCopy() - } else { - out.StartTime = nil - } - if in.CompletionTime != nil { - in, out := &in.CompletionTime, &out.CompletionTime - *out = new(meta_v1.Time) - **out = (*in).DeepCopy() - } else { - out.CompletionTime = nil - } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil - } -} - func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*NetworkPolicy) diff --git a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go index 000645c654d..d033ac3f16c 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go +++ b/staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go @@ -37,8 +37,6 @@ func RegisterDefaults(scheme *runtime.Scheme) error { 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)) }) @@ -305,130 +303,6 @@ func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerLi } } -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) } diff --git a/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/doc.go b/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/doc.go index 3401639c6c8..306f51b005b 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/doc.go @@ -16,6 +16,4 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +groupName=imagepolicy.k8s.io -// +k8s:openapi-gen=true - package imagepolicy diff --git a/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/types.generated.go deleted file mode 100644 index 2e84dc706dd..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/imagepolicy/types.generated.go +++ /dev/null @@ -1,2218 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package imagepolicy - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *ImageReview) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [19]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = x.Name != "" - yyq2[3] = x.GenerateName != "" - yyq2[4] = x.Namespace != "" - yyq2[5] = x.SelfLink != "" - yyq2[6] = x.UID != "" - yyq2[7] = x.ResourceVersion != "" - yyq2[8] = x.Generation != 0 - yyq2[9] = true - yyq2[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq2[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq2[12] = len(x.Labels) != 0 - yyq2[13] = len(x.Annotations) != 0 - yyq2[14] = len(x.OwnerReferences) != 0 - yyq2[15] = len(x.Finalizers) != 0 - yyq2[16] = x.ClusterName != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(19) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[6] { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[7] { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[8] { - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generation")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeInt(int64(x.Generation)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[9] { - yy31 := &x.CreationTimestamp - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(yy31) { - } else if yym32 { - z.EncBinaryMarshal(yy31) - } else if !yym32 && z.IsJSONHandle() { - z.EncJSONMarshal(yy31) - } else { - z.EncFallback(yy31) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy33 := &x.CreationTimestamp - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(yy33) { - } else if yym34 { - z.EncBinaryMarshal(yy33) - } else if !yym34 && z.IsJSONHandle() { - z.EncJSONMarshal(yy33) - } else { - z.EncFallback(yy33) - } - } - } - var yyn35 bool - if x.ObjectMeta.DeletionTimestamp == nil { - yyn35 = true - goto LABEL35 - } - LABEL35: - if yyr2 || yy2arr2 { - if yyn35 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[10] { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym36 := z.EncBinary() - _ = yym36 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym36 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym36 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn35 { - r.EncodeNil() - } else { - if x.DeletionTimestamp == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym37 { - z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym37 && z.IsJSONHandle() { - z.EncJSONMarshal(x.DeletionTimestamp) - } else { - z.EncFallback(x.DeletionTimestamp) - } - } - } - } - } - var yyn38 bool - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn38 = true - goto LABEL38 - } - LABEL38: - if yyr2 || yy2arr2 { - if yyn38 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[11] { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy39 := *x.DeletionGracePeriodSeconds - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeInt(int64(yy39)) - } - } - } else { - r.EncodeNil() - } - } - } else { - if yyq2[11] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn38 { - r.EncodeNil() - } else { - if x.DeletionGracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy41 := *x.DeletionGracePeriodSeconds - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeInt(int64(yy41)) - } - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[12] { - if x.Labels == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - h.encSlicev1_OwnerReference(([]pkg1_v1.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym54 := z.EncBinary() - _ = yym54 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[16] { - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[16] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusterName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym57 := z.EncBinary() - _ = yym57 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy59 := &x.Spec - yy59.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy60 := &x.Spec - yy60.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy62 := &x.Status - yy62.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy63 := &x.Status - yy63.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ImageReview) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym64 := z.DecBinary() - _ = yym64 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct65 := r.ContainerType() - if yyct65 == codecSelferValueTypeMap1234 { - yyl65 := r.ReadMapStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl65, d) - } - } else if yyct65 == codecSelferValueTypeArray1234 { - yyl65 := r.ReadArrayStart() - if yyl65 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl65, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ImageReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys66Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys66Slc - var yyhl66 bool = l >= 0 - for yyj66 := 0; ; yyj66++ { - if yyhl66 { - if yyj66 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys66Slc = r.DecodeBytes(yys66Slc, true, true) - yys66 := string(yys66Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys66 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - case "generateName": - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - case "namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - case "selfLink": - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - case "uid": - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - case "resourceVersion": - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - case "generation": - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - case "creationTimestamp": - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv76 := &x.CreationTimestamp - yym77 := z.DecBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.DecExt(yyv76) { - } else if yym77 { - z.DecBinaryUnmarshal(yyv76) - } else if !yym77 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv76) - } else { - z.DecFallback(yyv76, false) - } - } - case "deletionTimestamp": - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym79 := z.DecBinary() - _ = yym79 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym79 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym79 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - case "deletionGracePeriodSeconds": - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - case "labels": - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv82 := &x.Labels - yym83 := z.DecBinary() - _ = yym83 - if false { - } else { - z.F.DecMapStringStringX(yyv82, false, d) - } - } - case "annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv84 := &x.Annotations - yym85 := z.DecBinary() - _ = yym85 - if false { - } else { - z.F.DecMapStringStringX(yyv84, false, d) - } - } - case "ownerReferences": - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv86 := &x.OwnerReferences - yym87 := z.DecBinary() - _ = yym87 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv86), d) - } - } - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv88 := &x.Finalizers - yym89 := z.DecBinary() - _ = yym89 - if false { - } else { - z.F.DecSliceStringX(yyv88, false, d) - } - } - case "clusterName": - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = ImageReviewSpec{} - } else { - yyv91 := &x.Spec - yyv91.CodecDecodeSelf(d) - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = ImageReviewStatus{} - } else { - yyv92 := &x.Status - yyv92.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys66) - } // end switch yys66 - } // end for yyj66 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ImageReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj93 int - var yyb93 bool - var yyhl93 bool = l >= 0 - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.GenerateName = "" - } else { - x.GenerateName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SelfLink = "" - } else { - x.SelfLink = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.UID = "" - } else { - x.UID = pkg3_types.UID(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Generation = 0 - } else { - x.Generation = int64(r.DecodeInt(64)) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CreationTimestamp = pkg1_v1.Time{} - } else { - yyv103 := &x.CreationTimestamp - yym104 := z.DecBinary() - _ = yym104 - if false { - } else if z.HasExtensions() && z.DecExt(yyv103) { - } else if yym104 { - z.DecBinaryUnmarshal(yyv103) - } else if !yym104 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv103) - } else { - z.DecFallback(yyv103, false) - } - } - if x.ObjectMeta.DeletionTimestamp == nil { - x.ObjectMeta.DeletionTimestamp = new(pkg1_v1.Time) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionTimestamp != nil { - x.DeletionTimestamp = nil - } - } else { - if x.DeletionTimestamp == nil { - x.DeletionTimestamp = new(pkg1_v1.Time) - } - yym106 := z.DecBinary() - _ = yym106 - if false { - } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym106 { - z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym106 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.DeletionTimestamp) - } else { - z.DecFallback(x.DeletionTimestamp, false) - } - } - if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeletionGracePeriodSeconds != nil { - x.DeletionGracePeriodSeconds = nil - } - } else { - if x.DeletionGracePeriodSeconds == nil { - x.DeletionGracePeriodSeconds = new(int64) - } - yym108 := z.DecBinary() - _ = yym108 - if false { - } else { - *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Labels = nil - } else { - yyv109 := &x.Labels - yym110 := z.DecBinary() - _ = yym110 - if false { - } else { - z.F.DecMapStringStringX(yyv109, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv111 := &x.Annotations - yym112 := z.DecBinary() - _ = yym112 - if false { - } else { - z.F.DecMapStringStringX(yyv111, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OwnerReferences = nil - } else { - yyv113 := &x.OwnerReferences - yym114 := z.DecBinary() - _ = yym114 - if false { - } else { - h.decSlicev1_OwnerReference((*[]pkg1_v1.OwnerReference)(yyv113), d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv115 := &x.Finalizers - yym116 := z.DecBinary() - _ = yym116 - if false { - } else { - z.F.DecSliceStringX(yyv115, false, d) - } - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterName = "" - } else { - x.ClusterName = string(r.DecodeString()) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ImageReviewSpec{} - } else { - yyv118 := &x.Spec - yyv118.CodecDecodeSelf(d) - } - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ImageReviewStatus{} - } else { - yyv119 := &x.Status - yyv119.CodecDecodeSelf(d) - } - for { - yyj93++ - if yyhl93 { - yyb93 = yyj93 > l - } else { - yyb93 = r.CheckBreak() - } - if yyb93 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj93-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ImageReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym120 := z.EncBinary() - _ = yym120 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep121 := !z.EncBinary() - yy2arr121 := z.EncBasicHandle().StructToArray - var yyq121 [3]bool - _, _, _ = yysep121, yyq121, yy2arr121 - const yyr121 bool = false - var yynn121 int - if yyr121 || yy2arr121 { - r.EncodeArrayStart(3) - } else { - yynn121 = 3 - for _, b := range yyq121 { - if b { - yynn121++ - } - } - r.EncodeMapStart(yynn121) - yynn121 = 0 - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Containers == nil { - r.EncodeNil() - } else { - yym123 := z.EncBinary() - _ = yym123 - if false { - } else { - h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Containers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Containers == nil { - r.EncodeNil() - } else { - yym124 := z.EncBinary() - _ = yym124 - if false { - } else { - h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym126 := z.EncBinary() - _ = yym126 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym127 := z.EncBinary() - _ = yym127 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym129 := z.EncBinary() - _ = yym129 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym130 := z.EncBinary() - _ = yym130 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - if yyr121 || yy2arr121 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ImageReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym131 := z.DecBinary() - _ = yym131 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct132 := r.ContainerType() - if yyct132 == codecSelferValueTypeMap1234 { - yyl132 := r.ReadMapStart() - if yyl132 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl132, d) - } - } else if yyct132 == codecSelferValueTypeArray1234 { - yyl132 := r.ReadArrayStart() - if yyl132 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl132, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ImageReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys133Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys133Slc - var yyhl133 bool = l >= 0 - for yyj133 := 0; ; yyj133++ { - if yyhl133 { - if yyj133 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys133Slc = r.DecodeBytes(yys133Slc, true, true) - yys133 := string(yys133Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys133 { - case "Containers": - if r.TryDecodeAsNil() { - x.Containers = nil - } else { - yyv134 := &x.Containers - yym135 := z.DecBinary() - _ = yym135 - if false { - } else { - h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv134), d) - } - } - case "Annotations": - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv136 := &x.Annotations - yym137 := z.DecBinary() - _ = yym137 - if false { - } else { - z.F.DecMapStringStringX(yyv136, false, d) - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys133) - } // end switch yys133 - } // end for yyj133 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ImageReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj139 int - var yyb139 bool - var yyhl139 bool = l >= 0 - yyj139++ - if yyhl139 { - yyb139 = yyj139 > l - } else { - yyb139 = r.CheckBreak() - } - if yyb139 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Containers = nil - } else { - yyv140 := &x.Containers - yym141 := z.DecBinary() - _ = yym141 - if false { - } else { - h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv140), d) - } - } - yyj139++ - if yyhl139 { - yyb139 = yyj139 > l - } else { - yyb139 = r.CheckBreak() - } - if yyb139 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Annotations = nil - } else { - yyv142 := &x.Annotations - yym143 := z.DecBinary() - _ = yym143 - if false { - } else { - z.F.DecMapStringStringX(yyv142, false, d) - } - } - yyj139++ - if yyhl139 { - yyb139 = yyj139 > l - } else { - yyb139 = r.CheckBreak() - } - if yyb139 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - x.Namespace = string(r.DecodeString()) - } - for { - yyj139++ - if yyhl139 { - yyb139 = yyj139 > l - } else { - yyb139 = r.CheckBreak() - } - if yyb139 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj139-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ImageReviewContainerSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym145 := z.EncBinary() - _ = yym145 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep146 := !z.EncBinary() - yy2arr146 := z.EncBasicHandle().StructToArray - var yyq146 [1]bool - _, _, _ = yysep146, yyq146, yy2arr146 - const yyr146 bool = false - var yynn146 int - if yyr146 || yy2arr146 { - r.EncodeArrayStart(1) - } else { - yynn146 = 1 - for _, b := range yyq146 { - if b { - yynn146++ - } - } - r.EncodeMapStart(yynn146) - yynn146 = 0 - } - if yyr146 || yy2arr146 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym148 := z.EncBinary() - _ = yym148 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym149 := z.EncBinary() - _ = yym149 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Image)) - } - } - if yyr146 || yy2arr146 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ImageReviewContainerSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym150 := z.DecBinary() - _ = yym150 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct151 := r.ContainerType() - if yyct151 == codecSelferValueTypeMap1234 { - yyl151 := r.ReadMapStart() - if yyl151 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl151, d) - } - } else if yyct151 == codecSelferValueTypeArray1234 { - yyl151 := r.ReadArrayStart() - if yyl151 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl151, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ImageReviewContainerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys152Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys152Slc - var yyhl152 bool = l >= 0 - for yyj152 := 0; ; yyj152++ { - if yyhl152 { - if yyj152 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys152Slc = r.DecodeBytes(yys152Slc, true, true) - yys152 := string(yys152Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys152 { - case "Image": - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys152) - } // end switch yys152 - } // end for yyj152 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ImageReviewContainerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj154 int - var yyb154 bool - var yyhl154 bool = l >= 0 - yyj154++ - if yyhl154 { - yyb154 = yyj154 > l - } else { - yyb154 = r.CheckBreak() - } - if yyb154 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Image = "" - } else { - x.Image = string(r.DecodeString()) - } - for { - yyj154++ - if yyhl154 { - yyb154 = yyj154 > l - } else { - yyb154 = r.CheckBreak() - } - if yyb154 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj154-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ImageReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym156 := z.EncBinary() - _ = yym156 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep157 := !z.EncBinary() - yy2arr157 := z.EncBasicHandle().StructToArray - var yyq157 [2]bool - _, _, _ = yysep157, yyq157, yy2arr157 - const yyr157 bool = false - var yynn157 int - if yyr157 || yy2arr157 { - r.EncodeArrayStart(2) - } else { - yynn157 = 2 - for _, b := range yyq157 { - if b { - yynn157++ - } - } - r.EncodeMapStart(yynn157) - yynn157 = 0 - } - if yyr157 || yy2arr157 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym159 := z.EncBinary() - _ = yym159 - if false { - } else { - r.EncodeBool(bool(x.Allowed)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Allowed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym160 := z.EncBinary() - _ = yym160 - if false { - } else { - r.EncodeBool(bool(x.Allowed)) - } - } - if yyr157 || yy2arr157 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym162 := z.EncBinary() - _ = yym162 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym163 := z.EncBinary() - _ = yym163 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - if yyr157 || yy2arr157 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ImageReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym164 := z.DecBinary() - _ = yym164 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct165 := r.ContainerType() - if yyct165 == codecSelferValueTypeMap1234 { - yyl165 := r.ReadMapStart() - if yyl165 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl165, d) - } - } else if yyct165 == codecSelferValueTypeArray1234 { - yyl165 := r.ReadArrayStart() - if yyl165 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl165, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ImageReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys166Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys166Slc - var yyhl166 bool = l >= 0 - for yyj166 := 0; ; yyj166++ { - if yyhl166 { - if yyj166 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys166Slc = r.DecodeBytes(yys166Slc, true, true) - yys166 := string(yys166Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys166 { - case "Allowed": - if r.TryDecodeAsNil() { - x.Allowed = false - } else { - x.Allowed = bool(r.DecodeBool()) - } - case "Reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys166) - } // end switch yys166 - } // end for yyj166 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ImageReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj169 int - var yyb169 bool - var yyhl169 bool = l >= 0 - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Allowed = false - } else { - x.Allowed = bool(r.DecodeBool()) - } - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - for { - yyj169++ - if yyhl169 { - yyb169 = yyj169 > l - } else { - yyb169 = r.CheckBreak() - } - if yyb169 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj169-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg1_v1.OwnerReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv172 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy173 := &yyv172 - yym174 := z.EncBinary() - _ = yym174 - if false { - } else if z.HasExtensions() && z.EncExt(yy173) { - } else { - z.EncFallback(yy173) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg1_v1.OwnerReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv175 := *v - yyh175, yyl175 := z.DecSliceHelperStart() - var yyc175 bool - if yyl175 == 0 { - if yyv175 == nil { - yyv175 = []pkg1_v1.OwnerReference{} - yyc175 = true - } else if len(yyv175) != 0 { - yyv175 = yyv175[:0] - yyc175 = true - } - } else if yyl175 > 0 { - var yyrr175, yyrl175 int - var yyrt175 bool - if yyl175 > cap(yyv175) { - - yyrg175 := len(yyv175) > 0 - yyv2175 := yyv175 - yyrl175, yyrt175 = z.DecInferLen(yyl175, z.DecBasicHandle().MaxInitLen, 72) - if yyrt175 { - if yyrl175 <= cap(yyv175) { - yyv175 = yyv175[:yyrl175] - } else { - yyv175 = make([]pkg1_v1.OwnerReference, yyrl175) - } - } else { - yyv175 = make([]pkg1_v1.OwnerReference, yyrl175) - } - yyc175 = true - yyrr175 = len(yyv175) - if yyrg175 { - copy(yyv175, yyv2175) - } - } else if yyl175 != len(yyv175) { - yyv175 = yyv175[:yyl175] - yyc175 = true - } - yyj175 := 0 - for ; yyj175 < yyrr175; yyj175++ { - yyh175.ElemContainerState(yyj175) - if r.TryDecodeAsNil() { - yyv175[yyj175] = pkg1_v1.OwnerReference{} - } else { - yyv176 := &yyv175[yyj175] - yym177 := z.DecBinary() - _ = yym177 - if false { - } else if z.HasExtensions() && z.DecExt(yyv176) { - } else { - z.DecFallback(yyv176, false) - } - } - - } - if yyrt175 { - for ; yyj175 < yyl175; yyj175++ { - yyv175 = append(yyv175, pkg1_v1.OwnerReference{}) - yyh175.ElemContainerState(yyj175) - if r.TryDecodeAsNil() { - yyv175[yyj175] = pkg1_v1.OwnerReference{} - } else { - yyv178 := &yyv175[yyj175] - yym179 := z.DecBinary() - _ = yym179 - if false { - } else if z.HasExtensions() && z.DecExt(yyv178) { - } else { - z.DecFallback(yyv178, false) - } - } - - } - } - - } else { - yyj175 := 0 - for ; !r.CheckBreak(); yyj175++ { - - if yyj175 >= len(yyv175) { - yyv175 = append(yyv175, pkg1_v1.OwnerReference{}) // var yyz175 pkg1_v1.OwnerReference - yyc175 = true - } - yyh175.ElemContainerState(yyj175) - if yyj175 < len(yyv175) { - if r.TryDecodeAsNil() { - yyv175[yyj175] = pkg1_v1.OwnerReference{} - } else { - yyv180 := &yyv175[yyj175] - yym181 := z.DecBinary() - _ = yym181 - if false { - } else if z.HasExtensions() && z.DecExt(yyv180) { - } else { - z.DecFallback(yyv180, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj175 < len(yyv175) { - yyv175 = yyv175[:yyj175] - yyc175 = true - } else if yyj175 == 0 && yyv175 == nil { - yyv175 = []pkg1_v1.OwnerReference{} - yyc175 = true - } - } - yyh175.End() - if yyc175 { - *v = yyv175 - } -} - -func (x codecSelfer1234) encSliceImageReviewContainerSpec(v []ImageReviewContainerSpec, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv182 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy183 := &yyv182 - yy183.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceImageReviewContainerSpec(v *[]ImageReviewContainerSpec, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv184 := *v - yyh184, yyl184 := z.DecSliceHelperStart() - var yyc184 bool - if yyl184 == 0 { - if yyv184 == nil { - yyv184 = []ImageReviewContainerSpec{} - yyc184 = true - } else if len(yyv184) != 0 { - yyv184 = yyv184[:0] - yyc184 = true - } - } else if yyl184 > 0 { - var yyrr184, yyrl184 int - var yyrt184 bool - if yyl184 > cap(yyv184) { - - yyrg184 := len(yyv184) > 0 - yyv2184 := yyv184 - yyrl184, yyrt184 = z.DecInferLen(yyl184, z.DecBasicHandle().MaxInitLen, 16) - if yyrt184 { - if yyrl184 <= cap(yyv184) { - yyv184 = yyv184[:yyrl184] - } else { - yyv184 = make([]ImageReviewContainerSpec, yyrl184) - } - } else { - yyv184 = make([]ImageReviewContainerSpec, yyrl184) - } - yyc184 = true - yyrr184 = len(yyv184) - if yyrg184 { - copy(yyv184, yyv2184) - } - } else if yyl184 != len(yyv184) { - yyv184 = yyv184[:yyl184] - yyc184 = true - } - yyj184 := 0 - for ; yyj184 < yyrr184; yyj184++ { - yyh184.ElemContainerState(yyj184) - if r.TryDecodeAsNil() { - yyv184[yyj184] = ImageReviewContainerSpec{} - } else { - yyv185 := &yyv184[yyj184] - yyv185.CodecDecodeSelf(d) - } - - } - if yyrt184 { - for ; yyj184 < yyl184; yyj184++ { - yyv184 = append(yyv184, ImageReviewContainerSpec{}) - yyh184.ElemContainerState(yyj184) - if r.TryDecodeAsNil() { - yyv184[yyj184] = ImageReviewContainerSpec{} - } else { - yyv186 := &yyv184[yyj184] - yyv186.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj184 := 0 - for ; !r.CheckBreak(); yyj184++ { - - if yyj184 >= len(yyv184) { - yyv184 = append(yyv184, ImageReviewContainerSpec{}) // var yyz184 ImageReviewContainerSpec - yyc184 = true - } - yyh184.ElemContainerState(yyj184) - if yyj184 < len(yyv184) { - if r.TryDecodeAsNil() { - yyv184[yyj184] = ImageReviewContainerSpec{} - } else { - yyv187 := &yyv184[yyj184] - yyv187.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj184 < len(yyv184) { - yyv184 = yyv184[:yyj184] - yyc184 = true - } else if yyj184 == 0 && yyv184 == nil { - yyv184 = []ImageReviewContainerSpec{} - yyc184 = true - } - } - yyh184.End() - if yyc184 { - *v = yyv184 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/env.go b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/env.go index a44add1d9dc..fa6393ab0b8 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/env.go +++ b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/env.go @@ -25,21 +25,18 @@ import ( var GlobalEnvParams = SetEnvParams() -// TODO(phase2) use componentconfig +// TODO(phase1+) Move these paramaters to the API group // we need some params for testing etc, let's keep these hidden for now func SetEnvParams() *EnvParams { envParams := map[string]string{ - // TODO(phase1+): Mode prefix and host_pki_path to another place as constants, and use them everywhere - // Right now they're used here and there, but not consequently - "kubernetes_dir": "/etc/kubernetes", - "host_pki_path": "/etc/kubernetes/pki", - "host_etcd_path": "/var/lib/etcd", - "hyperkube_image": "", - "repo_prefix": "gcr.io/google_containers", - "discovery_image": fmt.Sprintf("gcr.io/google_containers/kube-discovery-%s:%s", runtime.GOARCH, "1.0"), - "etcd_image": "", - "component_loglevel": "--v=2", + "kubernetes_dir": "/etc/kubernetes", + "host_pki_path": "/etc/kubernetes/pki", + "host_etcd_path": "/var/lib/etcd", + "hyperkube_image": "", + "repo_prefix": "gcr.io/google_containers", + "discovery_image": fmt.Sprintf("gcr.io/google_containers/kube-discovery-%s:%s", runtime.GOARCH, "1.0"), + "etcd_image": "", } for k := range envParams { @@ -49,13 +46,12 @@ func SetEnvParams() *EnvParams { } return &EnvParams{ - KubernetesDir: envParams["kubernetes_dir"], - HostPKIPath: envParams["host_pki_path"], - HostEtcdPath: envParams["host_etcd_path"], - HyperkubeImage: envParams["hyperkube_image"], - RepositoryPrefix: envParams["repo_prefix"], - DiscoveryImage: envParams["discovery_image"], - EtcdImage: envParams["etcd_image"], - ComponentLoglevel: envParams["component_loglevel"], + KubernetesDir: envParams["kubernetes_dir"], + HostPKIPath: envParams["host_pki_path"], + HostEtcdPath: envParams["host_etcd_path"], + HyperkubeImage: envParams["hyperkube_image"], + RepositoryPrefix: envParams["repo_prefix"], + DiscoveryImage: envParams["discovery_image"], + EtcdImage: envParams["etcd_image"], } } diff --git a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/types.go b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/types.go index ecc9e59f671..21adc505163 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/types.go @@ -21,20 +21,18 @@ import ( ) type EnvParams struct { - KubernetesDir string - HostPKIPath string - HostEtcdPath string - HyperkubeImage string - RepositoryPrefix string - DiscoveryImage string - EtcdImage string - ComponentLoglevel string + KubernetesDir string + HostPKIPath string + HostEtcdPath string + HyperkubeImage string + RepositoryPrefix string + DiscoveryImage string + EtcdImage string } type MasterConfiguration struct { metav1.TypeMeta - Secrets Secrets API API Discovery Discovery Etcd Etcd @@ -46,11 +44,27 @@ type MasterConfiguration struct { type API struct { AdvertiseAddresses []string ExternalDNSNames []string - BindPort int32 + Port int32 } type Discovery struct { - BindPort int32 + HTTPS *HTTPSDiscovery + File *FileDiscovery + Token *TokenDiscovery +} + +type HTTPSDiscovery struct { + URL string +} + +type FileDiscovery struct { + Path string +} + +type TokenDiscovery struct { + ID string + Secret string + Addresses []string } type Networking struct { @@ -66,26 +80,16 @@ type Etcd struct { KeyFile string } -type Secrets struct { - GivenToken string // dot-separated `.` set by the user - TokenID string // optional on master side, will be generated if not specified - Token []byte // optional on master side, will be generated if not specified - BearerToken string // set based on Token -} - type NodeConfiguration struct { metav1.TypeMeta - MasterAddresses []string - Secrets Secrets - APIPort int32 - DiscoveryPort int32 + Discovery Discovery } // ClusterInfo TODO add description type ClusterInfo struct { metav1.TypeMeta // TODO(phase1+) this may become simply `api.Config` - CertificateAuthorities []string `json:"certificateAuthorities"` - Endpoints []string `json:"endpoints"` + CertificateAuthorities []string + Endpoints []string } diff --git a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/defaults.go b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/defaults.go index dce5bf7deed..e5ad805cfbe 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/defaults.go +++ b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/defaults.go @@ -24,7 +24,7 @@ const ( DefaultServiceDNSDomain = "cluster.local" DefaultServicesSubnet = "10.96.0.0/12" DefaultKubernetesVersion = "stable" - DefaultKubernetesFallbackVersion = "v1.4.6" + DefaultKubernetesFallbackVersion = "v1.5.0" DefaultAPIBindPort = 6443 DefaultDiscoveryBindPort = 9898 ) @@ -33,7 +33,6 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error { RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_MasterConfiguration, - SetDefaults_NodeConfiguration, ) } @@ -42,12 +41,8 @@ func SetDefaults_MasterConfiguration(obj *MasterConfiguration) { obj.KubernetesVersion = DefaultKubernetesVersion } - if obj.API.BindPort == 0 { - obj.API.BindPort = DefaultAPIBindPort - } - - if obj.Discovery.BindPort == 0 { - obj.Discovery.BindPort = DefaultDiscoveryBindPort + if obj.API.Port == 0 { + obj.API.Port = DefaultAPIBindPort } if obj.Networking.ServiceSubnet == "" { @@ -58,13 +53,3 @@ func SetDefaults_MasterConfiguration(obj *MasterConfiguration) { obj.Networking.DNSDomain = DefaultServiceDNSDomain } } - -func SetDefaults_NodeConfiguration(obj *NodeConfiguration) { - if obj.APIPort == 0 { - obj.APIPort = DefaultAPIBindPort - } - - if obj.DiscoveryPort == 0 { - obj.DiscoveryPort = DefaultDiscoveryBindPort - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/types.go b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/types.go index 0a5caa297a5..f8313ea1cc3 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/types.go @@ -23,10 +23,9 @@ import ( type MasterConfiguration struct { metav1.TypeMeta `json:",inline"` - Secrets Secrets `json:"secrets"` API API `json:"api"` - Etcd Etcd `json:"etcd"` Discovery Discovery `json:"discovery"` + Etcd Etcd `json:"etcd"` Networking Networking `json:"networking"` KubernetesVersion string `json:"kubernetesVersion"` CloudProvider string `json:"cloudProvider"` @@ -35,11 +34,27 @@ type MasterConfiguration struct { type API struct { AdvertiseAddresses []string `json:"advertiseAddresses"` ExternalDNSNames []string `json:"externalDNSNames"` - BindPort int32 `json:"bindPort"` + Port int32 `json:"port"` } type Discovery struct { - BindPort int32 `json:"bindPort"` + HTTPS *HTTPSDiscovery `json:"https"` + File *FileDiscovery `json:"file"` + Token *TokenDiscovery `json:"token"` +} + +type HTTPSDiscovery struct { + URL string `json:"url"` +} + +type FileDiscovery struct { + Path string `json:"path"` +} + +type TokenDiscovery struct { + ID string `json:"id"` + Secret string `json:"secret"` + Addresses []string `json:"addresses"` } type Networking struct { @@ -65,10 +80,7 @@ type Secrets struct { type NodeConfiguration struct { metav1.TypeMeta `json:",inline"` - MasterAddresses []string `json:"masterAddresses"` - Secrets Secrets `json:"secrets"` - APIPort int32 `json:"apiPort"` - DiscoveryPort int32 `json:"discoveryPort"` + Discovery Discovery `json:"discovery"` } // ClusterInfo TODO add description diff --git a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/zz_generated.defaults.go b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/zz_generated.defaults.go index 0f6162b0da4..4bbc2077ae4 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/zz_generated.defaults.go +++ b/staging/src/k8s.io/client-go/pkg/apis/kubeadm/v1alpha1/zz_generated.defaults.go @@ -29,14 +29,9 @@ import ( // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { scheme.AddTypeDefaultingFunc(&MasterConfiguration{}, func(obj interface{}) { SetObjectDefaults_MasterConfiguration(obj.(*MasterConfiguration)) }) - scheme.AddTypeDefaultingFunc(&NodeConfiguration{}, func(obj interface{}) { SetObjectDefaults_NodeConfiguration(obj.(*NodeConfiguration)) }) return nil } func SetObjectDefaults_MasterConfiguration(in *MasterConfiguration) { SetDefaults_MasterConfiguration(in) } - -func SetObjectDefaults_NodeConfiguration(in *NodeConfiguration) { - SetDefaults_NodeConfiguration(in) -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/meta/v1/well_known_labels.go b/staging/src/k8s.io/client-go/pkg/apis/meta/v1/well_known_labels.go index fb0ccad7075..da003cd6568 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/meta/v1/well_known_labels.go +++ b/staging/src/k8s.io/client-go/pkg/apis/meta/v1/well_known_labels.go @@ -27,6 +27,12 @@ const ( LabelOS = "beta.kubernetes.io/os" LabelArch = "beta.kubernetes.io/arch" + + // Historically fluentd was a manifest pod the was migrated to DaemonSet. + // To avoid situation during cluster upgrade when there are two instances + // of fluentd running on a node, kubelet need to mark node on which + // fluentd in not running as a manifest pod with LabelFluentdDsReady. + LabelFluentdDsReady = "alpha.kubernetes.io/fluentd-ds-ready" ) // Role labels are applied to Nodes to mark their purpose. In particular, we diff --git a/staging/src/k8s.io/client-go/pkg/apis/policy/doc.go b/staging/src/k8s.io/client-go/pkg/apis/policy/doc.go index 6536d5c964f..876858cd9a7 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/policy/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/policy/doc.go @@ -15,6 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true package policy diff --git a/staging/src/k8s.io/client-go/pkg/apis/policy/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/policy/types.generated.go deleted file mode 100644 index 2d92acb0c7b..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/policy/types.generated.go +++ /dev/null @@ -1,1986 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package policy - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg3_api "k8s.io/client-go/pkg/api" - pkg2_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg4_types "k8s.io/client-go/pkg/types" - pkg1_intstr "k8s.io/client-go/pkg/util/intstr" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg3_api.ObjectMeta - var v1 pkg2_v1.LabelSelector - var v2 pkg4_types.UID - var v3 pkg1_intstr.IntOrString - var v4 time.Time - _, _, _, _, _ = v0, v1, v2, v3, v4 - } -} - -func (x *PodDisruptionBudgetSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = true - yyq2[1] = x.Selector != nil - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 0 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yy4 := &x.MinAvailable - yym5 := z.EncBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.EncExt(yy4) { - } else if !yym5 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4) - } else { - z.EncFallback(yy4) - } - } else { - r.EncodeNil() - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minAvailable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.MinAvailable - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(yy6) { - } else if !yym7 && z.IsJSONHandle() { - z.EncJSONMarshal(yy6) - } else { - z.EncFallback(yy6) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Selector == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodDisruptionBudgetSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct12 := r.ContainerType() - if yyct12 == codecSelferValueTypeMap1234 { - yyl12 := r.ReadMapStart() - if yyl12 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl12, d) - } - } else if yyct12 == codecSelferValueTypeArray1234 { - yyl12 := r.ReadArrayStart() - if yyl12 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl12, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys13Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys13Slc - var yyhl13 bool = l >= 0 - for yyj13 := 0; ; yyj13++ { - if yyhl13 { - if yyj13 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys13Slc = r.DecodeBytes(yys13Slc, true, true) - yys13 := string(yys13Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys13 { - case "minAvailable": - if r.TryDecodeAsNil() { - x.MinAvailable = pkg1_intstr.IntOrString{} - } else { - yyv14 := &x.MinAvailable - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else if !yym15 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv14) - } else { - z.DecFallback(yyv14, false) - } - } - case "selector": - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg2_v1.LabelSelector) - } - yym17 := z.DecBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys13) - } // end switch yys13 - } // end for yyj13 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodDisruptionBudgetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinAvailable = pkg1_intstr.IntOrString{} - } else { - yyv19 := &x.MinAvailable - yym20 := z.DecBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.DecExt(yyv19) { - } else if !yym20 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv19) - } else { - z.DecFallback(yyv19, false) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Selector != nil { - x.Selector = nil - } - } else { - if x.Selector == nil { - x.Selector = new(pkg2_v1.LabelSelector) - } - yym22 := z.DecBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.DecExt(x.Selector) { - } else { - z.DecFallback(x.Selector, false) - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep24 := !z.EncBinary() - yy2arr24 := z.EncBasicHandle().StructToArray - var yyq24 [6]bool - _, _, _ = yysep24, yyq24, yy2arr24 - const yyr24 bool = false - yyq24[0] = x.ObservedGeneration != 0 - var yynn24 int - if yyr24 || yy2arr24 { - r.EncodeArrayStart(6) - } else { - yynn24 = 5 - for _, b := range yyq24 { - if b { - yynn24++ - } - } - r.EncodeMapStart(yynn24) - yynn24 = 0 - } - if yyr24 || yy2arr24 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq24[0] { - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } else { - r.EncodeInt(0) - } - } else { - 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) - if x.DisruptedPods == nil { - r.EncodeNil() - } else { - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - h.encMapstringv1_Time((map[string]pkg2_v1.Time)(x.DisruptedPods), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("disruptedPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DisruptedPods == nil { - r.EncodeNil() - } else { - yym30 := z.EncBinary() - _ = yym30 - if false { - } else { - h.encMapstringv1_Time((map[string]pkg2_v1.Time)(x.DisruptedPods), e) - } - } - } - if yyr24 || yy2arr24 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeInt(int64(x.PodDisruptionsAllowed)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym33 := z.EncBinary() - _ = yym33 - if false { - } else { - r.EncodeInt(int64(x.PodDisruptionsAllowed)) - } - } - if yyr24 || yy2arr24 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - 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)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeInt(int64(x.ExpectedPods)) - } - } - if yyr24 || yy2arr24 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym43 := z.DecBinary() - _ = yym43 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct44 := r.ContainerType() - if yyct44 == codecSelferValueTypeMap1234 { - yyl44 := r.ReadMapStart() - if yyl44 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl44, d) - } - } else if yyct44 == codecSelferValueTypeArray1234 { - yyl44 := r.ReadArrayStart() - if yyl44 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl44, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys45Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys45Slc - var yyhl45 bool = l >= 0 - for yyj45 := 0; ; yyj45++ { - if yyhl45 { - if yyj45 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys45Slc = r.DecodeBytes(yys45Slc, true, true) - yys45 := string(yys45Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys45 { - case "observedGeneration": - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - 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.decMapstringv1_Time((*map[string]pkg2_v1.Time)(yyv47), d) - } - } - case "disruptionsAllowed": - if r.TryDecodeAsNil() { - x.PodDisruptionsAllowed = 0 - } else { - x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) - } - case "currentHealthy": - if r.TryDecodeAsNil() { - x.CurrentHealthy = 0 - } else { - x.CurrentHealthy = int32(r.DecodeInt(32)) - } - case "desiredHealthy": - if r.TryDecodeAsNil() { - x.DesiredHealthy = 0 - } else { - x.DesiredHealthy = int32(r.DecodeInt(32)) - } - case "expectedPods": - if r.TryDecodeAsNil() { - x.ExpectedPods = 0 - } else { - x.ExpectedPods = int32(r.DecodeInt(32)) - } - default: - z.DecStructFieldNotFound(-1, yys45) - } // end switch yys45 - } // end for yyj45 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj53 int - var yyb53 bool - var yyhl53 bool = l >= 0 - 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.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - 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.DisruptedPods = nil - } else { - yyv55 := &x.DisruptedPods - yym56 := z.DecBinary() - _ = yym56 - if false { - } else { - h.decMapstringv1_Time((*map[string]pkg2_v1.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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CurrentHealthy = 0 - } else { - x.CurrentHealthy = int32(r.DecodeInt(32)) - } - 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.DesiredHealthy = 0 - } else { - x.DesiredHealthy = int32(r.DecodeInt(32)) - } - 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.ExpectedPods = 0 - } else { - x.ExpectedPods = int32(r.DecodeInt(32)) - } - for { - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj53-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym61 := z.EncBinary() - _ = yym61 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep62 := !z.EncBinary() - yy2arr62 := z.EncBasicHandle().StructToArray - var yyq62 [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 { - yynn62 = 0 - for _, b := range yyq62 { - if b { - yynn62++ - } - } - r.EncodeMapStart(yynn62) - yynn62 = 0 - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[0] { - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq62[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[1] { - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq62[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[2] { - yy70 := &x.ObjectMeta - yy70.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq62[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy71 := &x.ObjectMeta - yy71.CodecEncodeSelf(e) - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[3] { - yy73 := &x.Spec - yy73.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq62[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy74 := &x.Spec - yy74.CodecEncodeSelf(e) - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq62[4] { - yy76 := &x.Status - yy76.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq62[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy77 := &x.Status - yy77.CodecEncodeSelf(e) - } - } - if yyr62 || yy2arr62 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym78 := z.DecBinary() - _ = yym78 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct79 := r.ContainerType() - if yyct79 == codecSelferValueTypeMap1234 { - yyl79 := r.ReadMapStart() - if yyl79 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl79, d) - } - } else if yyct79 == codecSelferValueTypeArray1234 { - yyl79 := r.ReadArrayStart() - if yyl79 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl79, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys80Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys80Slc - var yyhl80 bool = l >= 0 - for yyj80 := 0; ; yyj80++ { - if yyhl80 { - if yyj80 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys80Slc = r.DecodeBytes(yys80Slc, true, true) - yys80 := string(yys80Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys80 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} - } else { - yyv83 := &x.ObjectMeta - yyv83.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} - } else { - yyv84 := &x.Spec - yyv84.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} - } else { - yyv85 := &x.Status - yyv85.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys80) - } // end switch yys80 - } // end for yyj80 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj86 int - var yyb86 bool - var yyhl86 bool = l >= 0 - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} - } else { - yyv89 := &x.ObjectMeta - yyv89.CodecDecodeSelf(d) - } - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PodDisruptionBudgetSpec{} - } else { - yyv90 := &x.Spec - yyv90.CodecDecodeSelf(d) - } - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PodDisruptionBudgetStatus{} - } else { - yyv91 := &x.Status - yyv91.CodecDecodeSelf(d) - } - for { - yyj86++ - if yyhl86 { - yyb86 = yyj86 > l - } else { - yyb86 = r.CheckBreak() - } - if yyb86 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj86-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym92 := z.EncBinary() - _ = yym92 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn93 = 1 - for _, b := range yyq93 { - if b { - yynn93++ - } - } - r.EncodeMapStart(yynn93) - yynn93 = 0 - } - if yyr93 || yy2arr93 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq93[0] { - yym95 := z.EncBinary() - _ = yym95 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq93[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym96 := z.EncBinary() - _ = yym96 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr93 || yy2arr93 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq93[1] { - yym98 := z.EncBinary() - _ = yym98 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq93[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym99 := z.EncBinary() - _ = yym99 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr93 || yy2arr93 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq93[2] { - yy101 := &x.ListMeta - yym102 := z.EncBinary() - _ = yym102 - if false { - } else if z.HasExtensions() && z.EncExt(yy101) { - } else { - z.EncFallback(yy101) - } - } else { - r.EncodeNil() - } - } else { - if yyq93[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy103 := &x.ListMeta - yym104 := z.EncBinary() - _ = yym104 - if false { - } else if z.HasExtensions() && z.EncExt(yy103) { - } else { - z.EncFallback(yy103) - } - } - } - if yyr93 || yy2arr93 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym106 := z.EncBinary() - _ = yym106 - if false { - } else { - h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(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 { - yym107 := z.EncBinary() - _ = yym107 - if false { - } else { - h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) - } - } - } - if yyr93 || yy2arr93 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym108 := z.DecBinary() - _ = yym108 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct109 := r.ContainerType() - if yyct109 == codecSelferValueTypeMap1234 { - yyl109 := r.ReadMapStart() - if yyl109 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl109, d) - } - } else if yyct109 == codecSelferValueTypeArray1234 { - yyl109 := r.ReadArrayStart() - if yyl109 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl109, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys110Slc = r.DecodeBytes(yys110Slc, true, true) - yys110 := string(yys110Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys110 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv113 := &x.ListMeta - yym114 := z.DecBinary() - _ = yym114 - if false { - } else if z.HasExtensions() && z.DecExt(yyv113) { - } else { - z.DecFallback(yyv113, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv115 := &x.Items - yym116 := z.DecBinary() - _ = yym116 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv115), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys110) - } // end switch yys110 - } // end for yyj110 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj117 int - var yyb117 bool - var yyhl117 bool = l >= 0 - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv120 := &x.ListMeta - yym121 := z.DecBinary() - _ = yym121 - if false { - } else if z.HasExtensions() && z.DecExt(yyv120) { - } else { - z.DecFallback(yyv120, false) - } - } - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv122 := &x.Items - yym123 := z.DecBinary() - _ = yym123 - if false { - } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv122), d) - } - } - for { - yyj117++ - if yyhl117 { - yyb117 = yyj117 > l - } else { - yyb117 = r.CheckBreak() - } - if yyb117 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj117-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym124 := z.EncBinary() - _ = yym124 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn125 = 0 - for _, b := range yyq125 { - if b { - yynn125++ - } - } - r.EncodeMapStart(yynn125) - yynn125 = 0 - } - if yyr125 || yy2arr125 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq125[0] { - yym127 := z.EncBinary() - _ = yym127 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq125[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym128 := z.EncBinary() - _ = yym128 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr125 || yy2arr125 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq125[1] { - yym130 := z.EncBinary() - _ = yym130 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq125[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym131 := z.EncBinary() - _ = yym131 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr125 || yy2arr125 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq125[2] { - yy133 := &x.ObjectMeta - yy133.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq125[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy134 := &x.ObjectMeta - yy134.CodecEncodeSelf(e) - } - } - if yyr125 || yy2arr125 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq125[3] { - if x.DeleteOptions == nil { - r.EncodeNil() - } else { - x.DeleteOptions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq125[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DeleteOptions == nil { - r.EncodeNil() - } else { - x.DeleteOptions.CodecEncodeSelf(e) - } - } - } - if yyr125 || yy2arr125 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym136 := z.DecBinary() - _ = yym136 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct137 := r.ContainerType() - if yyct137 == codecSelferValueTypeMap1234 { - yyl137 := r.ReadMapStart() - if yyl137 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl137, d) - } - } else if yyct137 == codecSelferValueTypeArray1234 { - yyl137 := r.ReadArrayStart() - if yyl137 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl137, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys138Slc = r.DecodeBytes(yys138Slc, true, true) - yys138 := string(yys138Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys138 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} - } else { - yyv141 := &x.ObjectMeta - yyv141.CodecDecodeSelf(d) - } - case "deleteOptions": - if r.TryDecodeAsNil() { - if x.DeleteOptions != nil { - x.DeleteOptions = nil - } - } else { - if x.DeleteOptions == nil { - x.DeleteOptions = new(pkg3_api.DeleteOptions) - } - x.DeleteOptions.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys138) - } // end switch yys138 - } // end for yyj138 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj143 int - var yyb143 bool - var yyhl143 bool = l >= 0 - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l - } else { - yyb143 = r.CheckBreak() - } - if yyb143 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l - } else { - yyb143 = r.CheckBreak() - } - if yyb143 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l - } else { - yyb143 = r.CheckBreak() - } - if yyb143 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg3_api.ObjectMeta{} - } else { - yyv146 := &x.ObjectMeta - yyv146.CodecDecodeSelf(d) - } - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l - } else { - yyb143 = r.CheckBreak() - } - if yyb143 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.DeleteOptions != nil { - x.DeleteOptions = nil - } - } else { - if x.DeleteOptions == nil { - x.DeleteOptions = new(pkg3_api.DeleteOptions) - } - x.DeleteOptions.CodecDecodeSelf(d) - } - for { - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l - } else { - yyb143 = r.CheckBreak() - } - if yyb143 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj143-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encMapstringv1_Time(v map[string]pkg2_v1.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) decMapstringv1_Time(v *map[string]pkg2_v1.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_v1.Time, yyrl152) - *v = yyv152 - } - var yymk152 string - var yymv152 pkg2_v1.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_v1.Time{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv152 = pkg2_v1.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_v1.Time{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv152 = pkg2_v1.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 _, yyv159 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy160 := &yyv159 - yy160.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 yyl161 > 0 { - var yyrr161, yyrl161 int - var yyrt161 bool - if yyl161 > cap(yyv161) { - - 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 { - yyv161 = make([]PodDisruptionBudget, yyrl161) - } - } else { - yyv161 = make([]PodDisruptionBudget, yyrl161) - } - yyc161 = true - yyrr161 = len(yyv161) - if yyrg161 { - copy(yyv161, yyv2161) - } - } else if yyl161 != len(yyv161) { - yyv161 = yyv161[:yyl161] - yyc161 = true - } - yyj161 := 0 - for ; yyj161 < yyrr161; yyj161++ { - yyh161.ElemContainerState(yyj161) - if r.TryDecodeAsNil() { - yyv161[yyj161] = PodDisruptionBudget{} - } else { - yyv162 := &yyv161[yyj161] - yyv162.CodecDecodeSelf(d) - } - - } - if yyrt161 { - for ; yyj161 < yyl161; yyj161++ { - yyv161 = append(yyv161, PodDisruptionBudget{}) - yyh161.ElemContainerState(yyj161) - if r.TryDecodeAsNil() { - yyv161[yyj161] = PodDisruptionBudget{} - } else { - yyv163 := &yyv161[yyj161] - yyv163.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj161 := 0 - for ; !r.CheckBreak(); yyj161++ { - - if yyj161 >= len(yyv161) { - yyv161 = append(yyv161, PodDisruptionBudget{}) // var yyz161 PodDisruptionBudget - yyc161 = true - } - yyh161.ElemContainerState(yyj161) - if yyj161 < len(yyv161) { - if r.TryDecodeAsNil() { - yyv161[yyj161] = PodDisruptionBudget{} - } else { - yyv164 := &yyv161[yyj161] - yyv164.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj161 < len(yyv161) { - yyv161 = yyv161[:yyj161] - yyc161 = true - } else if yyj161 == 0 && yyv161 == nil { - yyv161 = []PodDisruptionBudget{} - yyc161 = true - } - } - yyh161.End() - if yyc161 { - *v = yyv161 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/policy/types.go b/staging/src/k8s.io/client-go/pkg/apis/policy/types.go index 674718f1efa..93e00a882bd 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/policy/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/policy/types.go @@ -29,12 +29,12 @@ type PodDisruptionBudgetSpec struct { // absence of the evicted pod. So for example you can prevent all voluntary // evictions by specifying "100%". // +optional - MinAvailable intstr.IntOrString `json:"minAvailable,omitempty"` + MinAvailable intstr.IntOrString // Label query over pods whose evictions are managed by the disruption // budget. // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` + Selector *metav1.LabelSelector } // PodDisruptionBudgetStatus represents information about the status of a @@ -43,7 +43,7 @@ type PodDisruptionBudgetStatus struct { // 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"` + ObservedGeneration int64 // DisruptedPods contains information about pods whose eviction was // processed by the API server eviction subresource handler but has not @@ -56,43 +56,43 @@ type PodDisruptionBudgetStatus struct { // 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]metav1.Time `json:"disruptedPods" protobuf:"bytes,5,rep,name=disruptedPods"` + DisruptedPods map[string]metav1.Time // Number of pod disruptions that are currently allowed. - PodDisruptionsAllowed int32 `json:"disruptionsAllowed"` + PodDisruptionsAllowed int32 // current number of healthy pods - CurrentHealthy int32 `json:"currentHealthy"` + CurrentHealthy int32 // minimum desired number of healthy pods - DesiredHealthy int32 `json:"desiredHealthy"` + DesiredHealthy int32 // total number of pods counted by this disruption budget - ExpectedPods int32 `json:"expectedPods"` + ExpectedPods int32 } // +genclient=true // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods type PodDisruptionBudget struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Specification of the desired behavior of the PodDisruptionBudget. // +optional - Spec PodDisruptionBudgetSpec `json:"spec,omitempty"` + Spec PodDisruptionBudgetSpec // Most recently observed status of the PodDisruptionBudget. // +optional - Status PodDisruptionBudgetStatus `json:"status,omitempty"` + Status PodDisruptionBudgetStatus } // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. type PodDisruptionBudgetList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - metav1.ListMeta `json:"metadata,omitempty"` - Items []PodDisruptionBudget `json:"items"` + metav1.ListMeta + Items []PodDisruptionBudget } // +genclient=true @@ -102,13 +102,13 @@ type PodDisruptionBudgetList struct { // This is a subresource of Pod. A request to cause such an eviction is // created by POSTing to .../pods//eviction. type Eviction struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // ObjectMeta describes the pod that is being evicted. // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // DeleteOptions may be provided // +optional - DeleteOptions *api.DeleteOptions `json:"deleteOptions,omitempty"` + DeleteOptions *api.DeleteOptions } diff --git a/staging/src/k8s.io/client-go/pkg/apis/rbac/doc.go b/staging/src/k8s.io/client-go/pkg/apis/rbac/doc.go index aefe6e09b1b..af9ffe20679 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/rbac/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/rbac/doc.go @@ -15,7 +15,5 @@ limitations under the License. */ // +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true - // +groupName=rbac.authorization.k8s.io package rbac diff --git a/staging/src/k8s.io/client-go/pkg/apis/storage/doc.go b/staging/src/k8s.io/client-go/pkg/apis/storage/doc.go index 0294d1350b0..a7eb30b643b 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/storage/doc.go +++ b/staging/src/k8s.io/client-go/pkg/apis/storage/doc.go @@ -16,5 +16,4 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +groupName=storage.k8s.io -// +g8k:openapi-gen=true package storage diff --git a/staging/src/k8s.io/client-go/pkg/apis/storage/types.generated.go b/staging/src/k8s.io/client-go/pkg/apis/storage/types.generated.go deleted file mode 100644 index 145f3ff17d5..00000000000 --- a/staging/src/k8s.io/client-go/pkg/apis/storage/types.generated.go +++ /dev/null @@ -1,900 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package storage - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/pkg/api" - pkg1_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg2_api.ObjectMeta - var v1 pkg1_v1.TypeMeta - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true - yyq2[4] = len(x.Parameters) != 0 - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[2] { - yy10 := &x.ObjectMeta - yy10.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy11 := &x.ObjectMeta - yy11.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("provisioner")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[4] { - if x.Parameters == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - z.F.EncMapStringStringV(x.Parameters, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("parameters")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Parameters == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - z.F.EncMapStringStringV(x.Parameters, false, e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct19 := r.ContainerType() - if yyct19 == codecSelferValueTypeMap1234 { - yyl19 := r.ReadMapStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl19, d) - } - } else if yyct19 == codecSelferValueTypeArray1234 { - yyl19 := r.ReadArrayStart() - if yyl19 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl19, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys20Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys20Slc - var yyhl20 bool = l >= 0 - for yyj20 := 0; ; yyj20++ { - if yyhl20 { - if yyj20 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys20Slc = r.DecodeBytes(yys20Slc, true, true) - yys20 := string(yys20Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys20 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv23 := &x.ObjectMeta - yyv23.CodecDecodeSelf(d) - } - case "provisioner": - if r.TryDecodeAsNil() { - x.Provisioner = "" - } else { - x.Provisioner = string(r.DecodeString()) - } - case "parameters": - if r.TryDecodeAsNil() { - x.Parameters = nil - } else { - yyv25 := &x.Parameters - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - z.F.DecMapStringStringX(yyv25, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys20) - } // end switch yys20 - } // end for yyj20 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj27 int - var yyb27 bool - var yyhl27 bool = l >= 0 - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} - } else { - yyv30 := &x.ObjectMeta - yyv30.CodecDecodeSelf(d) - } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Provisioner = "" - } else { - x.Provisioner = string(r.DecodeString()) - } - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Parameters = nil - } else { - yyv32 := &x.Parameters - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - z.F.DecMapStringStringX(yyv32, false, d) - } - } - for { - yyj27++ - if yyhl27 { - yyb27 = yyj27 > l - } else { - yyb27 = r.CheckBreak() - } - if yyb27 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj27-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep35 := !z.EncBinary() - yy2arr35 := z.EncBasicHandle().StructToArray - var yyq35 [4]bool - _, _, _ = yysep35, yyq35, yy2arr35 - const yyr35 bool = false - yyq35[0] = x.Kind != "" - yyq35[1] = x.APIVersion != "" - yyq35[2] = true - var yynn35 int - if yyr35 || yy2arr35 { - r.EncodeArrayStart(4) - } else { - yynn35 = 1 - for _, b := range yyq35 { - if b { - yynn35++ - } - } - r.EncodeMapStart(yynn35) - yynn35 = 0 - } - if yyr35 || yy2arr35 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq35[0] { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq35[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr35 || yy2arr35 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq35[1] { - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq35[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr35 || yy2arr35 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq35[2] { - yy43 := &x.ListMeta - yym44 := z.EncBinary() - _ = yym44 - if false { - } else if z.HasExtensions() && z.EncExt(yy43) { - } else { - z.EncFallback(yy43) - } - } else { - r.EncodeNil() - } - } else { - if yyq35[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy45 := &x.ListMeta - yym46 := z.EncBinary() - _ = yym46 - if false { - } else if z.HasExtensions() && z.EncExt(yy45) { - } else { - z.EncFallback(yy45) - } - } - } - if yyr35 || yy2arr35 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym48 := z.EncBinary() - _ = yym48 - if false { - } else { - h.encSliceStorageClass(([]StorageClass)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - h.encSliceStorageClass(([]StorageClass)(x.Items), e) - } - } - } - if yyr35 || yy2arr35 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym50 := z.DecBinary() - _ = yym50 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct51 := r.ContainerType() - if yyct51 == codecSelferValueTypeMap1234 { - yyl51 := r.ReadMapStart() - if yyl51 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl51, d) - } - } else if yyct51 == codecSelferValueTypeArray1234 { - yyl51 := r.ReadArrayStart() - if yyl51 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl51, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys52Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys52Slc - var yyhl52 bool = l >= 0 - for yyj52 := 0; ; yyj52++ { - if yyhl52 { - if yyj52 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys52Slc = r.DecodeBytes(yys52Slc, true, true) - yys52 := string(yys52Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys52 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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_v1.ListMeta{} - } else { - yyv55 := &x.ListMeta - yym56 := z.DecBinary() - _ = yym56 - if false { - } else if z.HasExtensions() && z.DecExt(yyv55) { - } else { - z.DecFallback(yyv55, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv57 := &x.Items - yym58 := z.DecBinary() - _ = yym58 - if false { - } else { - h.decSliceStorageClass((*[]StorageClass)(yyv57), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys52) - } // end switch yys52 - } // end for yyj52 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj59 int - var yyb59 bool - var yyhl59 bool = l >= 0 - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} - } else { - yyv62 := &x.ListMeta - yym63 := z.DecBinary() - _ = yym63 - if false { - } else if z.HasExtensions() && z.DecExt(yyv62) { - } else { - z.DecFallback(yyv62, false) - } - } - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv64 := &x.Items - yym65 := z.DecBinary() - _ = yym65 - if false { - } else { - h.decSliceStorageClass((*[]StorageClass)(yyv64), d) - } - } - for { - yyj59++ - if yyhl59 { - yyb59 = yyj59 > l - } else { - yyb59 = r.CheckBreak() - } - if yyb59 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj59-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv66 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy67 := &yyv66 - yy67.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv68 := *v - yyh68, yyl68 := z.DecSliceHelperStart() - var yyc68 bool - if yyl68 == 0 { - if yyv68 == nil { - yyv68 = []StorageClass{} - yyc68 = true - } else if len(yyv68) != 0 { - yyv68 = yyv68[:0] - yyc68 = true - } - } else if yyl68 > 0 { - var yyrr68, yyrl68 int - var yyrt68 bool - if yyl68 > cap(yyv68) { - - yyrg68 := len(yyv68) > 0 - yyv268 := yyv68 - yyrl68, yyrt68 = z.DecInferLen(yyl68, z.DecBasicHandle().MaxInitLen, 280) - if yyrt68 { - if yyrl68 <= cap(yyv68) { - yyv68 = yyv68[:yyrl68] - } else { - yyv68 = make([]StorageClass, yyrl68) - } - } else { - yyv68 = make([]StorageClass, yyrl68) - } - yyc68 = true - yyrr68 = len(yyv68) - if yyrg68 { - copy(yyv68, yyv268) - } - } else if yyl68 != len(yyv68) { - yyv68 = yyv68[:yyl68] - yyc68 = true - } - yyj68 := 0 - for ; yyj68 < yyrr68; yyj68++ { - yyh68.ElemContainerState(yyj68) - if r.TryDecodeAsNil() { - yyv68[yyj68] = StorageClass{} - } else { - yyv69 := &yyv68[yyj68] - yyv69.CodecDecodeSelf(d) - } - - } - if yyrt68 { - for ; yyj68 < yyl68; yyj68++ { - yyv68 = append(yyv68, StorageClass{}) - yyh68.ElemContainerState(yyj68) - if r.TryDecodeAsNil() { - yyv68[yyj68] = StorageClass{} - } else { - yyv70 := &yyv68[yyj68] - yyv70.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj68 := 0 - for ; !r.CheckBreak(); yyj68++ { - - if yyj68 >= len(yyv68) { - yyv68 = append(yyv68, StorageClass{}) // var yyz68 StorageClass - yyc68 = true - } - yyh68.ElemContainerState(yyj68) - if yyj68 < len(yyv68) { - if r.TryDecodeAsNil() { - yyv68[yyj68] = StorageClass{} - } else { - yyv71 := &yyv68[yyj68] - yyv71.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj68 < len(yyv68) { - yyv68 = yyv68[:yyj68] - yyc68 = true - } else if yyj68 == 0 && yyv68 == nil { - yyv68 = []StorageClass{} - yyc68 = true - } - } - yyh68.End() - if yyc68 { - *v = yyv68 - } -} diff --git a/staging/src/k8s.io/client-go/pkg/apis/storage/types.go b/staging/src/k8s.io/client-go/pkg/apis/storage/types.go index 6bc4022c2c3..0333e7df8d8 100644 --- a/staging/src/k8s.io/client-go/pkg/apis/storage/types.go +++ b/staging/src/k8s.io/client-go/pkg/apis/storage/types.go @@ -31,15 +31,15 @@ import ( // called "profiles" in other storage systems. // The name of a StorageClass object is significant, and is how users can request a particular class. type StorageClass struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // provisioner is the driver expected to handle this StorageClass. // This is an optionally-prefixed name, like a label key. // For example: "kubernetes.io/gce-pd" or "kubernetes.io/aws-ebs". // This value may not be empty. - Provisioner string `json:"provisioner"` + Provisioner string // parameters holds parameters for the provisioner. // These values are opaque to the system and are passed directly @@ -47,17 +47,17 @@ type StorageClass struct { // not empty. The maximum number of parameters is // 512, with a cumulative max size of 256K // +optional - Parameters map[string]string `json:"parameters,omitempty"` + Parameters map[string]string } // StorageClassList is a collection of storage classes. type StorageClassList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // Items is the list of StorageClasses - Items []StorageClass `json:"items"` + Items []StorageClass } diff --git a/staging/src/k8s.io/client-go/pkg/auth/user/user.go b/staging/src/k8s.io/client-go/pkg/auth/user/user.go index 3af1959888e..f82a4776214 100644 --- a/staging/src/k8s.io/client-go/pkg/auth/user/user.go +++ b/staging/src/k8s.io/client-go/pkg/auth/user/user.go @@ -75,4 +75,8 @@ const ( Anonymous = "system:anonymous" APIServerUser = "system:apiserver" + + // core kubernetes process identities + KubeProxy = "system:kube-proxy" + KubeControllerManager = "system:kube-controller-manager" ) diff --git a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.generated.go b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.generated.go deleted file mode 100644 index 8e3ebed763d..00000000000 --- a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.generated.go +++ /dev/null @@ -1,2954 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package federation - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - pkg1_api "k8s.io/client-go/pkg/api" - pkg2_v1 "k8s.io/client-go/pkg/apis/meta/v1" - pkg3_types "k8s.io/client-go/pkg/types" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF81234 = 1 - codecSelferC_RAW1234 = 0 - // ----- value types used ---- - codecSelferValueTypeArray1234 = 10 - codecSelferValueTypeMap1234 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey1234 = 2 - codecSelfer_containerMapValue1234 = 3 - codecSelfer_containerMapEnd1234 = 4 - codecSelfer_containerArrayElem1234 = 6 - codecSelfer_containerArrayEnd1234 = 7 -) - -var ( - codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer1234 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 pkg1_api.LocalObjectReference - var v1 pkg2_v1.Time - var v2 pkg3_types.UID - var v3 time.Time - _, _, _, _ = v0, v1, v2, v3 - } -} - -func (x *ServerAddressByClientCIDR) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClientCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clientCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClientCIDR)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServerAddress)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serverAddress")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServerAddress)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServerAddressByClientCIDR) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct10 := r.ContainerType() - if yyct10 == codecSelferValueTypeMap1234 { - yyl10 := r.ReadMapStart() - if yyl10 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl10, d) - } - } else if yyct10 == codecSelferValueTypeArray1234 { - yyl10 := r.ReadArrayStart() - if yyl10 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl10, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServerAddressByClientCIDR) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys11Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys11Slc - var yyhl11 bool = l >= 0 - for yyj11 := 0; ; yyj11++ { - if yyhl11 { - if yyj11 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys11Slc = r.DecodeBytes(yys11Slc, true, true) - yys11 := string(yys11Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys11 { - case "clientCIDR": - if r.TryDecodeAsNil() { - x.ClientCIDR = "" - } else { - x.ClientCIDR = string(r.DecodeString()) - } - case "serverAddress": - if r.TryDecodeAsNil() { - x.ServerAddress = "" - } else { - x.ServerAddress = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys11) - } // end switch yys11 - } // end for yyj11 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServerAddressByClientCIDR) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClientCIDR = "" - } else { - x.ClientCIDR = string(r.DecodeString()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServerAddress = "" - } else { - x.ServerAddress = string(r.DecodeString()) - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ClusterSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep18 := !z.EncBinary() - yy2arr18 := z.EncBasicHandle().StructToArray - var yyq18 [2]bool - _, _, _ = yysep18, yyq18, yy2arr18 - const yyr18 bool = false - yyq18[1] = x.SecretRef != nil - var yynn18 int - if yyr18 || yy2arr18 { - r.EncodeArrayStart(2) - } else { - yynn18 = 1 - for _, b := range yyq18 { - if b { - yynn18++ - } - } - r.EncodeMapStart(yynn18) - yynn18 = 0 - } - if yyr18 || yy2arr18 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.ServerAddressByClientCIDRs == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serverAddressByClientCIDRs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ServerAddressByClientCIDRs == nil { - r.EncodeNil() - } else { - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - h.encSliceServerAddressByClientCIDR(([]ServerAddressByClientCIDR)(x.ServerAddressByClientCIDRs), e) - } - } - } - if yyr18 || yy2arr18 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq18[1] { - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq18[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SecretRef == nil { - r.EncodeNil() - } else { - x.SecretRef.CodecEncodeSelf(e) - } - } - } - if yyr18 || yy2arr18 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ClusterSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym23 := z.DecBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct24 := r.ContainerType() - if yyct24 == codecSelferValueTypeMap1234 { - yyl24 := r.ReadMapStart() - if yyl24 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl24, d) - } - } else if yyct24 == codecSelferValueTypeArray1234 { - yyl24 := r.ReadArrayStart() - if yyl24 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl24, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ClusterSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys25Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys25Slc - var yyhl25 bool = l >= 0 - for yyj25 := 0; ; yyj25++ { - if yyhl25 { - if yyj25 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys25Slc = r.DecodeBytes(yys25Slc, true, true) - yys25 := string(yys25Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys25 { - case "serverAddressByClientCIDRs": - if r.TryDecodeAsNil() { - x.ServerAddressByClientCIDRs = nil - } else { - yyv26 := &x.ServerAddressByClientCIDRs - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv26), d) - } - } - case "secretRef": - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(pkg1_api.LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys25) - } // end switch yys25 - } // end for yyj25 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ClusterSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj29 int - var yyb29 bool - var yyhl29 bool = l >= 0 - yyj29++ - if yyhl29 { - yyb29 = yyj29 > l - } else { - yyb29 = r.CheckBreak() - } - if yyb29 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServerAddressByClientCIDRs = nil - } else { - yyv30 := &x.ServerAddressByClientCIDRs - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - h.decSliceServerAddressByClientCIDR((*[]ServerAddressByClientCIDR)(yyv30), d) - } - } - yyj29++ - if yyhl29 { - yyb29 = yyj29 > l - } else { - yyb29 = r.CheckBreak() - } - if yyb29 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SecretRef != nil { - x.SecretRef = nil - } - } else { - if x.SecretRef == nil { - x.SecretRef = new(pkg1_api.LocalObjectReference) - } - x.SecretRef.CodecDecodeSelf(d) - } - for { - yyj29++ - if yyhl29 { - yyb29 = yyj29 > l - } else { - yyb29 = r.CheckBreak() - } - if yyb29 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj29-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ClusterConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym33 := z.EncBinary() - _ = yym33 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ClusterConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym34 := z.DecBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *ClusterCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep36 := !z.EncBinary() - yy2arr36 := z.EncBasicHandle().StructToArray - var yyq36 [6]bool - _, _, _ = yysep36, yyq36, yy2arr36 - const yyr36 bool = false - yyq36[2] = true - yyq36[3] = true - yyq36[4] = x.Reason != "" - yyq36[5] = x.Message != "" - var yynn36 int - if yyr36 || yy2arr36 { - r.EncodeArrayStart(6) - } else { - yynn36 = 2 - for _, b := range yyq36 { - if b { - yynn36++ - } - } - r.EncodeMapStart(yynn36) - yynn36 = 0 - } - if yyr36 || yy2arr36 { - 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 yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym39 := z.EncBinary() - _ = yym39 - if false { - } else if z.HasExtensions() && z.EncExt(x.Status) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else if z.HasExtensions() && z.EncExt(x.Status) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Status)) - } - } - if yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq36[2] { - yy42 := &x.LastProbeTime - yym43 := z.EncBinary() - _ = yym43 - if false { - } else if z.HasExtensions() && z.EncExt(yy42) { - } else if yym43 { - z.EncBinaryMarshal(yy42) - } else if !yym43 && z.IsJSONHandle() { - z.EncJSONMarshal(yy42) - } else { - z.EncFallback(yy42) - } - } else { - r.EncodeNil() - } - } else { - if yyq36[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy44 := &x.LastProbeTime - yym45 := z.EncBinary() - _ = yym45 - if false { - } else if z.HasExtensions() && z.EncExt(yy44) { - } else if yym45 { - z.EncBinaryMarshal(yy44) - } else if !yym45 && z.IsJSONHandle() { - z.EncJSONMarshal(yy44) - } else { - z.EncFallback(yy44) - } - } - } - if yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq36[3] { - yy47 := &x.LastTransitionTime - yym48 := z.EncBinary() - _ = yym48 - if false { - } else if z.HasExtensions() && z.EncExt(yy47) { - } else if yym48 { - z.EncBinaryMarshal(yy47) - } else if !yym48 && z.IsJSONHandle() { - z.EncJSONMarshal(yy47) - } else { - z.EncFallback(yy47) - } - } else { - r.EncodeNil() - } - } else { - if yyq36[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy49 := &x.LastTransitionTime - yym50 := z.EncBinary() - _ = yym50 - if false { - } else if z.HasExtensions() && z.EncExt(yy49) { - } else if yym50 { - z.EncBinaryMarshal(yy49) - } else if !yym50 && z.IsJSONHandle() { - z.EncJSONMarshal(yy49) - } else { - z.EncFallback(yy49) - } - } - } - if yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq36[4] { - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq36[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq36[5] { - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq36[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr36 || yy2arr36 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ClusterCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym57 := z.DecBinary() - _ = yym57 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct58 := r.ContainerType() - if yyct58 == codecSelferValueTypeMap1234 { - yyl58 := r.ReadMapStart() - if yyl58 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl58, d) - } - } else if yyct58 == codecSelferValueTypeArray1234 { - yyl58 := r.ReadArrayStart() - if yyl58 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl58, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ClusterCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys59Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys59Slc - var yyhl59 bool = l >= 0 - for yyj59 := 0; ; yyj59++ { - if yyhl59 { - if yyj59 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys59Slc = r.DecodeBytes(yys59Slc, true, true) - yys59 := string(yys59Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys59 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ClusterConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg1_api.ConditionStatus(r.DecodeString()) - } - case "lastProbeTime": - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg2_v1.Time{} - } else { - yyv62 := &x.LastProbeTime - yym63 := z.DecBinary() - _ = yym63 - if false { - } else if z.HasExtensions() && z.DecExt(yyv62) { - } else if yym63 { - z.DecBinaryUnmarshal(yyv62) - } else if !yym63 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv62) - } else { - z.DecFallback(yyv62, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv64 := &x.LastTransitionTime - yym65 := z.DecBinary() - _ = yym65 - if false { - } else if z.HasExtensions() && z.DecExt(yyv64) { - } else if yym65 { - z.DecBinaryUnmarshal(yyv64) - } else if !yym65 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv64) - } else { - z.DecFallback(yyv64, 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, yys59) - } // end switch yys59 - } // end for yyj59 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ClusterCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj68 int - var yyb68 bool - var yyhl68 bool = l >= 0 - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = ClusterConditionType(r.DecodeString()) - } - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = pkg1_api.ConditionStatus(r.DecodeString()) - } - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastProbeTime = pkg2_v1.Time{} - } else { - yyv71 := &x.LastProbeTime - yym72 := z.DecBinary() - _ = yym72 - if false { - } else if z.HasExtensions() && z.DecExt(yyv71) { - } else if yym72 { - z.DecBinaryUnmarshal(yyv71) - } else if !yym72 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv71) - } else { - z.DecFallback(yyv71, false) - } - } - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_v1.Time{} - } else { - yyv73 := &x.LastTransitionTime - yym74 := z.DecBinary() - _ = yym74 - if false { - } else if z.HasExtensions() && z.DecExt(yyv73) { - } else if yym74 { - z.DecBinaryUnmarshal(yyv73) - } else if !yym74 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv73) - } else { - z.DecFallback(yyv73, false) - } - } - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj68++ - if yyhl68 { - yyb68 = yyj68 > l - } else { - yyb68 = r.CheckBreak() - } - if yyb68 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj68-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ClusterStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym77 := z.EncBinary() - _ = yym77 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep78 := !z.EncBinary() - yy2arr78 := z.EncBasicHandle().StructToArray - var yyq78 [3]bool - _, _, _ = yysep78, yyq78, yy2arr78 - const yyr78 bool = false - yyq78[0] = len(x.Conditions) != 0 - yyq78[1] = len(x.Zones) != 0 - yyq78[2] = x.Region != "" - var yynn78 int - if yyr78 || yy2arr78 { - r.EncodeArrayStart(3) - } else { - yynn78 = 0 - for _, b := range yyq78 { - if b { - yynn78++ - } - } - r.EncodeMapStart(yynn78) - yynn78 = 0 - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq78[0] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym80 := z.EncBinary() - _ = yym80 - if false { - } else { - h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq78[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym81 := z.EncBinary() - _ = yym81 - if false { - } else { - h.encSliceClusterCondition(([]ClusterCondition)(x.Conditions), e) - } - } - } - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq78[1] { - if x.Zones == nil { - r.EncodeNil() - } else { - yym83 := z.EncBinary() - _ = yym83 - if false { - } else { - z.F.EncSliceStringV(x.Zones, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq78[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("zones")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Zones == nil { - r.EncodeNil() - } else { - yym84 := z.EncBinary() - _ = yym84 - if false { - } else { - z.F.EncSliceStringV(x.Zones, false, e) - } - } - } - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq78[2] { - yym86 := z.EncBinary() - _ = yym86 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Region)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq78[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("region")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym87 := z.EncBinary() - _ = yym87 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Region)) - } - } - } - if yyr78 || yy2arr78 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ClusterStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym88 := z.DecBinary() - _ = yym88 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct89 := r.ContainerType() - if yyct89 == codecSelferValueTypeMap1234 { - yyl89 := r.ReadMapStart() - if yyl89 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl89, d) - } - } else if yyct89 == codecSelferValueTypeArray1234 { - yyl89 := r.ReadArrayStart() - if yyl89 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl89, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ClusterStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys90Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys90Slc - var yyhl90 bool = l >= 0 - for yyj90 := 0; ; yyj90++ { - if yyhl90 { - if yyj90 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys90Slc = r.DecodeBytes(yys90Slc, true, true) - yys90 := string(yys90Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys90 { - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv91 := &x.Conditions - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv91), d) - } - } - case "zones": - if r.TryDecodeAsNil() { - x.Zones = nil - } else { - yyv93 := &x.Zones - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - z.F.DecSliceStringX(yyv93, false, d) - } - } - case "region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - x.Region = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys90) - } // end switch yys90 - } // end for yyj90 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ClusterStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj96 int - var yyb96 bool - var yyhl96 bool = l >= 0 - yyj96++ - if yyhl96 { - yyb96 = yyj96 > l - } else { - yyb96 = r.CheckBreak() - } - if yyb96 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv97 := &x.Conditions - yym98 := z.DecBinary() - _ = yym98 - if false { - } else { - h.decSliceClusterCondition((*[]ClusterCondition)(yyv97), d) - } - } - yyj96++ - if yyhl96 { - yyb96 = yyj96 > l - } else { - yyb96 = r.CheckBreak() - } - if yyb96 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Zones = nil - } else { - yyv99 := &x.Zones - yym100 := z.DecBinary() - _ = yym100 - if false { - } else { - z.F.DecSliceStringX(yyv99, false, d) - } - } - yyj96++ - if yyhl96 { - yyb96 = yyj96 > l - } else { - yyb96 = r.CheckBreak() - } - if yyb96 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - x.Region = string(r.DecodeString()) - } - for { - yyj96++ - if yyhl96 { - yyb96 = yyj96 > l - } else { - yyb96 = r.CheckBreak() - } - if yyb96 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj96-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Cluster) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym102 := z.EncBinary() - _ = yym102 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep103 := !z.EncBinary() - yy2arr103 := z.EncBasicHandle().StructToArray - var yyq103 [5]bool - _, _, _ = yysep103, yyq103, yy2arr103 - const yyr103 bool = false - yyq103[0] = x.Kind != "" - yyq103[1] = x.APIVersion != "" - yyq103[2] = true - yyq103[3] = true - yyq103[4] = true - var yynn103 int - if yyr103 || yy2arr103 { - r.EncodeArrayStart(5) - } else { - yynn103 = 0 - for _, b := range yyq103 { - if b { - yynn103++ - } - } - r.EncodeMapStart(yynn103) - yynn103 = 0 - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq103[0] { - yym105 := z.EncBinary() - _ = yym105 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq103[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym106 := z.EncBinary() - _ = yym106 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq103[1] { - yym108 := z.EncBinary() - _ = yym108 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq103[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym109 := z.EncBinary() - _ = yym109 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq103[2] { - yy111 := &x.ObjectMeta - yy111.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq103[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy112 := &x.ObjectMeta - yy112.CodecEncodeSelf(e) - } - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq103[3] { - yy114 := &x.Spec - yy114.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq103[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy115 := &x.Spec - yy115.CodecEncodeSelf(e) - } - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq103[4] { - yy117 := &x.Status - yy117.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq103[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy118 := &x.Status - yy118.CodecEncodeSelf(e) - } - } - if yyr103 || yy2arr103 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Cluster) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym119 := z.DecBinary() - _ = yym119 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct120 := r.ContainerType() - if yyct120 == codecSelferValueTypeMap1234 { - yyl120 := r.ReadMapStart() - if yyl120 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl120, d) - } - } else if yyct120 == codecSelferValueTypeArray1234 { - yyl120 := r.ReadArrayStart() - if yyl120 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl120, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Cluster) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys121Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys121Slc - var yyhl121 bool = l >= 0 - for yyj121 := 0; ; yyj121++ { - if yyhl121 { - if yyj121 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys121Slc = r.DecodeBytes(yys121Slc, true, true) - yys121 := string(yys121Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys121 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - 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 = pkg1_api.ObjectMeta{} - } else { - yyv124 := &x.ObjectMeta - yyv124.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} - } else { - yyv125 := &x.Spec - yyv125.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} - } else { - yyv126 := &x.Status - yyv126.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys121) - } // end switch yys121 - } // end for yyj121 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Cluster) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj127 int - var yyb127 bool - var yyhl127 bool = l >= 0 - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_api.ObjectMeta{} - } else { - yyv130 := &x.ObjectMeta - yyv130.CodecDecodeSelf(d) - } - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ClusterSpec{} - } else { - yyv131 := &x.Spec - yyv131.CodecDecodeSelf(d) - } - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ClusterStatus{} - } else { - yyv132 := &x.Status - yyv132.CodecDecodeSelf(d) - } - for { - yyj127++ - if yyhl127 { - yyb127 = yyj127 > l - } else { - yyb127 = r.CheckBreak() - } - if yyb127 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj127-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ClusterList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym133 := z.EncBinary() - _ = yym133 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep134 := !z.EncBinary() - yy2arr134 := z.EncBasicHandle().StructToArray - var yyq134 [4]bool - _, _, _ = yysep134, yyq134, yy2arr134 - const yyr134 bool = false - yyq134[0] = x.Kind != "" - yyq134[1] = x.APIVersion != "" - yyq134[2] = true - var yynn134 int - if yyr134 || yy2arr134 { - r.EncodeArrayStart(4) - } else { - yynn134 = 1 - for _, b := range yyq134 { - if b { - yynn134++ - } - } - r.EncodeMapStart(yynn134) - yynn134 = 0 - } - if yyr134 || yy2arr134 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq134[0] { - yym136 := z.EncBinary() - _ = yym136 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq134[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym137 := z.EncBinary() - _ = yym137 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr134 || yy2arr134 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq134[1] { - yym139 := z.EncBinary() - _ = yym139 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq134[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym140 := z.EncBinary() - _ = yym140 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr134 || yy2arr134 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq134[2] { - yy142 := &x.ListMeta - yym143 := z.EncBinary() - _ = yym143 - if false { - } else if z.HasExtensions() && z.EncExt(yy142) { - } else { - z.EncFallback(yy142) - } - } else { - r.EncodeNil() - } - } else { - if yyq134[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy144 := &x.ListMeta - yym145 := z.EncBinary() - _ = yym145 - if false { - } else if z.HasExtensions() && z.EncExt(yy144) { - } else { - z.EncFallback(yy144) - } - } - } - if yyr134 || yy2arr134 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym147 := z.EncBinary() - _ = yym147 - if false { - } else { - h.encSliceCluster(([]Cluster)(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 { - yym148 := z.EncBinary() - _ = yym148 - if false { - } else { - h.encSliceCluster(([]Cluster)(x.Items), e) - } - } - } - if yyr134 || yy2arr134 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ClusterList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym149 := z.DecBinary() - _ = yym149 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct150 := r.ContainerType() - if yyct150 == codecSelferValueTypeMap1234 { - yyl150 := r.ReadMapStart() - if yyl150 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl150, d) - } - } else if yyct150 == codecSelferValueTypeArray1234 { - yyl150 := r.ReadArrayStart() - if yyl150 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl150, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ClusterList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys151Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys151Slc - var yyhl151 bool = l >= 0 - for yyj151 := 0; ; yyj151++ { - if yyhl151 { - if yyj151 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys151Slc = r.DecodeBytes(yys151Slc, true, true) - yys151 := string(yys151Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys151 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv154 := &x.ListMeta - yym155 := z.DecBinary() - _ = yym155 - if false { - } else if z.HasExtensions() && z.DecExt(yyv154) { - } else { - z.DecFallback(yyv154, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv156 := &x.Items - yym157 := z.DecBinary() - _ = yym157 - if false { - } else { - h.decSliceCluster((*[]Cluster)(yyv156), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys151) - } // end switch yys151 - } // end for yyj151 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ClusterList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj158 int - var yyb158 bool - var yyhl158 bool = l >= 0 - yyj158++ - if yyhl158 { - yyb158 = yyj158 > l - } else { - yyb158 = r.CheckBreak() - } - if yyb158 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj158++ - if yyhl158 { - yyb158 = yyj158 > l - } else { - yyb158 = r.CheckBreak() - } - if yyb158 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj158++ - if yyhl158 { - yyb158 = yyj158 > l - } else { - yyb158 = r.CheckBreak() - } - if yyb158 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_v1.ListMeta{} - } else { - yyv161 := &x.ListMeta - yym162 := z.DecBinary() - _ = yym162 - if false { - } else if z.HasExtensions() && z.DecExt(yyv161) { - } else { - z.DecFallback(yyv161, false) - } - } - yyj158++ - if yyhl158 { - yyb158 = yyj158 > l - } else { - yyb158 = r.CheckBreak() - } - if yyb158 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv163 := &x.Items - yym164 := z.DecBinary() - _ = yym164 - if false { - } else { - h.decSliceCluster((*[]Cluster)(yyv163), d) - } - } - for { - yyj158++ - if yyhl158 { - yyb158 = yyj158 > l - } else { - yyb158 = r.CheckBreak() - } - if yyb158 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj158-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *FederatedReplicaSetPreferences) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym165 := z.EncBinary() - _ = yym165 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep166 := !z.EncBinary() - yy2arr166 := z.EncBasicHandle().StructToArray - var yyq166 [2]bool - _, _, _ = yysep166, yyq166, yy2arr166 - const yyr166 bool = false - yyq166[0] = x.Rebalance != false - yyq166[1] = len(x.Clusters) != 0 - var yynn166 int - if yyr166 || yy2arr166 { - r.EncodeArrayStart(2) - } else { - yynn166 = 0 - for _, b := range yyq166 { - if b { - yynn166++ - } - } - r.EncodeMapStart(yynn166) - yynn166 = 0 - } - if yyr166 || yy2arr166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq166[0] { - yym168 := z.EncBinary() - _ = yym168 - if false { - } else { - r.EncodeBool(bool(x.Rebalance)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq166[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rebalance")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym169 := z.EncBinary() - _ = yym169 - if false { - } else { - r.EncodeBool(bool(x.Rebalance)) - } - } - } - if yyr166 || yy2arr166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq166[1] { - if x.Clusters == nil { - r.EncodeNil() - } else { - yym171 := z.EncBinary() - _ = yym171 - if false { - } else { - h.encMapstringClusterReplicaSetPreferences((map[string]ClusterReplicaSetPreferences)(x.Clusters), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq166[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("clusters")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Clusters == nil { - r.EncodeNil() - } else { - yym172 := z.EncBinary() - _ = yym172 - if false { - } else { - h.encMapstringClusterReplicaSetPreferences((map[string]ClusterReplicaSetPreferences)(x.Clusters), e) - } - } - } - } - if yyr166 || yy2arr166 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *FederatedReplicaSetPreferences) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym173 := z.DecBinary() - _ = yym173 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct174 := r.ContainerType() - if yyct174 == codecSelferValueTypeMap1234 { - yyl174 := r.ReadMapStart() - if yyl174 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl174, d) - } - } else if yyct174 == codecSelferValueTypeArray1234 { - yyl174 := r.ReadArrayStart() - if yyl174 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl174, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *FederatedReplicaSetPreferences) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys175Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys175Slc - var yyhl175 bool = l >= 0 - for yyj175 := 0; ; yyj175++ { - if yyhl175 { - if yyj175 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys175Slc = r.DecodeBytes(yys175Slc, true, true) - yys175 := string(yys175Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys175 { - case "rebalance": - if r.TryDecodeAsNil() { - x.Rebalance = false - } else { - x.Rebalance = bool(r.DecodeBool()) - } - case "clusters": - if r.TryDecodeAsNil() { - x.Clusters = nil - } else { - yyv177 := &x.Clusters - yym178 := z.DecBinary() - _ = yym178 - if false { - } else { - h.decMapstringClusterReplicaSetPreferences((*map[string]ClusterReplicaSetPreferences)(yyv177), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys175) - } // end switch yys175 - } // end for yyj175 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *FederatedReplicaSetPreferences) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj179 int - var yyb179 bool - var yyhl179 bool = l >= 0 - yyj179++ - if yyhl179 { - yyb179 = yyj179 > l - } else { - yyb179 = r.CheckBreak() - } - if yyb179 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rebalance = false - } else { - x.Rebalance = bool(r.DecodeBool()) - } - yyj179++ - if yyhl179 { - yyb179 = yyj179 > l - } else { - yyb179 = r.CheckBreak() - } - if yyb179 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Clusters = nil - } else { - yyv181 := &x.Clusters - yym182 := z.DecBinary() - _ = yym182 - if false { - } else { - h.decMapstringClusterReplicaSetPreferences((*map[string]ClusterReplicaSetPreferences)(yyv181), d) - } - } - for { - yyj179++ - if yyhl179 { - yyb179 = yyj179 > l - } else { - yyb179 = r.CheckBreak() - } - if yyb179 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj179-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ClusterReplicaSetPreferences) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym183 := z.EncBinary() - _ = yym183 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep184 := !z.EncBinary() - yy2arr184 := z.EncBasicHandle().StructToArray - var yyq184 [3]bool - _, _, _ = yysep184, yyq184, yy2arr184 - const yyr184 bool = false - yyq184[0] = x.MinReplicas != 0 - yyq184[1] = x.MaxReplicas != nil - var yynn184 int - if yyr184 || yy2arr184 { - r.EncodeArrayStart(3) - } else { - yynn184 = 1 - for _, b := range yyq184 { - if b { - yynn184++ - } - } - r.EncodeMapStart(yynn184) - yynn184 = 0 - } - if yyr184 || yy2arr184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq184[0] { - yym186 := z.EncBinary() - _ = yym186 - if false { - } else { - r.EncodeInt(int64(x.MinReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq184[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym187 := z.EncBinary() - _ = yym187 - if false { - } else { - r.EncodeInt(int64(x.MinReplicas)) - } - } - } - if yyr184 || yy2arr184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq184[1] { - if x.MaxReplicas == nil { - r.EncodeNil() - } else { - yy189 := *x.MaxReplicas - yym190 := z.EncBinary() - _ = yym190 - if false { - } else { - r.EncodeInt(int64(yy189)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq184[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MaxReplicas == nil { - r.EncodeNil() - } else { - yy191 := *x.MaxReplicas - yym192 := z.EncBinary() - _ = yym192 - if false { - } else { - r.EncodeInt(int64(yy191)) - } - } - } - } - if yyr184 || yy2arr184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym194 := z.EncBinary() - _ = yym194 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("Weight")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym195 := z.EncBinary() - _ = yym195 - if false { - } else { - r.EncodeInt(int64(x.Weight)) - } - } - if yyr184 || yy2arr184 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ClusterReplicaSetPreferences) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym196 := z.DecBinary() - _ = yym196 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct197 := r.ContainerType() - if yyct197 == codecSelferValueTypeMap1234 { - yyl197 := r.ReadMapStart() - if yyl197 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl197, d) - } - } else if yyct197 == codecSelferValueTypeArray1234 { - yyl197 := r.ReadArrayStart() - if yyl197 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl197, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ClusterReplicaSetPreferences) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys198Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys198Slc - var yyhl198 bool = l >= 0 - for yyj198 := 0; ; yyj198++ { - if yyhl198 { - if yyj198 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys198Slc = r.DecodeBytes(yys198Slc, true, true) - yys198 := string(yys198Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys198 { - case "minReplicas": - if r.TryDecodeAsNil() { - x.MinReplicas = 0 - } else { - x.MinReplicas = int64(r.DecodeInt(64)) - } - case "maxReplicas": - if r.TryDecodeAsNil() { - if x.MaxReplicas != nil { - x.MaxReplicas = nil - } - } else { - if x.MaxReplicas == nil { - x.MaxReplicas = new(int64) - } - yym201 := z.DecBinary() - _ = yym201 - if false { - } else { - *((*int64)(x.MaxReplicas)) = int64(r.DecodeInt(64)) - } - } - case "Weight": - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys198) - } // end switch yys198 - } // end for yyj198 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ClusterReplicaSetPreferences) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj203 int - var yyb203 bool - var yyhl203 bool = l >= 0 - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l - } else { - yyb203 = r.CheckBreak() - } - if yyb203 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinReplicas = 0 - } else { - x.MinReplicas = int64(r.DecodeInt(64)) - } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l - } else { - yyb203 = r.CheckBreak() - } - if yyb203 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.MaxReplicas != nil { - x.MaxReplicas = nil - } - } else { - if x.MaxReplicas == nil { - x.MaxReplicas = new(int64) - } - yym206 := z.DecBinary() - _ = yym206 - if false { - } else { - *((*int64)(x.MaxReplicas)) = int64(r.DecodeInt(64)) - } - } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l - } else { - yyb203 = r.CheckBreak() - } - if yyb203 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Weight = 0 - } else { - x.Weight = int64(r.DecodeInt(64)) - } - for { - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l - } else { - yyb203 = r.CheckBreak() - } - if yyb203 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj203-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encSliceServerAddressByClientCIDR(v []ServerAddressByClientCIDR, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv208 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy209 := &yyv208 - yy209.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServerAddressByClientCIDR(v *[]ServerAddressByClientCIDR, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv210 := *v - yyh210, yyl210 := z.DecSliceHelperStart() - var yyc210 bool - if yyl210 == 0 { - if yyv210 == nil { - yyv210 = []ServerAddressByClientCIDR{} - yyc210 = true - } else if len(yyv210) != 0 { - yyv210 = yyv210[:0] - yyc210 = true - } - } else if yyl210 > 0 { - var yyrr210, yyrl210 int - var yyrt210 bool - if yyl210 > cap(yyv210) { - - yyrg210 := len(yyv210) > 0 - yyv2210 := yyv210 - yyrl210, yyrt210 = z.DecInferLen(yyl210, z.DecBasicHandle().MaxInitLen, 32) - if yyrt210 { - if yyrl210 <= cap(yyv210) { - yyv210 = yyv210[:yyrl210] - } else { - yyv210 = make([]ServerAddressByClientCIDR, yyrl210) - } - } else { - yyv210 = make([]ServerAddressByClientCIDR, yyrl210) - } - yyc210 = true - yyrr210 = len(yyv210) - if yyrg210 { - copy(yyv210, yyv2210) - } - } else if yyl210 != len(yyv210) { - yyv210 = yyv210[:yyl210] - yyc210 = true - } - yyj210 := 0 - for ; yyj210 < yyrr210; yyj210++ { - yyh210.ElemContainerState(yyj210) - if r.TryDecodeAsNil() { - yyv210[yyj210] = ServerAddressByClientCIDR{} - } else { - yyv211 := &yyv210[yyj210] - yyv211.CodecDecodeSelf(d) - } - - } - if yyrt210 { - for ; yyj210 < yyl210; yyj210++ { - yyv210 = append(yyv210, ServerAddressByClientCIDR{}) - yyh210.ElemContainerState(yyj210) - if r.TryDecodeAsNil() { - yyv210[yyj210] = ServerAddressByClientCIDR{} - } else { - yyv212 := &yyv210[yyj210] - yyv212.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj210 := 0 - for ; !r.CheckBreak(); yyj210++ { - - if yyj210 >= len(yyv210) { - yyv210 = append(yyv210, ServerAddressByClientCIDR{}) // var yyz210 ServerAddressByClientCIDR - yyc210 = true - } - yyh210.ElemContainerState(yyj210) - if yyj210 < len(yyv210) { - if r.TryDecodeAsNil() { - yyv210[yyj210] = ServerAddressByClientCIDR{} - } else { - yyv213 := &yyv210[yyj210] - yyv213.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj210 < len(yyv210) { - yyv210 = yyv210[:yyj210] - yyc210 = true - } else if yyj210 == 0 && yyv210 == nil { - yyv210 = []ServerAddressByClientCIDR{} - yyc210 = true - } - } - yyh210.End() - if yyc210 { - *v = yyv210 - } -} - -func (x codecSelfer1234) encSliceClusterCondition(v []ClusterCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv214 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy215 := &yyv214 - yy215.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceClusterCondition(v *[]ClusterCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv216 := *v - yyh216, yyl216 := z.DecSliceHelperStart() - var yyc216 bool - if yyl216 == 0 { - if yyv216 == nil { - yyv216 = []ClusterCondition{} - yyc216 = true - } else if len(yyv216) != 0 { - yyv216 = yyv216[:0] - yyc216 = true - } - } else if yyl216 > 0 { - var yyrr216, yyrl216 int - var yyrt216 bool - if yyl216 > cap(yyv216) { - - yyrg216 := len(yyv216) > 0 - yyv2216 := yyv216 - yyrl216, yyrt216 = z.DecInferLen(yyl216, z.DecBasicHandle().MaxInitLen, 112) - if yyrt216 { - if yyrl216 <= cap(yyv216) { - yyv216 = yyv216[:yyrl216] - } else { - yyv216 = make([]ClusterCondition, yyrl216) - } - } else { - yyv216 = make([]ClusterCondition, yyrl216) - } - yyc216 = true - yyrr216 = len(yyv216) - if yyrg216 { - copy(yyv216, yyv2216) - } - } else if yyl216 != len(yyv216) { - yyv216 = yyv216[:yyl216] - yyc216 = true - } - yyj216 := 0 - for ; yyj216 < yyrr216; yyj216++ { - yyh216.ElemContainerState(yyj216) - if r.TryDecodeAsNil() { - yyv216[yyj216] = ClusterCondition{} - } else { - yyv217 := &yyv216[yyj216] - yyv217.CodecDecodeSelf(d) - } - - } - if yyrt216 { - for ; yyj216 < yyl216; yyj216++ { - yyv216 = append(yyv216, ClusterCondition{}) - yyh216.ElemContainerState(yyj216) - if r.TryDecodeAsNil() { - yyv216[yyj216] = ClusterCondition{} - } else { - yyv218 := &yyv216[yyj216] - yyv218.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj216 := 0 - for ; !r.CheckBreak(); yyj216++ { - - if yyj216 >= len(yyv216) { - yyv216 = append(yyv216, ClusterCondition{}) // var yyz216 ClusterCondition - yyc216 = true - } - yyh216.ElemContainerState(yyj216) - if yyj216 < len(yyv216) { - if r.TryDecodeAsNil() { - yyv216[yyj216] = ClusterCondition{} - } else { - yyv219 := &yyv216[yyj216] - yyv219.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj216 < len(yyv216) { - yyv216 = yyv216[:yyj216] - yyc216 = true - } else if yyj216 == 0 && yyv216 == nil { - yyv216 = []ClusterCondition{} - yyc216 = true - } - } - yyh216.End() - if yyc216 { - *v = yyv216 - } -} - -func (x codecSelfer1234) encSliceCluster(v []Cluster, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv220 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy221 := &yyv220 - yy221.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv222 := *v - yyh222, yyl222 := z.DecSliceHelperStart() - var yyc222 bool - if yyl222 == 0 { - if yyv222 == nil { - yyv222 = []Cluster{} - yyc222 = true - } else if len(yyv222) != 0 { - yyv222 = yyv222[:0] - yyc222 = true - } - } else if yyl222 > 0 { - var yyrr222, yyrl222 int - var yyrt222 bool - if yyl222 > cap(yyv222) { - - yyrg222 := len(yyv222) > 0 - yyv2222 := yyv222 - yyrl222, yyrt222 = z.DecInferLen(yyl222, z.DecBasicHandle().MaxInitLen, 352) - if yyrt222 { - if yyrl222 <= cap(yyv222) { - yyv222 = yyv222[:yyrl222] - } else { - yyv222 = make([]Cluster, yyrl222) - } - } else { - yyv222 = make([]Cluster, yyrl222) - } - yyc222 = true - yyrr222 = len(yyv222) - if yyrg222 { - copy(yyv222, yyv2222) - } - } else if yyl222 != len(yyv222) { - yyv222 = yyv222[:yyl222] - yyc222 = true - } - yyj222 := 0 - for ; yyj222 < yyrr222; yyj222++ { - yyh222.ElemContainerState(yyj222) - if r.TryDecodeAsNil() { - yyv222[yyj222] = Cluster{} - } else { - yyv223 := &yyv222[yyj222] - yyv223.CodecDecodeSelf(d) - } - - } - if yyrt222 { - for ; yyj222 < yyl222; yyj222++ { - yyv222 = append(yyv222, Cluster{}) - yyh222.ElemContainerState(yyj222) - if r.TryDecodeAsNil() { - yyv222[yyj222] = Cluster{} - } else { - yyv224 := &yyv222[yyj222] - yyv224.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj222 := 0 - for ; !r.CheckBreak(); yyj222++ { - - if yyj222 >= len(yyv222) { - yyv222 = append(yyv222, Cluster{}) // var yyz222 Cluster - yyc222 = true - } - yyh222.ElemContainerState(yyj222) - if yyj222 < len(yyv222) { - if r.TryDecodeAsNil() { - yyv222[yyj222] = Cluster{} - } else { - yyv225 := &yyv222[yyj222] - yyv225.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj222 < len(yyv222) { - yyv222 = yyv222[:yyj222] - yyc222 = true - } else if yyj222 == 0 && yyv222 == nil { - yyv222 = []Cluster{} - yyc222 = true - } - } - yyh222.End() - if yyc222 { - *v = yyv222 - } -} - -func (x codecSelfer1234) encMapstringClusterReplicaSetPreferences(v map[string]ClusterReplicaSetPreferences, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk226, yyv226 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym227 := z.EncBinary() - _ = yym227 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk226)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy228 := &yyv226 - yy228.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decMapstringClusterReplicaSetPreferences(v *map[string]ClusterReplicaSetPreferences, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv229 := *v - yyl229 := r.ReadMapStart() - yybh229 := z.DecBasicHandle() - if yyv229 == nil { - yyrl229, _ := z.DecInferLen(yyl229, yybh229.MaxInitLen, 40) - yyv229 = make(map[string]ClusterReplicaSetPreferences, yyrl229) - *v = yyv229 - } - var yymk229 string - var yymv229 ClusterReplicaSetPreferences - var yymg229 bool - if yybh229.MapValueReset { - yymg229 = true - } - if yyl229 > 0 { - for yyj229 := 0; yyj229 < yyl229; yyj229++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk229 = "" - } else { - yymk229 = string(r.DecodeString()) - } - - if yymg229 { - yymv229 = yyv229[yymk229] - } else { - yymv229 = ClusterReplicaSetPreferences{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv229 = ClusterReplicaSetPreferences{} - } else { - yyv231 := &yymv229 - yyv231.CodecDecodeSelf(d) - } - - if yyv229 != nil { - yyv229[yymk229] = yymv229 - } - } - } else if yyl229 < 0 { - for yyj229 := 0; !r.CheckBreak(); yyj229++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk229 = "" - } else { - yymk229 = string(r.DecodeString()) - } - - if yymg229 { - yymv229 = yyv229[yymk229] - } else { - yymv229 = ClusterReplicaSetPreferences{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv229 = ClusterReplicaSetPreferences{} - } else { - yyv233 := &yymv229 - yyv233.CodecDecodeSelf(d) - } - - if yyv229 != nil { - yyv229[yymk229] = yymv229 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} diff --git a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.go b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.go index 1f45993dae6..b74a392632c 100644 --- a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.go +++ b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/types.go @@ -24,10 +24,10 @@ import ( // ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. type ServerAddressByClientCIDR struct { // The CIDR with which clients can match their IP to figure out the server address that they should use. - ClientCIDR string `json:"clientCIDR" protobuf:"bytes,1,opt,name=clientCIDR"` + ClientCIDR string // Address of this server, suitable for a client that matches the above CIDR. // This can be a hostname, hostname:port, IP or IP:port. - ServerAddress string `json:"serverAddress" protobuf:"bytes,2,opt,name=serverAddress"` + ServerAddress string } // ClusterSpec describes the attributes of a kubernetes cluster. @@ -36,14 +36,14 @@ type ClusterSpec struct { // This is to help clients reach servers in the most network-efficient way possible. // Clients can use the appropriate server address as per the CIDR that they match. // In case of multiple matches, clients should use the longest matching CIDR. - ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" patchStrategy:"merge" patchMergeKey:"clientCIDR"` + ServerAddressByClientCIDRs []ServerAddressByClientCIDR // Name of the secret containing kubeconfig to access this cluster. // The secret is read from the kubernetes cluster that is hosting federation control plane. // Admin needs to ensure that the required secret exists. Secret should be in the same namespace where federation control plane is hosted and it should have kubeconfig in its data with key "kubeconfig". // This will later be changed to a reference to secret in federation control plane when the federation control plane supports secrets. // This can be left empty if the cluster allows insecure access. // +optional - SecretRef *api.LocalObjectReference `json:"secretRef,omitempty"` + SecretRef *api.LocalObjectReference } type ClusterConditionType string @@ -59,35 +59,35 @@ const ( // ClusterCondition describes current state of a cluster. type ClusterCondition struct { // Type of cluster condition, Complete or Failed. - Type ClusterConditionType `json:"type"` + Type ClusterConditionType // Status of the condition, one of True, False, Unknown. - Status api.ConditionStatus `json:"status"` + Status api.ConditionStatus // Last time the condition was checked. // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` + LastProbeTime metav1.Time // Last time the condition transit from one status to another. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time // (brief) reason for the condition's last transition. // +optional - Reason string `json:"reason,omitempty"` + Reason string // Human readable message indicating details about last transition. // +optional - Message string `json:"message,omitempty"` + Message string } // ClusterStatus is information about the current status of a cluster updated by cluster controller peridocally. type ClusterStatus struct { // Conditions is an array of current cluster conditions. // +optional - Conditions []ClusterCondition `json:"conditions,omitempty"` + Conditions []ClusterCondition // Zones is the list of availability zones in which the nodes of the cluster exist, e.g. 'us-east1-a'. // These will always be in the same region. // +optional - Zones []string `json:"zones,omitempty"` + Zones []string // Region is the name of the region in which all of the nodes in the cluster exist. e.g. 'us-east1'. // +optional - Region string `json:"region,omitempty"` + Region string } // +genclient=true @@ -95,30 +95,30 @@ type ClusterStatus struct { // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. type Cluster struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional - api.ObjectMeta `json:"metadata,omitempty"` + api.ObjectMeta // Spec defines the behavior of the Cluster. // +optional - Spec ClusterSpec `json:"spec,omitempty"` + Spec ClusterSpec // Status describes the current status of a Cluster // +optional - Status ClusterStatus `json:"status,omitempty"` + Status ClusterStatus } // A list of all the kubernetes clusters registered to the federation type ClusterList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds // +optional - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta // List of Cluster objects. - Items []Cluster `json:"items"` + Items []Cluster } // Temporary/alpha structures to support custom replica assignments within FederatedReplicaSet. @@ -131,24 +131,24 @@ type FederatedReplicaSetPreferences struct { // in order to bring cluster replicasets towards a desired state. Otherwise, if set to false, // up and running replicas will not be moved. // +optional - Rebalance bool `json:"rebalance,omitempty"` + Rebalance bool // A mapping between cluster names and preferences regarding local ReplicaSet in these clusters. // "*" (if provided) applies to all clusters if an explicit mapping is not provided. If there is no // "*" that clusters without explicit preferences should not have any replicas scheduled. // +optional - Clusters map[string]ClusterReplicaSetPreferences `json:"clusters,omitempty"` + Clusters map[string]ClusterReplicaSetPreferences } // Preferences regarding number of replicas assigned to a cluster replicaset within a federated replicaset. type ClusterReplicaSetPreferences struct { // Minimum number of replicas that should be assigned to this Local ReplicaSet. 0 by default. // +optional - MinReplicas int64 `json:"minReplicas,omitempty"` + MinReplicas int64 // Maximum number of replicas that should be assigned to this Local ReplicaSet. Unbounded if no value provided (default). // +optional - MaxReplicas *int64 `json:"maxReplicas,omitempty"` + MaxReplicas *int64 // A number expressing the preference to put an additional replica to this LocalReplicaSet. 0 by default. Weight int64 diff --git a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/register.go b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/register.go index 7a5fe07afd8..e494d20d055 100644 --- a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/register.go +++ b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/register.go @@ -42,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &v1.ListOptions{}, &v1.DeleteOptions{}, &metav1.ExportOptions{}, + &metav1.GetOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil diff --git a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/types.go b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/types.go index b65d701c01c..59a73ad073e 100644 --- a/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/types.go +++ b/staging/src/k8s.io/client-go/pkg/federation/apis/federation/v1beta1/types.go @@ -120,3 +120,8 @@ type ClusterList struct { // List of Cluster objects. Items []Cluster `json:"items" protobuf:"bytes,2,rep,name=items"` } + +const ( + // FederationNamespaceSystem is the system namespace where we place federation control plane components. + FederationNamespaceSystem string = "federation-system" +) diff --git a/staging/src/k8s.io/client-go/pkg/runtime/OWNERS b/staging/src/k8s.io/client-go/pkg/runtime/OWNERS index d038b5e9b9d..a49419f7090 100644 --- a/staging/src/k8s.io/client-go/pkg/runtime/OWNERS +++ b/staging/src/k8s.io/client-go/pkg/runtime/OWNERS @@ -1,5 +1,19 @@ -assignees: - - caesarxuchao - - deads2k - - lavalamp - - smarterclayton +approvers: +- caesarxuchao +- deads2k +- lavalamp +- smarterclayton +reviewers: +- lavalamp +- smarterclayton +- wojtek-t +- deads2k +- derekwaynecarr +- caesarxuchao +- mikedanese +- nikhiljindal +- gmarek +- krousey +- timothysc +- piosz +- mbohlool diff --git a/staging/src/k8s.io/client-go/pkg/util/validation/field/errors.go b/staging/src/k8s.io/client-go/pkg/util/validation/field/errors.go index 6d11ec61653..660845db95a 100644 --- a/staging/src/k8s.io/client-go/pkg/util/validation/field/errors.go +++ b/staging/src/k8s.io/client-go/pkg/util/validation/field/errors.go @@ -22,6 +22,7 @@ import ( "strings" utilerrors "k8s.io/client-go/pkg/util/errors" + "k8s.io/client-go/pkg/util/sets" ) // Error is an implementation of the 'error' interface, which represents a @@ -201,9 +202,15 @@ func NewErrorTypeMatcher(t ErrorType) utilerrors.Matcher { // ToAggregate converts the ErrorList into an errors.Aggregate. func (list ErrorList) ToAggregate() utilerrors.Aggregate { - errs := make([]error, len(list)) - for i := range list { - errs[i] = list[i] + errs := make([]error, 0, len(list)) + errorMsgs := sets.NewString() + for _, err := range list { + msg := fmt.Sprintf("%v", err) + if errorMsgs.Has(msg) { + continue + } + errorMsgs.Insert(msg) + errs = append(errs, err) } return utilerrors.NewAggregate(errs) } diff --git a/staging/src/k8s.io/client-go/pkg/util/validation/validation.go b/staging/src/k8s.io/client-go/pkg/util/validation/validation.go index c2658312449..cc58101ba0f 100644 --- a/staging/src/k8s.io/client-go/pkg/util/validation/validation.go +++ b/staging/src/k8s.io/client-go/pkg/util/validation/validation.go @@ -143,19 +143,19 @@ func IsDNS1035Label(value string) []string { // examples: // - valid: *.bar.com, *.foo.bar.com // - invalid: *.*.bar.com, *.foo.*.com, *bar.com, f*.bar.com, * -const wildcardDNF1123SubdomainFmt = "\\*\\." + dns1123SubdomainFmt +const wildcardDNS1123SubdomainFmt = "\\*\\." + dns1123SubdomainFmt // IsWildcardDNS1123Subdomain tests for a string that conforms to the definition of a // wildcard subdomain in DNS (RFC 1034 section 4.3.3). func IsWildcardDNS1123Subdomain(value string) []string { - wildcardDNS1123SubdomainRegexp := regexp.MustCompile("^\\*\\." + dns1123SubdomainFmt + "$") + wildcardDNS1123SubdomainRegexp := regexp.MustCompile("^" + wildcardDNS1123SubdomainFmt + "$") var errs []string if len(value) > DNS1123SubdomainMaxLength { errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength)) } if !wildcardDNS1123SubdomainRegexp.MatchString(value) { - errs = append(errs, RegexError(wildcardDNF1123SubdomainFmt, "*.example.com")) + errs = append(errs, RegexError(wildcardDNS1123SubdomainFmt, "*.example.com")) } return errs } diff --git a/staging/src/k8s.io/client-go/pkg/version/semver.go b/staging/src/k8s.io/client-go/pkg/version/semver.go deleted file mode 100644 index 1f4067e217b..00000000000 --- a/staging/src/k8s.io/client-go/pkg/version/semver.go +++ /dev/null @@ -1,50 +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 version - -import ( - "strings" - "unicode" - - "github.com/blang/semver" - "github.com/golang/glog" -) - -func Parse(gitversion string) (semver.Version, error) { - // optionally trim leading spaces then one v - var seen bool - gitversion = strings.TrimLeftFunc(gitversion, func(ch rune) bool { - if seen { - return false - } - if ch == 'v' { - seen = true - return true - } - return unicode.IsSpace(ch) - }) - - return semver.Make(gitversion) -} - -func MustParse(gitversion string) semver.Version { - v, err := Parse(gitversion) - if err != nil { - glog.Fatalf("failed to parse semver from gitversion %q: %v", gitversion, err) - } - return v -} diff --git a/staging/src/k8s.io/client-go/rest/request.go b/staging/src/k8s.io/client-go/rest/request.go index 9e975eaf668..6621e8efd73 100644 --- a/staging/src/k8s.io/client-go/rest/request.go +++ b/staging/src/k8s.io/client-go/rest/request.go @@ -540,10 +540,10 @@ func (r *Request) Body(obj interface{}) *Request { r.err = err return r } - glog.V(8).Infof("Request Body: %#v", string(data)) + glogBody("Request Body", data) r.body = bytes.NewReader(data) case []byte: - glog.V(8).Infof("Request Body: %#v", string(t)) + glogBody("Request Body", t) r.body = bytes.NewReader(t) case io.Reader: r.body = t @@ -557,7 +557,7 @@ func (r *Request) Body(obj interface{}) *Request { r.err = err return r } - glog.V(8).Infof("Request Body: %#v", string(data)) + glogBody("Request Body", data) r.body = bytes.NewReader(data) r.SetHeader("Content-Type", r.content.ContentType) default: @@ -878,6 +878,7 @@ func (r *Request) DoRaw() ([]byte, error) { var result Result err := r.request(func(req *http.Request, resp *http.Response) { result.body, result.err = ioutil.ReadAll(resp.Body) + glogBody("Response Body", result.body) if resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent { result.err = r.transformUnstructuredResponseError(resp, req, result.body) } @@ -897,15 +898,7 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu } } - if glog.V(8) { - if bytes.IndexFunc(body, func(r rune) bool { - return r < 0x0a - }) != -1 { - glog.Infof("Response Body:\n%s", hex.Dump(body)) - } else { - glog.Infof("Response Body: %s", string(body)) - } - } + glogBody("Response Body", body) // verify the content type is accurate contentType := resp.Header.Get("Content-Type") @@ -957,6 +950,21 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu } } +// glogBody logs a body output that could be either JSON or protobuf. It explicitly guards against +// allocating a new string for the body output unless necessary. Uses a simple heuristic to determine +// whether the body is printable. +func glogBody(prefix string, body []byte) { + if glog.V(8) { + if bytes.IndexFunc(body, func(r rune) bool { + return r < 0x0a + }) != -1 { + glog.Infof("%s:\n%s", prefix, hex.Dump(body)) + } else { + glog.Infof("%s: %s", prefix, string(body)) + } + } +} + // maxUnstructuredResponseTextBytes is an upper bound on how much output to include in the unstructured error. const maxUnstructuredResponseTextBytes = 2048 @@ -994,7 +1002,6 @@ func (r *Request) newUnstructuredResponseError(body []byte, isTextResponse bool, if len(body) > maxUnstructuredResponseTextBytes { body = body[:maxUnstructuredResponseTextBytes] } - glog.V(8).Infof("Response Body: %#v", string(body)) message := "unknown" if isTextResponse { diff --git a/staging/src/k8s.io/client-go/rest/url_utils.go b/staging/src/k8s.io/client-go/rest/url_utils.go index 052798e7b6d..21ab898cd3e 100644 --- a/staging/src/k8s.io/client-go/rest/url_utils.go +++ b/staging/src/k8s.io/client-go/rest/url_utils.go @@ -33,10 +33,7 @@ func DefaultServerURL(host, apiPath string, groupVersion schema.GroupVersion, de } base := host hostURL, err := url.Parse(base) - if err != nil { - return nil, "", err - } - if hostURL.Scheme == "" || hostURL.Host == "" { + if err != nil || hostURL.Scheme == "" || hostURL.Host == "" { scheme := "http://" if defaultTLS { scheme = "https://" diff --git a/staging/src/k8s.io/client-go/testing/fixture.go b/staging/src/k8s.io/client-go/testing/fixture.go index 62035616f65..c3a5ab86941 100644 --- a/staging/src/k8s.io/client-go/testing/fixture.go +++ b/staging/src/k8s.io/client-go/testing/fixture.go @@ -41,8 +41,11 @@ type ObjectTracker interface { // Get retrieves the object by its kind, namespace and name. Get(gvk schema.GroupVersionKind, ns, name string) (runtime.Object, error) - // Update updates an existing object in the tracker. - Update(obj runtime.Object) error + // Create adds an object to the tracker in the specified namespace. + Create(obj runtime.Object, ns string) error + + // Update updates an existing object in the tracker in the specified namespace. + Update(obj runtime.Object, ns string) error // List retrieves all objects of a given kind in the given // namespace. Only non-List kinds are accepted. @@ -102,12 +105,12 @@ func ObjectReaction(tracker ObjectTracker, mapper meta.RESTMapper) ReactionFunc return true, nil, err } if action.GetSubresource() == "" { - err = tracker.Add(action.GetObject()) + err = tracker.Create(action.GetObject(), ns) } else { // TODO: Currently we're handling subresource creation as an update // on the enclosing resource. This works for some subresources but // might not be generic enough. - err = tracker.Update(action.GetObject()) + err = tracker.Update(action.GetObject(), ns) } if err != nil { return true, nil, err @@ -120,7 +123,7 @@ func ObjectReaction(tracker ObjectTracker, mapper meta.RESTMapper) ReactionFunc if err != nil { return true, nil, err } - err = tracker.Update(action.GetObject()) + err = tracker.Update(action.GetObject(), ns) if err != nil { return true, nil, err } @@ -243,18 +246,26 @@ func (t *tracker) Get(gvk schema.GroupVersionKind, ns, name string) (runtime.Obj } func (t *tracker) Add(obj runtime.Object) error { - return t.add(obj, false) -} - -func (t *tracker) Update(obj runtime.Object) error { - return t.add(obj, true) -} - -func (t *tracker) add(obj runtime.Object, replaceExisting bool) error { if meta.IsListType(obj) { - return t.addList(obj, replaceExisting) + return t.addList(obj, false) } + objMeta, err := meta.Accessor(obj) + if err != nil { + return err + } + return t.add(obj, objMeta.GetNamespace(), false) +} + +func (t *tracker) Create(obj runtime.Object, ns string) error { + return t.add(obj, ns, false) +} + +func (t *tracker) Update(obj runtime.Object, ns string) error { + return t.add(obj, ns, true) +} + +func (t *tracker) add(obj runtime.Object, ns string, replaceExisting bool) error { gvks, _, err := t.scheme.ObjectKinds(obj) if err != nil { return err @@ -286,6 +297,16 @@ func (t *tracker) add(obj runtime.Object, replaceExisting bool) error { return err } + // Propagate namespace to the new object if hasn't already been set. + if len(newMeta.GetNamespace()) == 0 { + newMeta.SetNamespace(ns) + } + + if ns != newMeta.GetNamespace() { + msg := fmt.Sprintf("request namespace does not match object namespace, request: %q object: %q", ns, newMeta.GetNamespace()) + return errors.NewBadRequest(msg) + } + if err := checkNamespace(gvk, newMeta.GetNamespace()); err != nil { return err } @@ -325,7 +346,11 @@ func (t *tracker) addList(obj runtime.Object, replaceExisting bool) error { return errs[0] } for _, obj := range list { - err := t.add(obj, replaceExisting) + objMeta, err := meta.Accessor(obj) + if err != nil { + return err + } + err = t.add(obj, objMeta.GetNamespace(), replaceExisting) if err != nil { return err } diff --git a/staging/src/k8s.io/client-go/tools/clientcmd/client_config.go b/staging/src/k8s.io/client-go/tools/clientcmd/client_config.go index 53523ccfa30..385ade58560 100644 --- a/staging/src/k8s.io/client-go/tools/clientcmd/client_config.go +++ b/staging/src/k8s.io/client-go/tools/clientcmd/client_config.go @@ -27,9 +27,6 @@ import ( "github.com/golang/glog" "github.com/imdario/mergo" - "strconv" - "time" - "k8s.io/client-go/pkg/api" "k8s.io/client-go/rest" clientauth "k8s.io/client-go/tools/auth" @@ -136,13 +133,11 @@ func (config *DirectClientConfig) ClientConfig() (*rest.Config, error) { clientConfig.Host = configClusterInfo.Server if len(config.overrides.Timeout) > 0 { - if i, err := strconv.ParseInt(config.overrides.Timeout, 10, 64); err == nil && i >= 0 { - clientConfig.Timeout = time.Duration(i) * time.Second - } else if requestTimeout, err := time.ParseDuration(config.overrides.Timeout); err == nil { - clientConfig.Timeout = requestTimeout - } else { - return nil, fmt.Errorf("Invalid value for option '--request-timeout'. Value must be a single integer, or an integer followed by a corresponding time unit (e.g. 1s | 2m | 3h)") + timeout, err := ParseTimeout(config.overrides.Timeout) + if err != nil { + return nil, err } + clientConfig.Timeout = timeout } if u, err := url.ParseRequestURI(clientConfig.Host); err == nil && u.Opaque == "" && len(u.Path) > 1 { diff --git a/staging/src/k8s.io/client-go/tools/clientcmd/helpers.go b/staging/src/k8s.io/client-go/tools/clientcmd/helpers.go new file mode 100644 index 00000000000..b609d1a766c --- /dev/null +++ b/staging/src/k8s.io/client-go/tools/clientcmd/helpers.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 clientcmd + +import ( + "fmt" + "strconv" + "time" +) + +// ParseTimeout returns a parsed duration from a string +// A duration string value must be a positive integer, optionally followed by a corresponding time unit (s|m|h). +func ParseTimeout(duration string) (time.Duration, error) { + if i, err := strconv.ParseInt(duration, 10, 64); err == nil && i >= 0 { + return (time.Duration(i) * time.Second), nil + } + if requestTimeout, err := time.ParseDuration(duration); err == nil { + return requestTimeout, nil + } + return 0, fmt.Errorf("Invalid timeout value. Timeout must be a single integer in seconds, or an integer followed by a corresponding time unit (e.g. 1s | 2m | 3h)") +} diff --git a/staging/src/k8s.io/client-go/transport/round_trippers.go b/staging/src/k8s.io/client-go/transport/round_trippers.go index 1ad9f8285d1..a6f396fbb0a 100644 --- a/staging/src/k8s.io/client-go/transport/round_trippers.go +++ b/staging/src/k8s.io/client-go/transport/round_trippers.go @@ -106,6 +106,13 @@ func NewAuthProxyRoundTripper(username string, groups []string, extra map[string func (rt *authProxyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { req = cloneRequest(req) + SetAuthProxyHeaders(req, rt.username, rt.groups, rt.extra) + + return rt.rt.RoundTrip(req) +} + +// SetAuthProxyHeaders stomps the auth proxy header fields. It mutates its argument. +func SetAuthProxyHeaders(req *http.Request, username string, groups []string, extra map[string][]string) { req.Header.Del("X-Remote-User") req.Header.Del("X-Remote-Group") for key := range req.Header { @@ -114,17 +121,15 @@ func (rt *authProxyRoundTripper) RoundTrip(req *http.Request) (*http.Response, e } } - req.Header.Set("X-Remote-User", rt.username) - for _, group := range rt.groups { + req.Header.Set("X-Remote-User", username) + for _, group := range groups { req.Header.Add("X-Remote-Group", group) } - for key, values := range rt.extra { + for key, values := range extra { for _, value := range values { req.Header.Add("X-Remote-Extra-"+key, value) } } - - return rt.rt.RoundTrip(req) } func (rt *authProxyRoundTripper) CancelRequest(req *http.Request) { diff --git a/vendor/BUILD b/vendor/BUILD index 1ee2f3f66e2..a4d61d1dcee 100644 --- a/vendor/BUILD +++ b/vendor/BUILD @@ -7728,17 +7728,6 @@ go_library( tags = ["automanaged"], ) -go_library( - name = "k8s.io/client-go/_vendor/github.com/blang/semver", - srcs = [ - "k8s.io/client-go/_vendor/github.com/blang/semver/json.go", - "k8s.io/client-go/_vendor/github.com/blang/semver/semver.go", - "k8s.io/client-go/_vendor/github.com/blang/semver/sort.go", - "k8s.io/client-go/_vendor/github.com/blang/semver/sql.go", - ], - tags = ["automanaged"], -) - go_library( name = "k8s.io/client-go/_vendor/github.com/coreos/go-oidc/http", srcs = [ @@ -9303,7 +9292,6 @@ go_library( "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/ingress.go", - "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/replicaset.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale.go", @@ -9334,7 +9322,6 @@ go_library( "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_ingress.go", - "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_job.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_podsecuritypolicy.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_replicaset.go", "k8s.io/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_scale.go", @@ -9556,7 +9543,6 @@ go_library( "k8s.io/client-go/pkg/api/register.go", "k8s.io/client-go/pkg/api/requestcontext.go", "k8s.io/client-go/pkg/api/resource_helpers.go", - "k8s.io/client-go/pkg/api/types.generated.go", "k8s.io/client-go/pkg/api/types.go", "k8s.io/client-go/pkg/api/zz_generated.deepcopy.go", ], @@ -9564,7 +9550,6 @@ go_library( deps = [ "//vendor:github.com/davecgh/go-spew/spew", "//vendor:github.com/golang/glog", - "//vendor:github.com/ugorji/go/codec", "//vendor:golang.org/x/net/context", "//vendor:k8s.io/client-go/pkg/api/meta", "//vendor:k8s.io/client-go/pkg/api/resource", @@ -9813,21 +9798,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/apps/doc.go", "k8s.io/client-go/pkg/apis/apps/register.go", - "k8s.io/client-go/pkg/apis/apps/types.generated.go", "k8s.io/client-go/pkg/apis/apps/types.go", "k8s.io/client-go/pkg/apis/apps/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", - "//vendor:k8s.io/client-go/pkg/api/resource", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", - "//vendor:k8s.io/client-go/pkg/util/intstr", ], ) @@ -9880,19 +9860,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/authentication/doc.go", "k8s.io/client-go/pkg/apis/authentication/register.go", - "k8s.io/client-go/pkg/apis/authentication/types.generated.go", "k8s.io/client-go/pkg/apis/authentication/types.go", "k8s.io/client-go/pkg/apis/authentication/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -9942,19 +9919,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/authorization/doc.go", "k8s.io/client-go/pkg/apis/authorization/register.go", - "k8s.io/client-go/pkg/apis/authorization/types.generated.go", "k8s.io/client-go/pkg/apis/authorization/types.go", "k8s.io/client-go/pkg/apis/authorization/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -10005,19 +9979,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/autoscaling/doc.go", "k8s.io/client-go/pkg/apis/autoscaling/register.go", - "k8s.io/client-go/pkg/apis/autoscaling/types.generated.go", "k8s.io/client-go/pkg/apis/autoscaling/types.go", "k8s.io/client-go/pkg/apis/autoscaling/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -10066,21 +10037,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/batch/doc.go", "k8s.io/client-go/pkg/apis/batch/register.go", - "k8s.io/client-go/pkg/apis/batch/types.generated.go", "k8s.io/client-go/pkg/apis/batch/types.go", "k8s.io/client-go/pkg/apis/batch/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", - "//vendor:k8s.io/client-go/pkg/api/resource", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", - "//vendor:k8s.io/client-go/pkg/util/intstr", ], ) @@ -10167,19 +10133,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/certificates/doc.go", "k8s.io/client-go/pkg/apis/certificates/register.go", - "k8s.io/client-go/pkg/apis/certificates/types.generated.go", "k8s.io/client-go/pkg/apis/certificates/types.go", "k8s.io/client-go/pkg/apis/certificates/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -10230,13 +10193,11 @@ go_library( "k8s.io/client-go/pkg/apis/componentconfig/doc.go", "k8s.io/client-go/pkg/apis/componentconfig/helpers.go", "k8s.io/client-go/pkg/apis/componentconfig/register.go", - "k8s.io/client-go/pkg/apis/componentconfig/types.generated.go", "k8s.io/client-go/pkg/apis/componentconfig/types.go", "k8s.io/client-go/pkg/apis/componentconfig/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", @@ -10291,22 +10252,18 @@ go_library( "k8s.io/client-go/pkg/apis/extensions/doc.go", "k8s.io/client-go/pkg/apis/extensions/helpers.go", "k8s.io/client-go/pkg/apis/extensions/register.go", - "k8s.io/client-go/pkg/apis/extensions/types.generated.go", "k8s.io/client-go/pkg/apis/extensions/types.go", "k8s.io/client-go/pkg/apis/extensions/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/api/resource", "//vendor:k8s.io/client-go/pkg/apis/autoscaling", - "//vendor:k8s.io/client-go/pkg/apis/batch", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", "//vendor:k8s.io/client-go/pkg/util/intstr", ], ) @@ -10347,7 +10304,6 @@ go_library( "//vendor:k8s.io/client-go/pkg/api/resource", "//vendor:k8s.io/client-go/pkg/api/v1", "//vendor:k8s.io/client-go/pkg/apis/autoscaling", - "//vendor:k8s.io/client-go/pkg/apis/batch", "//vendor:k8s.io/client-go/pkg/apis/extensions", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", @@ -10364,19 +10320,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/imagepolicy/doc.go", "k8s.io/client-go/pkg/apis/imagepolicy/register.go", - "k8s.io/client-go/pkg/apis/imagepolicy/types.generated.go", "k8s.io/client-go/pkg/apis/imagepolicy/types.go", "k8s.io/client-go/pkg/apis/imagepolicy/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -10520,19 +10473,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/policy/doc.go", "k8s.io/client-go/pkg/apis/policy/register.go", - "k8s.io/client-go/pkg/apis/policy/types.generated.go", "k8s.io/client-go/pkg/apis/policy/types.go", "k8s.io/client-go/pkg/apis/policy/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", "//vendor:k8s.io/client-go/pkg/util/intstr", ], ) @@ -10664,19 +10614,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/apis/storage/doc.go", "k8s.io/client-go/pkg/apis/storage/register.go", - "k8s.io/client-go/pkg/apis/storage/types.generated.go", "k8s.io/client-go/pkg/apis/storage/types.go", "k8s.io/client-go/pkg/apis/storage/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -10756,19 +10703,16 @@ go_library( srcs = [ "k8s.io/client-go/pkg/federation/apis/federation/doc.go", "k8s.io/client-go/pkg/federation/apis/federation/register.go", - "k8s.io/client-go/pkg/federation/apis/federation/types.generated.go", "k8s.io/client-go/pkg/federation/apis/federation/types.go", "k8s.io/client-go/pkg/federation/apis/federation/zz_generated.deepcopy.go", ], tags = ["automanaged"], deps = [ - "//vendor:github.com/ugorji/go/codec", "//vendor:k8s.io/client-go/pkg/api", "//vendor:k8s.io/client-go/pkg/apis/meta/v1", "//vendor:k8s.io/client-go/pkg/conversion", "//vendor:k8s.io/client-go/pkg/runtime", "//vendor:k8s.io/client-go/pkg/runtime/schema", - "//vendor:k8s.io/client-go/pkg/types", ], ) @@ -11360,7 +11304,10 @@ go_library( "k8s.io/client-go/pkg/util/validation/field/path.go", ], tags = ["automanaged"], - deps = ["//vendor:k8s.io/client-go/pkg/util/errors"], + deps = [ + "//vendor:k8s.io/client-go/pkg/util/errors", + "//vendor:k8s.io/client-go/pkg/util/sets", + ], ) go_library( @@ -11388,14 +11335,9 @@ go_library( srcs = [ "k8s.io/client-go/pkg/version/base.go", "k8s.io/client-go/pkg/version/doc.go", - "k8s.io/client-go/pkg/version/semver.go", "k8s.io/client-go/pkg/version/version.go", ], tags = ["automanaged"], - deps = [ - "//vendor:github.com/blang/semver", - "//vendor:github.com/golang/glog", - ], ) go_library( @@ -11781,6 +11723,7 @@ go_library( "k8s.io/client-go/tools/clientcmd/client_config.go", "k8s.io/client-go/tools/clientcmd/config.go", "k8s.io/client-go/tools/clientcmd/doc.go", + "k8s.io/client-go/tools/clientcmd/helpers.go", "k8s.io/client-go/tools/clientcmd/loader.go", "k8s.io/client-go/tools/clientcmd/merged_client_builder.go", "k8s.io/client-go/tools/clientcmd/overrides.go",