From a06fc6ab7a4a2006af6dbcac750e0ff21d36eb85 Mon Sep 17 00:00:00 2001 From: Bowei Du Date: Thu, 3 Nov 2016 22:05:19 -0700 Subject: [PATCH] Adds TCPCloseWaitTimeout option to kube-proxy for sysctl nf_conntrack_tcp_timeout_time_wait Fixes issue-32551 --- cmd/kube-proxy/app/conntrack.go | 53 +- cmd/kube-proxy/app/options/options.go | 5 + cmd/kube-proxy/app/server.go | 14 +- hack/verify-flags/known-flags.txt | 5 +- pkg/apis/componentconfig/types.generated.go | 12602 ---------------- pkg/apis/componentconfig/types.go | 6 +- pkg/apis/componentconfig/v1alpha1/defaults.go | 3 + pkg/apis/componentconfig/v1alpha1/types.go | 8 +- .../v1alpha1/zz_generated.conversion.go | 2 + .../v1alpha1/zz_generated.deepcopy.go | 1 + .../componentconfig/zz_generated.deepcopy.go | 1 + pkg/generated/openapi/zz_generated.openapi.go | 20 +- test/e2e/BUILD | 2 + test/e2e/framework/util.go | 27 +- test/e2e/kube_proxy.go | 205 + test/test_owners.csv | 1 + 16 files changed, 325 insertions(+), 12630 deletions(-) delete mode 100644 pkg/apis/componentconfig/types.generated.go create mode 100644 test/e2e/kube_proxy.go diff --git a/cmd/kube-proxy/app/conntrack.go b/cmd/kube-proxy/app/conntrack.go index 075e4410b2b..322ede1972f 100644 --- a/cmd/kube-proxy/app/conntrack.go +++ b/cmd/kube-proxy/app/conntrack.go @@ -27,24 +27,33 @@ import ( "k8s.io/kubernetes/pkg/util/sysctl" ) +// Conntracker is an interface to the global sysctl. Descriptions of the various +// sysctl fields can be found here: +// +// https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.txt type Conntracker interface { + // SetMax adjusts nf_conntrack_max. SetMax(max int) error + // SetTCPEstablishedTimeout adjusts nf_conntrack_tcp_timeout_established. SetTCPEstablishedTimeout(seconds int) error + // SetTCPCloseWaitTimeout nf_conntrack_tcp_timeout_close_wait. + SetTCPCloseWaitTimeout(seconds int) error } type realConntracker struct{} var readOnlySysFSError = errors.New("readOnlySysFS") -func (realConntracker) SetMax(max int) error { - glog.Infof("Setting nf_conntrack_max to %d", max) - if err := sysctl.New().SetSysctl("net/netfilter/nf_conntrack_max", max); err != nil { +func (rct realConntracker) SetMax(max int) error { + if err := rct.setIntSysCtl("nf_conntrack_max", max); err != nil { return err } - // sysfs is expected to be mounted as 'rw'. However, it may be unexpectedly mounted as - // 'ro' by docker because of a known docker issue (https://github.com/docker/docker/issues/24000). - // Setting conntrack will fail when sysfs is readonly. When that happens, we don't set conntrack - // hashsize and return a special error readOnlySysFSError here. The caller should deal with + // sysfs is expected to be mounted as 'rw'. However, it may be + // unexpectedly mounted as 'ro' by docker because of a known docker + // issue (https://github.com/docker/docker/issues/24000). Setting + // conntrack will fail when sysfs is readonly. When that happens, we + // don't set conntrack hashsize and return a special error + // readOnlySysFSError here. The caller should deal with // readOnlySysFSError differently. writable, err := isSysFSWritable() if err != nil { @@ -58,9 +67,22 @@ func (realConntracker) SetMax(max int) error { return writeIntStringFile("/sys/module/nf_conntrack/parameters/hashsize", max/4) } -func (realConntracker) SetTCPEstablishedTimeout(seconds int) error { - glog.Infof("Setting nf_conntrack_tcp_timeout_established to %d", seconds) - return sysctl.New().SetSysctl("net/netfilter/nf_conntrack_tcp_timeout_established", seconds) +func (rct realConntracker) SetTCPEstablishedTimeout(seconds int) error { + return rct.setIntSysCtl("nf_conntrack_tcp_timeout_established", seconds) +} + +func (rct realConntracker) SetTCPCloseWaitTimeout(seconds int) error { + return rct.setIntSysCtl("nf_conntrack_tcp_timeout_close_wait", seconds) +} + +func (realConntracker) setIntSysCtl(name string, value int) error { + entry := "net/netfilter/" + name + + glog.Infof("Set sysctl '%v' to %v", entry, value) + if err := sysctl.New().SetSysctl(entry, value); err != nil { + return err + } + return nil } // isSysFSWritable checks /proc/mounts to see whether sysfs is 'rw' or not. @@ -73,18 +95,23 @@ func isSysFSWritable() (bool, error) { glog.Errorf("failed to list mount points: %v", err) return false, err } + for _, mountPoint := range mountPoints { + const sysfsDevice = "sysfs" if mountPoint.Device != sysfsDevice { continue } // Check whether sysfs is 'rw' + const permWritable = "rw" if len(mountPoint.Opts) > 0 && mountPoint.Opts[0] == permWritable { return true, nil } - glog.Errorf("sysfs is not writable: %+v", mountPoint) - break + glog.Errorf("sysfs is not writable: %+v (mount options are %v)", + mountPoint, mountPoint.Opts) + return false, readOnlySysFSError } - return false, nil + + return false, errors.New("No sysfs mounted") } func writeIntStringFile(filename string, value int) error { diff --git a/cmd/kube-proxy/app/options/options.go b/cmd/kube-proxy/app/options/options.go index a7fa9439f67..04f9d6717d9 100644 --- a/cmd/kube-proxy/app/options/options.go +++ b/cmd/kube-proxy/app/options/options.go @@ -94,5 +94,10 @@ func (s *ProxyServerConfig) AddFlags(fs *pflag.FlagSet) { fs.Int32Var(&s.ConntrackMin, "conntrack-min", s.ConntrackMin, "Minimum number of conntrack entries to allocate, regardless of conntrack-max-per-core (set conntrack-max-per-core=0 to leave the limit as-is).") fs.DurationVar(&s.ConntrackTCPEstablishedTimeout.Duration, "conntrack-tcp-timeout-established", s.ConntrackTCPEstablishedTimeout.Duration, "Idle timeout for established TCP connections (0 to leave as-is)") + fs.DurationVar( + &s.ConntrackTCPCloseWaitTimeout.Duration, "conntrack-tcp-timeout-close-wait", + s.ConntrackTCPCloseWaitTimeout.Duration, + "NAT timeout for TCP connections in the CLOSE_WAIT state") + config.DefaultFeatureGate.AddFlag(fs) } diff --git a/cmd/kube-proxy/app/server.go b/cmd/kube-proxy/app/server.go index 7997c361fff..86bae446b94 100644 --- a/cmd/kube-proxy/app/server.go +++ b/cmd/kube-proxy/app/server.go @@ -316,12 +316,22 @@ func (s *ProxyServer) Run() error { // administrator should decide whether and how to handle this issue, // whether to drain the node and restart docker. // TODO(random-liu): Remove this when the docker bug is fixed. - const message = "DOCKER RESTART NEEDED (docker issue #24000): /sys is read-only: can't raise conntrack limits, problems may arise later." + const message = "DOCKER RESTART NEEDED (docker issue #24000): /sys is read-only: " + + "cannot modify conntrack limits, problems may arise later." s.Recorder.Eventf(s.Config.NodeRef, api.EventTypeWarning, err.Error(), message) } } + if s.Config.ConntrackTCPEstablishedTimeout.Duration > 0 { - if err := s.Conntracker.SetTCPEstablishedTimeout(int(s.Config.ConntrackTCPEstablishedTimeout.Duration / time.Second)); err != nil { + timeout := int(s.Config.ConntrackTCPEstablishedTimeout.Duration / time.Second) + if err := s.Conntracker.SetTCPEstablishedTimeout(timeout); err != nil { + return err + } + } + + if s.Config.ConntrackTCPCloseWaitTimeout.Duration > 0 { + timeout := int(s.Config.ConntrackTCPCloseWaitTimeout.Duration / time.Second) + if err := s.Conntracker.SetTCPCloseWaitTimeout(timeout); err != nil { return err } } diff --git a/hack/verify-flags/known-flags.txt b/hack/verify-flags/known-flags.txt index e3df2d6251b..3d89e2354d5 100644 --- a/hack/verify-flags/known-flags.txt +++ b/hack/verify-flags/known-flags.txt @@ -90,21 +90,22 @@ concurrent-gc-syncs concurrent-namespace-syncs concurrent-replicaset-syncs concurrent-resource-quota-syncs -concurrent-service-syncs concurrent-serviceaccount-token-syncs +concurrent-service-syncs config-sync-period configure-cloud-routes conntrack-max conntrack-max-per-core conntrack-min +conntrack-tcp-timeout-close-wait conntrack-tcp-timeout-established consumer-port consumer-service-name consumer-service-namespace -contain-pod-resources container-port container-runtime container-runtime-endpoint +contain-pod-resources controller-start-interval cors-allowed-origins cpu-cfs-quota diff --git a/pkg/apis/componentconfig/types.generated.go b/pkg/apis/componentconfig/types.generated.go deleted file mode 100644 index f8672645b74..00000000000 --- a/pkg/apis/componentconfig/types.generated.go +++ /dev/null @@ -1,12602 +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" - pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned" - pkg2_config "k8s.io/kubernetes/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 pkg1_unversioned.TypeMeta - var v1 pkg2_config.ConfigurationMap - var v2 time.Duration - _, _, _ = v0, v1, v2 - } -} - -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 [21]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(21) - } else { - yynn2 = 19 - 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) - yym35 := z.EncBinary() - _ = yym35 - 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) - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeBool(bool(x.MasqueradeAll)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("masqueradeAll")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym39 := z.EncBinary() - _ = yym39 - if false { - } else { - r.EncodeBool(bool(x.MasqueradeAll)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym41 := z.EncBinary() - _ = yym41 - 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) - yym42 := z.EncBinary() - _ = yym42 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Master)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.OOMScoreAdj == nil { - r.EncodeNil() - } else { - yy44 := *x.OOMScoreAdj - yym45 := z.EncBinary() - _ = yym45 - if false { - } else { - r.EncodeInt(int64(yy44)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OOMScoreAdj == nil { - r.EncodeNil() - } else { - yy46 := *x.OOMScoreAdj - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeInt(int64(yy46)) - } - } - } - 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) - yym50 := z.EncBinary() - _ = yym50 - 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) - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym53 := z.EncBinary() - _ = yym53 - 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) - yym54 := z.EncBinary() - _ = yym54 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy56 := &x.UDPIdleTimeout - yym57 := z.EncBinary() - _ = yym57 - if false { - } else if z.HasExtensions() && z.EncExt(yy56) { - } else if !yym57 && z.IsJSONHandle() { - z.EncJSONMarshal(yy56) - } else { - z.EncFallback(yy56) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("udpTimeoutMilliseconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy58 := &x.UDPIdleTimeout - yym59 := z.EncBinary() - _ = yym59 - if false { - } else if z.HasExtensions() && z.EncExt(yy58) { - } else if !yym59 && z.IsJSONHandle() { - z.EncJSONMarshal(yy58) - } else { - z.EncFallback(yy58) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym61 := z.EncBinary() - _ = yym61 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMax)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMax")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym62 := z.EncBinary() - _ = yym62 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMax)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMaxPerCore)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMaxPerCore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMaxPerCore)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMin)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackMin")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeInt(int64(x.ConntrackMin)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy70 := &x.ConntrackTCPEstablishedTimeout - yym71 := z.EncBinary() - _ = yym71 - if false { - } else if z.HasExtensions() && z.EncExt(yy70) { - } else if !yym71 && z.IsJSONHandle() { - z.EncJSONMarshal(yy70) - } else { - z.EncFallback(yy70) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy72 := &x.ConntrackTCPEstablishedTimeout - yym73 := z.EncBinary() - _ = yym73 - if false { - } else if z.HasExtensions() && z.EncExt(yy72) { - } else if !yym73 && z.IsJSONHandle() { - z.EncJSONMarshal(yy72) - } else { - z.EncFallback(yy72) - } - } - 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 - yym74 := z.DecBinary() - _ = yym74 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct75 := r.ContainerType() - if yyct75 == codecSelferValueTypeMap1234 { - yyl75 := r.ReadMapStart() - if yyl75 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl75, d) - } - } else if yyct75 == codecSelferValueTypeArray1234 { - yyl75 := r.ReadArrayStart() - if yyl75 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl75, 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 yys76Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys76Slc - var yyhl76 bool = l >= 0 - for yyj76 := 0; ; yyj76++ { - if yyhl76 { - if yyj76 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys76Slc = r.DecodeBytes(yys76Slc, true, true) - yys76 := string(yys76Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys76 { - case "kind": - if 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) - } - yym85 := z.DecBinary() - _ = yym85 - if false { - } else { - *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) - } - } - case "iptablesSyncPeriodSeconds": - if r.TryDecodeAsNil() { - x.IPTablesSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv86 := &x.IPTablesSyncPeriod - yym87 := z.DecBinary() - _ = yym87 - if false { - } else if z.HasExtensions() && z.DecExt(yyv86) { - } else if !yym87 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv86) - } else { - z.DecFallback(yyv86, 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) - } - yym92 := z.DecBinary() - _ = yym92 - 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_unversioned.Duration{} - } else { - yyv96 := &x.UDPIdleTimeout - 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 "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_unversioned.Duration{} - } else { - yyv101 := &x.ConntrackTCPEstablishedTimeout - yym102 := z.DecBinary() - _ = yym102 - if false { - } else if z.HasExtensions() && z.DecExt(yyv101) { - } else if !yym102 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv101) - } else { - z.DecFallback(yyv101, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys76) - } // end switch yys76 - } // end for yyj76 - 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 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.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - 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.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - 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.BindAddress = "" - } else { - x.BindAddress = string(r.DecodeString()) - } - 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.ClusterCIDR = "" - } else { - x.ClusterCIDR = string(r.DecodeString()) - } - 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.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - 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.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - 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.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l - } else { - yyb103 = r.CheckBreak() - } - if yyb103 { - 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) - } - yym112 := z.DecBinary() - _ = yym112 - if false { - } else { - *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) - } - } - 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.IPTablesSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv113 := &x.IPTablesSyncPeriod - 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) - } - } - 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.KubeconfigPath = "" - } else { - x.KubeconfigPath = string(r.DecodeString()) - } - 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.MasqueradeAll = false - } else { - x.MasqueradeAll = bool(r.DecodeBool()) - } - 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.Master = "" - } else { - x.Master = string(r.DecodeString()) - } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l - } else { - yyb103 = r.CheckBreak() - } - if yyb103 { - 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) - } - yym119 := z.DecBinary() - _ = yym119 - if false { - } else { - *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) - } - } - 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.Mode = "" - } else { - x.Mode = ProxyMode(r.DecodeString()) - } - 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.PortRange = "" - } else { - x.PortRange = string(r.DecodeString()) - } - 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.ResourceContainer = "" - } else { - x.ResourceContainer = string(r.DecodeString()) - } - 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.UDPIdleTimeout = pkg1_unversioned.Duration{} - } else { - yyv123 := &x.UDPIdleTimeout - yym124 := z.DecBinary() - _ = yym124 - if false { - } else if z.HasExtensions() && z.DecExt(yyv123) { - } else if !yym124 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv123) - } else { - z.DecFallback(yyv123, false) - } - } - 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.ConntrackMax = 0 - } else { - x.ConntrackMax = int32(r.DecodeInt(32)) - } - 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.ConntrackMaxPerCore = 0 - } else { - x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) - } - 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.ConntrackMin = 0 - } else { - x.ConntrackMin = int32(r.DecodeInt(32)) - } - 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.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} - } else { - yyv128 := &x.ConntrackTCPEstablishedTimeout - 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 { - 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 ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym130 := z.EncBinary() - _ = yym130 - 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 - yym131 := z.DecBinary() - _ = yym131 - 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 - yym132 := z.EncBinary() - _ = yym132 - 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 - yym133 := z.DecBinary() - _ = yym133 - 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 { - yym134 := z.EncBinary() - _ = yym134 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep135 := !z.EncBinary() - yy2arr135 := z.EncBasicHandle().StructToArray - var yyq135 [112]bool - _, _, _ = yysep135, yyq135, yy2arr135 - const yyr135 bool = false - yyq135[0] = x.Kind != "" - yyq135[1] = x.APIVersion != "" - yyq135[55] = x.CloudProvider != "" - yyq135[56] = x.CloudConfigFile != "" - yyq135[57] = x.KubeletCgroups != "" - yyq135[58] = x.CgroupsPerQOS != false - yyq135[59] = x.CgroupDriver != "" - yyq135[60] = x.RuntimeCgroups != "" - yyq135[61] = x.SystemCgroups != "" - yyq135[62] = x.CgroupRoot != "" - yyq135[66] = true - yyq135[67] = x.RktPath != "" - yyq135[68] = x.ExperimentalMounterPath != "" - yyq135[69] = x.ExperimentalMounterRootfsPath != "" - yyq135[70] = x.RktAPIEndpoint != "" - yyq135[71] = x.RktStage1Image != "" - yyq135[90] = true - yyq135[91] = x.NodeIP != "" - yyq135[95] = x.EvictionHard != "" - yyq135[96] = x.EvictionSoft != "" - yyq135[97] = x.EvictionSoftGracePeriod != "" - yyq135[98] = true - yyq135[99] = x.EvictionMaxPodGracePeriod != 0 - yyq135[100] = x.EvictionMinimumReclaim != "" - yyq135[109] = len(x.AllowedUnsafeSysctls) != 0 - yyq135[111] = x.ExperimentalRuntimeIntegrationType != "" - var yynn135 int - if yyr135 || yy2arr135 { - r.EncodeArrayStart(112) - } else { - yynn135 = 86 - for _, b := range yyq135 { - if b { - yynn135++ - } - } - r.EncodeMapStart(yynn135) - yynn135 = 0 - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[0] { - yym137 := z.EncBinary() - _ = yym137 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym138 := z.EncBinary() - _ = yym138 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[1] { - yym140 := z.EncBinary() - _ = yym140 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym141 := z.EncBinary() - _ = yym141 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym143 := z.EncBinary() - _ = yym143 - 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) - yym144 := z.EncBinary() - _ = yym144 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy146 := &x.SyncFrequency - yym147 := z.EncBinary() - _ = yym147 - if false { - } else if z.HasExtensions() && z.EncExt(yy146) { - } else if !yym147 && z.IsJSONHandle() { - z.EncJSONMarshal(yy146) - } else { - z.EncFallback(yy146) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("syncFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy148 := &x.SyncFrequency - yym149 := z.EncBinary() - _ = yym149 - if false { - } else if z.HasExtensions() && z.EncExt(yy148) { - } else if !yym149 && z.IsJSONHandle() { - z.EncJSONMarshal(yy148) - } else { - z.EncFallback(yy148) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy151 := &x.FileCheckFrequency - yym152 := z.EncBinary() - _ = yym152 - if false { - } else if z.HasExtensions() && z.EncExt(yy151) { - } else if !yym152 && z.IsJSONHandle() { - z.EncJSONMarshal(yy151) - } else { - z.EncFallback(yy151) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fileCheckFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy153 := &x.FileCheckFrequency - yym154 := z.EncBinary() - _ = yym154 - if false { - } else if z.HasExtensions() && z.EncExt(yy153) { - } else if !yym154 && z.IsJSONHandle() { - z.EncJSONMarshal(yy153) - } else { - z.EncFallback(yy153) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy156 := &x.HTTPCheckFrequency - yym157 := z.EncBinary() - _ = yym157 - if false { - } else if z.HasExtensions() && z.EncExt(yy156) { - } else if !yym157 && z.IsJSONHandle() { - z.EncJSONMarshal(yy156) - } else { - z.EncFallback(yy156) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("httpCheckFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy158 := &x.HTTPCheckFrequency - yym159 := z.EncBinary() - _ = yym159 - if false { - } else if z.HasExtensions() && z.EncExt(yy158) { - } else if !yym159 && z.IsJSONHandle() { - z.EncJSONMarshal(yy158) - } else { - z.EncFallback(yy158) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym161 := z.EncBinary() - _ = yym161 - 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) - yym162 := z.EncBinary() - _ = yym162 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym164 := z.EncBinary() - _ = yym164 - 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) - yym165 := z.EncBinary() - _ = yym165 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym167 := z.EncBinary() - _ = yym167 - if false { - } else { - r.EncodeBool(bool(x.EnableServer)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableServer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym168 := z.EncBinary() - _ = yym168 - if false { - } else { - r.EncodeBool(bool(x.EnableServer)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym170 := z.EncBinary() - _ = yym170 - 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) - yym171 := z.EncBinary() - _ = yym171 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym173 := z.EncBinary() - _ = yym173 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym174 := z.EncBinary() - _ = yym174 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym176 := z.EncBinary() - _ = yym176 - if false { - } else { - r.EncodeInt(int64(x.ReadOnlyPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnlyPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym177 := z.EncBinary() - _ = yym177 - if false { - } else { - r.EncodeInt(int64(x.ReadOnlyPort)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym179 := z.EncBinary() - _ = yym179 - 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) - yym180 := z.EncBinary() - _ = yym180 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym182 := z.EncBinary() - _ = yym182 - 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) - yym183 := z.EncBinary() - _ = yym183 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym185 := z.EncBinary() - _ = yym185 - 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) - yym186 := z.EncBinary() - _ = yym186 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy188 := &x.Authentication - yy188.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("authentication")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy189 := &x.Authentication - yy189.CodecEncodeSelf(e) - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy191 := &x.Authorization - yy191.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("authorization")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy192 := &x.Authorization - yy192.CodecEncodeSelf(e) - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym194 := z.EncBinary() - _ = yym194 - 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) - yym195 := z.EncBinary() - _ = yym195 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym197 := z.EncBinary() - _ = yym197 - 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) - yym198 := z.EncBinary() - _ = yym198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym200 := z.EncBinary() - _ = yym200 - 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) - yym201 := z.EncBinary() - _ = yym201 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym203 := z.EncBinary() - _ = yym203 - 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) - yym204 := z.EncBinary() - _ = yym204 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym206 := z.EncBinary() - _ = yym206 - 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) - yym207 := z.EncBinary() - _ = yym207 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym209 := z.EncBinary() - _ = yym209 - if false { - } else { - r.EncodeBool(bool(x.AllowPrivileged)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allowPrivileged")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym210 := z.EncBinary() - _ = yym210 - if false { - } else { - r.EncodeBool(bool(x.AllowPrivileged)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostNetworkSources == nil { - r.EncodeNil() - } else { - yym212 := z.EncBinary() - _ = yym212 - 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 { - yym213 := z.EncBinary() - _ = yym213 - if false { - } else { - z.F.EncSliceStringV(x.HostNetworkSources, false, e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostPIDSources == nil { - r.EncodeNil() - } else { - yym215 := z.EncBinary() - _ = yym215 - 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 { - yym216 := z.EncBinary() - _ = yym216 - if false { - } else { - z.F.EncSliceStringV(x.HostPIDSources, false, e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.HostIPCSources == nil { - r.EncodeNil() - } else { - yym218 := z.EncBinary() - _ = yym218 - 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 { - yym219 := z.EncBinary() - _ = yym219 - if false { - } else { - z.F.EncSliceStringV(x.HostIPCSources, false, e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym221 := z.EncBinary() - _ = yym221 - if false { - } else { - r.EncodeInt(int64(x.RegistryPullQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registryPullQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym222 := z.EncBinary() - _ = yym222 - if false { - } else { - r.EncodeInt(int64(x.RegistryPullQPS)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym224 := z.EncBinary() - _ = yym224 - if false { - } else { - r.EncodeInt(int64(x.RegistryBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registryBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym225 := z.EncBinary() - _ = yym225 - if false { - } else { - r.EncodeInt(int64(x.RegistryBurst)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym227 := z.EncBinary() - _ = yym227 - if false { - } else { - r.EncodeInt(int64(x.EventRecordQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("eventRecordQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym228 := z.EncBinary() - _ = yym228 - if false { - } else { - r.EncodeInt(int64(x.EventRecordQPS)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym230 := z.EncBinary() - _ = yym230 - if false { - } else { - r.EncodeInt(int64(x.EventBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("eventBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym231 := z.EncBinary() - _ = yym231 - if false { - } else { - r.EncodeInt(int64(x.EventBurst)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym233 := z.EncBinary() - _ = yym233 - if false { - } else { - r.EncodeBool(bool(x.EnableDebuggingHandlers)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableDebuggingHandlers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym234 := z.EncBinary() - _ = yym234 - if false { - } else { - r.EncodeBool(bool(x.EnableDebuggingHandlers)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy236 := &x.MinimumGCAge - yym237 := z.EncBinary() - _ = yym237 - if false { - } else if z.HasExtensions() && z.EncExt(yy236) { - } else if !yym237 && z.IsJSONHandle() { - z.EncJSONMarshal(yy236) - } else { - z.EncFallback(yy236) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumGCAge")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy238 := &x.MinimumGCAge - yym239 := z.EncBinary() - _ = yym239 - if false { - } else if z.HasExtensions() && z.EncExt(yy238) { - } else if !yym239 && z.IsJSONHandle() { - z.EncJSONMarshal(yy238) - } else { - z.EncFallback(yy238) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym241 := z.EncBinary() - _ = yym241 - if false { - } else { - r.EncodeInt(int64(x.MaxPerPodContainerCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxPerPodContainerCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym242 := z.EncBinary() - _ = yym242 - if false { - } else { - r.EncodeInt(int64(x.MaxPerPodContainerCount)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym244 := z.EncBinary() - _ = yym244 - if false { - } else { - r.EncodeInt(int64(x.MaxContainerCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxContainerCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym245 := z.EncBinary() - _ = yym245 - if false { - } else { - r.EncodeInt(int64(x.MaxContainerCount)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym247 := z.EncBinary() - _ = yym247 - if false { - } else { - r.EncodeInt(int64(x.CAdvisorPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cAdvisorPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym248 := z.EncBinary() - _ = yym248 - if false { - } else { - r.EncodeInt(int64(x.CAdvisorPort)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym250 := z.EncBinary() - _ = yym250 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym251 := z.EncBinary() - _ = yym251 - if false { - } else { - r.EncodeInt(int64(x.HealthzPort)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym253 := z.EncBinary() - _ = yym253 - 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) - yym254 := z.EncBinary() - _ = yym254 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym256 := z.EncBinary() - _ = yym256 - if false { - } else { - r.EncodeInt(int64(x.OOMScoreAdj)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym257 := z.EncBinary() - _ = yym257 - if false { - } else { - r.EncodeInt(int64(x.OOMScoreAdj)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym259 := z.EncBinary() - _ = yym259 - if false { - } else { - r.EncodeBool(bool(x.RegisterNode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerNode")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym260 := z.EncBinary() - _ = yym260 - if false { - } else { - r.EncodeBool(bool(x.RegisterNode)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym262 := z.EncBinary() - _ = yym262 - 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) - yym263 := z.EncBinary() - _ = yym263 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym265 := z.EncBinary() - _ = yym265 - 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) - yym266 := z.EncBinary() - _ = yym266 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym268 := z.EncBinary() - _ = yym268 - 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) - yym269 := z.EncBinary() - _ = yym269 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy271 := &x.StreamingConnectionIdleTimeout - yym272 := z.EncBinary() - _ = yym272 - if false { - } else if z.HasExtensions() && z.EncExt(yy271) { - } else if !yym272 && z.IsJSONHandle() { - z.EncJSONMarshal(yy271) - } else { - z.EncFallback(yy271) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("streamingConnectionIdleTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy273 := &x.StreamingConnectionIdleTimeout - yym274 := z.EncBinary() - _ = yym274 - if false { - } else if z.HasExtensions() && z.EncExt(yy273) { - } else if !yym274 && z.IsJSONHandle() { - z.EncJSONMarshal(yy273) - } else { - z.EncFallback(yy273) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy276 := &x.NodeStatusUpdateFrequency - yym277 := z.EncBinary() - _ = yym277 - if false { - } else if z.HasExtensions() && z.EncExt(yy276) { - } else if !yym277 && z.IsJSONHandle() { - z.EncJSONMarshal(yy276) - } else { - z.EncFallback(yy276) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeStatusUpdateFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy278 := &x.NodeStatusUpdateFrequency - yym279 := z.EncBinary() - _ = yym279 - if false { - } else if z.HasExtensions() && z.EncExt(yy278) { - } else if !yym279 && z.IsJSONHandle() { - z.EncJSONMarshal(yy278) - } else { - z.EncFallback(yy278) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy281 := &x.ImageMinimumGCAge - yym282 := z.EncBinary() - _ = yym282 - if false { - } else if z.HasExtensions() && z.EncExt(yy281) { - } else if !yym282 && z.IsJSONHandle() { - z.EncJSONMarshal(yy281) - } else { - z.EncFallback(yy281) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageMinimumGCAge")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy283 := &x.ImageMinimumGCAge - yym284 := z.EncBinary() - _ = yym284 - if false { - } else if z.HasExtensions() && z.EncExt(yy283) { - } else if !yym284 && z.IsJSONHandle() { - z.EncJSONMarshal(yy283) - } else { - z.EncFallback(yy283) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym286 := z.EncBinary() - _ = yym286 - if false { - } else { - r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageGCHighThresholdPercent")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym287 := z.EncBinary() - _ = yym287 - if false { - } else { - r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym289 := z.EncBinary() - _ = yym289 - if false { - } else { - r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("imageGCLowThresholdPercent")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym290 := z.EncBinary() - _ = yym290 - if false { - } else { - r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym292 := z.EncBinary() - _ = yym292 - if false { - } else { - r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lowDiskSpaceThresholdMB")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym293 := z.EncBinary() - _ = yym293 - if false { - } else { - r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy295 := &x.VolumeStatsAggPeriod - yym296 := z.EncBinary() - _ = yym296 - if false { - } else if z.HasExtensions() && z.EncExt(yy295) { - } else if !yym296 && z.IsJSONHandle() { - z.EncJSONMarshal(yy295) - } else { - z.EncFallback(yy295) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeStatsAggPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy297 := &x.VolumeStatsAggPeriod - yym298 := z.EncBinary() - _ = yym298 - if false { - } else if z.HasExtensions() && z.EncExt(yy297) { - } else if !yym298 && z.IsJSONHandle() { - z.EncJSONMarshal(yy297) - } else { - z.EncFallback(yy297) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym300 := z.EncBinary() - _ = yym300 - 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) - yym301 := z.EncBinary() - _ = yym301 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym303 := z.EncBinary() - _ = yym303 - if false { - } else { - r.EncodeInt(int64(x.NetworkPluginMTU)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("networkPluginMTU")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym304 := z.EncBinary() - _ = yym304 - if false { - } else { - r.EncodeInt(int64(x.NetworkPluginMTU)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym306 := z.EncBinary() - _ = yym306 - 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) - yym307 := z.EncBinary() - _ = yym307 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym309 := z.EncBinary() - _ = yym309 - 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) - yym310 := z.EncBinary() - _ = yym310 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIConfDir)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym312 := z.EncBinary() - _ = yym312 - 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) - yym313 := z.EncBinary() - _ = yym313 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CNIBinDir)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym315 := z.EncBinary() - _ = yym315 - 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) - yym316 := z.EncBinary() - _ = yym316 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[55] { - yym318 := z.EncBinary() - _ = yym318 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[55] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym319 := z.EncBinary() - _ = yym319 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[56] { - yym321 := z.EncBinary() - _ = yym321 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[56] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym322 := z.EncBinary() - _ = yym322 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[57] { - yym324 := z.EncBinary() - _ = yym324 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[57] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym325 := z.EncBinary() - _ = yym325 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[58] { - yym327 := z.EncBinary() - _ = yym327 - if false { - } else { - r.EncodeBool(bool(x.CgroupsPerQOS)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq135[58] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupsPerQOS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym328 := z.EncBinary() - _ = yym328 - if false { - } else { - r.EncodeBool(bool(x.CgroupsPerQOS)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[59] { - yym330 := z.EncBinary() - _ = yym330 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[59] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupDriver")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym331 := z.EncBinary() - _ = yym331 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[60] { - yym333 := z.EncBinary() - _ = yym333 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[60] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym334 := z.EncBinary() - _ = yym334 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[61] { - yym336 := z.EncBinary() - _ = yym336 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[61] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym337 := z.EncBinary() - _ = yym337 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[62] { - yym339 := z.EncBinary() - _ = yym339 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[62] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym340 := z.EncBinary() - _ = yym340 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym342 := z.EncBinary() - _ = yym342 - 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) - yym343 := z.EncBinary() - _ = yym343 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym345 := z.EncBinary() - _ = yym345 - 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) - yym346 := z.EncBinary() - _ = yym346 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym348 := z.EncBinary() - _ = yym348 - 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) - yym349 := z.EncBinary() - _ = yym349 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[66] { - yy351 := &x.RuntimeRequestTimeout - yym352 := z.EncBinary() - _ = yym352 - if false { - } else if z.HasExtensions() && z.EncExt(yy351) { - } else if !yym352 && z.IsJSONHandle() { - z.EncJSONMarshal(yy351) - } else { - z.EncFallback(yy351) - } - } else { - r.EncodeNil() - } - } else { - if yyq135[66] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy353 := &x.RuntimeRequestTimeout - yym354 := z.EncBinary() - _ = yym354 - if false { - } else if z.HasExtensions() && z.EncExt(yy353) { - } else if !yym354 && z.IsJSONHandle() { - z.EncJSONMarshal(yy353) - } else { - z.EncFallback(yy353) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[67] { - yym356 := z.EncBinary() - _ = yym356 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[67] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym357 := z.EncBinary() - _ = yym357 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[68] { - yym359 := z.EncBinary() - _ = yym359 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[68] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalMounterPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym360 := z.EncBinary() - _ = yym360 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[69] { - yym362 := z.EncBinary() - _ = yym362 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterRootfsPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[69] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalMounterRootfsPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym363 := z.EncBinary() - _ = yym363 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterRootfsPath)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[70] { - yym365 := z.EncBinary() - _ = yym365 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[70] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym366 := z.EncBinary() - _ = yym366 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[71] { - yym368 := z.EncBinary() - _ = yym368 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[71] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym369 := z.EncBinary() - _ = yym369 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym371 := z.EncBinary() - _ = yym371 - 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) - yym372 := z.EncBinary() - _ = yym372 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym374 := z.EncBinary() - _ = yym374 - if false { - } else { - r.EncodeBool(bool(x.ExitOnLockContention)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym375 := z.EncBinary() - _ = yym375 - if false { - } else { - r.EncodeBool(bool(x.ExitOnLockContention)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym377 := z.EncBinary() - _ = yym377 - 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) - yym378 := z.EncBinary() - _ = yym378 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym380 := z.EncBinary() - _ = yym380 - if false { - } else { - r.EncodeBool(bool(x.BabysitDaemons)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym381 := z.EncBinary() - _ = yym381 - if false { - } else { - r.EncodeBool(bool(x.BabysitDaemons)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym383 := z.EncBinary() - _ = yym383 - if false { - } else { - r.EncodeInt(int64(x.MaxPods)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym384 := z.EncBinary() - _ = yym384 - if false { - } else { - r.EncodeInt(int64(x.MaxPods)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym386 := z.EncBinary() - _ = yym386 - if false { - } else { - r.EncodeInt(int64(x.NvidiaGPUs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym387 := z.EncBinary() - _ = yym387 - if false { - } else { - r.EncodeInt(int64(x.NvidiaGPUs)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym389 := z.EncBinary() - _ = yym389 - 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) - yym390 := z.EncBinary() - _ = yym390 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym392 := z.EncBinary() - _ = yym392 - 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) - yym393 := z.EncBinary() - _ = yym393 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym395 := z.EncBinary() - _ = yym395 - 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) - yym396 := z.EncBinary() - _ = yym396 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym398 := z.EncBinary() - _ = yym398 - if false { - } else { - r.EncodeBool(bool(x.CPUCFSQuota)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym399 := z.EncBinary() - _ = yym399 - if false { - } else { - r.EncodeBool(bool(x.CPUCFSQuota)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym401 := z.EncBinary() - _ = yym401 - if false { - } else { - r.EncodeBool(bool(x.Containerized)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerized")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym402 := z.EncBinary() - _ = yym402 - if false { - } else { - r.EncodeBool(bool(x.Containerized)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym404 := z.EncBinary() - _ = yym404 - if false { - } else { - r.EncodeInt(int64(x.MaxOpenFiles)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym405 := z.EncBinary() - _ = yym405 - if false { - } else { - r.EncodeInt(int64(x.MaxOpenFiles)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym407 := z.EncBinary() - _ = yym407 - if false { - } else { - r.EncodeBool(bool(x.ReconcileCIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym408 := z.EncBinary() - _ = yym408 - if false { - } else { - r.EncodeBool(bool(x.ReconcileCIDR)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym410 := z.EncBinary() - _ = yym410 - if false { - } else { - r.EncodeBool(bool(x.RegisterSchedulable)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym411 := z.EncBinary() - _ = yym411 - if false { - } else { - r.EncodeBool(bool(x.RegisterSchedulable)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym413 := z.EncBinary() - _ = yym413 - 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) - yym414 := z.EncBinary() - _ = yym414 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym416 := z.EncBinary() - _ = yym416 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym417 := z.EncBinary() - _ = yym417 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIQPS)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym419 := z.EncBinary() - _ = yym419 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym420 := z.EncBinary() - _ = yym420 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym422 := z.EncBinary() - _ = yym422 - if false { - } else { - r.EncodeBool(bool(x.SerializeImagePulls)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym423 := z.EncBinary() - _ = yym423 - if false { - } else { - r.EncodeBool(bool(x.SerializeImagePulls)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[90] { - yy425 := &x.OutOfDiskTransitionFrequency - yym426 := z.EncBinary() - _ = yym426 - if false { - } else if z.HasExtensions() && z.EncExt(yy425) { - } else if !yym426 && z.IsJSONHandle() { - z.EncJSONMarshal(yy425) - } else { - z.EncFallback(yy425) - } - } else { - r.EncodeNil() - } - } else { - if yyq135[90] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy427 := &x.OutOfDiskTransitionFrequency - yym428 := z.EncBinary() - _ = yym428 - if false { - } else if z.HasExtensions() && z.EncExt(yy427) { - } else if !yym428 && z.IsJSONHandle() { - z.EncJSONMarshal(yy427) - } else { - z.EncFallback(yy427) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[91] { - yym430 := z.EncBinary() - _ = yym430 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[91] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeIP")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym431 := z.EncBinary() - _ = yym431 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.NodeLabels == nil { - r.EncodeNil() - } else { - yym433 := z.EncBinary() - _ = yym433 - 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 { - yym434 := z.EncBinary() - _ = yym434 - if false { - } else { - z.F.EncMapStringStringV(x.NodeLabels, false, e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym436 := z.EncBinary() - _ = yym436 - 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) - yym437 := z.EncBinary() - _ = yym437 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym439 := z.EncBinary() - _ = yym439 - if false { - } else { - r.EncodeBool(bool(x.EnableCustomMetrics)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym440 := z.EncBinary() - _ = yym440 - if false { - } else { - r.EncodeBool(bool(x.EnableCustomMetrics)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[95] { - yym442 := z.EncBinary() - _ = yym442 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[95] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionHard")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym443 := z.EncBinary() - _ = yym443 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[96] { - yym445 := z.EncBinary() - _ = yym445 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[96] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym446 := z.EncBinary() - _ = yym446 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[97] { - yym448 := z.EncBinary() - _ = yym448 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[97] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym449 := z.EncBinary() - _ = yym449 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[98] { - yy451 := &x.EvictionPressureTransitionPeriod - yym452 := z.EncBinary() - _ = yym452 - if false { - } else if z.HasExtensions() && z.EncExt(yy451) { - } else if !yym452 && z.IsJSONHandle() { - z.EncJSONMarshal(yy451) - } else { - z.EncFallback(yy451) - } - } else { - r.EncodeNil() - } - } else { - if yyq135[98] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy453 := &x.EvictionPressureTransitionPeriod - yym454 := z.EncBinary() - _ = yym454 - if false { - } else if z.HasExtensions() && z.EncExt(yy453) { - } else if !yym454 && z.IsJSONHandle() { - z.EncJSONMarshal(yy453) - } else { - z.EncFallback(yy453) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[99] { - yym456 := z.EncBinary() - _ = yym456 - if false { - } else { - r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq135[99] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym457 := z.EncBinary() - _ = yym457 - if false { - } else { - r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[100] { - yym459 := z.EncBinary() - _ = yym459 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[100] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionMinimumReclaim")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym460 := z.EncBinary() - _ = yym460 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym462 := z.EncBinary() - _ = yym462 - if false { - } else { - r.EncodeInt(int64(x.PodsPerCore)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podsPerCore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym463 := z.EncBinary() - _ = yym463 - if false { - } else { - r.EncodeInt(int64(x.PodsPerCore)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym465 := z.EncBinary() - _ = yym465 - if false { - } else { - r.EncodeBool(bool(x.EnableControllerAttachDetach)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym466 := z.EncBinary() - _ = yym466 - if false { - } else { - r.EncodeBool(bool(x.EnableControllerAttachDetach)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.SystemReserved == nil { - r.EncodeNil() - } else { - yym468 := z.EncBinary() - _ = yym468 - if false { - } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { - } else { - h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.SystemReserved), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemReserved")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SystemReserved == nil { - r.EncodeNil() - } else { - yym469 := z.EncBinary() - _ = yym469 - if false { - } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { - } else { - h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.SystemReserved), e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.KubeReserved == nil { - r.EncodeNil() - } else { - yym471 := z.EncBinary() - _ = yym471 - if false { - } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { - } else { - h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.KubeReserved), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeReserved")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.KubeReserved == nil { - r.EncodeNil() - } else { - yym472 := z.EncBinary() - _ = yym472 - if false { - } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { - } else { - h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.KubeReserved), e) - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym474 := z.EncBinary() - _ = yym474 - if false { - } else { - r.EncodeBool(bool(x.ProtectKernelDefaults)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("protectKernelDefaults")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym475 := z.EncBinary() - _ = yym475 - if false { - } else { - r.EncodeBool(bool(x.ProtectKernelDefaults)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym477 := z.EncBinary() - _ = yym477 - if false { - } else { - r.EncodeBool(bool(x.MakeIPTablesUtilChains)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("makeIPTablesUtilChains")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym478 := z.EncBinary() - _ = yym478 - if false { - } else { - r.EncodeBool(bool(x.MakeIPTablesUtilChains)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym480 := z.EncBinary() - _ = yym480 - if false { - } else { - r.EncodeInt(int64(x.IPTablesMasqueradeBit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym481 := z.EncBinary() - _ = yym481 - if false { - } else { - r.EncodeInt(int64(x.IPTablesMasqueradeBit)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym483 := z.EncBinary() - _ = yym483 - if false { - } else { - r.EncodeInt(int64(x.IPTablesDropBit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iptablesDropBit")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym484 := z.EncBinary() - _ = yym484 - if false { - } else { - r.EncodeInt(int64(x.IPTablesDropBit)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[109] { - if x.AllowedUnsafeSysctls == nil { - r.EncodeNil() - } else { - yym486 := z.EncBinary() - _ = yym486 - if false { - } else { - z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq135[109] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalAllowedUnsafeSysctls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.AllowedUnsafeSysctls == nil { - r.EncodeNil() - } else { - yym487 := z.EncBinary() - _ = yym487 - if false { - } else { - z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) - } - } - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym489 := z.EncBinary() - _ = yym489 - 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) - yym490 := z.EncBinary() - _ = yym490 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FeatureGates)) - } - } - if yyr135 || yy2arr135 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq135[111] { - yym492 := z.EncBinary() - _ = yym492 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalRuntimeIntegrationType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq135[111] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("experimentalRuntimeIntegrationType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym493 := z.EncBinary() - _ = yym493 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalRuntimeIntegrationType)) - } - } - } - if yyr135 || yy2arr135 { - 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 - yym494 := z.DecBinary() - _ = yym494 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct495 := r.ContainerType() - if yyct495 == codecSelferValueTypeMap1234 { - yyl495 := r.ReadMapStart() - if yyl495 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl495, d) - } - } else if yyct495 == codecSelferValueTypeArray1234 { - yyl495 := r.ReadArrayStart() - if yyl495 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl495, 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 yys496Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys496Slc - var yyhl496 bool = l >= 0 - for yyj496 := 0; ; yyj496++ { - if yyhl496 { - if yyj496 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys496Slc = r.DecodeBytes(yys496Slc, true, true) - yys496 := string(yys496Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys496 { - case "kind": - if 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_unversioned.Duration{} - } else { - yyv500 := &x.SyncFrequency - yym501 := z.DecBinary() - _ = yym501 - if false { - } else if z.HasExtensions() && z.DecExt(yyv500) { - } else if !yym501 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv500) - } else { - z.DecFallback(yyv500, false) - } - } - case "fileCheckFrequency": - if r.TryDecodeAsNil() { - x.FileCheckFrequency = pkg1_unversioned.Duration{} - } else { - yyv502 := &x.FileCheckFrequency - yym503 := z.DecBinary() - _ = yym503 - if false { - } else if z.HasExtensions() && z.DecExt(yyv502) { - } else if !yym503 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv502) - } else { - z.DecFallback(yyv502, false) - } - } - case "httpCheckFrequency": - if r.TryDecodeAsNil() { - x.HTTPCheckFrequency = pkg1_unversioned.Duration{} - } else { - yyv504 := &x.HTTPCheckFrequency - yym505 := z.DecBinary() - _ = yym505 - if false { - } else if z.HasExtensions() && z.DecExt(yyv504) { - } else if !yym505 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv504) - } else { - z.DecFallback(yyv504, 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 { - yyv515 := &x.Authentication - yyv515.CodecDecodeSelf(d) - } - case "authorization": - if r.TryDecodeAsNil() { - x.Authorization = KubeletAuthorization{} - } else { - yyv516 := &x.Authorization - yyv516.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 { - yyv523 := &x.HostNetworkSources - yym524 := z.DecBinary() - _ = yym524 - if false { - } else { - z.F.DecSliceStringX(yyv523, false, d) - } - } - case "hostPIDSources": - if r.TryDecodeAsNil() { - x.HostPIDSources = nil - } else { - yyv525 := &x.HostPIDSources - yym526 := z.DecBinary() - _ = yym526 - if false { - } else { - z.F.DecSliceStringX(yyv525, false, d) - } - } - case "hostIPCSources": - if r.TryDecodeAsNil() { - x.HostIPCSources = nil - } else { - yyv527 := &x.HostIPCSources - yym528 := z.DecBinary() - _ = yym528 - if false { - } else { - z.F.DecSliceStringX(yyv527, 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_unversioned.Duration{} - } else { - yyv534 := &x.MinimumGCAge - 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 "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_unversioned.Duration{} - } else { - yyv546 := &x.StreamingConnectionIdleTimeout - yym547 := z.DecBinary() - _ = yym547 - if false { - } else if z.HasExtensions() && z.DecExt(yyv546) { - } else if !yym547 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv546) - } else { - z.DecFallback(yyv546, false) - } - } - case "nodeStatusUpdateFrequency": - if r.TryDecodeAsNil() { - x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} - } else { - yyv548 := &x.NodeStatusUpdateFrequency - yym549 := z.DecBinary() - _ = yym549 - if false { - } else if z.HasExtensions() && z.DecExt(yyv548) { - } else if !yym549 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv548) - } else { - z.DecFallback(yyv548, false) - } - } - case "imageMinimumGCAge": - if r.TryDecodeAsNil() { - x.ImageMinimumGCAge = pkg1_unversioned.Duration{} - } else { - yyv550 := &x.ImageMinimumGCAge - yym551 := z.DecBinary() - _ = yym551 - if false { - } else if z.HasExtensions() && z.DecExt(yyv550) { - } else if !yym551 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv550) - } else { - z.DecFallback(yyv550, 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_unversioned.Duration{} - } else { - yyv555 := &x.VolumeStatsAggPeriod - yym556 := z.DecBinary() - _ = yym556 - if false { - } else if z.HasExtensions() && z.DecExt(yyv555) { - } else if !yym556 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv555) - } else { - z.DecFallback(yyv555, 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 "cgroupsPerQOS": - if r.TryDecodeAsNil() { - x.CgroupsPerQOS = false - } else { - x.CgroupsPerQOS = 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_unversioned.Duration{} - } else { - yyv574 := &x.RuntimeRequestTimeout - yym575 := z.DecBinary() - _ = yym575 - if false { - } else if z.HasExtensions() && z.DecExt(yyv574) { - } else if !yym575 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv574) - } else { - z.DecFallback(yyv574, 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 "experimentalMounterRootfsPath": - if r.TryDecodeAsNil() { - x.ExperimentalMounterRootfsPath = "" - } else { - x.ExperimentalMounterRootfsPath = 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 "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_unversioned.Duration{} - } else { - yyv599 := &x.OutOfDiskTransitionFrequency - yym600 := z.DecBinary() - _ = yym600 - if false { - } else if z.HasExtensions() && z.DecExt(yyv599) { - } else if !yym600 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv599) - } else { - z.DecFallback(yyv599, false) - } - } - case "nodeIP": - if r.TryDecodeAsNil() { - x.NodeIP = "" - } else { - x.NodeIP = string(r.DecodeString()) - } - case "nodeLabels": - if r.TryDecodeAsNil() { - x.NodeLabels = nil - } else { - yyv602 := &x.NodeLabels - yym603 := z.DecBinary() - _ = yym603 - if false { - } else { - z.F.DecMapStringStringX(yyv602, 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_unversioned.Duration{} - } else { - yyv609 := &x.EvictionPressureTransitionPeriod - yym610 := z.DecBinary() - _ = yym610 - if false { - } else if z.HasExtensions() && z.DecExt(yyv609) { - } else if !yym610 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv609) - } else { - z.DecFallback(yyv609, 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 "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 { - yyv615 := &x.SystemReserved - yym616 := z.DecBinary() - _ = yym616 - if false { - } else if z.HasExtensions() && z.DecExt(yyv615) { - } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv615), d) - } - } - case "kubeReserved": - if r.TryDecodeAsNil() { - x.KubeReserved = nil - } else { - yyv617 := &x.KubeReserved - yym618 := z.DecBinary() - _ = yym618 - if false { - } else if z.HasExtensions() && z.DecExt(yyv617) { - } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv617), 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 { - yyv623 := &x.AllowedUnsafeSysctls - yym624 := z.DecBinary() - _ = yym624 - if false { - } else { - z.F.DecSliceStringX(yyv623, false, d) - } - } - case "featureGates": - if r.TryDecodeAsNil() { - x.FeatureGates = "" - } else { - x.FeatureGates = string(r.DecodeString()) - } - case "experimentalRuntimeIntegrationType": - if r.TryDecodeAsNil() { - x.ExperimentalRuntimeIntegrationType = "" - } else { - x.ExperimentalRuntimeIntegrationType = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys496) - } // end switch yys496 - } // end for yyj496 - 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 yyj627 int - var yyb627 bool - var yyhl627 bool = l >= 0 - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodManifestPath = "" - } else { - x.PodManifestPath = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SyncFrequency = pkg1_unversioned.Duration{} - } else { - yyv631 := &x.SyncFrequency - yym632 := z.DecBinary() - _ = yym632 - if false { - } else if z.HasExtensions() && z.DecExt(yyv631) { - } else if !yym632 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv631) - } else { - z.DecFallback(yyv631, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FileCheckFrequency = pkg1_unversioned.Duration{} - } else { - yyv633 := &x.FileCheckFrequency - yym634 := z.DecBinary() - _ = yym634 - if false { - } else if z.HasExtensions() && z.DecExt(yyv633) { - } else if !yym634 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv633) - } else { - z.DecFallback(yyv633, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HTTPCheckFrequency = pkg1_unversioned.Duration{} - } else { - yyv635 := &x.HTTPCheckFrequency - yym636 := z.DecBinary() - _ = yym636 - if false { - } else if z.HasExtensions() && z.DecExt(yyv635) { - } else if !yym636 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv635) - } else { - z.DecFallback(yyv635, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ManifestURL = "" - } else { - x.ManifestURL = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ManifestURLHeader = "" - } else { - x.ManifestURLHeader = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableServer = false - } else { - x.EnableServer = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnlyPort = 0 - } else { - x.ReadOnlyPort = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLSCertFile = "" - } else { - x.TLSCertFile = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLSPrivateKeyFile = "" - } else { - x.TLSPrivateKeyFile = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CertDirectory = "" - } else { - x.CertDirectory = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authentication = KubeletAuthentication{} - } else { - yyv646 := &x.Authentication - yyv646.CodecDecodeSelf(d) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Authorization = KubeletAuthorization{} - } else { - yyv647 := &x.Authorization - yyv647.CodecDecodeSelf(d) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostnameOverride = "" - } else { - x.HostnameOverride = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodInfraContainerImage = "" - } else { - x.PodInfraContainerImage = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DockerEndpoint = "" - } else { - x.DockerEndpoint = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RootDirectory = "" - } else { - x.RootDirectory = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SeccompProfileRoot = "" - } else { - x.SeccompProfileRoot = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllowPrivileged = false - } else { - x.AllowPrivileged = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostNetworkSources = nil - } else { - yyv654 := &x.HostNetworkSources - yym655 := z.DecBinary() - _ = yym655 - if false { - } else { - z.F.DecSliceStringX(yyv654, false, d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostPIDSources = nil - } else { - yyv656 := &x.HostPIDSources - yym657 := z.DecBinary() - _ = yym657 - if false { - } else { - z.F.DecSliceStringX(yyv656, false, d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIPCSources = nil - } else { - yyv658 := &x.HostIPCSources - yym659 := z.DecBinary() - _ = yym659 - if false { - } else { - z.F.DecSliceStringX(yyv658, false, d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegistryPullQPS = 0 - } else { - x.RegistryPullQPS = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegistryBurst = 0 - } else { - x.RegistryBurst = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EventRecordQPS = 0 - } else { - x.EventRecordQPS = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EventBurst = 0 - } else { - x.EventBurst = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableDebuggingHandlers = false - } else { - x.EnableDebuggingHandlers = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumGCAge = pkg1_unversioned.Duration{} - } else { - yyv665 := &x.MinimumGCAge - yym666 := z.DecBinary() - _ = yym666 - if false { - } else if z.HasExtensions() && z.DecExt(yyv665) { - } else if !yym666 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv665) - } else { - z.DecFallback(yyv665, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxPerPodContainerCount = 0 - } else { - x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxContainerCount = 0 - } else { - x.MaxContainerCount = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CAdvisorPort = 0 - } else { - x.CAdvisorPort = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzPort = 0 - } else { - x.HealthzPort = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HealthzBindAddress = "" - } else { - x.HealthzBindAddress = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OOMScoreAdj = 0 - } else { - x.OOMScoreAdj = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterNode = false - } else { - x.RegisterNode = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterDomain = "" - } else { - x.ClusterDomain = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MasterServiceNamespace = "" - } else { - x.MasterServiceNamespace = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClusterDNS = "" - } else { - x.ClusterDNS = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} - } else { - yyv677 := &x.StreamingConnectionIdleTimeout - yym678 := z.DecBinary() - _ = yym678 - if false { - } else if z.HasExtensions() && z.DecExt(yyv677) { - } else if !yym678 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv677) - } else { - z.DecFallback(yyv677, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} - } else { - yyv679 := &x.NodeStatusUpdateFrequency - yym680 := z.DecBinary() - _ = yym680 - if false { - } else if z.HasExtensions() && z.DecExt(yyv679) { - } else if !yym680 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv679) - } else { - z.DecFallback(yyv679, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageMinimumGCAge = pkg1_unversioned.Duration{} - } else { - yyv681 := &x.ImageMinimumGCAge - yym682 := z.DecBinary() - _ = yym682 - if false { - } else if z.HasExtensions() && z.DecExt(yyv681) { - } else if !yym682 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv681) - } else { - z.DecFallback(yyv681, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageGCHighThresholdPercent = 0 - } else { - x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImageGCLowThresholdPercent = 0 - } else { - x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LowDiskSpaceThresholdMB = 0 - } else { - x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} - } else { - yyv686 := &x.VolumeStatsAggPeriod - yym687 := z.DecBinary() - _ = yym687 - if false { - } else if z.HasExtensions() && z.DecExt(yyv686) { - } else if !yym687 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv686) - } else { - z.DecFallback(yyv686, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginName = "" - } else { - x.NetworkPluginName = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginMTU = 0 - } else { - x.NetworkPluginMTU = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NetworkPluginDir = "" - } else { - x.NetworkPluginDir = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CNIConfDir = "" - } else { - x.CNIConfDir = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CNIBinDir = "" - } else { - x.CNIBinDir = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumePluginDir = "" - } else { - x.VolumePluginDir = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudProvider = "" - } else { - x.CloudProvider = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CloudConfigFile = "" - } else { - x.CloudConfigFile = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeletCgroups = "" - } else { - x.KubeletCgroups = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CgroupsPerQOS = false - } else { - x.CgroupsPerQOS = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CgroupDriver = "" - } else { - x.CgroupDriver = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RuntimeCgroups = "" - } else { - x.RuntimeCgroups = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SystemCgroups = "" - } else { - x.SystemCgroups = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CgroupRoot = "" - } else { - x.CgroupRoot = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerRuntime = "" - } else { - x.ContainerRuntime = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RemoteRuntimeEndpoint = "" - } else { - x.RemoteRuntimeEndpoint = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RemoteImageEndpoint = "" - } else { - x.RemoteImageEndpoint = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RuntimeRequestTimeout = pkg1_unversioned.Duration{} - } else { - yyv705 := &x.RuntimeRequestTimeout - yym706 := z.DecBinary() - _ = yym706 - if false { - } else if z.HasExtensions() && z.DecExt(yyv705) { - } else if !yym706 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv705) - } else { - z.DecFallback(yyv705, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktPath = "" - } else { - x.RktPath = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalMounterPath = "" - } else { - x.ExperimentalMounterPath = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalMounterRootfsPath = "" - } else { - x.ExperimentalMounterRootfsPath = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktAPIEndpoint = "" - } else { - x.RktAPIEndpoint = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RktStage1Image = "" - } else { - x.RktStage1Image = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LockFilePath = "" - } else { - x.LockFilePath = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExitOnLockContention = false - } else { - x.ExitOnLockContention = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HairpinMode = "" - } else { - x.HairpinMode = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.BabysitDaemons = false - } else { - x.BabysitDaemons = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxPods = 0 - } else { - x.MaxPods = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NvidiaGPUs = 0 - } else { - x.NvidiaGPUs = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DockerExecHandlerName = "" - } else { - x.DockerExecHandlerName = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodCIDR = "" - } else { - x.PodCIDR = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResolverConfig = "" - } else { - x.ResolverConfig = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CPUCFSQuota = false - } else { - x.CPUCFSQuota = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Containerized = false - } else { - x.Containerized = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxOpenFiles = 0 - } else { - x.MaxOpenFiles = int64(r.DecodeInt(64)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReconcileCIDR = false - } else { - x.ReconcileCIDR = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RegisterSchedulable = false - } else { - x.RegisterSchedulable = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SerializeImagePulls = false - } else { - x.SerializeImagePulls = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} - } else { - yyv730 := &x.OutOfDiskTransitionFrequency - yym731 := z.DecBinary() - _ = yym731 - if false { - } else if z.HasExtensions() && z.DecExt(yyv730) { - } else if !yym731 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv730) - } else { - z.DecFallback(yyv730, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeIP = "" - } else { - x.NodeIP = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeLabels = nil - } else { - yyv733 := &x.NodeLabels - yym734 := z.DecBinary() - _ = yym734 - if false { - } else { - z.F.DecMapStringStringX(yyv733, false, d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NonMasqueradeCIDR = "" - } else { - x.NonMasqueradeCIDR = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableCustomMetrics = false - } else { - x.EnableCustomMetrics = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionHard = "" - } else { - x.EvictionHard = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionSoft = "" - } else { - x.EvictionSoft = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionSoftGracePeriod = "" - } else { - x.EvictionSoftGracePeriod = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} - } else { - yyv740 := &x.EvictionPressureTransitionPeriod - yym741 := z.DecBinary() - _ = yym741 - if false { - } else if z.HasExtensions() && z.DecExt(yyv740) { - } else if !yym741 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv740) - } else { - z.DecFallback(yyv740, false) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionMaxPodGracePeriod = 0 - } else { - x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionMinimumReclaim = "" - } else { - x.EvictionMinimumReclaim = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodsPerCore = 0 - } else { - x.PodsPerCore = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableControllerAttachDetach = false - } else { - x.EnableControllerAttachDetach = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SystemReserved = nil - } else { - yyv746 := &x.SystemReserved - yym747 := z.DecBinary() - _ = yym747 - if false { - } else if z.HasExtensions() && z.DecExt(yyv746) { - } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv746), d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeReserved = nil - } else { - yyv748 := &x.KubeReserved - yym749 := z.DecBinary() - _ = yym749 - if false { - } else if z.HasExtensions() && z.DecExt(yyv748) { - } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv748), d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ProtectKernelDefaults = false - } else { - x.ProtectKernelDefaults = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MakeIPTablesUtilChains = false - } else { - x.MakeIPTablesUtilChains = bool(r.DecodeBool()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesMasqueradeBit = 0 - } else { - x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IPTablesDropBit = 0 - } else { - x.IPTablesDropBit = int32(r.DecodeInt(32)) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AllowedUnsafeSysctls = nil - } else { - yyv754 := &x.AllowedUnsafeSysctls - yym755 := z.DecBinary() - _ = yym755 - if false { - } else { - z.F.DecSliceStringX(yyv754, false, d) - } - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FeatureGates = "" - } else { - x.FeatureGates = string(r.DecodeString()) - } - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ExperimentalRuntimeIntegrationType = "" - } else { - x.ExperimentalRuntimeIntegrationType = string(r.DecodeString()) - } - for { - yyj627++ - if yyhl627 { - yyb627 = yyj627 > l - } else { - yyb627 = r.CheckBreak() - } - if yyb627 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj627-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x KubeletAuthorizationMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym758 := z.EncBinary() - _ = yym758 - 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 - yym759 := z.DecBinary() - _ = yym759 - 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 { - yym760 := z.EncBinary() - _ = yym760 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep761 := !z.EncBinary() - yy2arr761 := z.EncBasicHandle().StructToArray - var yyq761 [2]bool - _, _, _ = yysep761, yyq761, yy2arr761 - const yyr761 bool = false - var yynn761 int - if yyr761 || yy2arr761 { - r.EncodeArrayStart(2) - } else { - yynn761 = 2 - for _, b := range yyq761 { - if b { - yynn761++ - } - } - r.EncodeMapStart(yynn761) - yynn761 = 0 - } - if yyr761 || yy2arr761 { - 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 yyr761 || yy2arr761 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy764 := &x.Webhook - yy764.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("webhook")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy765 := &x.Webhook - yy765.CodecEncodeSelf(e) - } - if yyr761 || yy2arr761 { - 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 - 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 *KubeletAuthorization) 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 "mode": - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = KubeletAuthorizationMode(r.DecodeString()) - } - case "webhook": - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthorization{} - } else { - yyv770 := &x.Webhook - yyv770.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys768) - } // end switch yys768 - } // end for yyj768 - 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 yyj771 int - var yyb771 bool - var yyhl771 bool = l >= 0 - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l - } else { - yyb771 = r.CheckBreak() - } - if yyb771 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - x.Mode = KubeletAuthorizationMode(r.DecodeString()) - } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l - } else { - yyb771 = r.CheckBreak() - } - if yyb771 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthorization{} - } else { - yyv773 := &x.Webhook - yyv773.CodecDecodeSelf(d) - } - for { - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l - } else { - yyb771 = r.CheckBreak() - } - if yyb771 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj771-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletWebhookAuthorization) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym774 := z.EncBinary() - _ = yym774 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep775 := !z.EncBinary() - yy2arr775 := z.EncBasicHandle().StructToArray - var yyq775 [2]bool - _, _, _ = yysep775, yyq775, yy2arr775 - const yyr775 bool = false - var yynn775 int - if yyr775 || yy2arr775 { - r.EncodeArrayStart(2) - } else { - yynn775 = 2 - for _, b := range yyq775 { - if b { - yynn775++ - } - } - r.EncodeMapStart(yynn775) - yynn775 = 0 - } - if yyr775 || yy2arr775 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy777 := &x.CacheAuthorizedTTL - yym778 := z.EncBinary() - _ = yym778 - if false { - } else if z.HasExtensions() && z.EncExt(yy777) { - } else if !yym778 && z.IsJSONHandle() { - z.EncJSONMarshal(yy777) - } else { - z.EncFallback(yy777) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheAuthorizedTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy779 := &x.CacheAuthorizedTTL - yym780 := z.EncBinary() - _ = yym780 - if false { - } else if z.HasExtensions() && z.EncExt(yy779) { - } else if !yym780 && z.IsJSONHandle() { - z.EncJSONMarshal(yy779) - } else { - z.EncFallback(yy779) - } - } - if yyr775 || yy2arr775 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy782 := &x.CacheUnauthorizedTTL - yym783 := z.EncBinary() - _ = yym783 - if false { - } else if z.HasExtensions() && z.EncExt(yy782) { - } else if !yym783 && z.IsJSONHandle() { - z.EncJSONMarshal(yy782) - } else { - z.EncFallback(yy782) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheUnauthorizedTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy784 := &x.CacheUnauthorizedTTL - yym785 := z.EncBinary() - _ = yym785 - if false { - } else if z.HasExtensions() && z.EncExt(yy784) { - } else if !yym785 && z.IsJSONHandle() { - z.EncJSONMarshal(yy784) - } else { - z.EncFallback(yy784) - } - } - if yyr775 || yy2arr775 { - 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 - yym786 := z.DecBinary() - _ = yym786 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct787 := r.ContainerType() - if yyct787 == codecSelferValueTypeMap1234 { - yyl787 := r.ReadMapStart() - if yyl787 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl787, d) - } - } else if yyct787 == codecSelferValueTypeArray1234 { - yyl787 := r.ReadArrayStart() - if yyl787 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl787, 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 yys788Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys788Slc - var yyhl788 bool = l >= 0 - for yyj788 := 0; ; yyj788++ { - if yyhl788 { - if yyj788 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys788Slc = r.DecodeBytes(yys788Slc, true, true) - yys788 := string(yys788Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys788 { - case "cacheAuthorizedTTL": - if r.TryDecodeAsNil() { - x.CacheAuthorizedTTL = pkg1_unversioned.Duration{} - } else { - yyv789 := &x.CacheAuthorizedTTL - yym790 := z.DecBinary() - _ = yym790 - if false { - } else if z.HasExtensions() && z.DecExt(yyv789) { - } else if !yym790 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv789) - } else { - z.DecFallback(yyv789, false) - } - } - case "cacheUnauthorizedTTL": - if r.TryDecodeAsNil() { - x.CacheUnauthorizedTTL = pkg1_unversioned.Duration{} - } else { - yyv791 := &x.CacheUnauthorizedTTL - yym792 := z.DecBinary() - _ = yym792 - if false { - } else if z.HasExtensions() && z.DecExt(yyv791) { - } else if !yym792 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv791) - } else { - z.DecFallback(yyv791, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys788) - } // end switch yys788 - } // end for yyj788 - 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 yyj793 int - var yyb793 bool - var yyhl793 bool = l >= 0 - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l - } else { - yyb793 = r.CheckBreak() - } - if yyb793 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheAuthorizedTTL = pkg1_unversioned.Duration{} - } else { - yyv794 := &x.CacheAuthorizedTTL - yym795 := z.DecBinary() - _ = yym795 - if false { - } else if z.HasExtensions() && z.DecExt(yyv794) { - } else if !yym795 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv794) - } else { - z.DecFallback(yyv794, false) - } - } - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l - } else { - yyb793 = r.CheckBreak() - } - if yyb793 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheUnauthorizedTTL = pkg1_unversioned.Duration{} - } else { - yyv796 := &x.CacheUnauthorizedTTL - yym797 := z.DecBinary() - _ = yym797 - if false { - } else if z.HasExtensions() && z.DecExt(yyv796) { - } else if !yym797 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv796) - } else { - z.DecFallback(yyv796, false) - } - } - for { - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l - } else { - yyb793 = r.CheckBreak() - } - if yyb793 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj793-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *KubeletAuthentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym798 := z.EncBinary() - _ = yym798 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep799 := !z.EncBinary() - yy2arr799 := z.EncBasicHandle().StructToArray - var yyq799 [3]bool - _, _, _ = yysep799, yyq799, yy2arr799 - const yyr799 bool = false - var yynn799 int - if yyr799 || yy2arr799 { - r.EncodeArrayStart(3) - } else { - yynn799 = 3 - for _, b := range yyq799 { - if b { - yynn799++ - } - } - r.EncodeMapStart(yynn799) - yynn799 = 0 - } - if yyr799 || yy2arr799 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy801 := &x.X509 - yy801.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("x509")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy802 := &x.X509 - yy802.CodecEncodeSelf(e) - } - if yyr799 || yy2arr799 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy804 := &x.Webhook - yy804.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("webhook")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy805 := &x.Webhook - yy805.CodecEncodeSelf(e) - } - if yyr799 || yy2arr799 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy807 := &x.Anonymous - yy807.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("anonymous")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy808 := &x.Anonymous - yy808.CodecEncodeSelf(e) - } - if yyr799 || yy2arr799 { - 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 - yym809 := z.DecBinary() - _ = yym809 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct810 := r.ContainerType() - if yyct810 == codecSelferValueTypeMap1234 { - yyl810 := r.ReadMapStart() - if yyl810 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl810, d) - } - } else if yyct810 == codecSelferValueTypeArray1234 { - yyl810 := r.ReadArrayStart() - if yyl810 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl810, 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 yys811Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys811Slc - var yyhl811 bool = l >= 0 - for yyj811 := 0; ; yyj811++ { - if yyhl811 { - if yyj811 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys811Slc = r.DecodeBytes(yys811Slc, true, true) - yys811 := string(yys811Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys811 { - case "x509": - if r.TryDecodeAsNil() { - x.X509 = KubeletX509Authentication{} - } else { - yyv812 := &x.X509 - yyv812.CodecDecodeSelf(d) - } - case "webhook": - if r.TryDecodeAsNil() { - x.Webhook = KubeletWebhookAuthentication{} - } else { - yyv813 := &x.Webhook - yyv813.CodecDecodeSelf(d) - } - case "anonymous": - if r.TryDecodeAsNil() { - x.Anonymous = KubeletAnonymousAuthentication{} - } else { - yyv814 := &x.Anonymous - yyv814.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys811) - } // end switch yys811 - } // end for yyj811 - 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 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.X509 = KubeletX509Authentication{} - } else { - yyv816 := &x.X509 - yyv816.CodecDecodeSelf(d) - } - 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 = KubeletWebhookAuthentication{} - } else { - yyv817 := &x.Webhook - yyv817.CodecDecodeSelf(d) - } - 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.Anonymous = KubeletAnonymousAuthentication{} - } else { - yyv818 := &x.Anonymous - yyv818.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 *KubeletX509Authentication) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym819 := z.EncBinary() - _ = yym819 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep820 := !z.EncBinary() - yy2arr820 := z.EncBasicHandle().StructToArray - var yyq820 [1]bool - _, _, _ = yysep820, yyq820, yy2arr820 - const yyr820 bool = false - var yynn820 int - if yyr820 || yy2arr820 { - r.EncodeArrayStart(1) - } else { - yynn820 = 1 - for _, b := range yyq820 { - if b { - yynn820++ - } - } - r.EncodeMapStart(yynn820) - yynn820 = 0 - } - if yyr820 || yy2arr820 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym822 := z.EncBinary() - _ = yym822 - 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) - yym823 := z.EncBinary() - _ = yym823 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClientCAFile)) - } - } - if yyr820 || yy2arr820 { - 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 - yym824 := z.DecBinary() - _ = yym824 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct825 := r.ContainerType() - if yyct825 == codecSelferValueTypeMap1234 { - yyl825 := r.ReadMapStart() - if yyl825 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl825, d) - } - } else if yyct825 == codecSelferValueTypeArray1234 { - yyl825 := r.ReadArrayStart() - if yyl825 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl825, 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 yys826Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys826Slc - var yyhl826 bool = l >= 0 - for yyj826 := 0; ; yyj826++ { - if yyhl826 { - if yyj826 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys826Slc = r.DecodeBytes(yys826Slc, true, true) - yys826 := string(yys826Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys826 { - case "clientCAFile": - if r.TryDecodeAsNil() { - x.ClientCAFile = "" - } else { - x.ClientCAFile = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys826) - } // end switch yys826 - } // end for yyj826 - 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 yyj828 int - var yyb828 bool - var yyhl828 bool = l >= 0 - yyj828++ - if yyhl828 { - yyb828 = yyj828 > l - } else { - yyb828 = r.CheckBreak() - } - if yyb828 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ClientCAFile = "" - } else { - x.ClientCAFile = string(r.DecodeString()) - } - for { - yyj828++ - if yyhl828 { - yyb828 = yyj828 > l - } else { - yyb828 = r.CheckBreak() - } - if yyb828 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj828-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 { - yym830 := z.EncBinary() - _ = yym830 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep831 := !z.EncBinary() - yy2arr831 := z.EncBasicHandle().StructToArray - var yyq831 [2]bool - _, _, _ = yysep831, yyq831, yy2arr831 - const yyr831 bool = false - var yynn831 int - if yyr831 || yy2arr831 { - r.EncodeArrayStart(2) - } else { - yynn831 = 2 - for _, b := range yyq831 { - if b { - yynn831++ - } - } - r.EncodeMapStart(yynn831) - yynn831 = 0 - } - if yyr831 || yy2arr831 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym833 := z.EncBinary() - _ = yym833 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enabled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym834 := z.EncBinary() - _ = yym834 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } - if yyr831 || yy2arr831 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy836 := &x.CacheTTL - yym837 := z.EncBinary() - _ = yym837 - if false { - } else if z.HasExtensions() && z.EncExt(yy836) { - } else if !yym837 && z.IsJSONHandle() { - z.EncJSONMarshal(yy836) - } else { - z.EncFallback(yy836) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cacheTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy838 := &x.CacheTTL - yym839 := z.EncBinary() - _ = yym839 - if false { - } else if z.HasExtensions() && z.EncExt(yy838) { - } else if !yym839 && z.IsJSONHandle() { - z.EncJSONMarshal(yy838) - } else { - z.EncFallback(yy838) - } - } - if yyr831 || yy2arr831 { - 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 - yym840 := z.DecBinary() - _ = yym840 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct841 := r.ContainerType() - if yyct841 == codecSelferValueTypeMap1234 { - yyl841 := r.ReadMapStart() - if yyl841 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl841, d) - } - } else if yyct841 == codecSelferValueTypeArray1234 { - yyl841 := r.ReadArrayStart() - if yyl841 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl841, 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 yys842Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys842Slc - var yyhl842 bool = l >= 0 - for yyj842 := 0; ; yyj842++ { - if yyhl842 { - if yyj842 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys842Slc = r.DecodeBytes(yys842Slc, true, true) - yys842 := string(yys842Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys842 { - case "enabled": - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - case "cacheTTL": - if r.TryDecodeAsNil() { - x.CacheTTL = pkg1_unversioned.Duration{} - } else { - yyv844 := &x.CacheTTL - yym845 := z.DecBinary() - _ = yym845 - if false { - } else if z.HasExtensions() && z.DecExt(yyv844) { - } else if !yym845 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv844) - } else { - z.DecFallback(yyv844, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys842) - } // end switch yys842 - } // end for yyj842 - 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 yyj846 int - var yyb846 bool - var yyhl846 bool = l >= 0 - yyj846++ - if yyhl846 { - yyb846 = yyj846 > l - } else { - yyb846 = r.CheckBreak() - } - if yyb846 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - yyj846++ - if yyhl846 { - yyb846 = yyj846 > l - } else { - yyb846 = r.CheckBreak() - } - if yyb846 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.CacheTTL = pkg1_unversioned.Duration{} - } else { - yyv848 := &x.CacheTTL - yym849 := z.DecBinary() - _ = yym849 - if false { - } else if z.HasExtensions() && z.DecExt(yyv848) { - } else if !yym849 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv848) - } else { - z.DecFallback(yyv848, false) - } - } - for { - yyj846++ - if yyhl846 { - yyb846 = yyj846 > l - } else { - yyb846 = r.CheckBreak() - } - if yyb846 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj846-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 { - yym850 := z.EncBinary() - _ = yym850 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep851 := !z.EncBinary() - yy2arr851 := z.EncBasicHandle().StructToArray - var yyq851 [1]bool - _, _, _ = yysep851, yyq851, yy2arr851 - const yyr851 bool = false - var yynn851 int - if yyr851 || yy2arr851 { - r.EncodeArrayStart(1) - } else { - yynn851 = 1 - for _, b := range yyq851 { - if b { - yynn851++ - } - } - r.EncodeMapStart(yynn851) - yynn851 = 0 - } - if yyr851 || yy2arr851 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym853 := z.EncBinary() - _ = yym853 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enabled")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym854 := z.EncBinary() - _ = yym854 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } - if yyr851 || yy2arr851 { - 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 - yym855 := z.DecBinary() - _ = yym855 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct856 := r.ContainerType() - if yyct856 == codecSelferValueTypeMap1234 { - yyl856 := r.ReadMapStart() - if yyl856 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl856, d) - } - } else if yyct856 == codecSelferValueTypeArray1234 { - yyl856 := r.ReadArrayStart() - if yyl856 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl856, 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 yys857Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys857Slc - var yyhl857 bool = l >= 0 - for yyj857 := 0; ; yyj857++ { - if yyhl857 { - if yyj857 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys857Slc = r.DecodeBytes(yys857Slc, true, true) - yys857 := string(yys857Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys857 { - case "enabled": - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys857) - } // end switch yys857 - } // end for yyj857 - 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 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.Enabled = false - } else { - x.Enabled = bool(r.DecodeBool()) - } - 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 *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym861 := z.EncBinary() - _ = yym861 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep862 := !z.EncBinary() - yy2arr862 := z.EncBasicHandle().StructToArray - var yyq862 [14]bool - _, _, _ = yysep862, yyq862, yy2arr862 - const yyr862 bool = false - yyq862[0] = x.Kind != "" - yyq862[1] = x.APIVersion != "" - var yynn862 int - if yyr862 || yy2arr862 { - r.EncodeArrayStart(14) - } else { - yynn862 = 12 - for _, b := range yyq862 { - if b { - yynn862++ - } - } - r.EncodeMapStart(yynn862) - yynn862 = 0 - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq862[0] { - yym864 := z.EncBinary() - _ = yym864 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq862[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym865 := z.EncBinary() - _ = yym865 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq862[1] { - yym867 := z.EncBinary() - _ = yym867 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq862[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym868 := z.EncBinary() - _ = yym868 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym870 := z.EncBinary() - _ = yym870 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym871 := z.EncBinary() - _ = yym871 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym873 := z.EncBinary() - _ = yym873 - 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) - yym874 := z.EncBinary() - _ = yym874 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym876 := z.EncBinary() - _ = yym876 - 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) - yym877 := z.EncBinary() - _ = yym877 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym879 := z.EncBinary() - _ = yym879 - 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) - yym880 := z.EncBinary() - _ = yym880 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym882 := z.EncBinary() - _ = yym882 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym883 := z.EncBinary() - _ = yym883 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym885 := z.EncBinary() - _ = yym885 - 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) - yym886 := z.EncBinary() - _ = yym886 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym888 := z.EncBinary() - _ = yym888 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym889 := z.EncBinary() - _ = yym889 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym891 := z.EncBinary() - _ = yym891 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym892 := z.EncBinary() - _ = yym892 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym894 := z.EncBinary() - _ = yym894 - 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) - yym895 := z.EncBinary() - _ = yym895 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym897 := z.EncBinary() - _ = yym897 - if false { - } else { - r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym898 := z.EncBinary() - _ = yym898 - if false { - } else { - r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym900 := z.EncBinary() - _ = yym900 - 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) - yym901 := z.EncBinary() - _ = yym901 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) - } - } - if yyr862 || yy2arr862 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy903 := &x.LeaderElection - yy903.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy904 := &x.LeaderElection - yy904.CodecEncodeSelf(e) - } - if yyr862 || yy2arr862 { - 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 - yym905 := z.DecBinary() - _ = yym905 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct906 := r.ContainerType() - if yyct906 == codecSelferValueTypeMap1234 { - yyl906 := r.ReadMapStart() - if yyl906 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl906, d) - } - } else if yyct906 == codecSelferValueTypeArray1234 { - yyl906 := r.ReadArrayStart() - if yyl906 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl906, 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 yys907Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys907Slc - var yyhl907 bool = l >= 0 - for yyj907 := 0; ; yyj907++ { - if yyhl907 { - if yyj907 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys907Slc = r.DecodeBytes(yys907Slc, true, true) - yys907 := string(yys907Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys907 { - case "kind": - if 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 "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 { - yyv921 := &x.LeaderElection - yyv921.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys907) - } // end switch yys907 - } // end for yyj907 - 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 yyj922 int - var yyb922 bool - var yyhl922 bool = l >= 0 - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Address = "" - } else { - x.Address = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AlgorithmProvider = "" - } else { - x.AlgorithmProvider = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PolicyConfigFile = "" - } else { - x.PolicyConfigFile = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EnableProfiling = false - } else { - x.EnableProfiling = bool(r.DecodeBool()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContentType = "" - } else { - x.ContentType = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SchedulerName = "" - } else { - x.SchedulerName = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HardPodAffinitySymmetricWeight = 0 - } else { - x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FailureDomains = "" - } else { - x.FailureDomains = string(r.DecodeString()) - } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv936 := &x.LeaderElection - yyv936.CodecDecodeSelf(d) - } - for { - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l - } else { - yyb922 = r.CheckBreak() - } - if yyb922 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj922-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym937 := z.EncBinary() - _ = yym937 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep938 := !z.EncBinary() - yy2arr938 := z.EncBasicHandle().StructToArray - var yyq938 [4]bool - _, _, _ = yysep938, yyq938, yy2arr938 - const yyr938 bool = false - var yynn938 int - if yyr938 || yy2arr938 { - r.EncodeArrayStart(4) - } else { - yynn938 = 4 - for _, b := range yyq938 { - if b { - yynn938++ - } - } - r.EncodeMapStart(yynn938) - yynn938 = 0 - } - if yyr938 || yy2arr938 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym940 := z.EncBinary() - _ = yym940 - if false { - } else { - r.EncodeBool(bool(x.LeaderElect)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElect")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym941 := z.EncBinary() - _ = yym941 - if false { - } else { - r.EncodeBool(bool(x.LeaderElect)) - } - } - if yyr938 || yy2arr938 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy943 := &x.LeaseDuration - yym944 := z.EncBinary() - _ = yym944 - if false { - } else if z.HasExtensions() && z.EncExt(yy943) { - } else if !yym944 && z.IsJSONHandle() { - z.EncJSONMarshal(yy943) - } else { - z.EncFallback(yy943) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaseDuration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy945 := &x.LeaseDuration - yym946 := z.EncBinary() - _ = yym946 - if false { - } else if z.HasExtensions() && z.EncExt(yy945) { - } else if !yym946 && z.IsJSONHandle() { - z.EncJSONMarshal(yy945) - } else { - z.EncFallback(yy945) - } - } - if yyr938 || yy2arr938 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy948 := &x.RenewDeadline - yym949 := z.EncBinary() - _ = yym949 - if false { - } else if z.HasExtensions() && z.EncExt(yy948) { - } else if !yym949 && z.IsJSONHandle() { - z.EncJSONMarshal(yy948) - } else { - z.EncFallback(yy948) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("renewDeadline")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy950 := &x.RenewDeadline - yym951 := z.EncBinary() - _ = yym951 - if false { - } else if z.HasExtensions() && z.EncExt(yy950) { - } else if !yym951 && z.IsJSONHandle() { - z.EncJSONMarshal(yy950) - } else { - z.EncFallback(yy950) - } - } - if yyr938 || yy2arr938 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy953 := &x.RetryPeriod - yym954 := z.EncBinary() - _ = yym954 - if false { - } else if z.HasExtensions() && z.EncExt(yy953) { - } else if !yym954 && z.IsJSONHandle() { - z.EncJSONMarshal(yy953) - } else { - z.EncFallback(yy953) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("retryPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy955 := &x.RetryPeriod - yym956 := z.EncBinary() - _ = yym956 - if false { - } else if z.HasExtensions() && z.EncExt(yy955) { - } else if !yym956 && z.IsJSONHandle() { - z.EncJSONMarshal(yy955) - } else { - z.EncFallback(yy955) - } - } - if yyr938 || yy2arr938 { - 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 - yym957 := z.DecBinary() - _ = yym957 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct958 := r.ContainerType() - if yyct958 == codecSelferValueTypeMap1234 { - yyl958 := r.ReadMapStart() - if yyl958 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl958, d) - } - } else if yyct958 == codecSelferValueTypeArray1234 { - yyl958 := r.ReadArrayStart() - if yyl958 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl958, 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 yys959Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys959Slc - var yyhl959 bool = l >= 0 - for yyj959 := 0; ; yyj959++ { - if yyhl959 { - if yyj959 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys959Slc = r.DecodeBytes(yys959Slc, true, true) - yys959 := string(yys959Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys959 { - case "leaderElect": - if r.TryDecodeAsNil() { - x.LeaderElect = false - } else { - x.LeaderElect = bool(r.DecodeBool()) - } - case "leaseDuration": - if r.TryDecodeAsNil() { - x.LeaseDuration = pkg1_unversioned.Duration{} - } else { - yyv961 := &x.LeaseDuration - yym962 := z.DecBinary() - _ = yym962 - if false { - } else if z.HasExtensions() && z.DecExt(yyv961) { - } else if !yym962 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv961) - } else { - z.DecFallback(yyv961, false) - } - } - case "renewDeadline": - if r.TryDecodeAsNil() { - x.RenewDeadline = pkg1_unversioned.Duration{} - } else { - yyv963 := &x.RenewDeadline - yym964 := z.DecBinary() - _ = yym964 - if false { - } else if z.HasExtensions() && z.DecExt(yyv963) { - } else if !yym964 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv963) - } else { - z.DecFallback(yyv963, false) - } - } - case "retryPeriod": - if r.TryDecodeAsNil() { - x.RetryPeriod = pkg1_unversioned.Duration{} - } else { - yyv965 := &x.RetryPeriod - yym966 := z.DecBinary() - _ = yym966 - if false { - } else if z.HasExtensions() && z.DecExt(yyv965) { - } else if !yym966 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv965) - } else { - z.DecFallback(yyv965, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys959) - } // end switch yys959 - } // end for yyj959 - 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 yyj967 int - var yyb967 bool - var yyhl967 bool = l >= 0 - yyj967++ - if yyhl967 { - yyb967 = yyj967 > l - } else { - yyb967 = r.CheckBreak() - } - if yyb967 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LeaderElect = false - } else { - x.LeaderElect = bool(r.DecodeBool()) - } - yyj967++ - if yyhl967 { - yyb967 = yyj967 > l - } else { - yyb967 = r.CheckBreak() - } - if yyb967 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LeaseDuration = pkg1_unversioned.Duration{} - } else { - yyv969 := &x.LeaseDuration - yym970 := z.DecBinary() - _ = yym970 - if false { - } else if z.HasExtensions() && z.DecExt(yyv969) { - } else if !yym970 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv969) - } else { - z.DecFallback(yyv969, false) - } - } - yyj967++ - if yyhl967 { - yyb967 = yyj967 > l - } else { - yyb967 = r.CheckBreak() - } - if yyb967 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RenewDeadline = pkg1_unversioned.Duration{} - } else { - yyv971 := &x.RenewDeadline - yym972 := z.DecBinary() - _ = yym972 - if false { - } else if z.HasExtensions() && z.DecExt(yyv971) { - } else if !yym972 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv971) - } else { - z.DecFallback(yyv971, false) - } - } - yyj967++ - if yyhl967 { - yyb967 = yyj967 > l - } else { - yyb967 = r.CheckBreak() - } - if yyb967 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RetryPeriod = pkg1_unversioned.Duration{} - } else { - yyv973 := &x.RetryPeriod - yym974 := z.DecBinary() - _ = yym974 - if false { - } else if z.HasExtensions() && z.DecExt(yyv973) { - } else if !yym974 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv973) - } else { - z.DecFallback(yyv973, false) - } - } - for { - yyj967++ - if yyhl967 { - yyb967 = yyj967 > l - } else { - yyb967 = r.CheckBreak() - } - if yyb967 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj967-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 { - yym975 := z.EncBinary() - _ = yym975 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep976 := !z.EncBinary() - yy2arr976 := z.EncBasicHandle().StructToArray - var yyq976 [60]bool - _, _, _ = yysep976, yyq976, yy2arr976 - const yyr976 bool = false - yyq976[0] = x.Kind != "" - yyq976[1] = x.APIVersion != "" - var yynn976 int - if yyr976 || yy2arr976 { - r.EncodeArrayStart(60) - } else { - yynn976 = 58 - for _, b := range yyq976 { - if b { - yynn976++ - } - } - r.EncodeMapStart(yynn976) - yynn976 = 0 - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq976[0] { - yym978 := z.EncBinary() - _ = yym978 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq976[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym979 := z.EncBinary() - _ = yym979 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq976[1] { - yym981 := z.EncBinary() - _ = yym981 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq976[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym982 := z.EncBinary() - _ = yym982 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym984 := z.EncBinary() - _ = yym984 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("port")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym985 := z.EncBinary() - _ = yym985 - if false { - } else { - r.EncodeInt(int64(x.Port)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym987 := z.EncBinary() - _ = yym987 - 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) - yym988 := z.EncBinary() - _ = yym988 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym990 := z.EncBinary() - _ = yym990 - 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) - yym991 := z.EncBinary() - _ = yym991 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym993 := z.EncBinary() - _ = yym993 - 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) - yym994 := z.EncBinary() - _ = yym994 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym996 := z.EncBinary() - _ = yym996 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym997 := z.EncBinary() - _ = yym997 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym999 := z.EncBinary() - _ = yym999 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRSSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1000 := z.EncBinary() - _ = yym1000 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRSSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1002 := z.EncBinary() - _ = yym1002 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRCSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1003 := z.EncBinary() - _ = yym1003 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentRCSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1005 := z.EncBinary() - _ = yym1005 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentServiceSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentServiceSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1006 := z.EncBinary() - _ = yym1006 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentServiceSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1008 := z.EncBinary() - _ = yym1008 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1009 := z.EncBinary() - _ = yym1009 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1011 := z.EncBinary() - _ = yym1011 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1012 := z.EncBinary() - _ = yym1012 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1014 := z.EncBinary() - _ = yym1014 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1015 := z.EncBinary() - _ = yym1015 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1017 := z.EncBinary() - _ = yym1017 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentJobSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1018 := z.EncBinary() - _ = yym1018 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentJobSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1020 := z.EncBinary() - _ = yym1020 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1021 := z.EncBinary() - _ = yym1021 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1023 := z.EncBinary() - _ = yym1023 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1024 := z.EncBinary() - _ = yym1024 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1026 := z.EncBinary() - _ = yym1026 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRC)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1027 := z.EncBinary() - _ = yym1027 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRC)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1029 := z.EncBinary() - _ = yym1029 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1030 := z.EncBinary() - _ = yym1030 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForRS)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1032 := z.EncBinary() - _ = yym1032 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1033 := z.EncBinary() - _ = yym1033 - if false { - } else { - r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1035 := &x.ServiceSyncPeriod - yym1036 := z.EncBinary() - _ = yym1036 - if false { - } else if z.HasExtensions() && z.EncExt(yy1035) { - } else if !yym1036 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1035) - } else { - z.EncFallback(yy1035) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1037 := &x.ServiceSyncPeriod - yym1038 := z.EncBinary() - _ = yym1038 - if false { - } else if z.HasExtensions() && z.EncExt(yy1037) { - } else if !yym1038 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1037) - } else { - z.EncFallback(yy1037) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1040 := &x.NodeSyncPeriod - yym1041 := z.EncBinary() - _ = yym1041 - if false { - } else if z.HasExtensions() && z.EncExt(yy1040) { - } else if !yym1041 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1040) - } else { - z.EncFallback(yy1040) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1042 := &x.NodeSyncPeriod - yym1043 := z.EncBinary() - _ = yym1043 - if false { - } else if z.HasExtensions() && z.EncExt(yy1042) { - } else if !yym1043 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1042) - } else { - z.EncFallback(yy1042) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1045 := &x.RouteReconciliationPeriod - yym1046 := z.EncBinary() - _ = yym1046 - if false { - } else if z.HasExtensions() && z.EncExt(yy1045) { - } else if !yym1046 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1045) - } else { - z.EncFallback(yy1045) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("routeReconciliationPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1047 := &x.RouteReconciliationPeriod - yym1048 := z.EncBinary() - _ = yym1048 - if false { - } else if z.HasExtensions() && z.EncExt(yy1047) { - } else if !yym1048 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1047) - } else { - z.EncFallback(yy1047) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1050 := &x.ResourceQuotaSyncPeriod - yym1051 := z.EncBinary() - _ = yym1051 - if false { - } else if z.HasExtensions() && z.EncExt(yy1050) { - } else if !yym1051 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1050) - } else { - z.EncFallback(yy1050) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1052 := &x.ResourceQuotaSyncPeriod - yym1053 := z.EncBinary() - _ = yym1053 - if false { - } else if z.HasExtensions() && z.EncExt(yy1052) { - } else if !yym1053 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1052) - } else { - z.EncFallback(yy1052) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1055 := &x.NamespaceSyncPeriod - yym1056 := z.EncBinary() - _ = yym1056 - if false { - } else if z.HasExtensions() && z.EncExt(yy1055) { - } else if !yym1056 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1055) - } else { - z.EncFallback(yy1055) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1057 := &x.NamespaceSyncPeriod - yym1058 := z.EncBinary() - _ = yym1058 - if false { - } else if z.HasExtensions() && z.EncExt(yy1057) { - } else if !yym1058 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1057) - } else { - z.EncFallback(yy1057) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1060 := &x.PVClaimBinderSyncPeriod - yym1061 := z.EncBinary() - _ = yym1061 - if false { - } else if z.HasExtensions() && z.EncExt(yy1060) { - } else if !yym1061 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1060) - } else { - z.EncFallback(yy1060) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1062 := &x.PVClaimBinderSyncPeriod - yym1063 := z.EncBinary() - _ = yym1063 - if false { - } else if z.HasExtensions() && z.EncExt(yy1062) { - } else if !yym1063 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1062) - } else { - z.EncFallback(yy1062) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1065 := &x.MinResyncPeriod - yym1066 := z.EncBinary() - _ = yym1066 - if false { - } else if z.HasExtensions() && z.EncExt(yy1065) { - } else if !yym1066 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1065) - } else { - z.EncFallback(yy1065) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1067 := &x.MinResyncPeriod - yym1068 := z.EncBinary() - _ = yym1068 - if false { - } else if z.HasExtensions() && z.EncExt(yy1067) { - } else if !yym1068 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1067) - } else { - z.EncFallback(yy1067) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1070 := z.EncBinary() - _ = yym1070 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1071 := z.EncBinary() - _ = yym1071 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1073 := &x.HorizontalPodAutoscalerSyncPeriod - yym1074 := z.EncBinary() - _ = yym1074 - if false { - } else if z.HasExtensions() && z.EncExt(yy1073) { - } else if !yym1074 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1073) - } else { - z.EncFallback(yy1073) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1075 := &x.HorizontalPodAutoscalerSyncPeriod - yym1076 := z.EncBinary() - _ = yym1076 - if false { - } else if z.HasExtensions() && z.EncExt(yy1075) { - } else if !yym1076 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1075) - } else { - z.EncFallback(yy1075) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1078 := &x.DeploymentControllerSyncPeriod - yym1079 := z.EncBinary() - _ = yym1079 - if false { - } else if z.HasExtensions() && z.EncExt(yy1078) { - } else if !yym1079 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1078) - } else { - z.EncFallback(yy1078) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1080 := &x.DeploymentControllerSyncPeriod - yym1081 := z.EncBinary() - _ = yym1081 - if false { - } else if z.HasExtensions() && z.EncExt(yy1080) { - } else if !yym1081 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1080) - } else { - z.EncFallback(yy1080) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1083 := &x.PodEvictionTimeout - yym1084 := z.EncBinary() - _ = yym1084 - if false { - } else if z.HasExtensions() && z.EncExt(yy1083) { - } else if !yym1084 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1083) - } else { - z.EncFallback(yy1083) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1085 := &x.PodEvictionTimeout - yym1086 := z.EncBinary() - _ = yym1086 - if false { - } else if z.HasExtensions() && z.EncExt(yy1085) { - } else if !yym1086 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1085) - } else { - z.EncFallback(yy1085) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1088 := z.EncBinary() - _ = yym1088 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1089 := z.EncBinary() - _ = yym1089 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1091 := z.EncBinary() - _ = yym1091 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1092 := z.EncBinary() - _ = yym1092 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1094 := &x.NodeMonitorGracePeriod - 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) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1096 := &x.NodeMonitorGracePeriod - yym1097 := z.EncBinary() - _ = yym1097 - if false { - } else if z.HasExtensions() && z.EncExt(yy1096) { - } else if !yym1097 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1096) - } else { - z.EncFallback(yy1096) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1099 := z.EncBinary() - _ = yym1099 - if false { - } else { - r.EncodeInt(int64(x.RegisterRetryCount)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1100 := z.EncBinary() - _ = yym1100 - if false { - } else { - r.EncodeInt(int64(x.RegisterRetryCount)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1102 := &x.NodeStartupGracePeriod - 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("nodeStartupGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1104 := &x.NodeStartupGracePeriod - 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 yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1107 := &x.NodeMonitorPeriod - 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("nodeMonitorPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1109 := &x.NodeMonitorPeriod - 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 yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1112 := z.EncBinary() - _ = yym1112 - 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) - yym1113 := z.EncBinary() - _ = yym1113 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1115 := z.EncBinary() - _ = yym1115 - 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) - yym1116 := z.EncBinary() - _ = yym1116 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1118 := z.EncBinary() - _ = yym1118 - 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) - yym1119 := z.EncBinary() - _ = yym1119 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1121 := z.EncBinary() - _ = yym1121 - 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) - yym1122 := z.EncBinary() - _ = yym1122 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1124 := z.EncBinary() - _ = yym1124 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1125 := z.EncBinary() - _ = yym1125 - if false { - } else { - r.EncodeBool(bool(x.EnableProfiling)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1127 := z.EncBinary() - _ = yym1127 - 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) - yym1128 := z.EncBinary() - _ = yym1128 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1130 := z.EncBinary() - _ = yym1130 - 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) - yym1131 := z.EncBinary() - _ = yym1131 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1133 := z.EncBinary() - _ = yym1133 - 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) - yym1134 := z.EncBinary() - _ = yym1134 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1136 := z.EncBinary() - _ = yym1136 - if false { - } else { - r.EncodeInt(int64(x.NodeCIDRMaskSize)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1137 := z.EncBinary() - _ = yym1137 - if false { - } else { - r.EncodeInt(int64(x.NodeCIDRMaskSize)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1139 := z.EncBinary() - _ = yym1139 - if false { - } else { - r.EncodeBool(bool(x.AllocateNodeCIDRs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1140 := z.EncBinary() - _ = yym1140 - if false { - } else { - r.EncodeBool(bool(x.AllocateNodeCIDRs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1142 := z.EncBinary() - _ = yym1142 - if false { - } else { - r.EncodeBool(bool(x.ConfigureCloudRoutes)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1143 := z.EncBinary() - _ = yym1143 - if false { - } else { - r.EncodeBool(bool(x.ConfigureCloudRoutes)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1145 := z.EncBinary() - _ = yym1145 - 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) - yym1146 := z.EncBinary() - _ = yym1146 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1148 := z.EncBinary() - _ = yym1148 - 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) - yym1149 := z.EncBinary() - _ = yym1149 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1151 := z.EncBinary() - _ = yym1151 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1152 := z.EncBinary() - _ = yym1152 - if false { - } else { - r.EncodeFloat32(float32(x.KubeAPIQPS)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1154 := z.EncBinary() - _ = yym1154 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1155 := z.EncBinary() - _ = yym1155 - if false { - } else { - r.EncodeInt(int64(x.KubeAPIBurst)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1157 := &x.LeaderElection - yy1157.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1158 := &x.LeaderElection - yy1158.CodecEncodeSelf(e) - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1160 := &x.VolumeConfiguration - yy1160.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1161 := &x.VolumeConfiguration - yy1161.CodecEncodeSelf(e) - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1163 := &x.ControllerStartInterval - yym1164 := z.EncBinary() - _ = yym1164 - if false { - } else if z.HasExtensions() && z.EncExt(yy1163) { - } else if !yym1164 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1163) - } else { - z.EncFallback(yy1163) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1165 := &x.ControllerStartInterval - yym1166 := z.EncBinary() - _ = yym1166 - if false { - } else if z.HasExtensions() && z.EncExt(yy1165) { - } else if !yym1166 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1165) - } else { - z.EncFallback(yy1165) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1168 := z.EncBinary() - _ = yym1168 - if false { - } else { - r.EncodeBool(bool(x.EnableGarbageCollector)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1169 := z.EncBinary() - _ = yym1169 - if false { - } else { - r.EncodeBool(bool(x.EnableGarbageCollector)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1171 := z.EncBinary() - _ = yym1171 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentGCSyncs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("concurrentGCSyncs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1172 := z.EncBinary() - _ = yym1172 - if false { - } else { - r.EncodeInt(int64(x.ConcurrentGCSyncs)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1174 := z.EncBinary() - _ = yym1174 - if false { - } else { - r.EncodeFloat32(float32(x.NodeEvictionRate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeEvictionRate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1175 := z.EncBinary() - _ = yym1175 - if false { - } else { - r.EncodeFloat32(float32(x.NodeEvictionRate)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1177 := z.EncBinary() - _ = yym1177 - if false { - } else { - r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secondaryNodeEvictionRate")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1178 := z.EncBinary() - _ = yym1178 - if false { - } else { - r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1180 := z.EncBinary() - _ = yym1180 - if false { - } else { - r.EncodeInt(int64(x.LargeClusterSizeThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("largeClusterSizeThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1181 := z.EncBinary() - _ = yym1181 - if false { - } else { - r.EncodeInt(int64(x.LargeClusterSizeThreshold)) - } - } - if yyr976 || yy2arr976 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1183 := z.EncBinary() - _ = yym1183 - if false { - } else { - r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("unhealthyZoneThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1184 := z.EncBinary() - _ = yym1184 - if false { - } else { - r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) - } - } - if yyr976 || yy2arr976 { - 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 - yym1185 := z.DecBinary() - _ = yym1185 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1186 := r.ContainerType() - if yyct1186 == codecSelferValueTypeMap1234 { - yyl1186 := r.ReadMapStart() - if yyl1186 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1186, d) - } - } else if yyct1186 == codecSelferValueTypeArray1234 { - yyl1186 := r.ReadArrayStart() - if yyl1186 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1186, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1187Slc = r.DecodeBytes(yys1187Slc, true, true) - yys1187 := string(yys1187Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1187 { - case "kind": - if 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 "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_unversioned.Duration{} - } else { - yyv1207 := &x.ServiceSyncPeriod - yym1208 := z.DecBinary() - _ = yym1208 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1207) { - } else if !yym1208 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1207) - } else { - z.DecFallback(yyv1207, false) - } - } - case "nodeSyncPeriod": - if r.TryDecodeAsNil() { - x.NodeSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1209 := &x.NodeSyncPeriod - yym1210 := z.DecBinary() - _ = yym1210 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1209) { - } else if !yym1210 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1209) - } else { - z.DecFallback(yyv1209, false) - } - } - case "routeReconciliationPeriod": - if r.TryDecodeAsNil() { - x.RouteReconciliationPeriod = pkg1_unversioned.Duration{} - } else { - yyv1211 := &x.RouteReconciliationPeriod - yym1212 := z.DecBinary() - _ = yym1212 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1211) { - } else if !yym1212 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1211) - } else { - z.DecFallback(yyv1211, false) - } - } - case "resourceQuotaSyncPeriod": - if r.TryDecodeAsNil() { - x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1213 := &x.ResourceQuotaSyncPeriod - yym1214 := z.DecBinary() - _ = yym1214 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1213) { - } else if !yym1214 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1213) - } else { - z.DecFallback(yyv1213, false) - } - } - case "namespaceSyncPeriod": - if r.TryDecodeAsNil() { - x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1215 := &x.NamespaceSyncPeriod - yym1216 := z.DecBinary() - _ = yym1216 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1215) { - } else if !yym1216 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1215) - } else { - z.DecFallback(yyv1215, false) - } - } - case "pvClaimBinderSyncPeriod": - if r.TryDecodeAsNil() { - x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1217 := &x.PVClaimBinderSyncPeriod - yym1218 := z.DecBinary() - _ = yym1218 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1217) { - } else if !yym1218 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1217) - } else { - z.DecFallback(yyv1217, false) - } - } - case "minResyncPeriod": - if r.TryDecodeAsNil() { - x.MinResyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1219 := &x.MinResyncPeriod - yym1220 := z.DecBinary() - _ = yym1220 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1219) { - } else if !yym1220 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1219) - } else { - z.DecFallback(yyv1219, false) - } - } - case "terminatedPodGCThreshold": - if r.TryDecodeAsNil() { - x.TerminatedPodGCThreshold = 0 - } else { - x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) - } - case "horizontalPodAutoscalerSyncPeriod": - if r.TryDecodeAsNil() { - x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1222 := &x.HorizontalPodAutoscalerSyncPeriod - yym1223 := z.DecBinary() - _ = yym1223 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1222) { - } else if !yym1223 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1222) - } else { - z.DecFallback(yyv1222, false) - } - } - case "deploymentControllerSyncPeriod": - if r.TryDecodeAsNil() { - x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1224 := &x.DeploymentControllerSyncPeriod - yym1225 := z.DecBinary() - _ = yym1225 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1224) { - } else if !yym1225 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1224) - } else { - z.DecFallback(yyv1224, false) - } - } - case "podEvictionTimeout": - if r.TryDecodeAsNil() { - x.PodEvictionTimeout = pkg1_unversioned.Duration{} - } else { - yyv1226 := &x.PodEvictionTimeout - yym1227 := z.DecBinary() - _ = yym1227 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1226) { - } else if !yym1227 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1226) - } else { - z.DecFallback(yyv1226, 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_unversioned.Duration{} - } else { - yyv1230 := &x.NodeMonitorGracePeriod - yym1231 := z.DecBinary() - _ = yym1231 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1230) { - } else if !yym1231 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1230) - } else { - z.DecFallback(yyv1230, false) - } - } - case "registerRetryCount": - if r.TryDecodeAsNil() { - x.RegisterRetryCount = 0 - } else { - x.RegisterRetryCount = int32(r.DecodeInt(32)) - } - case "nodeStartupGracePeriod": - if r.TryDecodeAsNil() { - x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} - } else { - yyv1233 := &x.NodeStartupGracePeriod - yym1234 := z.DecBinary() - _ = yym1234 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1233) { - } else if !yym1234 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1233) - } else { - z.DecFallback(yyv1233, false) - } - } - case "nodeMonitorPeriod": - if r.TryDecodeAsNil() { - x.NodeMonitorPeriod = pkg1_unversioned.Duration{} - } else { - yyv1235 := &x.NodeMonitorPeriod - yym1236 := z.DecBinary() - _ = yym1236 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1235) { - } else if !yym1236 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1235) - } else { - z.DecFallback(yyv1235, false) - } - } - case "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 { - yyv1252 := &x.LeaderElection - yyv1252.CodecDecodeSelf(d) - } - case "volumeConfiguration": - if r.TryDecodeAsNil() { - x.VolumeConfiguration = VolumeConfiguration{} - } else { - yyv1253 := &x.VolumeConfiguration - yyv1253.CodecDecodeSelf(d) - } - case "controllerStartInterval": - if r.TryDecodeAsNil() { - x.ControllerStartInterval = pkg1_unversioned.Duration{} - } else { - yyv1254 := &x.ControllerStartInterval - yym1255 := z.DecBinary() - _ = yym1255 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1254) { - } else if !yym1255 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1254) - } else { - z.DecFallback(yyv1254, 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, yys1187) - } // end switch yys1187 - } // end for yyj1187 - 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 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.Port = 0 - } else { - x.Port = int32(r.DecodeInt(32)) - } - 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.Address = "" - } else { - x.Address = 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.CloudProvider = "" - } else { - x.CloudProvider = 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.CloudConfigFile = "" - } else { - x.CloudConfigFile = 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.ConcurrentEndpointSyncs = 0 - } else { - x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentRSSyncs = 0 - } else { - x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentRCSyncs = 0 - } else { - x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentServiceSyncs = 0 - } else { - x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentResourceQuotaSyncs = 0 - } else { - x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentDeploymentSyncs = 0 - } else { - x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentDaemonSetSyncs = 0 - } else { - x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentJobSyncs = 0 - } else { - x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentNamespaceSyncs = 0 - } else { - x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) - } - 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.ConcurrentSATokenSyncs = 0 - } else { - x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) - } - 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.LookupCacheSizeForRC = 0 - } else { - x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) - } - 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.LookupCacheSizeForRS = 0 - } else { - x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) - } - 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.LookupCacheSizeForDaemonSet = 0 - } else { - x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) - } - 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.ServiceSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1282 := &x.ServiceSyncPeriod - yym1283 := z.DecBinary() - _ = yym1283 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1282) { - } else if !yym1283 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1282) - } else { - z.DecFallback(yyv1282, 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.NodeSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1284 := &x.NodeSyncPeriod - yym1285 := z.DecBinary() - _ = yym1285 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1284) { - } else if !yym1285 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1284) - } else { - z.DecFallback(yyv1284, 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.RouteReconciliationPeriod = pkg1_unversioned.Duration{} - } else { - yyv1286 := &x.RouteReconciliationPeriod - 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) - } - } - 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.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1288 := &x.ResourceQuotaSyncPeriod - 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) - } - } - 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.NamespaceSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1290 := &x.NamespaceSyncPeriod - yym1291 := z.DecBinary() - _ = yym1291 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1290) { - } else if !yym1291 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1290) - } else { - z.DecFallback(yyv1290, 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.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1292 := &x.PVClaimBinderSyncPeriod - yym1293 := z.DecBinary() - _ = yym1293 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1292) { - } else if !yym1293 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1292) - } else { - z.DecFallback(yyv1292, 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.MinResyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1294 := &x.MinResyncPeriod - yym1295 := z.DecBinary() - _ = yym1295 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1294) { - } else if !yym1295 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1294) - } else { - z.DecFallback(yyv1294, 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.TerminatedPodGCThreshold = 0 - } else { - x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) - } - 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.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1297 := &x.HorizontalPodAutoscalerSyncPeriod - yym1298 := z.DecBinary() - _ = yym1298 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1297) { - } else if !yym1298 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1297) - } else { - z.DecFallback(yyv1297, 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.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} - } else { - yyv1299 := &x.DeploymentControllerSyncPeriod - yym1300 := z.DecBinary() - _ = yym1300 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1299) { - } else if !yym1300 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1299) - } else { - z.DecFallback(yyv1299, 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.PodEvictionTimeout = pkg1_unversioned.Duration{} - } else { - yyv1301 := &x.PodEvictionTimeout - yym1302 := z.DecBinary() - _ = yym1302 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1301) { - } else if !yym1302 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1301) - } else { - z.DecFallback(yyv1301, 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.DeletingPodsQps = 0 - } else { - x.DeletingPodsQps = float32(r.DecodeFloat(true)) - } - 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.DeletingPodsBurst = 0 - } else { - x.DeletingPodsBurst = int32(r.DecodeInt(32)) - } - 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.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} - } else { - yyv1305 := &x.NodeMonitorGracePeriod - yym1306 := z.DecBinary() - _ = yym1306 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1305) { - } else if !yym1306 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1305) - } else { - z.DecFallback(yyv1305, 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.RegisterRetryCount = 0 - } else { - x.RegisterRetryCount = int32(r.DecodeInt(32)) - } - 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.NodeStartupGracePeriod = pkg1_unversioned.Duration{} - } else { - yyv1308 := &x.NodeStartupGracePeriod - yym1309 := z.DecBinary() - _ = yym1309 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1308) { - } else if !yym1309 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1308) - } else { - z.DecFallback(yyv1308, 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.NodeMonitorPeriod = pkg1_unversioned.Duration{} - } else { - yyv1310 := &x.NodeMonitorPeriod - yym1311 := z.DecBinary() - _ = yym1311 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1310) { - } else if !yym1311 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1310) - } else { - z.DecFallback(yyv1310, 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.ServiceAccountKeyFile = "" - } else { - x.ServiceAccountKeyFile = 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.ClusterSigningCertFile = "" - } else { - x.ClusterSigningCertFile = 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.ClusterSigningKeyFile = "" - } else { - x.ClusterSigningKeyFile = 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.ApproveAllKubeletCSRsForGroup = "" - } else { - x.ApproveAllKubeletCSRsForGroup = 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.EnableProfiling = false - } else { - x.EnableProfiling = 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.ClusterName = "" - } else { - x.ClusterName = 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.ClusterCIDR = "" - } else { - x.ClusterCIDR = 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.ServiceCIDR = "" - } else { - x.ServiceCIDR = 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.NodeCIDRMaskSize = 0 - } else { - x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) - } - 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.AllocateNodeCIDRs = false - } else { - x.AllocateNodeCIDRs = 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.ConfigureCloudRoutes = false - } else { - x.ConfigureCloudRoutes = 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.RootCAFile = "" - } else { - x.RootCAFile = 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.ContentType = "" - } else { - x.ContentType = 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.KubeAPIQPS = 0 - } else { - x.KubeAPIQPS = float32(r.DecodeFloat(true)) - } - 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.KubeAPIBurst = 0 - } else { - x.KubeAPIBurst = int32(r.DecodeInt(32)) - } - 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.LeaderElection = LeaderElectionConfiguration{} - } else { - yyv1327 := &x.LeaderElection - yyv1327.CodecDecodeSelf(d) - } - 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.VolumeConfiguration = VolumeConfiguration{} - } else { - yyv1328 := &x.VolumeConfiguration - yyv1328.CodecDecodeSelf(d) - } - 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.ControllerStartInterval = pkg1_unversioned.Duration{} - } else { - yyv1329 := &x.ControllerStartInterval - yym1330 := z.DecBinary() - _ = yym1330 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1329) { - } else if !yym1330 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1329) - } else { - z.DecFallback(yyv1329, 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.EnableGarbageCollector = false - } else { - x.EnableGarbageCollector = 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.ConcurrentGCSyncs = 0 - } else { - x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) - } - 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.NodeEvictionRate = 0 - } else { - x.NodeEvictionRate = float32(r.DecodeFloat(true)) - } - 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.SecondaryNodeEvictionRate = 0 - } else { - x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) - } - 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.LargeClusterSizeThreshold = 0 - } else { - x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) - } - 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.UnhealthyZoneThreshold = 0 - } else { - x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) - } - 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 *VolumeConfiguration) 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 [4]bool - _, _, _ = yysep1338, yyq1338, yy2arr1338 - const yyr1338 bool = false - var yynn1338 int - if yyr1338 || yy2arr1338 { - r.EncodeArrayStart(4) - } else { - yynn1338 = 4 - for _, b := range yyq1338 { - if b { - yynn1338++ - } - } - r.EncodeMapStart(yynn1338) - yynn1338 = 0 - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1340 := z.EncBinary() - _ = yym1340 - if false { - } else { - r.EncodeBool(bool(x.EnableHostPathProvisioning)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1341 := z.EncBinary() - _ = yym1341 - if false { - } else { - r.EncodeBool(bool(x.EnableHostPathProvisioning)) - } - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1343 := z.EncBinary() - _ = yym1343 - if false { - } else { - r.EncodeBool(bool(x.EnableDynamicProvisioning)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1344 := z.EncBinary() - _ = yym1344 - if false { - } else { - r.EncodeBool(bool(x.EnableDynamicProvisioning)) - } - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1346 := &x.PersistentVolumeRecyclerConfiguration - yy1346.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1347 := &x.PersistentVolumeRecyclerConfiguration - yy1347.CodecEncodeSelf(e) - } - if yyr1338 || yy2arr1338 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1349 := z.EncBinary() - _ = yym1349 - 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) - yym1350 := z.EncBinary() - _ = yym1350 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) - } - } - if yyr1338 || yy2arr1338 { - 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 - yym1351 := z.DecBinary() - _ = yym1351 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1352 := r.ContainerType() - if yyct1352 == codecSelferValueTypeMap1234 { - yyl1352 := r.ReadMapStart() - if yyl1352 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1352, d) - } - } else if yyct1352 == codecSelferValueTypeArray1234 { - yyl1352 := r.ReadArrayStart() - if yyl1352 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1352, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1353Slc = r.DecodeBytes(yys1353Slc, true, true) - yys1353 := string(yys1353Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1353 { - 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 { - yyv1356 := &x.PersistentVolumeRecyclerConfiguration - yyv1356.CodecDecodeSelf(d) - } - case "flexVolumePluginDir": - if r.TryDecodeAsNil() { - x.FlexVolumePluginDir = "" - } else { - x.FlexVolumePluginDir = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys1353) - } // end switch yys1353 - } // end for yyj1353 - 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 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.EnableHostPathProvisioning = false - } else { - x.EnableHostPathProvisioning = bool(r.DecodeBool()) - } - 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.EnableDynamicProvisioning = false - } else { - x.EnableDynamicProvisioning = bool(r.DecodeBool()) - } - 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.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} - } else { - yyv1361 := &x.PersistentVolumeRecyclerConfiguration - yyv1361.CodecDecodeSelf(d) - } - 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.FlexVolumePluginDir = "" - } else { - x.FlexVolumePluginDir = 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 *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1363 := z.EncBinary() - _ = yym1363 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep1364 := !z.EncBinary() - yy2arr1364 := z.EncBasicHandle().StructToArray - var yyq1364 [7]bool - _, _, _ = yysep1364, yyq1364, yy2arr1364 - const yyr1364 bool = false - var yynn1364 int - if yyr1364 || yy2arr1364 { - r.EncodeArrayStart(7) - } else { - yynn1364 = 7 - for _, b := range yyq1364 { - if b { - yynn1364++ - } - } - r.EncodeMapStart(yynn1364) - yynn1364 = 0 - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1366 := z.EncBinary() - _ = yym1366 - if false { - } else { - r.EncodeInt(int64(x.MaximumRetry)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maximumRetry")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1367 := z.EncBinary() - _ = yym1367 - if false { - } else { - r.EncodeInt(int64(x.MaximumRetry)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1369 := z.EncBinary() - _ = yym1369 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutNFS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1370 := z.EncBinary() - _ = yym1370 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutNFS)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1372 := z.EncBinary() - _ = yym1372 - 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) - yym1373 := z.EncBinary() - _ = yym1373 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1375 := z.EncBinary() - _ = yym1375 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutNFS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1376 := z.EncBinary() - _ = yym1376 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutNFS)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1378 := z.EncBinary() - _ = yym1378 - 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) - yym1379 := z.EncBinary() - _ = yym1379 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1381 := z.EncBinary() - _ = yym1381 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutHostPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1382 := z.EncBinary() - _ = yym1382 - if false { - } else { - r.EncodeInt(int64(x.MinimumTimeoutHostPath)) - } - } - if yyr1364 || yy2arr1364 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1384 := z.EncBinary() - _ = yym1384 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutHostPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1385 := z.EncBinary() - _ = yym1385 - if false { - } else { - r.EncodeInt(int64(x.IncrementTimeoutHostPath)) - } - } - if yyr1364 || yy2arr1364 { - 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 - yym1386 := z.DecBinary() - _ = yym1386 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1387 := r.ContainerType() - if yyct1387 == codecSelferValueTypeMap1234 { - yyl1387 := r.ReadMapStart() - if yyl1387 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1387, d) - } - } else if yyct1387 == codecSelferValueTypeArray1234 { - yyl1387 := r.ReadArrayStart() - if yyl1387 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1387, 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 yys1388Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1388Slc - var yyhl1388 bool = l >= 0 - for yyj1388 := 0; ; yyj1388++ { - if yyhl1388 { - if yyj1388 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1388Slc = r.DecodeBytes(yys1388Slc, true, true) - yys1388 := string(yys1388Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1388 { - 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, yys1388) - } // end switch yys1388 - } // end for yyj1388 - 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 yyj1396 int - var yyb1396 bool - var yyhl1396 bool = l >= 0 - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaximumRetry = 0 - } else { - x.MaximumRetry = int32(r.DecodeInt(32)) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumTimeoutNFS = 0 - } else { - x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodTemplateFilePathNFS = "" - } else { - x.PodTemplateFilePathNFS = string(r.DecodeString()) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IncrementTimeoutNFS = 0 - } else { - x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodTemplateFilePathHostPath = "" - } else { - x.PodTemplateFilePathHostPath = string(r.DecodeString()) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MinimumTimeoutHostPath = 0 - } else { - x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) - } - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.IncrementTimeoutHostPath = 0 - } else { - x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) - } - for { - yyj1396++ - if yyhl1396 { - yyb1396 = yyj1396 > l - } else { - yyb1396 = r.CheckBreak() - } - if yyb1396 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1396-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) encconfig_ConfigurationMap(v pkg2_config.ConfigurationMap, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1404, yyv1404 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym1405 := z.EncBinary() - _ = yym1405 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1404)) - } - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1406 := z.EncBinary() - _ = yym1406 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1404)) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decconfig_ConfigurationMap(v *pkg2_config.ConfigurationMap, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1407 := *v - yyl1407 := r.ReadMapStart() - yybh1407 := z.DecBasicHandle() - if yyv1407 == nil { - yyrl1407, _ := z.DecInferLen(yyl1407, yybh1407.MaxInitLen, 32) - yyv1407 = make(map[string]string, yyrl1407) - *v = yyv1407 - } - var yymk1407 string - var yymv1407 string - var yymg1407 bool - if yybh1407.MapValueReset { - } - if yyl1407 > 0 { - for yyj1407 := 0; yyj1407 < yyl1407; yyj1407++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1407 = "" - } else { - yymk1407 = string(r.DecodeString()) - } - - if yymg1407 { - yymv1407 = yyv1407[yymk1407] - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1407 = "" - } else { - yymv1407 = string(r.DecodeString()) - } - - if yyv1407 != nil { - yyv1407[yymk1407] = yymv1407 - } - } - } else if yyl1407 < 0 { - for yyj1407 := 0; !r.CheckBreak(); yyj1407++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk1407 = "" - } else { - yymk1407 = string(r.DecodeString()) - } - - if yymg1407 { - yymv1407 = yyv1407[yymk1407] - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv1407 = "" - } else { - yymv1407 = string(r.DecodeString()) - } - - if yyv1407 != nil { - yyv1407[yymk1407] = yymv1407 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} diff --git a/pkg/apis/componentconfig/types.go b/pkg/apis/componentconfig/types.go index b2e858c8d84..ed37a31f070 100644 --- a/pkg/apis/componentconfig/types.go +++ b/pkg/apis/componentconfig/types.go @@ -75,8 +75,12 @@ type KubeProxyConfiguration struct { // regardless of conntrackMaxPerCore (set conntrackMaxPerCore=0 to leave the limit as-is). ConntrackMin int32 `json:"conntrackMin"` // conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open - // (e.g. '250ms', '2s'). Must be greater than 0. + // (e.g. '2s'). Must be greater than 0. ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"` + // 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 unversioned.Duration `json:"conntrackTCPCloseWaitTimeout"` } // Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables' diff --git a/pkg/apis/componentconfig/v1alpha1/defaults.go b/pkg/apis/componentconfig/v1alpha1/defaults.go index c4d08bd1c0b..609fcd86784 100644 --- a/pkg/apis/componentconfig/v1alpha1/defaults.go +++ b/pkg/apis/componentconfig/v1alpha1/defaults.go @@ -101,6 +101,9 @@ func SetDefaults_KubeProxyConfiguration(obj *KubeProxyConfiguration) { if obj.ConntrackTCPEstablishedTimeout == zero { obj.ConntrackTCPEstablishedTimeout = unversioned.Duration{Duration: 24 * time.Hour} // 1 day (1/5 default) } + if obj.ConntrackTCPCloseWaitTimeout == zero { + obj.ConntrackTCPCloseWaitTimeout = unversioned.Duration{Duration: 1 * time.Hour} + } } func SetDefaults_KubeSchedulerConfiguration(obj *KubeSchedulerConfiguration) { diff --git a/pkg/apis/componentconfig/v1alpha1/types.go b/pkg/apis/componentconfig/v1alpha1/types.go index ab5a93fb925..c7c8ef58792 100644 --- a/pkg/apis/componentconfig/v1alpha1/types.go +++ b/pkg/apis/componentconfig/v1alpha1/types.go @@ -71,9 +71,13 @@ type KubeProxyConfiguration struct { // 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"` - // conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open - // (e.g. '250ms', '2s'). Must be greater than 0. + // conntrackTCPEstablishedTimeout is how long an idle TCP connection + // will be kept open (e.g. '2s'). Must be greater than 0. ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"` + // 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 unversioned.Duration `json:"conntrackTCPCloseWaitTimeout"` } // Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables' diff --git a/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go b/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go index bd6497cba62..f07f39af632 100644 --- a/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go +++ b/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go @@ -80,6 +80,7 @@ func autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyCon out.ConntrackMaxPerCore = in.ConntrackMaxPerCore out.ConntrackMin = in.ConntrackMin out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout return nil } @@ -107,6 +108,7 @@ func autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyCon out.ConntrackMaxPerCore = in.ConntrackMaxPerCore out.ConntrackMin = in.ConntrackMin out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout return nil } diff --git a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go index 57680d03380..57b2f8e0ccb 100644 --- a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go @@ -83,6 +83,7 @@ func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c out.ConntrackMaxPerCore = in.ConntrackMaxPerCore out.ConntrackMin = in.ConntrackMin out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout return nil } } diff --git a/pkg/apis/componentconfig/zz_generated.deepcopy.go b/pkg/apis/componentconfig/zz_generated.deepcopy.go index 5643792ef92..8e3aeb93a94 100644 --- a/pkg/apis/componentconfig/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/zz_generated.deepcopy.go @@ -171,6 +171,7 @@ func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interfa out.ConntrackMaxPerCore = in.ConntrackMaxPerCore out.ConntrackMin = in.ConntrackMin out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout + out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout return nil } } diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index 2d8f97de5f1..2447fdd944a 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -1989,12 +1989,18 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ }, "conntrackTCPEstablishedTimeout": { SchemaProps: spec.SchemaProps{ - Description: "conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open (e.g. '250ms', '2s'). Must be greater than 0.", + Description: "conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open (e.g. '2s'). Must be greater than 0.", + Ref: spec.MustCreateRef("#/definitions/unversioned.Duration"), + }, + }, + "conntrackTCPCloseWaitTimeout": { + SchemaProps: spec.SchemaProps{ + Description: "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.", Ref: spec.MustCreateRef("#/definitions/unversioned.Duration"), }, }, }, - Required: []string{"TypeMeta", "bindAddress", "clusterCIDR", "healthzBindAddress", "healthzPort", "hostnameOverride", "iptablesMasqueradeBit", "iptablesSyncPeriodSeconds", "kubeconfigPath", "masqueradeAll", "master", "oomScoreAdj", "mode", "portRange", "resourceContainer", "udpTimeoutMilliseconds", "conntrackMax", "conntrackMaxPerCore", "conntrackMin", "conntrackTCPEstablishedTimeout"}, + Required: []string{"TypeMeta", "bindAddress", "clusterCIDR", "healthzBindAddress", "healthzPort", "hostnameOverride", "iptablesMasqueradeBit", "iptablesSyncPeriodSeconds", "kubeconfigPath", "masqueradeAll", "master", "oomScoreAdj", "mode", "portRange", "resourceContainer", "udpTimeoutMilliseconds", "conntrackMax", "conntrackMaxPerCore", "conntrackMin", "conntrackTCPEstablishedTimeout", "conntrackTCPCloseWaitTimeout"}, }, }, Dependencies: []string{ @@ -13717,12 +13723,18 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ }, "conntrackTCPEstablishedTimeout": { SchemaProps: spec.SchemaProps{ - Description: "conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open (e.g. '250ms', '2s'). Must be greater than 0.", + Description: "conntrackTCPEstablishedTimeout is how long an idle TCP connection will be kept open (e.g. '2s'). Must be greater than 0.", + Ref: spec.MustCreateRef("#/definitions/unversioned.Duration"), + }, + }, + "conntrackTCPCloseWaitTimeout": { + SchemaProps: spec.SchemaProps{ + Description: "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.", Ref: spec.MustCreateRef("#/definitions/unversioned.Duration"), }, }, }, - Required: []string{"TypeMeta", "bindAddress", "clusterCIDR", "healthzBindAddress", "healthzPort", "hostnameOverride", "iptablesMasqueradeBit", "iptablesSyncPeriodSeconds", "kubeconfigPath", "masqueradeAll", "master", "oomScoreAdj", "mode", "portRange", "resourceContainer", "udpTimeoutMilliseconds", "conntrackMax", "conntrackMaxPerCore", "conntrackMin", "conntrackTCPEstablishedTimeout"}, + Required: []string{"TypeMeta", "bindAddress", "clusterCIDR", "healthzBindAddress", "healthzPort", "hostnameOverride", "iptablesMasqueradeBit", "iptablesSyncPeriodSeconds", "kubeconfigPath", "masqueradeAll", "master", "oomScoreAdj", "mode", "portRange", "resourceContainer", "udpTimeoutMilliseconds", "conntrackMax", "conntrackMaxPerCore", "conntrackMin", "conntrackTCPEstablishedTimeout", "conntrackTCPCloseWaitTimeout"}, }, }, Dependencies: []string{ diff --git a/test/e2e/BUILD b/test/e2e/BUILD index de447eef05f..bd569dc340c 100644 --- a/test/e2e/BUILD +++ b/test/e2e/BUILD @@ -58,6 +58,7 @@ go_library( "initial_resources.go", "job.go", "kibana_logging.go", + "kube_proxy.go", "kubectl.go", "kubelet.go", "kubelet_perf.go", @@ -171,6 +172,7 @@ go_library( "//test/e2e/chaosmonkey:go_default_library", "//test/e2e/common:go_default_library", "//test/e2e/framework:go_default_library", + "//test/images/net/nat:go_default_library", "//test/utils:go_default_library", "//vendor:github.com/aws/aws-sdk-go/aws", "//vendor:github.com/aws/aws-sdk-go/aws/awserr", diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 1625d464922..2c98f78d617 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -3332,7 +3332,7 @@ func LogSSHResult(result SSHResult) { Logf("ssh %s: exit code: %d", remote, result.Code) } -func IssueSSHCommand(cmd, provider string, node *api.Node) error { +func IssueSSHCommandWithResult(cmd, provider string, node *api.Node) (*SSHResult, error) { Logf("Getting external IP address for %s", node.Name) host := "" for _, a := range node.Status.Addresses { @@ -3341,15 +3341,34 @@ func IssueSSHCommand(cmd, provider string, node *api.Node) error { break } } + if host == "" { - return fmt.Errorf("couldn't find external IP address for node %s", node.Name) + return nil, fmt.Errorf("couldn't find external IP address for node %s", node.Name) } - Logf("Calling %s on %s(%s)", cmd, node.Name, host) + + Logf("SSH %q on %s(%s)", cmd, node.Name, host) result, err := SSH(cmd, host, provider) LogSSHResult(result) + if result.Code != 0 || err != nil { - return fmt.Errorf("failed running %q: %v (exit code %d)", cmd, err, result.Code) + return nil, fmt.Errorf("failed running %q: %v (exit code %d)", + cmd, err, result.Code) } + + return &result, nil +} + +func IssueSSHCommand(cmd, provider string, node *api.Node) error { + result, err := IssueSSHCommandWithResult(cmd, provider, node) + if result != nil { + LogSSHResult(*result) + } + + if result.Code != 0 || err != nil { + return fmt.Errorf("failed running %q: %v (exit code %d)", + cmd, err, result.Code) + } + return nil } diff --git a/test/e2e/kube_proxy.go b/test/e2e/kube_proxy.go new file mode 100644 index 00000000000..52f04ca5ae0 --- /dev/null +++ b/test/e2e/kube_proxy.go @@ -0,0 +1,205 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package e2e + +import ( + "encoding/json" + "fmt" + "math" + "strconv" + "strings" + "time" + + "k8s.io/kubernetes/pkg/api" + + "k8s.io/kubernetes/test/e2e/framework" + "k8s.io/kubernetes/test/images/net/nat" + + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" +) + +const kubeProxyE2eImage = "gcr.io/google_containers/e2e-net-amd64:1.0" + +var _ = framework.KubeDescribe("Network", func() { + const ( + testDaemonHttpPort = 11301 + testDaemonTcpPort = 11302 + timeoutSeconds = 10 + postFinTimeoutSeconds = 5 + ) + + fr := framework.NewDefaultFramework("network") + + It("should set TCP CLOSE_WAIT timeout", func() { + nodes := framework.GetReadySchedulableNodesOrDie(fr.ClientSet) + ips := collectAddresses(nodes, api.NodeInternalIP) + + if len(nodes.Items) < 2 { + framework.Skipf( + "Test requires >= 2 Ready nodes, but there are only %v nodes", + len(nodes.Items)) + } + + type NodeInfo struct { + node *api.Node + name string + nodeIp string + } + + clientNodeInfo := NodeInfo{ + node: &nodes.Items[0], + name: nodes.Items[0].Name, + nodeIp: ips[0], + } + + serverNodeInfo := NodeInfo{ + node: &nodes.Items[1], + name: nodes.Items[1].Name, + nodeIp: ips[1], + } + + zero := int64(0) + + clientPodSpec := &api.Pod{ + ObjectMeta: api.ObjectMeta{ + Name: "e2e-net-client", + Namespace: fr.Namespace.Name, + Labels: map[string]string{"app": "e2e-net-client"}, + }, + Spec: api.PodSpec{ + NodeName: clientNodeInfo.name, + Containers: []api.Container{ + { + Name: "e2e-net-client", + Image: kubeProxyE2eImage, + ImagePullPolicy: "Always", + Command: []string{ + "/net", "-serve", fmt.Sprintf("0.0.0.0:%d", testDaemonHttpPort), + }, + }, + }, + TerminationGracePeriodSeconds: &zero, + }, + } + + serverPodSpec := &api.Pod{ + ObjectMeta: api.ObjectMeta{ + Name: "e2e-net-server", + Namespace: fr.Namespace.Name, + Labels: map[string]string{"app": "e2e-net-server"}, + }, + Spec: api.PodSpec{ + NodeName: serverNodeInfo.name, + Containers: []api.Container{ + { + Name: "e2e-net-server", + Image: kubeProxyE2eImage, + ImagePullPolicy: "Always", + Command: []string{ + "/net", + "-runner", "nat-closewait-server", + "-options", + fmt.Sprintf(`{"LocalAddr":"0.0.0.0:%v", "PostFindTimeoutSeconds":%v}`, + testDaemonTcpPort, + postFinTimeoutSeconds), + }, + Ports: []api.ContainerPort{ + { + Name: "tcp", + ContainerPort: testDaemonTcpPort, + HostPort: testDaemonTcpPort, + }, + }, + }, + }, + TerminationGracePeriodSeconds: &zero, + }, + } + + By(fmt.Sprintf( + "Launching a server daemon on node %v (node ip: %v, image: %v)", + serverNodeInfo.name, + serverNodeInfo.nodeIp, + kubeProxyE2eImage)) + fr.PodClient().CreateSync(serverPodSpec) + + By(fmt.Sprintf( + "Launching a client daemon on node %v (node ip: %v, image: %v)", + clientNodeInfo.name, + clientNodeInfo.nodeIp, + kubeProxyE2eImage)) + fr.PodClient().CreateSync(clientPodSpec) + + By("Make client connect") + + options := nat.CloseWaitClientOptions{ + RemoteAddr: fmt.Sprintf("%v:%v", + serverNodeInfo.nodeIp, testDaemonTcpPort), + TimeoutSeconds: timeoutSeconds, + PostFinTimeoutSeconds: 0, + LeakConnection: true, + } + + jsonBytes, err := json.Marshal(options) + cmd := fmt.Sprintf( + `curl -X POST http://localhost:%v/run/nat-closewait-client -d `+ + `'%v' 2>/dev/null`, + testDaemonHttpPort, + string(jsonBytes)) + framework.RunHostCmdOrDie(fr.Namespace.Name, "e2e-net-client", cmd) + + <-time.After(time.Duration(1) * time.Second) + + By("Checking /proc/net/nf_conntrack for the timeout") + // If test flakes occur here, then this check should be performed + // in a loop as there may be a race with the client connecting. + framework.IssueSSHCommandWithResult( + fmt.Sprintf("sudo cat /proc/net/ip_conntrack | grep 'dport=%v'", + testDaemonTcpPort), + framework.TestContext.Provider, + clientNodeInfo.node) + + // Timeout in seconds is available as the third column from + // /proc/net/ip_conntrack. + result, err := framework.IssueSSHCommandWithResult( + fmt.Sprintf( + "sudo cat /proc/net/ip_conntrack "+ + "| grep 'CLOSE_WAIT.*dst=%v.*dport=%v' "+ + "| awk '{print $3}'", + serverNodeInfo.nodeIp, + testDaemonTcpPort), + framework.TestContext.Provider, + clientNodeInfo.node) + framework.ExpectNoError(err) + + timeoutSeconds, err := strconv.Atoi(strings.TrimSpace(result.Stdout)) + framework.ExpectNoError(err) + + // These must be synchronized from the default values set in + // pkg/apis/../defaults.go ConntrackTCPCloseWaitTimeout. The + // current defaults are hidden in the initialization code. + const epsilonSeconds = 10 + const expectedTimeoutSeconds = 60 * 60 + + framework.Logf("conntrack entry timeout was: %v, expected: %v", + timeoutSeconds, expectedTimeoutSeconds) + + Expect(math.Abs(float64(timeoutSeconds - expectedTimeoutSeconds))).Should( + BeNumerically("<", (epsilonSeconds))) + }) +}) diff --git a/test/test_owners.csv b/test/test_owners.csv index 11a376fc0d7..1abf7a569b2 100644 --- a/test/test_owners.csv +++ b/test/test_owners.csv @@ -261,6 +261,7 @@ Network Partition should come back up if node goes down,foxish,0 Network Partition should create new pods when node is partitioned,foxish,0 Network Partition should eagerly create replacement pod during network partition when termination grace is non-zero,foxish,0 Network Partition should not reschedule pets if there is a network partition,foxish,0 +Network should set TCP CLOSE_WAIT timeout,bowei,0 Networking Granular Checks: Pods should function for intra-pod communication: http,stts,0 Networking Granular Checks: Pods should function for intra-pod communication: udp,freehan,0 Networking Granular Checks: Pods should function for node-pod communication: http,spxtr,1