From dd8ec911f3a98940b44f94f223cf41583e658404 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Fri, 4 Nov 2016 16:13:07 -0700 Subject: [PATCH] Revert "Revert "Merge pull request #35821 from vishh/gci-mounter-scope"" This reverts commit 402116aed49c2520855c71dddee8ff949bcea39f. --- cluster/gce/gci/configure-helper.sh | 9 + cluster/gce/gci/mounter/mounter | 17 +- cmd/kube-proxy/app/conntrack.go | 2 +- cmd/kubelet/app/options/options.go | 1 - cmd/kubelet/app/server.go | 2 +- hack/verify-flags/known-flags.txt | 1 - pkg/apis/componentconfig/types.generated.go | 12736 ++++++++++++++++ pkg/apis/componentconfig/types.go | 2 - pkg/apis/componentconfig/v1alpha1/types.go | 2 - .../v1alpha1/zz_generated.conversion.go | 2 - .../v1alpha1/zz_generated.deepcopy.go | 1 - .../componentconfig/zz_generated.deepcopy.go | 1 - .../providers/openstack/metadata.go | 2 +- pkg/kubemark/hollow_kubelet.go | 2 +- pkg/util/mount/BUILD | 1 + pkg/util/mount/mount.go | 19 +- pkg/util/mount/mount_linux.go | 21 +- pkg/util/mount/mount_unsupported.go | 3 +- test/e2e/framework/test_context.go | 3 - test/e2e_node/remote/remote.go | 4 +- 20 files changed, 12782 insertions(+), 49 deletions(-) create mode 100644 pkg/apis/componentconfig/types.generated.go diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index b0e060a12d3..1daaa087998 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -473,6 +473,7 @@ function start-kubelet { flags+=" --cluster-dns=${DNS_SERVER_IP}" flags+=" --cluster-domain=${DNS_DOMAIN}" flags+=" --config=/etc/kubernetes/manifests" + flags+=" --experimental-mounter-path=${KUBE_HOME}/bin/mounter" if [[ -n "${KUBELET_PORT:-}" ]]; then flags+=" --port=${KUBELET_PORT}" @@ -1174,9 +1175,15 @@ EOF } function override-kubectl { + echo "overriding kubectl" echo "export PATH=${KUBE_HOME}/bin:\$PATH" > /etc/profile.d/kube_env.sh } +function pre-warm-mounter { + echo "prewarming mounter" + ${KUBE_HOME}/bin/mounter &> /dev/null +} + ########### Main Function ########### echo "Start to configure instance for kubernetes" @@ -1211,6 +1218,8 @@ else fi override-kubectl +# Run the containerized mounter once to pre-cache the container image. +pre-warm-mounter assemble-docker-flags load-docker-images start-kubelet diff --git a/cluster/gce/gci/mounter/mounter b/cluster/gce/gci/mounter/mounter index e8a6dd2ec86..0cdf788c856 100755 --- a/cluster/gce/gci/mounter/mounter +++ b/cluster/gce/gci/mounter/mounter @@ -23,14 +23,21 @@ MOUNTER_USER=root RKT_BINARY=/home/kubernetes/bin/rkt function gc { - ${RKT_BINARY} gc --grace-period=0s &> /dev/null + # Attempt to garbage collect rkt pods with 5 retries. + # Rkt pods end up creating new copies of mounts on the host. Hence it is ideal to clean them up right away. + attempt=0 + until [ $attempt -ge 5 ]; do + ${RKT_BINARY} gc --grace-period=0s && break + attempt=$[$attempt+1] + sleep 1 + done } # Garbage collect old rkt containers on exit trap gc EXIT ${RKT_BINARY} run --stage1-name="coreos.com/rkt/stage1-fly:1.18.0" \ - --insecure-options=image \ - --volume=rootfs,kind=host,source=/,readOnly=false,recursive=true \ - --mount volume=rootfs,target=/media/root \ - docker://${MOUNTER_DOCKER_IMAGE}:${MOUNTER_DOCKER_VERSION} --user=${MOUNTER_USER} --exec /bin/mount -- "$@" + --insecure-options=image \ + --volume=kubelet,kind=host,source=/var/lib/kubelet,readOnly=false,recursive=true \ + --mount volume=kubelet,target=/var/lib/kubelet \ + docker://${MOUNTER_DOCKER_IMAGE}:${MOUNTER_DOCKER_VERSION} --user=${MOUNTER_USER} --exec /bin/mount -- "$@" diff --git a/cmd/kube-proxy/app/conntrack.go b/cmd/kube-proxy/app/conntrack.go index 322ede1972f..a7e982f0367 100644 --- a/cmd/kube-proxy/app/conntrack.go +++ b/cmd/kube-proxy/app/conntrack.go @@ -89,7 +89,7 @@ func (realConntracker) setIntSysCtl(name string, value int) error { func isSysFSWritable() (bool, error) { const permWritable = "rw" const sysfsDevice = "sysfs" - m := mount.New() + m := mount.New("" /* default mount path */) mountPoints, err := m.List() if err != nil { glog.Errorf("failed to list mount points: %v", err) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index 1596f0486fe..bfcc54b3121 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -203,7 +203,6 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) { fs.BoolVar(&s.ExitOnLockContention, "exit-on-lock-contention", s.ExitOnLockContention, "Whether kubelet should exit upon lock-file contention.") fs.StringVar(&s.RktPath, "rkt-path", s.RktPath, "Path of rkt binary. Leave empty to use the first rkt in $PATH. Only used if --container-runtime='rkt'.") fs.StringVar(&s.ExperimentalMounterPath, "experimental-mounter-path", s.ExperimentalMounterPath, "[Experimental] Path of mounter binary. Leave empty to use the default mount.") - fs.StringVar(&s.ExperimentalMounterRootfsPath, "experimental-mounter-rootfs-path", s.ExperimentalMounterRootfsPath, "[Experimental] Absolute path to the root filesystem for the mounter binary.") fs.StringVar(&s.RktAPIEndpoint, "rkt-api-endpoint", s.RktAPIEndpoint, "The endpoint of the rkt API service to communicate with. Only used if --container-runtime='rkt'.") fs.StringVar(&s.RktStage1Image, "rkt-stage1-image", s.RktStage1Image, "image to use as stage1. Local paths and http/https URLs are supported. If empty, the 'stage1.aci' in the same directory as '--rkt-path' will be used.") fs.MarkDeprecated("rkt-stage1-image", "Will be removed in a future version. The default stage1 image will be specified by the rkt configurations, see https://github.com/coreos/rkt/blob/master/Documentation/configuration.md for more details.") diff --git a/cmd/kubelet/app/server.go b/cmd/kubelet/app/server.go index 43bc01686c8..18fad23d525 100644 --- a/cmd/kubelet/app/server.go +++ b/cmd/kubelet/app/server.go @@ -118,7 +118,7 @@ func UnsecuredKubeletDeps(s *options.KubeletServer) (*kubelet.KubeletDeps, error return nil, err } - mounter := mount.NewCustomMounter(s.ExperimentalMounterPath, s.ExperimentalMounterRootfsPath) + mounter := mount.New(s.ExperimentalMounterPath) var writer kubeio.Writer = &kubeio.StdWriter{} if s.Containerized { glog.V(2).Info("Running kubelet in containerized mode (experimental)") diff --git a/hack/verify-flags/known-flags.txt b/hack/verify-flags/known-flags.txt index 2feaf7fda6c..e7f230b426b 100644 --- a/hack/verify-flags/known-flags.txt +++ b/hack/verify-flags/known-flags.txt @@ -191,7 +191,6 @@ experimental-allowed-unsafe-sysctls experimental-bootstrap-kubeconfig experimental-keystone-url experimental-mounter-path -experimental-mounter-rootfs-path experimental-nvidia-gpus experimental-prefix experimental-cri diff --git a/pkg/apis/componentconfig/types.generated.go b/pkg/apis/componentconfig/types.generated.go new file mode 100644 index 00000000000..d8143402e95 --- /dev/null +++ b/pkg/apis/componentconfig/types.generated.go @@ -0,0 +1,12736 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 [23]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(23) + } else { + yynn2 = 21 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym10 := z.EncBinary() + _ = yym10 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("bindAddress")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym11 := z.EncBinary() + _ = yym11 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym14 := z.EncBinary() + _ = yym14 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym17 := z.EncBinary() + _ = yym17 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeInt(int64(x.HealthzPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym20 := z.EncBinary() + _ = yym20 + if false { + } else { + r.EncodeInt(int64(x.HealthzPort)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym22 := z.EncBinary() + _ = yym22 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym23 := z.EncBinary() + _ = yym23 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.IPTablesMasqueradeBit == nil { + r.EncodeNil() + } else { + yy25 := *x.IPTablesMasqueradeBit + yym26 := z.EncBinary() + _ = yym26 + if false { + } else { + r.EncodeInt(int64(yy25)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.IPTablesMasqueradeBit == nil { + r.EncodeNil() + } else { + yy27 := *x.IPTablesMasqueradeBit + yym28 := z.EncBinary() + _ = yym28 + if false { + } else { + r.EncodeInt(int64(yy27)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy30 := &x.IPTablesSyncPeriod + yym31 := z.EncBinary() + _ = yym31 + if false { + } else if z.HasExtensions() && z.EncExt(yy30) { + } else if !yym31 && z.IsJSONHandle() { + z.EncJSONMarshal(yy30) + } else { + z.EncFallback(yy30) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesSyncPeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy32 := &x.IPTablesSyncPeriod + yym33 := z.EncBinary() + _ = yym33 + if false { + } else if z.HasExtensions() && z.EncExt(yy32) { + } else if !yym33 && z.IsJSONHandle() { + z.EncJSONMarshal(yy32) + } else { + z.EncFallback(yy32) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy35 := &x.IPTablesMinSyncPeriod + yym36 := z.EncBinary() + _ = yym36 + if false { + } else if z.HasExtensions() && z.EncExt(yy35) { + } else if !yym36 && z.IsJSONHandle() { + z.EncJSONMarshal(yy35) + } else { + z.EncFallback(yy35) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesMinSyncPeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy37 := &x.IPTablesMinSyncPeriod + yym38 := z.EncBinary() + _ = yym38 + if false { + } else if z.HasExtensions() && z.EncExt(yy37) { + } else if !yym38 && z.IsJSONHandle() { + z.EncJSONMarshal(yy37) + } else { + z.EncFallback(yy37) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym40 := z.EncBinary() + _ = yym40 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeconfigPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym41 := z.EncBinary() + _ = yym41 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym43 := z.EncBinary() + _ = yym43 + if false { + } else { + r.EncodeBool(bool(x.MasqueradeAll)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("masqueradeAll")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym44 := z.EncBinary() + _ = yym44 + if false { + } else { + r.EncodeBool(bool(x.MasqueradeAll)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym46 := z.EncBinary() + _ = yym46 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Master)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("master")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Master)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.OOMScoreAdj == nil { + r.EncodeNil() + } else { + yy49 := *x.OOMScoreAdj + yym50 := z.EncBinary() + _ = yym50 + if false { + } else { + r.EncodeInt(int64(yy49)) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OOMScoreAdj == nil { + r.EncodeNil() + } else { + yy51 := *x.OOMScoreAdj + yym52 := z.EncBinary() + _ = yym52 + if false { + } else { + r.EncodeInt(int64(yy51)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Mode.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Mode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym55 := z.EncBinary() + _ = yym55 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("portRange")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PortRange)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym58 := z.EncBinary() + _ = yym58 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceContainer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym59 := z.EncBinary() + _ = yym59 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy61 := &x.UDPIdleTimeout + yym62 := z.EncBinary() + _ = yym62 + if false { + } else if z.HasExtensions() && z.EncExt(yy61) { + } else if !yym62 && z.IsJSONHandle() { + z.EncJSONMarshal(yy61) + } else { + z.EncFallback(yy61) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("udpTimeoutMilliseconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy63 := &x.UDPIdleTimeout + yym64 := z.EncBinary() + _ = yym64 + if false { + } else if z.HasExtensions() && z.EncExt(yy63) { + } else if !yym64 && z.IsJSONHandle() { + z.EncJSONMarshal(yy63) + } else { + z.EncFallback(yy63) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym66 := z.EncBinary() + _ = yym66 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMax)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackMax")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym67 := z.EncBinary() + _ = yym67 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMax)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym69 := z.EncBinary() + _ = yym69 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMaxPerCore)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackMaxPerCore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym70 := z.EncBinary() + _ = yym70 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMaxPerCore)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym72 := z.EncBinary() + _ = yym72 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMin)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackMin")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym73 := z.EncBinary() + _ = yym73 + if false { + } else { + r.EncodeInt(int64(x.ConntrackMin)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy75 := &x.ConntrackTCPEstablishedTimeout + yym76 := z.EncBinary() + _ = yym76 + if false { + } else if z.HasExtensions() && z.EncExt(yy75) { + } else if !yym76 && z.IsJSONHandle() { + z.EncJSONMarshal(yy75) + } else { + z.EncFallback(yy75) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy77 := &x.ConntrackTCPEstablishedTimeout + yym78 := z.EncBinary() + _ = yym78 + if false { + } else if z.HasExtensions() && z.EncExt(yy77) { + } else if !yym78 && z.IsJSONHandle() { + z.EncJSONMarshal(yy77) + } else { + z.EncFallback(yy77) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy80 := &x.ConntrackTCPCloseWaitTimeout + yym81 := z.EncBinary() + _ = yym81 + if false { + } else if z.HasExtensions() && z.EncExt(yy80) { + } else if !yym81 && z.IsJSONHandle() { + z.EncJSONMarshal(yy80) + } else { + z.EncFallback(yy80) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPCloseWaitTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy82 := &x.ConntrackTCPCloseWaitTimeout + yym83 := z.EncBinary() + _ = yym83 + if false { + } else if z.HasExtensions() && z.EncExt(yy82) { + } else if !yym83 && z.IsJSONHandle() { + z.EncJSONMarshal(yy82) + } else { + z.EncFallback(yy82) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *KubeProxyConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym84 := z.DecBinary() + _ = yym84 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct85 := r.ContainerType() + if yyct85 == codecSelferValueTypeMap1234 { + yyl85 := r.ReadMapStart() + if yyl85 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl85, d) + } + } else if yyct85 == codecSelferValueTypeArray1234 { + yyl85 := r.ReadArrayStart() + if yyl85 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl85, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys86Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys86Slc + var yyhl86 bool = l >= 0 + for yyj86 := 0; ; yyj86++ { + if yyhl86 { + if yyj86 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys86Slc = r.DecodeBytes(yys86Slc, true, true) + yys86 := string(yys86Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys86 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "bindAddress": + if r.TryDecodeAsNil() { + x.BindAddress = "" + } else { + x.BindAddress = string(r.DecodeString()) + } + case "clusterCIDR": + if r.TryDecodeAsNil() { + x.ClusterCIDR = "" + } else { + x.ClusterCIDR = string(r.DecodeString()) + } + case "healthzBindAddress": + if r.TryDecodeAsNil() { + x.HealthzBindAddress = "" + } else { + x.HealthzBindAddress = string(r.DecodeString()) + } + case "healthzPort": + if r.TryDecodeAsNil() { + x.HealthzPort = 0 + } else { + x.HealthzPort = int32(r.DecodeInt(32)) + } + case "hostnameOverride": + if r.TryDecodeAsNil() { + x.HostnameOverride = "" + } else { + x.HostnameOverride = string(r.DecodeString()) + } + case "iptablesMasqueradeBit": + if r.TryDecodeAsNil() { + if x.IPTablesMasqueradeBit != nil { + x.IPTablesMasqueradeBit = nil + } + } else { + if x.IPTablesMasqueradeBit == nil { + x.IPTablesMasqueradeBit = new(int32) + } + yym95 := z.DecBinary() + _ = yym95 + if false { + } else { + *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) + } + } + case "iptablesSyncPeriodSeconds": + if r.TryDecodeAsNil() { + x.IPTablesSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv96 := &x.IPTablesSyncPeriod + yym97 := z.DecBinary() + _ = yym97 + if false { + } else if z.HasExtensions() && z.DecExt(yyv96) { + } else if !yym97 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv96) + } else { + z.DecFallback(yyv96, false) + } + } + case "iptablesMinSyncPeriodSeconds": + if r.TryDecodeAsNil() { + x.IPTablesMinSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv98 := &x.IPTablesMinSyncPeriod + yym99 := z.DecBinary() + _ = yym99 + if false { + } else if z.HasExtensions() && z.DecExt(yyv98) { + } else if !yym99 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv98) + } else { + z.DecFallback(yyv98, false) + } + } + case "kubeconfigPath": + if r.TryDecodeAsNil() { + x.KubeconfigPath = "" + } else { + x.KubeconfigPath = string(r.DecodeString()) + } + case "masqueradeAll": + if r.TryDecodeAsNil() { + x.MasqueradeAll = false + } else { + x.MasqueradeAll = bool(r.DecodeBool()) + } + case "master": + if r.TryDecodeAsNil() { + x.Master = "" + } else { + x.Master = string(r.DecodeString()) + } + case "oomScoreAdj": + if r.TryDecodeAsNil() { + if x.OOMScoreAdj != nil { + x.OOMScoreAdj = nil + } + } else { + if x.OOMScoreAdj == nil { + x.OOMScoreAdj = new(int32) + } + yym104 := z.DecBinary() + _ = yym104 + if false { + } else { + *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) + } + } + case "mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = ProxyMode(r.DecodeString()) + } + case "portRange": + if r.TryDecodeAsNil() { + x.PortRange = "" + } else { + x.PortRange = string(r.DecodeString()) + } + case "resourceContainer": + if r.TryDecodeAsNil() { + x.ResourceContainer = "" + } else { + x.ResourceContainer = string(r.DecodeString()) + } + case "udpTimeoutMilliseconds": + if r.TryDecodeAsNil() { + x.UDPIdleTimeout = pkg1_unversioned.Duration{} + } else { + yyv108 := &x.UDPIdleTimeout + yym109 := z.DecBinary() + _ = yym109 + if false { + } else if z.HasExtensions() && z.DecExt(yyv108) { + } else if !yym109 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv108) + } else { + z.DecFallback(yyv108, false) + } + } + case "conntrackMax": + if r.TryDecodeAsNil() { + x.ConntrackMax = 0 + } else { + x.ConntrackMax = int32(r.DecodeInt(32)) + } + case "conntrackMaxPerCore": + if r.TryDecodeAsNil() { + x.ConntrackMaxPerCore = 0 + } else { + x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) + } + case "conntrackMin": + if r.TryDecodeAsNil() { + x.ConntrackMin = 0 + } else { + x.ConntrackMin = int32(r.DecodeInt(32)) + } + case "conntrackTCPEstablishedTimeout": + if r.TryDecodeAsNil() { + x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} + } else { + yyv113 := &x.ConntrackTCPEstablishedTimeout + yym114 := z.DecBinary() + _ = yym114 + if false { + } else if z.HasExtensions() && z.DecExt(yyv113) { + } else if !yym114 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv113) + } else { + z.DecFallback(yyv113, false) + } + } + case "conntrackTCPCloseWaitTimeout": + if r.TryDecodeAsNil() { + x.ConntrackTCPCloseWaitTimeout = pkg1_unversioned.Duration{} + } else { + yyv115 := &x.ConntrackTCPCloseWaitTimeout + yym116 := z.DecBinary() + _ = yym116 + if false { + } else if z.HasExtensions() && z.DecExt(yyv115) { + } else if !yym116 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv115) + } else { + z.DecFallback(yyv115, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys86) + } // end switch yys86 + } // end for yyj86 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj117 int + var yyb117 bool + var yyhl117 bool = l >= 0 + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.BindAddress = "" + } else { + x.BindAddress = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterCIDR = "" + } else { + x.ClusterCIDR = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HealthzBindAddress = "" + } else { + x.HealthzBindAddress = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HealthzPort = 0 + } else { + x.HealthzPort = int32(r.DecodeInt(32)) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostnameOverride = "" + } else { + x.HostnameOverride = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.IPTablesMasqueradeBit != nil { + x.IPTablesMasqueradeBit = nil + } + } else { + if x.IPTablesMasqueradeBit == nil { + x.IPTablesMasqueradeBit = new(int32) + } + yym126 := z.DecBinary() + _ = yym126 + if false { + } else { + *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32)) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv127 := &x.IPTablesSyncPeriod + yym128 := z.DecBinary() + _ = yym128 + if false { + } else if z.HasExtensions() && z.DecExt(yyv127) { + } else if !yym128 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv127) + } else { + z.DecFallback(yyv127, false) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesMinSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv129 := &x.IPTablesMinSyncPeriod + yym130 := z.DecBinary() + _ = yym130 + if false { + } else if z.HasExtensions() && z.DecExt(yyv129) { + } else if !yym130 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv129) + } else { + z.DecFallback(yyv129, false) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeconfigPath = "" + } else { + x.KubeconfigPath = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MasqueradeAll = false + } else { + x.MasqueradeAll = bool(r.DecodeBool()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Master = "" + } else { + x.Master = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.OOMScoreAdj != nil { + x.OOMScoreAdj = nil + } + } else { + if x.OOMScoreAdj == nil { + x.OOMScoreAdj = new(int32) + } + yym135 := z.DecBinary() + _ = yym135 + if false { + } else { + *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32)) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = ProxyMode(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PortRange = "" + } else { + x.PortRange = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceContainer = "" + } else { + x.ResourceContainer = string(r.DecodeString()) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UDPIdleTimeout = pkg1_unversioned.Duration{} + } else { + yyv139 := &x.UDPIdleTimeout + yym140 := z.DecBinary() + _ = yym140 + if false { + } else if z.HasExtensions() && z.DecExt(yyv139) { + } else if !yym140 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv139) + } else { + z.DecFallback(yyv139, false) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConntrackMax = 0 + } else { + x.ConntrackMax = int32(r.DecodeInt(32)) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConntrackMaxPerCore = 0 + } else { + x.ConntrackMaxPerCore = int32(r.DecodeInt(32)) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConntrackMin = 0 + } else { + x.ConntrackMin = int32(r.DecodeInt(32)) + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{} + } else { + yyv144 := &x.ConntrackTCPEstablishedTimeout + yym145 := z.DecBinary() + _ = yym145 + if false { + } else if z.HasExtensions() && z.DecExt(yyv144) { + } else if !yym145 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv144) + } else { + z.DecFallback(yyv144, false) + } + } + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConntrackTCPCloseWaitTimeout = pkg1_unversioned.Duration{} + } else { + yyv146 := &x.ConntrackTCPCloseWaitTimeout + yym147 := z.DecBinary() + _ = yym147 + if false { + } else if z.HasExtensions() && z.DecExt(yyv146) { + } else if !yym147 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv146) + } else { + z.DecFallback(yyv146, false) + } + } + for { + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l + } else { + yyb117 = r.CheckBreak() + } + if yyb117 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj117-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym148 := z.EncBinary() + _ = yym148 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ProxyMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym149 := z.DecBinary() + _ = yym149 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x HairpinMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym150 := z.EncBinary() + _ = yym150 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *HairpinMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym151 := z.DecBinary() + _ = yym151 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym152 := z.EncBinary() + _ = yym152 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep153 := !z.EncBinary() + yy2arr153 := z.EncBasicHandle().StructToArray + var yyq153 [112]bool + _, _, _ = yysep153, yyq153, yy2arr153 + const yyr153 bool = false + yyq153[0] = x.Kind != "" + yyq153[1] = x.APIVersion != "" + yyq153[55] = x.CloudProvider != "" + yyq153[56] = x.CloudConfigFile != "" + yyq153[57] = x.KubeletCgroups != "" + yyq153[58] = x.CgroupsPerQOS != false + yyq153[59] = x.CgroupDriver != "" + yyq153[60] = x.RuntimeCgroups != "" + yyq153[61] = x.SystemCgroups != "" + yyq153[62] = x.CgroupRoot != "" + yyq153[66] = true + yyq153[67] = x.RktPath != "" + yyq153[68] = x.ExperimentalMounterPath != "" + yyq153[69] = x.ExperimentalMounterRootfsPath != "" + yyq153[70] = x.RktAPIEndpoint != "" + yyq153[71] = x.RktStage1Image != "" + yyq153[90] = true + yyq153[91] = x.NodeIP != "" + yyq153[95] = x.EvictionHard != "" + yyq153[96] = x.EvictionSoft != "" + yyq153[97] = x.EvictionSoftGracePeriod != "" + yyq153[98] = true + yyq153[99] = x.EvictionMaxPodGracePeriod != 0 + yyq153[100] = x.EvictionMinimumReclaim != "" + yyq153[109] = len(x.AllowedUnsafeSysctls) != 0 + yyq153[111] = x.ExperimentalRuntimeIntegrationType != "" + var yynn153 int + if yyr153 || yy2arr153 { + r.EncodeArrayStart(112) + } else { + yynn153 = 86 + for _, b := range yyq153 { + if b { + yynn153++ + } + } + r.EncodeMapStart(yynn153) + yynn153 = 0 + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[0] { + yym155 := z.EncBinary() + _ = yym155 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym156 := z.EncBinary() + _ = yym156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[1] { + yym158 := z.EncBinary() + _ = yym158 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym161 := z.EncBinary() + _ = yym161 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podManifestPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym162 := z.EncBinary() + _ = yym162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodManifestPath)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy164 := &x.SyncFrequency + yym165 := z.EncBinary() + _ = yym165 + if false { + } else if z.HasExtensions() && z.EncExt(yy164) { + } else if !yym165 && z.IsJSONHandle() { + z.EncJSONMarshal(yy164) + } else { + z.EncFallback(yy164) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("syncFrequency")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy166 := &x.SyncFrequency + yym167 := z.EncBinary() + _ = yym167 + if false { + } else if z.HasExtensions() && z.EncExt(yy166) { + } else if !yym167 && z.IsJSONHandle() { + z.EncJSONMarshal(yy166) + } else { + z.EncFallback(yy166) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy169 := &x.FileCheckFrequency + yym170 := z.EncBinary() + _ = yym170 + if false { + } else if z.HasExtensions() && z.EncExt(yy169) { + } else if !yym170 && z.IsJSONHandle() { + z.EncJSONMarshal(yy169) + } else { + z.EncFallback(yy169) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fileCheckFrequency")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy171 := &x.FileCheckFrequency + yym172 := z.EncBinary() + _ = yym172 + if false { + } else if z.HasExtensions() && z.EncExt(yy171) { + } else if !yym172 && z.IsJSONHandle() { + z.EncJSONMarshal(yy171) + } else { + z.EncFallback(yy171) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy174 := &x.HTTPCheckFrequency + yym175 := z.EncBinary() + _ = yym175 + if false { + } else if z.HasExtensions() && z.EncExt(yy174) { + } else if !yym175 && z.IsJSONHandle() { + z.EncJSONMarshal(yy174) + } else { + z.EncFallback(yy174) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("httpCheckFrequency")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy176 := &x.HTTPCheckFrequency + yym177 := z.EncBinary() + _ = yym177 + if false { + } else if z.HasExtensions() && z.EncExt(yy176) { + } else if !yym177 && z.IsJSONHandle() { + z.EncJSONMarshal(yy176) + } else { + z.EncFallback(yy176) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym179 := z.EncBinary() + _ = yym179 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("manifestURL")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym180 := z.EncBinary() + _ = yym180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym182 := z.EncBinary() + _ = yym182 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("manifestURLHeader")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym183 := z.EncBinary() + _ = yym183 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym185 := z.EncBinary() + _ = yym185 + if false { + } else { + r.EncodeBool(bool(x.EnableServer)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableServer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym186 := z.EncBinary() + _ = yym186 + if false { + } else { + r.EncodeBool(bool(x.EnableServer)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym188 := z.EncBinary() + _ = yym188 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("address")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym189 := z.EncBinary() + _ = yym189 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym191 := z.EncBinary() + _ = yym191 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym192 := z.EncBinary() + _ = yym192 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym194 := z.EncBinary() + _ = yym194 + if false { + } else { + r.EncodeInt(int64(x.ReadOnlyPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnlyPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym195 := z.EncBinary() + _ = yym195 + if false { + } else { + r.EncodeInt(int64(x.ReadOnlyPort)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym197 := z.EncBinary() + _ = yym197 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tlsCertFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym198 := z.EncBinary() + _ = yym198 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym200 := z.EncBinary() + _ = yym200 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tlsPrivateKeyFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym201 := z.EncBinary() + _ = yym201 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym203 := z.EncBinary() + _ = yym203 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("certDirectory")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym204 := z.EncBinary() + _ = yym204 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy206 := &x.Authentication + yy206.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("authentication")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy207 := &x.Authentication + yy207.CodecEncodeSelf(e) + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy209 := &x.Authorization + yy209.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("authorization")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy210 := &x.Authorization + yy210.CodecEncodeSelf(e) + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym212 := z.EncBinary() + _ = yym212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostnameOverride")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym213 := z.EncBinary() + _ = yym213 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym215 := z.EncBinary() + _ = yym215 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podInfraContainerImage")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym216 := z.EncBinary() + _ = yym216 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym218 := z.EncBinary() + _ = yym218 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("dockerEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym219 := z.EncBinary() + _ = yym219 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym221 := z.EncBinary() + _ = yym221 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rootDirectory")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym222 := z.EncBinary() + _ = yym222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym224 := z.EncBinary() + _ = yym224 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("seccompProfileRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym225 := z.EncBinary() + _ = yym225 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym227 := z.EncBinary() + _ = yym227 + if false { + } else { + r.EncodeBool(bool(x.AllowPrivileged)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("allowPrivileged")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym228 := z.EncBinary() + _ = yym228 + if false { + } else { + r.EncodeBool(bool(x.AllowPrivileged)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.HostNetworkSources == nil { + r.EncodeNil() + } else { + yym230 := z.EncBinary() + _ = yym230 + if false { + } else { + z.F.EncSliceStringV(x.HostNetworkSources, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostNetworkSources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostNetworkSources == nil { + r.EncodeNil() + } else { + yym231 := z.EncBinary() + _ = yym231 + if false { + } else { + z.F.EncSliceStringV(x.HostNetworkSources, false, e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.HostPIDSources == nil { + r.EncodeNil() + } else { + yym233 := z.EncBinary() + _ = yym233 + if false { + } else { + z.F.EncSliceStringV(x.HostPIDSources, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostPIDSources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostPIDSources == nil { + r.EncodeNil() + } else { + yym234 := z.EncBinary() + _ = yym234 + if false { + } else { + z.F.EncSliceStringV(x.HostPIDSources, false, e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.HostIPCSources == nil { + r.EncodeNil() + } else { + yym236 := z.EncBinary() + _ = yym236 + if false { + } else { + z.F.EncSliceStringV(x.HostIPCSources, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostIPCSources")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.HostIPCSources == nil { + r.EncodeNil() + } else { + yym237 := z.EncBinary() + _ = yym237 + if false { + } else { + z.F.EncSliceStringV(x.HostIPCSources, false, e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym239 := z.EncBinary() + _ = yym239 + if false { + } else { + r.EncodeInt(int64(x.RegistryPullQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registryPullQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym240 := z.EncBinary() + _ = yym240 + if false { + } else { + r.EncodeInt(int64(x.RegistryPullQPS)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym242 := z.EncBinary() + _ = yym242 + if false { + } else { + r.EncodeInt(int64(x.RegistryBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registryBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym243 := z.EncBinary() + _ = yym243 + if false { + } else { + r.EncodeInt(int64(x.RegistryBurst)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym245 := z.EncBinary() + _ = yym245 + if false { + } else { + r.EncodeInt(int64(x.EventRecordQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("eventRecordQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym246 := z.EncBinary() + _ = yym246 + if false { + } else { + r.EncodeInt(int64(x.EventRecordQPS)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym248 := z.EncBinary() + _ = yym248 + if false { + } else { + r.EncodeInt(int64(x.EventBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("eventBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym249 := z.EncBinary() + _ = yym249 + if false { + } else { + r.EncodeInt(int64(x.EventBurst)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym251 := z.EncBinary() + _ = yym251 + if false { + } else { + r.EncodeBool(bool(x.EnableDebuggingHandlers)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableDebuggingHandlers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym252 := z.EncBinary() + _ = yym252 + if false { + } else { + r.EncodeBool(bool(x.EnableDebuggingHandlers)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy254 := &x.MinimumGCAge + yym255 := z.EncBinary() + _ = yym255 + if false { + } else if z.HasExtensions() && z.EncExt(yy254) { + } else if !yym255 && z.IsJSONHandle() { + z.EncJSONMarshal(yy254) + } else { + z.EncFallback(yy254) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minimumGCAge")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy256 := &x.MinimumGCAge + yym257 := z.EncBinary() + _ = yym257 + if false { + } else if z.HasExtensions() && z.EncExt(yy256) { + } else if !yym257 && z.IsJSONHandle() { + z.EncJSONMarshal(yy256) + } else { + z.EncFallback(yy256) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym259 := z.EncBinary() + _ = yym259 + if false { + } else { + r.EncodeInt(int64(x.MaxPerPodContainerCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxPerPodContainerCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym260 := z.EncBinary() + _ = yym260 + if false { + } else { + r.EncodeInt(int64(x.MaxPerPodContainerCount)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym262 := z.EncBinary() + _ = yym262 + if false { + } else { + r.EncodeInt(int64(x.MaxContainerCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxContainerCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym263 := z.EncBinary() + _ = yym263 + if false { + } else { + r.EncodeInt(int64(x.MaxContainerCount)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym265 := z.EncBinary() + _ = yym265 + if false { + } else { + r.EncodeInt(int64(x.CAdvisorPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cAdvisorPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym266 := z.EncBinary() + _ = yym266 + if false { + } else { + r.EncodeInt(int64(x.CAdvisorPort)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym268 := z.EncBinary() + _ = yym268 + if false { + } else { + r.EncodeInt(int64(x.HealthzPort)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("healthzPort")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym269 := z.EncBinary() + _ = yym269 + if false { + } else { + r.EncodeInt(int64(x.HealthzPort)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym271 := z.EncBinary() + _ = yym271 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("healthzBindAddress")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym272 := z.EncBinary() + _ = yym272 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym274 := z.EncBinary() + _ = yym274 + if false { + } else { + r.EncodeInt(int64(x.OOMScoreAdj)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym275 := z.EncBinary() + _ = yym275 + if false { + } else { + r.EncodeInt(int64(x.OOMScoreAdj)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym277 := z.EncBinary() + _ = yym277 + if false { + } else { + r.EncodeBool(bool(x.RegisterNode)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registerNode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym278 := z.EncBinary() + _ = yym278 + if false { + } else { + r.EncodeBool(bool(x.RegisterNode)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym280 := z.EncBinary() + _ = yym280 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterDomain")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym281 := z.EncBinary() + _ = yym281 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym283 := z.EncBinary() + _ = yym283 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("masterServiceNamespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym284 := z.EncBinary() + _ = yym284 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym286 := z.EncBinary() + _ = yym286 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterDNS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym287 := z.EncBinary() + _ = yym287 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy289 := &x.StreamingConnectionIdleTimeout + yym290 := z.EncBinary() + _ = yym290 + if false { + } else if z.HasExtensions() && z.EncExt(yy289) { + } else if !yym290 && z.IsJSONHandle() { + z.EncJSONMarshal(yy289) + } else { + z.EncFallback(yy289) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("streamingConnectionIdleTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy291 := &x.StreamingConnectionIdleTimeout + yym292 := z.EncBinary() + _ = yym292 + if false { + } else if z.HasExtensions() && z.EncExt(yy291) { + } else if !yym292 && z.IsJSONHandle() { + z.EncJSONMarshal(yy291) + } else { + z.EncFallback(yy291) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy294 := &x.NodeStatusUpdateFrequency + yym295 := z.EncBinary() + _ = yym295 + if false { + } else if z.HasExtensions() && z.EncExt(yy294) { + } else if !yym295 && z.IsJSONHandle() { + z.EncJSONMarshal(yy294) + } else { + z.EncFallback(yy294) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeStatusUpdateFrequency")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy296 := &x.NodeStatusUpdateFrequency + yym297 := z.EncBinary() + _ = yym297 + if false { + } else if z.HasExtensions() && z.EncExt(yy296) { + } else if !yym297 && z.IsJSONHandle() { + z.EncJSONMarshal(yy296) + } else { + z.EncFallback(yy296) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy299 := &x.ImageMinimumGCAge + yym300 := z.EncBinary() + _ = yym300 + if false { + } else if z.HasExtensions() && z.EncExt(yy299) { + } else if !yym300 && z.IsJSONHandle() { + z.EncJSONMarshal(yy299) + } else { + z.EncFallback(yy299) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imageMinimumGCAge")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy301 := &x.ImageMinimumGCAge + yym302 := z.EncBinary() + _ = yym302 + if false { + } else if z.HasExtensions() && z.EncExt(yy301) { + } else if !yym302 && z.IsJSONHandle() { + z.EncJSONMarshal(yy301) + } else { + z.EncFallback(yy301) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym304 := z.EncBinary() + _ = yym304 + if false { + } else { + r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imageGCHighThresholdPercent")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym305 := z.EncBinary() + _ = yym305 + if false { + } else { + r.EncodeInt(int64(x.ImageGCHighThresholdPercent)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym307 := z.EncBinary() + _ = yym307 + if false { + } else { + r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("imageGCLowThresholdPercent")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym308 := z.EncBinary() + _ = yym308 + if false { + } else { + r.EncodeInt(int64(x.ImageGCLowThresholdPercent)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym310 := z.EncBinary() + _ = yym310 + if false { + } else { + r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lowDiskSpaceThresholdMB")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym311 := z.EncBinary() + _ = yym311 + if false { + } else { + r.EncodeInt(int64(x.LowDiskSpaceThresholdMB)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy313 := &x.VolumeStatsAggPeriod + yym314 := z.EncBinary() + _ = yym314 + if false { + } else if z.HasExtensions() && z.EncExt(yy313) { + } else if !yym314 && z.IsJSONHandle() { + z.EncJSONMarshal(yy313) + } else { + z.EncFallback(yy313) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeStatsAggPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy315 := &x.VolumeStatsAggPeriod + yym316 := z.EncBinary() + _ = yym316 + if false { + } else if z.HasExtensions() && z.EncExt(yy315) { + } else if !yym316 && z.IsJSONHandle() { + z.EncJSONMarshal(yy315) + } else { + z.EncFallback(yy315) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym318 := z.EncBinary() + _ = yym318 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym319 := z.EncBinary() + _ = yym319 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym321 := z.EncBinary() + _ = yym321 + if false { + } else { + r.EncodeInt(int64(x.NetworkPluginMTU)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginMTU")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym322 := z.EncBinary() + _ = yym322 + if false { + } else { + r.EncodeInt(int64(x.NetworkPluginMTU)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym324 := z.EncBinary() + _ = yym324 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym325 := z.EncBinary() + _ = yym325 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym327 := z.EncBinary() + _ = yym327 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CNIConfDir)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cniConfDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym328 := z.EncBinary() + _ = yym328 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CNIConfDir)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym330 := z.EncBinary() + _ = yym330 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CNIBinDir)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cniBinDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym331 := z.EncBinary() + _ = yym331 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CNIBinDir)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym333 := z.EncBinary() + _ = yym333 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumePluginDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym334 := z.EncBinary() + _ = yym334 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[55] { + yym336 := z.EncBinary() + _ = yym336 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[55] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym337 := z.EncBinary() + _ = yym337 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[56] { + yym339 := z.EncBinary() + _ = yym339 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[56] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym340 := z.EncBinary() + _ = yym340 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[57] { + yym342 := z.EncBinary() + _ = yym342 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[57] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym343 := z.EncBinary() + _ = yym343 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[58] { + yym345 := z.EncBinary() + _ = yym345 + if false { + } else { + r.EncodeBool(bool(x.CgroupsPerQOS)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq153[58] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cgroupsPerQOS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym346 := z.EncBinary() + _ = yym346 + if false { + } else { + r.EncodeBool(bool(x.CgroupsPerQOS)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[59] { + yym348 := z.EncBinary() + _ = yym348 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[59] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cgroupDriver")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym349 := z.EncBinary() + _ = yym349 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CgroupDriver)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[60] { + yym351 := z.EncBinary() + _ = yym351 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[60] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym352 := z.EncBinary() + _ = yym352 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[61] { + yym354 := z.EncBinary() + _ = yym354 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[61] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym355 := z.EncBinary() + _ = yym355 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[62] { + yym357 := z.EncBinary() + _ = yym357 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[62] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym358 := z.EncBinary() + _ = yym358 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym360 := z.EncBinary() + _ = yym360 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerRuntime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym361 := z.EncBinary() + _ = yym361 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym363 := z.EncBinary() + _ = yym363 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("remoteRuntimeEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym364 := z.EncBinary() + _ = yym364 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym366 := z.EncBinary() + _ = yym366 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("remoteImageEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym367 := z.EncBinary() + _ = yym367 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[66] { + yy369 := &x.RuntimeRequestTimeout + yym370 := z.EncBinary() + _ = yym370 + if false { + } else if z.HasExtensions() && z.EncExt(yy369) { + } else if !yym370 && z.IsJSONHandle() { + z.EncJSONMarshal(yy369) + } else { + z.EncFallback(yy369) + } + } else { + r.EncodeNil() + } + } else { + if yyq153[66] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy371 := &x.RuntimeRequestTimeout + yym372 := z.EncBinary() + _ = yym372 + if false { + } else if z.HasExtensions() && z.EncExt(yy371) { + } else if !yym372 && z.IsJSONHandle() { + z.EncJSONMarshal(yy371) + } else { + z.EncFallback(yy371) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[67] { + yym374 := z.EncBinary() + _ = yym374 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[67] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym375 := z.EncBinary() + _ = yym375 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[68] { + yym377 := z.EncBinary() + _ = yym377 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[68] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("experimentalMounterPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym378 := z.EncBinary() + _ = yym378 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterPath)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[69] { + yym380 := z.EncBinary() + _ = yym380 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterRootfsPath)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[69] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("experimentalMounterRootfsPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym381 := z.EncBinary() + _ = yym381 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalMounterRootfsPath)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[70] { + yym383 := z.EncBinary() + _ = yym383 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[70] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym384 := z.EncBinary() + _ = yym384 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[71] { + yym386 := z.EncBinary() + _ = yym386 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[71] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym387 := z.EncBinary() + _ = yym387 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym389 := z.EncBinary() + _ = yym389 + 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) + yym390 := z.EncBinary() + _ = yym390 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym392 := z.EncBinary() + _ = yym392 + if false { + } else { + r.EncodeBool(bool(x.ExitOnLockContention)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym393 := z.EncBinary() + _ = yym393 + if false { + } else { + r.EncodeBool(bool(x.ExitOnLockContention)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym395 := z.EncBinary() + _ = yym395 + 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) + yym396 := z.EncBinary() + _ = yym396 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym398 := z.EncBinary() + _ = yym398 + if false { + } else { + r.EncodeBool(bool(x.BabysitDaemons)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym399 := z.EncBinary() + _ = yym399 + if false { + } else { + r.EncodeBool(bool(x.BabysitDaemons)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym401 := z.EncBinary() + _ = yym401 + if false { + } else { + r.EncodeInt(int64(x.MaxPods)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxPods")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym402 := z.EncBinary() + _ = yym402 + if false { + } else { + r.EncodeInt(int64(x.MaxPods)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym404 := z.EncBinary() + _ = yym404 + if false { + } else { + r.EncodeInt(int64(x.NvidiaGPUs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym405 := z.EncBinary() + _ = yym405 + if false { + } else { + r.EncodeInt(int64(x.NvidiaGPUs)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym407 := z.EncBinary() + _ = yym407 + 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) + yym408 := z.EncBinary() + _ = yym408 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym410 := z.EncBinary() + _ = yym410 + 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) + yym411 := z.EncBinary() + _ = yym411 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym413 := z.EncBinary() + _ = yym413 + 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) + yym414 := z.EncBinary() + _ = yym414 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym416 := z.EncBinary() + _ = yym416 + if false { + } else { + r.EncodeBool(bool(x.CPUCFSQuota)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym417 := z.EncBinary() + _ = yym417 + if false { + } else { + r.EncodeBool(bool(x.CPUCFSQuota)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym419 := z.EncBinary() + _ = yym419 + if false { + } else { + r.EncodeBool(bool(x.Containerized)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containerized")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym420 := z.EncBinary() + _ = yym420 + if false { + } else { + r.EncodeBool(bool(x.Containerized)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym422 := z.EncBinary() + _ = yym422 + if false { + } else { + r.EncodeInt(int64(x.MaxOpenFiles)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym423 := z.EncBinary() + _ = yym423 + if false { + } else { + r.EncodeInt(int64(x.MaxOpenFiles)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym425 := z.EncBinary() + _ = yym425 + if false { + } else { + r.EncodeBool(bool(x.ReconcileCIDR)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym426 := z.EncBinary() + _ = yym426 + if false { + } else { + r.EncodeBool(bool(x.ReconcileCIDR)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym428 := z.EncBinary() + _ = yym428 + if false { + } else { + r.EncodeBool(bool(x.RegisterSchedulable)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym429 := z.EncBinary() + _ = yym429 + if false { + } else { + r.EncodeBool(bool(x.RegisterSchedulable)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym431 := z.EncBinary() + _ = yym431 + 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) + yym432 := z.EncBinary() + _ = yym432 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym434 := z.EncBinary() + _ = yym434 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym435 := z.EncBinary() + _ = yym435 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIQPS)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym437 := z.EncBinary() + _ = yym437 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym438 := z.EncBinary() + _ = yym438 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym440 := z.EncBinary() + _ = yym440 + if false { + } else { + r.EncodeBool(bool(x.SerializeImagePulls)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym441 := z.EncBinary() + _ = yym441 + if false { + } else { + r.EncodeBool(bool(x.SerializeImagePulls)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[90] { + yy443 := &x.OutOfDiskTransitionFrequency + yym444 := z.EncBinary() + _ = yym444 + if false { + } else if z.HasExtensions() && z.EncExt(yy443) { + } else if !yym444 && z.IsJSONHandle() { + z.EncJSONMarshal(yy443) + } else { + z.EncFallback(yy443) + } + } else { + r.EncodeNil() + } + } else { + if yyq153[90] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy445 := &x.OutOfDiskTransitionFrequency + yym446 := z.EncBinary() + _ = yym446 + if false { + } else if z.HasExtensions() && z.EncExt(yy445) { + } else if !yym446 && z.IsJSONHandle() { + z.EncJSONMarshal(yy445) + } else { + z.EncFallback(yy445) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[91] { + yym448 := z.EncBinary() + _ = yym448 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[91] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeIP")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym449 := z.EncBinary() + _ = yym449 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.NodeLabels == nil { + r.EncodeNil() + } else { + yym451 := z.EncBinary() + _ = yym451 + 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 { + yym452 := z.EncBinary() + _ = yym452 + if false { + } else { + z.F.EncMapStringStringV(x.NodeLabels, false, e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym454 := z.EncBinary() + _ = yym454 + 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) + yym455 := z.EncBinary() + _ = yym455 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym457 := z.EncBinary() + _ = yym457 + if false { + } else { + r.EncodeBool(bool(x.EnableCustomMetrics)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym458 := z.EncBinary() + _ = yym458 + if false { + } else { + r.EncodeBool(bool(x.EnableCustomMetrics)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[95] { + yym460 := z.EncBinary() + _ = yym460 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[95] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionHard")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym461 := z.EncBinary() + _ = yym461 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[96] { + yym463 := z.EncBinary() + _ = yym463 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[96] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym464 := z.EncBinary() + _ = yym464 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[97] { + yym466 := z.EncBinary() + _ = yym466 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[97] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym467 := z.EncBinary() + _ = yym467 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[98] { + yy469 := &x.EvictionPressureTransitionPeriod + yym470 := z.EncBinary() + _ = yym470 + if false { + } else if z.HasExtensions() && z.EncExt(yy469) { + } else if !yym470 && z.IsJSONHandle() { + z.EncJSONMarshal(yy469) + } else { + z.EncFallback(yy469) + } + } else { + r.EncodeNil() + } + } else { + if yyq153[98] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy471 := &x.EvictionPressureTransitionPeriod + yym472 := z.EncBinary() + _ = yym472 + if false { + } else if z.HasExtensions() && z.EncExt(yy471) { + } else if !yym472 && z.IsJSONHandle() { + z.EncJSONMarshal(yy471) + } else { + z.EncFallback(yy471) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[99] { + yym474 := z.EncBinary() + _ = yym474 + if false { + } else { + r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq153[99] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym475 := z.EncBinary() + _ = yym475 + if false { + } else { + r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[100] { + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[100] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionMinimumReclaim")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym478 := z.EncBinary() + _ = yym478 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeInt(int64(x.PodsPerCore)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podsPerCore")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym481 := z.EncBinary() + _ = yym481 + if false { + } else { + r.EncodeInt(int64(x.PodsPerCore)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym483 := z.EncBinary() + _ = yym483 + if false { + } else { + r.EncodeBool(bool(x.EnableControllerAttachDetach)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym484 := z.EncBinary() + _ = yym484 + if false { + } else { + r.EncodeBool(bool(x.EnableControllerAttachDetach)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.SystemReserved == nil { + r.EncodeNil() + } else { + yym486 := z.EncBinary() + _ = yym486 + 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 { + yym487 := z.EncBinary() + _ = yym487 + if false { + } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.SystemReserved), e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.KubeReserved == nil { + r.EncodeNil() + } else { + yym489 := z.EncBinary() + _ = yym489 + 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 { + yym490 := z.EncBinary() + _ = yym490 + if false { + } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { + } else { + h.encconfig_ConfigurationMap((pkg2_config.ConfigurationMap)(x.KubeReserved), e) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym492 := z.EncBinary() + _ = yym492 + if false { + } else { + r.EncodeBool(bool(x.ProtectKernelDefaults)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("protectKernelDefaults")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym493 := z.EncBinary() + _ = yym493 + if false { + } else { + r.EncodeBool(bool(x.ProtectKernelDefaults)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym495 := z.EncBinary() + _ = yym495 + if false { + } else { + r.EncodeBool(bool(x.MakeIPTablesUtilChains)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("makeIPTablesUtilChains")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym496 := z.EncBinary() + _ = yym496 + if false { + } else { + r.EncodeBool(bool(x.MakeIPTablesUtilChains)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym498 := z.EncBinary() + _ = yym498 + if false { + } else { + r.EncodeInt(int64(x.IPTablesMasqueradeBit)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym499 := z.EncBinary() + _ = yym499 + if false { + } else { + r.EncodeInt(int64(x.IPTablesMasqueradeBit)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym501 := z.EncBinary() + _ = yym501 + if false { + } else { + r.EncodeInt(int64(x.IPTablesDropBit)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesDropBit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym502 := z.EncBinary() + _ = yym502 + if false { + } else { + r.EncodeInt(int64(x.IPTablesDropBit)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[109] { + if x.AllowedUnsafeSysctls == nil { + r.EncodeNil() + } else { + yym504 := z.EncBinary() + _ = yym504 + if false { + } else { + z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq153[109] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("experimentalAllowedUnsafeSysctls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AllowedUnsafeSysctls == nil { + r.EncodeNil() + } else { + yym505 := z.EncBinary() + _ = yym505 + if false { + } else { + z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) + } + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym507 := z.EncBinary() + _ = yym507 + 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) + yym508 := z.EncBinary() + _ = yym508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FeatureGates)) + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq153[111] { + yym510 := z.EncBinary() + _ = yym510 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalRuntimeIntegrationType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq153[111] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("experimentalRuntimeIntegrationType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym511 := z.EncBinary() + _ = yym511 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExperimentalRuntimeIntegrationType)) + } + } + } + if yyr153 || yy2arr153 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *KubeletConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym512 := z.DecBinary() + _ = yym512 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct513 := r.ContainerType() + if yyct513 == codecSelferValueTypeMap1234 { + yyl513 := r.ReadMapStart() + if yyl513 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl513, d) + } + } else if yyct513 == codecSelferValueTypeArray1234 { + yyl513 := r.ReadArrayStart() + if yyl513 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl513, 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 yys514Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys514Slc + var yyhl514 bool = l >= 0 + for yyj514 := 0; ; yyj514++ { + if yyhl514 { + if yyj514 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys514Slc = r.DecodeBytes(yys514Slc, true, true) + yys514 := string(yys514Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys514 { + case "kind": + if 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 { + yyv518 := &x.SyncFrequency + yym519 := z.DecBinary() + _ = yym519 + if false { + } else if z.HasExtensions() && z.DecExt(yyv518) { + } else if !yym519 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv518) + } else { + z.DecFallback(yyv518, false) + } + } + case "fileCheckFrequency": + if r.TryDecodeAsNil() { + x.FileCheckFrequency = pkg1_unversioned.Duration{} + } else { + yyv520 := &x.FileCheckFrequency + yym521 := z.DecBinary() + _ = yym521 + if false { + } else if z.HasExtensions() && z.DecExt(yyv520) { + } else if !yym521 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv520) + } else { + z.DecFallback(yyv520, false) + } + } + case "httpCheckFrequency": + if r.TryDecodeAsNil() { + x.HTTPCheckFrequency = pkg1_unversioned.Duration{} + } else { + yyv522 := &x.HTTPCheckFrequency + yym523 := z.DecBinary() + _ = yym523 + if false { + } else if z.HasExtensions() && z.DecExt(yyv522) { + } else if !yym523 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv522) + } else { + z.DecFallback(yyv522, 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 { + yyv533 := &x.Authentication + yyv533.CodecDecodeSelf(d) + } + case "authorization": + if r.TryDecodeAsNil() { + x.Authorization = KubeletAuthorization{} + } else { + yyv534 := &x.Authorization + yyv534.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 { + yyv541 := &x.HostNetworkSources + yym542 := z.DecBinary() + _ = yym542 + if false { + } else { + z.F.DecSliceStringX(yyv541, false, d) + } + } + case "hostPIDSources": + if r.TryDecodeAsNil() { + x.HostPIDSources = nil + } else { + yyv543 := &x.HostPIDSources + yym544 := z.DecBinary() + _ = yym544 + if false { + } else { + z.F.DecSliceStringX(yyv543, false, d) + } + } + case "hostIPCSources": + if r.TryDecodeAsNil() { + x.HostIPCSources = nil + } else { + yyv545 := &x.HostIPCSources + yym546 := z.DecBinary() + _ = yym546 + if false { + } else { + z.F.DecSliceStringX(yyv545, 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 { + yyv552 := &x.MinimumGCAge + yym553 := z.DecBinary() + _ = yym553 + if false { + } else if z.HasExtensions() && z.DecExt(yyv552) { + } else if !yym553 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv552) + } else { + z.DecFallback(yyv552, 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 { + yyv564 := &x.StreamingConnectionIdleTimeout + yym565 := z.DecBinary() + _ = yym565 + if false { + } else if z.HasExtensions() && z.DecExt(yyv564) { + } else if !yym565 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv564) + } else { + z.DecFallback(yyv564, false) + } + } + case "nodeStatusUpdateFrequency": + if r.TryDecodeAsNil() { + x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} + } else { + yyv566 := &x.NodeStatusUpdateFrequency + yym567 := z.DecBinary() + _ = yym567 + if false { + } else if z.HasExtensions() && z.DecExt(yyv566) { + } else if !yym567 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv566) + } else { + z.DecFallback(yyv566, false) + } + } + case "imageMinimumGCAge": + if r.TryDecodeAsNil() { + x.ImageMinimumGCAge = pkg1_unversioned.Duration{} + } else { + yyv568 := &x.ImageMinimumGCAge + yym569 := z.DecBinary() + _ = yym569 + if false { + } else if z.HasExtensions() && z.DecExt(yyv568) { + } else if !yym569 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv568) + } else { + z.DecFallback(yyv568, 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 { + yyv573 := &x.VolumeStatsAggPeriod + yym574 := z.DecBinary() + _ = yym574 + if false { + } else if z.HasExtensions() && z.DecExt(yyv573) { + } else if !yym574 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv573) + } else { + z.DecFallback(yyv573, 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 { + yyv592 := &x.RuntimeRequestTimeout + yym593 := z.DecBinary() + _ = yym593 + if false { + } else if z.HasExtensions() && z.DecExt(yyv592) { + } else if !yym593 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv592) + } else { + z.DecFallback(yyv592, 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 { + yyv617 := &x.OutOfDiskTransitionFrequency + yym618 := z.DecBinary() + _ = yym618 + if false { + } else if z.HasExtensions() && z.DecExt(yyv617) { + } else if !yym618 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv617) + } else { + z.DecFallback(yyv617, false) + } + } + case "nodeIP": + if r.TryDecodeAsNil() { + x.NodeIP = "" + } else { + x.NodeIP = string(r.DecodeString()) + } + case "nodeLabels": + if r.TryDecodeAsNil() { + x.NodeLabels = nil + } else { + yyv620 := &x.NodeLabels + yym621 := z.DecBinary() + _ = yym621 + if false { + } else { + z.F.DecMapStringStringX(yyv620, 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 { + yyv627 := &x.EvictionPressureTransitionPeriod + yym628 := z.DecBinary() + _ = yym628 + if false { + } else if z.HasExtensions() && z.DecExt(yyv627) { + } else if !yym628 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv627) + } else { + z.DecFallback(yyv627, 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 { + yyv633 := &x.SystemReserved + yym634 := z.DecBinary() + _ = yym634 + if false { + } else if z.HasExtensions() && z.DecExt(yyv633) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv633), d) + } + } + case "kubeReserved": + if r.TryDecodeAsNil() { + x.KubeReserved = nil + } else { + yyv635 := &x.KubeReserved + yym636 := z.DecBinary() + _ = yym636 + if false { + } else if z.HasExtensions() && z.DecExt(yyv635) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv635), 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 { + yyv641 := &x.AllowedUnsafeSysctls + yym642 := z.DecBinary() + _ = yym642 + if false { + } else { + z.F.DecSliceStringX(yyv641, 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, yys514) + } // end switch yys514 + } // end for yyj514 + 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 yyj645 int + var yyb645 bool + var yyhl645 bool = l >= 0 + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodManifestPath = "" + } else { + x.PodManifestPath = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SyncFrequency = pkg1_unversioned.Duration{} + } else { + yyv649 := &x.SyncFrequency + yym650 := z.DecBinary() + _ = yym650 + if false { + } else if z.HasExtensions() && z.DecExt(yyv649) { + } else if !yym650 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv649) + } else { + z.DecFallback(yyv649, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FileCheckFrequency = pkg1_unversioned.Duration{} + } else { + yyv651 := &x.FileCheckFrequency + yym652 := z.DecBinary() + _ = yym652 + if false { + } else if z.HasExtensions() && z.DecExt(yyv651) { + } else if !yym652 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv651) + } else { + z.DecFallback(yyv651, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HTTPCheckFrequency = pkg1_unversioned.Duration{} + } else { + yyv653 := &x.HTTPCheckFrequency + yym654 := z.DecBinary() + _ = yym654 + if false { + } else if z.HasExtensions() && z.DecExt(yyv653) { + } else if !yym654 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv653) + } else { + z.DecFallback(yyv653, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ManifestURL = "" + } else { + x.ManifestURL = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ManifestURLHeader = "" + } else { + x.ManifestURLHeader = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableServer = false + } else { + x.EnableServer = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnlyPort = 0 + } else { + x.ReadOnlyPort = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TLSCertFile = "" + } else { + x.TLSCertFile = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TLSPrivateKeyFile = "" + } else { + x.TLSPrivateKeyFile = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CertDirectory = "" + } else { + x.CertDirectory = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Authentication = KubeletAuthentication{} + } else { + yyv664 := &x.Authentication + yyv664.CodecDecodeSelf(d) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Authorization = KubeletAuthorization{} + } else { + yyv665 := &x.Authorization + yyv665.CodecDecodeSelf(d) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostnameOverride = "" + } else { + x.HostnameOverride = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodInfraContainerImage = "" + } else { + x.PodInfraContainerImage = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DockerEndpoint = "" + } else { + x.DockerEndpoint = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RootDirectory = "" + } else { + x.RootDirectory = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SeccompProfileRoot = "" + } else { + x.SeccompProfileRoot = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AllowPrivileged = false + } else { + x.AllowPrivileged = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostNetworkSources = nil + } else { + yyv672 := &x.HostNetworkSources + yym673 := z.DecBinary() + _ = yym673 + if false { + } else { + z.F.DecSliceStringX(yyv672, false, d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostPIDSources = nil + } else { + yyv674 := &x.HostPIDSources + yym675 := z.DecBinary() + _ = yym675 + if false { + } else { + z.F.DecSliceStringX(yyv674, false, d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIPCSources = nil + } else { + yyv676 := &x.HostIPCSources + yym677 := z.DecBinary() + _ = yym677 + if false { + } else { + z.F.DecSliceStringX(yyv676, false, d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RegistryPullQPS = 0 + } else { + x.RegistryPullQPS = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RegistryBurst = 0 + } else { + x.RegistryBurst = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EventRecordQPS = 0 + } else { + x.EventRecordQPS = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EventBurst = 0 + } else { + x.EventBurst = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableDebuggingHandlers = false + } else { + x.EnableDebuggingHandlers = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinimumGCAge = pkg1_unversioned.Duration{} + } else { + yyv683 := &x.MinimumGCAge + yym684 := z.DecBinary() + _ = yym684 + if false { + } else if z.HasExtensions() && z.DecExt(yyv683) { + } else if !yym684 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv683) + } else { + z.DecFallback(yyv683, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxPerPodContainerCount = 0 + } else { + x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxContainerCount = 0 + } else { + x.MaxContainerCount = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CAdvisorPort = 0 + } else { + x.CAdvisorPort = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HealthzPort = 0 + } else { + x.HealthzPort = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HealthzBindAddress = "" + } else { + x.HealthzBindAddress = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OOMScoreAdj = 0 + } else { + x.OOMScoreAdj = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RegisterNode = false + } else { + x.RegisterNode = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterDomain = "" + } else { + x.ClusterDomain = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MasterServiceNamespace = "" + } else { + x.MasterServiceNamespace = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterDNS = "" + } else { + x.ClusterDNS = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} + } else { + yyv695 := &x.StreamingConnectionIdleTimeout + yym696 := z.DecBinary() + _ = yym696 + if false { + } else if z.HasExtensions() && z.DecExt(yyv695) { + } else if !yym696 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv695) + } else { + z.DecFallback(yyv695, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} + } else { + yyv697 := &x.NodeStatusUpdateFrequency + yym698 := z.DecBinary() + _ = yym698 + if false { + } else if z.HasExtensions() && z.DecExt(yyv697) { + } else if !yym698 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv697) + } else { + z.DecFallback(yyv697, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImageMinimumGCAge = pkg1_unversioned.Duration{} + } else { + yyv699 := &x.ImageMinimumGCAge + yym700 := z.DecBinary() + _ = yym700 + if false { + } else if z.HasExtensions() && z.DecExt(yyv699) { + } else if !yym700 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv699) + } else { + z.DecFallback(yyv699, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImageGCHighThresholdPercent = 0 + } else { + x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ImageGCLowThresholdPercent = 0 + } else { + x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LowDiskSpaceThresholdMB = 0 + } else { + x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} + } else { + yyv704 := &x.VolumeStatsAggPeriod + yym705 := z.DecBinary() + _ = yym705 + if false { + } else if z.HasExtensions() && z.DecExt(yyv704) { + } else if !yym705 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv704) + } else { + z.DecFallback(yyv704, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NetworkPluginName = "" + } else { + x.NetworkPluginName = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NetworkPluginMTU = 0 + } else { + x.NetworkPluginMTU = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NetworkPluginDir = "" + } else { + x.NetworkPluginDir = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CNIConfDir = "" + } else { + x.CNIConfDir = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CNIBinDir = "" + } else { + x.CNIBinDir = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumePluginDir = "" + } else { + x.VolumePluginDir = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CloudProvider = "" + } else { + x.CloudProvider = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CloudConfigFile = "" + } else { + x.CloudConfigFile = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeletCgroups = "" + } else { + x.KubeletCgroups = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CgroupsPerQOS = false + } else { + x.CgroupsPerQOS = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CgroupDriver = "" + } else { + x.CgroupDriver = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RuntimeCgroups = "" + } else { + x.RuntimeCgroups = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SystemCgroups = "" + } else { + x.SystemCgroups = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CgroupRoot = "" + } else { + x.CgroupRoot = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerRuntime = "" + } else { + x.ContainerRuntime = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RemoteRuntimeEndpoint = "" + } else { + x.RemoteRuntimeEndpoint = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RemoteImageEndpoint = "" + } else { + x.RemoteImageEndpoint = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RuntimeRequestTimeout = pkg1_unversioned.Duration{} + } else { + yyv723 := &x.RuntimeRequestTimeout + yym724 := z.DecBinary() + _ = yym724 + if false { + } else if z.HasExtensions() && z.DecExt(yyv723) { + } else if !yym724 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv723) + } else { + z.DecFallback(yyv723, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RktPath = "" + } else { + x.RktPath = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExperimentalMounterPath = "" + } else { + x.ExperimentalMounterPath = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExperimentalMounterRootfsPath = "" + } else { + x.ExperimentalMounterRootfsPath = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RktAPIEndpoint = "" + } else { + x.RktAPIEndpoint = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RktStage1Image = "" + } else { + x.RktStage1Image = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LockFilePath = "" + } else { + x.LockFilePath = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExitOnLockContention = false + } else { + x.ExitOnLockContention = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HairpinMode = "" + } else { + x.HairpinMode = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.BabysitDaemons = false + } else { + x.BabysitDaemons = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxPods = 0 + } else { + x.MaxPods = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NvidiaGPUs = 0 + } else { + x.NvidiaGPUs = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DockerExecHandlerName = "" + } else { + x.DockerExecHandlerName = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodCIDR = "" + } else { + x.PodCIDR = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResolverConfig = "" + } else { + x.ResolverConfig = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CPUCFSQuota = false + } else { + x.CPUCFSQuota = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Containerized = false + } else { + x.Containerized = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxOpenFiles = 0 + } else { + x.MaxOpenFiles = int64(r.DecodeInt(64)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReconcileCIDR = false + } else { + x.ReconcileCIDR = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RegisterSchedulable = false + } else { + x.RegisterSchedulable = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIQPS = 0 + } else { + x.KubeAPIQPS = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIBurst = 0 + } else { + x.KubeAPIBurst = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SerializeImagePulls = false + } else { + x.SerializeImagePulls = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} + } else { + yyv748 := &x.OutOfDiskTransitionFrequency + yym749 := z.DecBinary() + _ = yym749 + if false { + } else if z.HasExtensions() && z.DecExt(yyv748) { + } else if !yym749 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv748) + } else { + z.DecFallback(yyv748, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeIP = "" + } else { + x.NodeIP = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeLabels = nil + } else { + yyv751 := &x.NodeLabels + yym752 := z.DecBinary() + _ = yym752 + if false { + } else { + z.F.DecMapStringStringX(yyv751, false, d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NonMasqueradeCIDR = "" + } else { + x.NonMasqueradeCIDR = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableCustomMetrics = false + } else { + x.EnableCustomMetrics = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionHard = "" + } else { + x.EvictionHard = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionSoft = "" + } else { + x.EvictionSoft = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionSoftGracePeriod = "" + } else { + x.EvictionSoftGracePeriod = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} + } else { + yyv758 := &x.EvictionPressureTransitionPeriod + yym759 := z.DecBinary() + _ = yym759 + if false { + } else if z.HasExtensions() && z.DecExt(yyv758) { + } else if !yym759 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv758) + } else { + z.DecFallback(yyv758, false) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionMaxPodGracePeriod = 0 + } else { + x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionMinimumReclaim = "" + } else { + x.EvictionMinimumReclaim = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodsPerCore = 0 + } else { + x.PodsPerCore = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableControllerAttachDetach = false + } else { + x.EnableControllerAttachDetach = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SystemReserved = nil + } else { + yyv764 := &x.SystemReserved + yym765 := z.DecBinary() + _ = yym765 + if false { + } else if z.HasExtensions() && z.DecExt(yyv764) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv764), d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeReserved = nil + } else { + yyv766 := &x.KubeReserved + yym767 := z.DecBinary() + _ = yym767 + if false { + } else if z.HasExtensions() && z.DecExt(yyv766) { + } else { + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv766), d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ProtectKernelDefaults = false + } else { + x.ProtectKernelDefaults = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MakeIPTablesUtilChains = false + } else { + x.MakeIPTablesUtilChains = bool(r.DecodeBool()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesMasqueradeBit = 0 + } else { + x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesDropBit = 0 + } else { + x.IPTablesDropBit = int32(r.DecodeInt(32)) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AllowedUnsafeSysctls = nil + } else { + yyv772 := &x.AllowedUnsafeSysctls + yym773 := z.DecBinary() + _ = yym773 + if false { + } else { + z.F.DecSliceStringX(yyv772, false, d) + } + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FeatureGates = "" + } else { + x.FeatureGates = string(r.DecodeString()) + } + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExperimentalRuntimeIntegrationType = "" + } else { + x.ExperimentalRuntimeIntegrationType = string(r.DecodeString()) + } + for { + yyj645++ + if yyhl645 { + yyb645 = yyj645 > l + } else { + yyb645 = r.CheckBreak() + } + if yyb645 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj645-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x KubeletAuthorizationMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym776 := z.EncBinary() + _ = yym776 + 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 + yym777 := z.DecBinary() + _ = yym777 + 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 { + yym778 := z.EncBinary() + _ = yym778 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep779 := !z.EncBinary() + yy2arr779 := z.EncBasicHandle().StructToArray + var yyq779 [2]bool + _, _, _ = yysep779, yyq779, yy2arr779 + const yyr779 bool = false + var yynn779 int + if yyr779 || yy2arr779 { + r.EncodeArrayStart(2) + } else { + yynn779 = 2 + for _, b := range yyq779 { + if b { + yynn779++ + } + } + r.EncodeMapStart(yynn779) + yynn779 = 0 + } + if yyr779 || yy2arr779 { + 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 yyr779 || yy2arr779 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy782 := &x.Webhook + yy782.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("webhook")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy783 := &x.Webhook + yy783.CodecEncodeSelf(e) + } + if yyr779 || yy2arr779 { + 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 + yym784 := z.DecBinary() + _ = yym784 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct785 := r.ContainerType() + if yyct785 == codecSelferValueTypeMap1234 { + yyl785 := r.ReadMapStart() + if yyl785 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl785, d) + } + } else if yyct785 == codecSelferValueTypeArray1234 { + yyl785 := r.ReadArrayStart() + if yyl785 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl785, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeletAuthorization) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys786Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys786Slc + var yyhl786 bool = l >= 0 + for yyj786 := 0; ; yyj786++ { + if yyhl786 { + if yyj786 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys786Slc = r.DecodeBytes(yys786Slc, true, true) + yys786 := string(yys786Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys786 { + case "mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = KubeletAuthorizationMode(r.DecodeString()) + } + case "webhook": + if r.TryDecodeAsNil() { + x.Webhook = KubeletWebhookAuthorization{} + } else { + yyv788 := &x.Webhook + yyv788.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys786) + } // end switch yys786 + } // end for yyj786 + 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 yyj789 int + var yyb789 bool + var yyhl789 bool = l >= 0 + yyj789++ + if yyhl789 { + yyb789 = yyj789 > l + } else { + yyb789 = r.CheckBreak() + } + if yyb789 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = KubeletAuthorizationMode(r.DecodeString()) + } + yyj789++ + if yyhl789 { + yyb789 = yyj789 > l + } else { + yyb789 = r.CheckBreak() + } + if yyb789 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Webhook = KubeletWebhookAuthorization{} + } else { + yyv791 := &x.Webhook + yyv791.CodecDecodeSelf(d) + } + for { + yyj789++ + if yyhl789 { + yyb789 = yyj789 > l + } else { + yyb789 = r.CheckBreak() + } + if yyb789 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj789-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 { + yym792 := z.EncBinary() + _ = yym792 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep793 := !z.EncBinary() + yy2arr793 := z.EncBasicHandle().StructToArray + var yyq793 [2]bool + _, _, _ = yysep793, yyq793, yy2arr793 + const yyr793 bool = false + var yynn793 int + if yyr793 || yy2arr793 { + r.EncodeArrayStart(2) + } else { + yynn793 = 2 + for _, b := range yyq793 { + if b { + yynn793++ + } + } + r.EncodeMapStart(yynn793) + yynn793 = 0 + } + if yyr793 || yy2arr793 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy795 := &x.CacheAuthorizedTTL + yym796 := z.EncBinary() + _ = yym796 + if false { + } else if z.HasExtensions() && z.EncExt(yy795) { + } else if !yym796 && z.IsJSONHandle() { + z.EncJSONMarshal(yy795) + } else { + z.EncFallback(yy795) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cacheAuthorizedTTL")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy797 := &x.CacheAuthorizedTTL + yym798 := z.EncBinary() + _ = yym798 + if false { + } else if z.HasExtensions() && z.EncExt(yy797) { + } else if !yym798 && z.IsJSONHandle() { + z.EncJSONMarshal(yy797) + } else { + z.EncFallback(yy797) + } + } + if yyr793 || yy2arr793 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy800 := &x.CacheUnauthorizedTTL + yym801 := z.EncBinary() + _ = yym801 + if false { + } else if z.HasExtensions() && z.EncExt(yy800) { + } else if !yym801 && z.IsJSONHandle() { + z.EncJSONMarshal(yy800) + } else { + z.EncFallback(yy800) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cacheUnauthorizedTTL")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy802 := &x.CacheUnauthorizedTTL + yym803 := z.EncBinary() + _ = yym803 + if false { + } else if z.HasExtensions() && z.EncExt(yy802) { + } else if !yym803 && z.IsJSONHandle() { + z.EncJSONMarshal(yy802) + } else { + z.EncFallback(yy802) + } + } + if yyr793 || yy2arr793 { + 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 + yym804 := z.DecBinary() + _ = yym804 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct805 := r.ContainerType() + if yyct805 == codecSelferValueTypeMap1234 { + yyl805 := r.ReadMapStart() + if yyl805 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl805, d) + } + } else if yyct805 == codecSelferValueTypeArray1234 { + yyl805 := r.ReadArrayStart() + if yyl805 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl805, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeletWebhookAuthorization) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys806Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys806Slc + var yyhl806 bool = l >= 0 + for yyj806 := 0; ; yyj806++ { + if yyhl806 { + if yyj806 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys806Slc = r.DecodeBytes(yys806Slc, true, true) + yys806 := string(yys806Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys806 { + case "cacheAuthorizedTTL": + if r.TryDecodeAsNil() { + x.CacheAuthorizedTTL = pkg1_unversioned.Duration{} + } else { + yyv807 := &x.CacheAuthorizedTTL + yym808 := z.DecBinary() + _ = yym808 + if false { + } else if z.HasExtensions() && z.DecExt(yyv807) { + } else if !yym808 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv807) + } else { + z.DecFallback(yyv807, false) + } + } + case "cacheUnauthorizedTTL": + if r.TryDecodeAsNil() { + x.CacheUnauthorizedTTL = pkg1_unversioned.Duration{} + } else { + yyv809 := &x.CacheUnauthorizedTTL + yym810 := z.DecBinary() + _ = yym810 + if false { + } else if z.HasExtensions() && z.DecExt(yyv809) { + } else if !yym810 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv809) + } else { + z.DecFallback(yyv809, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys806) + } // end switch yys806 + } // end for yyj806 + 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 yyj811 int + var yyb811 bool + var yyhl811 bool = l >= 0 + yyj811++ + if yyhl811 { + yyb811 = yyj811 > l + } else { + yyb811 = r.CheckBreak() + } + if yyb811 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CacheAuthorizedTTL = pkg1_unversioned.Duration{} + } else { + yyv812 := &x.CacheAuthorizedTTL + yym813 := z.DecBinary() + _ = yym813 + if false { + } else if z.HasExtensions() && z.DecExt(yyv812) { + } else if !yym813 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv812) + } else { + z.DecFallback(yyv812, false) + } + } + yyj811++ + if yyhl811 { + yyb811 = yyj811 > l + } else { + yyb811 = r.CheckBreak() + } + if yyb811 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CacheUnauthorizedTTL = pkg1_unversioned.Duration{} + } else { + yyv814 := &x.CacheUnauthorizedTTL + yym815 := z.DecBinary() + _ = yym815 + if false { + } else if z.HasExtensions() && z.DecExt(yyv814) { + } else if !yym815 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv814) + } else { + z.DecFallback(yyv814, false) + } + } + for { + yyj811++ + if yyhl811 { + yyb811 = yyj811 > l + } else { + yyb811 = r.CheckBreak() + } + if yyb811 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj811-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 { + yym816 := z.EncBinary() + _ = yym816 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep817 := !z.EncBinary() + yy2arr817 := z.EncBasicHandle().StructToArray + var yyq817 [3]bool + _, _, _ = yysep817, yyq817, yy2arr817 + const yyr817 bool = false + var yynn817 int + if yyr817 || yy2arr817 { + r.EncodeArrayStart(3) + } else { + yynn817 = 3 + for _, b := range yyq817 { + if b { + yynn817++ + } + } + r.EncodeMapStart(yynn817) + yynn817 = 0 + } + if yyr817 || yy2arr817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy819 := &x.X509 + yy819.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("x509")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy820 := &x.X509 + yy820.CodecEncodeSelf(e) + } + if yyr817 || yy2arr817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy822 := &x.Webhook + yy822.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("webhook")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy823 := &x.Webhook + yy823.CodecEncodeSelf(e) + } + if yyr817 || yy2arr817 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy825 := &x.Anonymous + yy825.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("anonymous")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy826 := &x.Anonymous + yy826.CodecEncodeSelf(e) + } + if yyr817 || yy2arr817 { + 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 + yym827 := z.DecBinary() + _ = yym827 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct828 := r.ContainerType() + if yyct828 == codecSelferValueTypeMap1234 { + yyl828 := r.ReadMapStart() + if yyl828 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl828, d) + } + } else if yyct828 == codecSelferValueTypeArray1234 { + yyl828 := r.ReadArrayStart() + if yyl828 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl828, 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 yys829Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys829Slc + var yyhl829 bool = l >= 0 + for yyj829 := 0; ; yyj829++ { + if yyhl829 { + if yyj829 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys829Slc = r.DecodeBytes(yys829Slc, true, true) + yys829 := string(yys829Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys829 { + case "x509": + if r.TryDecodeAsNil() { + x.X509 = KubeletX509Authentication{} + } else { + yyv830 := &x.X509 + yyv830.CodecDecodeSelf(d) + } + case "webhook": + if r.TryDecodeAsNil() { + x.Webhook = KubeletWebhookAuthentication{} + } else { + yyv831 := &x.Webhook + yyv831.CodecDecodeSelf(d) + } + case "anonymous": + if r.TryDecodeAsNil() { + x.Anonymous = KubeletAnonymousAuthentication{} + } else { + yyv832 := &x.Anonymous + yyv832.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys829) + } // end switch yys829 + } // end for yyj829 + 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 yyj833 int + var yyb833 bool + var yyhl833 bool = l >= 0 + yyj833++ + if yyhl833 { + yyb833 = yyj833 > l + } else { + yyb833 = r.CheckBreak() + } + if yyb833 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.X509 = KubeletX509Authentication{} + } else { + yyv834 := &x.X509 + yyv834.CodecDecodeSelf(d) + } + yyj833++ + if yyhl833 { + yyb833 = yyj833 > l + } else { + yyb833 = r.CheckBreak() + } + if yyb833 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Webhook = KubeletWebhookAuthentication{} + } else { + yyv835 := &x.Webhook + yyv835.CodecDecodeSelf(d) + } + yyj833++ + if yyhl833 { + yyb833 = yyj833 > l + } else { + yyb833 = r.CheckBreak() + } + if yyb833 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Anonymous = KubeletAnonymousAuthentication{} + } else { + yyv836 := &x.Anonymous + yyv836.CodecDecodeSelf(d) + } + for { + yyj833++ + if yyhl833 { + yyb833 = yyj833 > l + } else { + yyb833 = r.CheckBreak() + } + if yyb833 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj833-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 { + yym837 := z.EncBinary() + _ = yym837 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep838 := !z.EncBinary() + yy2arr838 := z.EncBasicHandle().StructToArray + var yyq838 [1]bool + _, _, _ = yysep838, yyq838, yy2arr838 + const yyr838 bool = false + var yynn838 int + if yyr838 || yy2arr838 { + r.EncodeArrayStart(1) + } else { + yynn838 = 1 + for _, b := range yyq838 { + if b { + yynn838++ + } + } + r.EncodeMapStart(yynn838) + yynn838 = 0 + } + if yyr838 || yy2arr838 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym840 := z.EncBinary() + _ = yym840 + 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) + yym841 := z.EncBinary() + _ = yym841 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClientCAFile)) + } + } + if yyr838 || yy2arr838 { + 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 + yym842 := z.DecBinary() + _ = yym842 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct843 := r.ContainerType() + if yyct843 == codecSelferValueTypeMap1234 { + yyl843 := r.ReadMapStart() + if yyl843 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl843, d) + } + } else if yyct843 == codecSelferValueTypeArray1234 { + yyl843 := r.ReadArrayStart() + if yyl843 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl843, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeletX509Authentication) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys844Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys844Slc + var yyhl844 bool = l >= 0 + for yyj844 := 0; ; yyj844++ { + if yyhl844 { + if yyj844 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys844Slc = r.DecodeBytes(yys844Slc, true, true) + yys844 := string(yys844Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys844 { + case "clientCAFile": + if r.TryDecodeAsNil() { + x.ClientCAFile = "" + } else { + x.ClientCAFile = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys844) + } // end switch yys844 + } // end for yyj844 + 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 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.ClientCAFile = "" + } else { + x.ClientCAFile = string(r.DecodeString()) + } + 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 *KubeletWebhookAuthentication) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym848 := z.EncBinary() + _ = yym848 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep849 := !z.EncBinary() + yy2arr849 := z.EncBasicHandle().StructToArray + var yyq849 [2]bool + _, _, _ = yysep849, yyq849, yy2arr849 + const yyr849 bool = false + var yynn849 int + if yyr849 || yy2arr849 { + r.EncodeArrayStart(2) + } else { + yynn849 = 2 + for _, b := range yyq849 { + if b { + yynn849++ + } + } + r.EncodeMapStart(yynn849) + yynn849 = 0 + } + if yyr849 || yy2arr849 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym851 := z.EncBinary() + _ = yym851 + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enabled")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym852 := z.EncBinary() + _ = yym852 + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr849 || yy2arr849 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy854 := &x.CacheTTL + yym855 := z.EncBinary() + _ = yym855 + if false { + } else if z.HasExtensions() && z.EncExt(yy854) { + } else if !yym855 && z.IsJSONHandle() { + z.EncJSONMarshal(yy854) + } else { + z.EncFallback(yy854) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cacheTTL")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy856 := &x.CacheTTL + yym857 := z.EncBinary() + _ = yym857 + if false { + } else if z.HasExtensions() && z.EncExt(yy856) { + } else if !yym857 && z.IsJSONHandle() { + z.EncJSONMarshal(yy856) + } else { + z.EncFallback(yy856) + } + } + if yyr849 || yy2arr849 { + 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 + yym858 := z.DecBinary() + _ = yym858 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct859 := r.ContainerType() + if yyct859 == codecSelferValueTypeMap1234 { + yyl859 := r.ReadMapStart() + if yyl859 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl859, d) + } + } else if yyct859 == codecSelferValueTypeArray1234 { + yyl859 := r.ReadArrayStart() + if yyl859 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl859, 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 yys860Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys860Slc + var yyhl860 bool = l >= 0 + for yyj860 := 0; ; yyj860++ { + if yyhl860 { + if yyj860 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys860Slc = r.DecodeBytes(yys860Slc, true, true) + yys860 := string(yys860Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys860 { + 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 { + yyv862 := &x.CacheTTL + yym863 := z.DecBinary() + _ = yym863 + if false { + } else if z.HasExtensions() && z.DecExt(yyv862) { + } else if !yym863 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv862) + } else { + z.DecFallback(yyv862, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys860) + } // end switch yys860 + } // end for yyj860 + 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 yyj864 int + var yyb864 bool + var yyhl864 bool = l >= 0 + yyj864++ + if yyhl864 { + yyb864 = yyj864 > l + } else { + yyb864 = r.CheckBreak() + } + if yyb864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = bool(r.DecodeBool()) + } + yyj864++ + if yyhl864 { + yyb864 = yyj864 > l + } else { + yyb864 = r.CheckBreak() + } + if yyb864 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CacheTTL = pkg1_unversioned.Duration{} + } else { + yyv866 := &x.CacheTTL + yym867 := z.DecBinary() + _ = yym867 + if false { + } else if z.HasExtensions() && z.DecExt(yyv866) { + } else if !yym867 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv866) + } else { + z.DecFallback(yyv866, false) + } + } + for { + yyj864++ + if yyhl864 { + yyb864 = yyj864 > l + } else { + yyb864 = r.CheckBreak() + } + if yyb864 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj864-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 { + yym868 := z.EncBinary() + _ = yym868 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep869 := !z.EncBinary() + yy2arr869 := z.EncBasicHandle().StructToArray + var yyq869 [1]bool + _, _, _ = yysep869, yyq869, yy2arr869 + const yyr869 bool = false + var yynn869 int + if yyr869 || yy2arr869 { + r.EncodeArrayStart(1) + } else { + yynn869 = 1 + for _, b := range yyq869 { + if b { + yynn869++ + } + } + r.EncodeMapStart(yynn869) + yynn869 = 0 + } + if yyr869 || yy2arr869 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym871 := z.EncBinary() + _ = yym871 + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enabled")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym872 := z.EncBinary() + _ = yym872 + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr869 || yy2arr869 { + 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 + yym873 := z.DecBinary() + _ = yym873 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct874 := r.ContainerType() + if yyct874 == codecSelferValueTypeMap1234 { + yyl874 := r.ReadMapStart() + if yyl874 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl874, d) + } + } else if yyct874 == codecSelferValueTypeArray1234 { + yyl874 := r.ReadArrayStart() + if yyl874 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl874, 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 yys875Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys875Slc + var yyhl875 bool = l >= 0 + for yyj875 := 0; ; yyj875++ { + if yyhl875 { + if yyj875 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys875Slc = r.DecodeBytes(yys875Slc, true, true) + yys875 := string(yys875Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys875 { + case "enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = bool(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys875) + } // end switch yys875 + } // end for yyj875 + 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 yyj877 int + var yyb877 bool + var yyhl877 bool = l >= 0 + yyj877++ + if yyhl877 { + yyb877 = yyj877 > l + } else { + yyb877 = r.CheckBreak() + } + if yyb877 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = bool(r.DecodeBool()) + } + for { + yyj877++ + if yyhl877 { + yyb877 = yyj877 > l + } else { + yyb877 = r.CheckBreak() + } + if yyb877 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj877-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 { + yym879 := z.EncBinary() + _ = yym879 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep880 := !z.EncBinary() + yy2arr880 := z.EncBasicHandle().StructToArray + var yyq880 [14]bool + _, _, _ = yysep880, yyq880, yy2arr880 + const yyr880 bool = false + yyq880[0] = x.Kind != "" + yyq880[1] = x.APIVersion != "" + var yynn880 int + if yyr880 || yy2arr880 { + r.EncodeArrayStart(14) + } else { + yynn880 = 12 + for _, b := range yyq880 { + if b { + yynn880++ + } + } + r.EncodeMapStart(yynn880) + yynn880 = 0 + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq880[0] { + yym882 := z.EncBinary() + _ = yym882 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq880[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym883 := z.EncBinary() + _ = yym883 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq880[1] { + yym885 := z.EncBinary() + _ = yym885 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq880[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym886 := z.EncBinary() + _ = yym886 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym888 := z.EncBinary() + _ = yym888 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym889 := z.EncBinary() + _ = yym889 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym891 := z.EncBinary() + _ = yym891 + 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) + yym892 := z.EncBinary() + _ = yym892 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym894 := z.EncBinary() + _ = yym894 + 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) + yym895 := z.EncBinary() + _ = yym895 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym897 := z.EncBinary() + _ = yym897 + 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) + yym898 := z.EncBinary() + _ = yym898 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym900 := z.EncBinary() + _ = yym900 + if false { + } else { + r.EncodeBool(bool(x.EnableProfiling)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym901 := z.EncBinary() + _ = yym901 + if false { + } else { + r.EncodeBool(bool(x.EnableProfiling)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym903 := z.EncBinary() + _ = yym903 + 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) + yym904 := z.EncBinary() + _ = yym904 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym906 := z.EncBinary() + _ = yym906 + if false { + } else { + r.EncodeFloat32(float32(x.KubeAPIQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym907 := z.EncBinary() + _ = yym907 + if false { + } else { + r.EncodeFloat32(float32(x.KubeAPIQPS)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym909 := z.EncBinary() + _ = yym909 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym910 := z.EncBinary() + _ = yym910 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym912 := z.EncBinary() + _ = yym912 + 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) + yym913 := z.EncBinary() + _ = yym913 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym915 := z.EncBinary() + _ = yym915 + if false { + } else { + r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym916 := z.EncBinary() + _ = yym916 + if false { + } else { + r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym918 := z.EncBinary() + _ = yym918 + 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) + yym919 := z.EncBinary() + _ = yym919 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) + } + } + if yyr880 || yy2arr880 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy921 := &x.LeaderElection + yy921.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy922 := &x.LeaderElection + yy922.CodecEncodeSelf(e) + } + if yyr880 || yy2arr880 { + 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 + yym923 := z.DecBinary() + _ = yym923 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct924 := r.ContainerType() + if yyct924 == codecSelferValueTypeMap1234 { + yyl924 := r.ReadMapStart() + if yyl924 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl924, d) + } + } else if yyct924 == codecSelferValueTypeArray1234 { + yyl924 := r.ReadArrayStart() + if yyl924 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl924, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys925Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys925Slc + var yyhl925 bool = l >= 0 + for yyj925 := 0; ; yyj925++ { + if yyhl925 { + if yyj925 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys925Slc = r.DecodeBytes(yys925Slc, true, true) + yys925 := string(yys925Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys925 { + case "kind": + if 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 { + yyv939 := &x.LeaderElection + yyv939.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys925) + } // end switch yys925 + } // end for yyj925 + 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 yyj940 int + var yyb940 bool + var yyhl940 bool = l >= 0 + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AlgorithmProvider = "" + } else { + x.AlgorithmProvider = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PolicyConfigFile = "" + } else { + x.PolicyConfigFile = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableProfiling = false + } else { + x.EnableProfiling = bool(r.DecodeBool()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIQPS = 0 + } else { + x.KubeAPIQPS = float32(r.DecodeFloat(true)) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIBurst = 0 + } else { + x.KubeAPIBurst = int32(r.DecodeInt(32)) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SchedulerName = "" + } else { + x.SchedulerName = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HardPodAffinitySymmetricWeight = 0 + } else { + x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FailureDomains = "" + } else { + x.FailureDomains = string(r.DecodeString()) + } + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LeaderElection = LeaderElectionConfiguration{} + } else { + yyv954 := &x.LeaderElection + yyv954.CodecDecodeSelf(d) + } + for { + yyj940++ + if yyhl940 { + yyb940 = yyj940 > l + } else { + yyb940 = r.CheckBreak() + } + if yyb940 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj940-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 { + yym955 := z.EncBinary() + _ = yym955 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep956 := !z.EncBinary() + yy2arr956 := z.EncBasicHandle().StructToArray + var yyq956 [4]bool + _, _, _ = yysep956, yyq956, yy2arr956 + const yyr956 bool = false + var yynn956 int + if yyr956 || yy2arr956 { + r.EncodeArrayStart(4) + } else { + yynn956 = 4 + for _, b := range yyq956 { + if b { + yynn956++ + } + } + r.EncodeMapStart(yynn956) + yynn956 = 0 + } + if yyr956 || yy2arr956 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym958 := z.EncBinary() + _ = yym958 + if false { + } else { + r.EncodeBool(bool(x.LeaderElect)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("leaderElect")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym959 := z.EncBinary() + _ = yym959 + if false { + } else { + r.EncodeBool(bool(x.LeaderElect)) + } + } + if yyr956 || yy2arr956 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy961 := &x.LeaseDuration + yym962 := z.EncBinary() + _ = yym962 + if false { + } else if z.HasExtensions() && z.EncExt(yy961) { + } else if !yym962 && z.IsJSONHandle() { + z.EncJSONMarshal(yy961) + } else { + z.EncFallback(yy961) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("leaseDuration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy963 := &x.LeaseDuration + yym964 := z.EncBinary() + _ = yym964 + if false { + } else if z.HasExtensions() && z.EncExt(yy963) { + } else if !yym964 && z.IsJSONHandle() { + z.EncJSONMarshal(yy963) + } else { + z.EncFallback(yy963) + } + } + if yyr956 || yy2arr956 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy966 := &x.RenewDeadline + yym967 := z.EncBinary() + _ = yym967 + if false { + } else if z.HasExtensions() && z.EncExt(yy966) { + } else if !yym967 && z.IsJSONHandle() { + z.EncJSONMarshal(yy966) + } else { + z.EncFallback(yy966) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("renewDeadline")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy968 := &x.RenewDeadline + yym969 := z.EncBinary() + _ = yym969 + if false { + } else if z.HasExtensions() && z.EncExt(yy968) { + } else if !yym969 && z.IsJSONHandle() { + z.EncJSONMarshal(yy968) + } else { + z.EncFallback(yy968) + } + } + if yyr956 || yy2arr956 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy971 := &x.RetryPeriod + yym972 := z.EncBinary() + _ = yym972 + if false { + } else if z.HasExtensions() && z.EncExt(yy971) { + } else if !yym972 && z.IsJSONHandle() { + z.EncJSONMarshal(yy971) + } else { + z.EncFallback(yy971) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("retryPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy973 := &x.RetryPeriod + yym974 := z.EncBinary() + _ = yym974 + if false { + } else if z.HasExtensions() && z.EncExt(yy973) { + } else if !yym974 && z.IsJSONHandle() { + z.EncJSONMarshal(yy973) + } else { + z.EncFallback(yy973) + } + } + if yyr956 || yy2arr956 { + 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 + yym975 := z.DecBinary() + _ = yym975 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct976 := r.ContainerType() + if yyct976 == codecSelferValueTypeMap1234 { + yyl976 := r.ReadMapStart() + if yyl976 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl976, d) + } + } else if yyct976 == codecSelferValueTypeArray1234 { + yyl976 := r.ReadArrayStart() + if yyl976 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl976, 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 yys977Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys977Slc + var yyhl977 bool = l >= 0 + for yyj977 := 0; ; yyj977++ { + if yyhl977 { + if yyj977 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys977Slc = r.DecodeBytes(yys977Slc, true, true) + yys977 := string(yys977Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys977 { + 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 { + yyv979 := &x.LeaseDuration + yym980 := z.DecBinary() + _ = yym980 + if false { + } else if z.HasExtensions() && z.DecExt(yyv979) { + } else if !yym980 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv979) + } else { + z.DecFallback(yyv979, false) + } + } + case "renewDeadline": + if r.TryDecodeAsNil() { + x.RenewDeadline = pkg1_unversioned.Duration{} + } else { + yyv981 := &x.RenewDeadline + yym982 := z.DecBinary() + _ = yym982 + if false { + } else if z.HasExtensions() && z.DecExt(yyv981) { + } else if !yym982 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv981) + } else { + z.DecFallback(yyv981, false) + } + } + case "retryPeriod": + if r.TryDecodeAsNil() { + x.RetryPeriod = pkg1_unversioned.Duration{} + } else { + yyv983 := &x.RetryPeriod + yym984 := z.DecBinary() + _ = yym984 + if false { + } else if z.HasExtensions() && z.DecExt(yyv983) { + } else if !yym984 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv983) + } else { + z.DecFallback(yyv983, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys977) + } // end switch yys977 + } // end for yyj977 + 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 yyj985 int + var yyb985 bool + var yyhl985 bool = l >= 0 + yyj985++ + if yyhl985 { + yyb985 = yyj985 > l + } else { + yyb985 = r.CheckBreak() + } + if yyb985 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LeaderElect = false + } else { + x.LeaderElect = bool(r.DecodeBool()) + } + yyj985++ + if yyhl985 { + yyb985 = yyj985 > l + } else { + yyb985 = r.CheckBreak() + } + if yyb985 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LeaseDuration = pkg1_unversioned.Duration{} + } else { + yyv987 := &x.LeaseDuration + yym988 := z.DecBinary() + _ = yym988 + if false { + } else if z.HasExtensions() && z.DecExt(yyv987) { + } else if !yym988 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv987) + } else { + z.DecFallback(yyv987, false) + } + } + yyj985++ + if yyhl985 { + yyb985 = yyj985 > l + } else { + yyb985 = r.CheckBreak() + } + if yyb985 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RenewDeadline = pkg1_unversioned.Duration{} + } else { + yyv989 := &x.RenewDeadline + yym990 := z.DecBinary() + _ = yym990 + if false { + } else if z.HasExtensions() && z.DecExt(yyv989) { + } else if !yym990 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv989) + } else { + z.DecFallback(yyv989, false) + } + } + yyj985++ + if yyhl985 { + yyb985 = yyj985 > l + } else { + yyb985 = r.CheckBreak() + } + if yyb985 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RetryPeriod = pkg1_unversioned.Duration{} + } else { + yyv991 := &x.RetryPeriod + yym992 := z.DecBinary() + _ = yym992 + if false { + } else if z.HasExtensions() && z.DecExt(yyv991) { + } else if !yym992 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv991) + } else { + z.DecFallback(yyv991, false) + } + } + for { + yyj985++ + if yyhl985 { + yyb985 = yyj985 > l + } else { + yyb985 = r.CheckBreak() + } + if yyb985 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj985-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 { + yym993 := z.EncBinary() + _ = yym993 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep994 := !z.EncBinary() + yy2arr994 := z.EncBasicHandle().StructToArray + var yyq994 [60]bool + _, _, _ = yysep994, yyq994, yy2arr994 + const yyr994 bool = false + yyq994[0] = x.Kind != "" + yyq994[1] = x.APIVersion != "" + var yynn994 int + if yyr994 || yy2arr994 { + r.EncodeArrayStart(60) + } else { + yynn994 = 58 + for _, b := range yyq994 { + if b { + yynn994++ + } + } + r.EncodeMapStart(yynn994) + yynn994 = 0 + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq994[0] { + yym996 := z.EncBinary() + _ = yym996 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq994[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym997 := z.EncBinary() + _ = yym997 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq994[1] { + yym999 := z.EncBinary() + _ = yym999 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq994[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1000 := z.EncBinary() + _ = yym1000 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1002 := z.EncBinary() + _ = yym1002 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("port")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1003 := z.EncBinary() + _ = yym1003 + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1005 := z.EncBinary() + _ = yym1005 + 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) + yym1006 := z.EncBinary() + _ = yym1006 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1008 := z.EncBinary() + _ = yym1008 + 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) + yym1009 := z.EncBinary() + _ = yym1009 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1011 := z.EncBinary() + _ = yym1011 + 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) + yym1012 := z.EncBinary() + _ = yym1012 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1014 := z.EncBinary() + _ = yym1014 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1015 := z.EncBinary() + _ = yym1015 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1017 := z.EncBinary() + _ = yym1017 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentRSSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1018 := z.EncBinary() + _ = yym1018 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentRSSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1020 := z.EncBinary() + _ = yym1020 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentRCSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1021 := z.EncBinary() + _ = yym1021 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentRCSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1023 := z.EncBinary() + _ = yym1023 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentServiceSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentServiceSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1024 := z.EncBinary() + _ = yym1024 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentServiceSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1026 := z.EncBinary() + _ = yym1026 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1027 := z.EncBinary() + _ = yym1027 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1029 := z.EncBinary() + _ = yym1029 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1030 := z.EncBinary() + _ = yym1030 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1032 := z.EncBinary() + _ = yym1032 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1033 := z.EncBinary() + _ = yym1033 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1035 := z.EncBinary() + _ = yym1035 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentJobSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1036 := z.EncBinary() + _ = yym1036 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentJobSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1038 := z.EncBinary() + _ = yym1038 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1039 := z.EncBinary() + _ = yym1039 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1041 := z.EncBinary() + _ = yym1041 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1042 := z.EncBinary() + _ = yym1042 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1044 := z.EncBinary() + _ = yym1044 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForRC)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1045 := z.EncBinary() + _ = yym1045 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForRC)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1047 := z.EncBinary() + _ = yym1047 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForRS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1048 := z.EncBinary() + _ = yym1048 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForRS)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1050 := z.EncBinary() + _ = yym1050 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1051 := z.EncBinary() + _ = yym1051 + if false { + } else { + r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1053 := &x.ServiceSyncPeriod + yym1054 := z.EncBinary() + _ = yym1054 + if false { + } else if z.HasExtensions() && z.EncExt(yy1053) { + } else if !yym1054 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1053) + } else { + z.EncFallback(yy1053) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1055 := &x.ServiceSyncPeriod + 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) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1058 := &x.NodeSyncPeriod + yym1059 := z.EncBinary() + _ = yym1059 + if false { + } else if z.HasExtensions() && z.EncExt(yy1058) { + } else if !yym1059 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1058) + } else { + z.EncFallback(yy1058) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1060 := &x.NodeSyncPeriod + 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) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1063 := &x.RouteReconciliationPeriod + yym1064 := z.EncBinary() + _ = yym1064 + if false { + } else if z.HasExtensions() && z.EncExt(yy1063) { + } else if !yym1064 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1063) + } else { + z.EncFallback(yy1063) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("routeReconciliationPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1065 := &x.RouteReconciliationPeriod + 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) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1068 := &x.ResourceQuotaSyncPeriod + yym1069 := z.EncBinary() + _ = yym1069 + if false { + } else if z.HasExtensions() && z.EncExt(yy1068) { + } else if !yym1069 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1068) + } else { + z.EncFallback(yy1068) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1070 := &x.ResourceQuotaSyncPeriod + yym1071 := z.EncBinary() + _ = yym1071 + if false { + } else if z.HasExtensions() && z.EncExt(yy1070) { + } else if !yym1071 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1070) + } else { + z.EncFallback(yy1070) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1073 := &x.NamespaceSyncPeriod + 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("namespaceSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1075 := &x.NamespaceSyncPeriod + 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 yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1078 := &x.PVClaimBinderSyncPeriod + 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("pvClaimBinderSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1080 := &x.PVClaimBinderSyncPeriod + 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 yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1083 := &x.MinResyncPeriod + 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("minResyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1085 := &x.MinResyncPeriod + 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 yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1088 := z.EncBinary() + _ = yym1088 + if false { + } else { + r.EncodeInt(int64(x.TerminatedPodGCThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1089 := z.EncBinary() + _ = yym1089 + if false { + } else { + r.EncodeInt(int64(x.TerminatedPodGCThreshold)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1091 := &x.HorizontalPodAutoscalerSyncPeriod + yym1092 := z.EncBinary() + _ = yym1092 + if false { + } else if z.HasExtensions() && z.EncExt(yy1091) { + } else if !yym1092 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1091) + } else { + z.EncFallback(yy1091) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1093 := &x.HorizontalPodAutoscalerSyncPeriod + yym1094 := z.EncBinary() + _ = yym1094 + if false { + } else if z.HasExtensions() && z.EncExt(yy1093) { + } else if !yym1094 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1093) + } else { + z.EncFallback(yy1093) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1096 := &x.DeploymentControllerSyncPeriod + 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) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1098 := &x.DeploymentControllerSyncPeriod + yym1099 := z.EncBinary() + _ = yym1099 + if false { + } else if z.HasExtensions() && z.EncExt(yy1098) { + } else if !yym1099 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1098) + } else { + z.EncFallback(yy1098) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1101 := &x.PodEvictionTimeout + yym1102 := z.EncBinary() + _ = yym1102 + if false { + } else if z.HasExtensions() && z.EncExt(yy1101) { + } else if !yym1102 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1101) + } else { + z.EncFallback(yy1101) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1103 := &x.PodEvictionTimeout + yym1104 := z.EncBinary() + _ = yym1104 + if false { + } else if z.HasExtensions() && z.EncExt(yy1103) { + } else if !yym1104 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1103) + } else { + z.EncFallback(yy1103) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1106 := z.EncBinary() + _ = yym1106 + if false { + } else { + r.EncodeFloat32(float32(x.DeletingPodsQps)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1107 := z.EncBinary() + _ = yym1107 + if false { + } else { + r.EncodeFloat32(float32(x.DeletingPodsQps)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1109 := z.EncBinary() + _ = yym1109 + if false { + } else { + r.EncodeInt(int64(x.DeletingPodsBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1110 := z.EncBinary() + _ = yym1110 + if false { + } else { + r.EncodeInt(int64(x.DeletingPodsBurst)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1112 := &x.NodeMonitorGracePeriod + yym1113 := z.EncBinary() + _ = yym1113 + if false { + } else if z.HasExtensions() && z.EncExt(yy1112) { + } else if !yym1113 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1112) + } else { + z.EncFallback(yy1112) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1114 := &x.NodeMonitorGracePeriod + yym1115 := z.EncBinary() + _ = yym1115 + if false { + } else if z.HasExtensions() && z.EncExt(yy1114) { + } else if !yym1115 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1114) + } else { + z.EncFallback(yy1114) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1117 := z.EncBinary() + _ = yym1117 + if false { + } else { + r.EncodeInt(int64(x.RegisterRetryCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1118 := z.EncBinary() + _ = yym1118 + if false { + } else { + r.EncodeInt(int64(x.RegisterRetryCount)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1120 := &x.NodeStartupGracePeriod + yym1121 := z.EncBinary() + _ = yym1121 + if false { + } else if z.HasExtensions() && z.EncExt(yy1120) { + } else if !yym1121 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1120) + } else { + z.EncFallback(yy1120) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1122 := &x.NodeStartupGracePeriod + yym1123 := z.EncBinary() + _ = yym1123 + if false { + } else if z.HasExtensions() && z.EncExt(yy1122) { + } else if !yym1123 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1122) + } else { + z.EncFallback(yy1122) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1125 := &x.NodeMonitorPeriod + yym1126 := z.EncBinary() + _ = yym1126 + if false { + } else if z.HasExtensions() && z.EncExt(yy1125) { + } else if !yym1126 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1125) + } else { + z.EncFallback(yy1125) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1127 := &x.NodeMonitorPeriod + yym1128 := z.EncBinary() + _ = yym1128 + if false { + } else if z.HasExtensions() && z.EncExt(yy1127) { + } else if !yym1128 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1127) + } else { + z.EncFallback(yy1127) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1130 := z.EncBinary() + _ = yym1130 + 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) + yym1131 := z.EncBinary() + _ = yym1131 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1133 := z.EncBinary() + _ = yym1133 + 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) + yym1134 := z.EncBinary() + _ = yym1134 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1136 := z.EncBinary() + _ = yym1136 + 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) + yym1137 := z.EncBinary() + _ = yym1137 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1139 := z.EncBinary() + _ = yym1139 + 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) + yym1140 := z.EncBinary() + _ = yym1140 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1142 := z.EncBinary() + _ = yym1142 + if false { + } else { + r.EncodeBool(bool(x.EnableProfiling)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1143 := z.EncBinary() + _ = yym1143 + if false { + } else { + r.EncodeBool(bool(x.EnableProfiling)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1145 := z.EncBinary() + _ = yym1145 + 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) + yym1146 := z.EncBinary() + _ = yym1146 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1148 := z.EncBinary() + _ = yym1148 + 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) + yym1149 := z.EncBinary() + _ = yym1149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1151 := z.EncBinary() + _ = yym1151 + 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) + yym1152 := z.EncBinary() + _ = yym1152 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1154 := z.EncBinary() + _ = yym1154 + if false { + } else { + r.EncodeInt(int64(x.NodeCIDRMaskSize)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1155 := z.EncBinary() + _ = yym1155 + if false { + } else { + r.EncodeInt(int64(x.NodeCIDRMaskSize)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1157 := z.EncBinary() + _ = yym1157 + if false { + } else { + r.EncodeBool(bool(x.AllocateNodeCIDRs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1158 := z.EncBinary() + _ = yym1158 + if false { + } else { + r.EncodeBool(bool(x.AllocateNodeCIDRs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1160 := z.EncBinary() + _ = yym1160 + if false { + } else { + r.EncodeBool(bool(x.ConfigureCloudRoutes)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1161 := z.EncBinary() + _ = yym1161 + if false { + } else { + r.EncodeBool(bool(x.ConfigureCloudRoutes)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1163 := z.EncBinary() + _ = yym1163 + 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) + yym1164 := z.EncBinary() + _ = yym1164 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1166 := z.EncBinary() + _ = yym1166 + 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) + yym1167 := z.EncBinary() + _ = yym1167 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1169 := z.EncBinary() + _ = yym1169 + if false { + } else { + r.EncodeFloat32(float32(x.KubeAPIQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1170 := z.EncBinary() + _ = yym1170 + if false { + } else { + r.EncodeFloat32(float32(x.KubeAPIQPS)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1172 := z.EncBinary() + _ = yym1172 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1173 := z.EncBinary() + _ = yym1173 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1175 := &x.LeaderElection + yy1175.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1176 := &x.LeaderElection + yy1176.CodecEncodeSelf(e) + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1178 := &x.VolumeConfiguration + yy1178.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1179 := &x.VolumeConfiguration + yy1179.CodecEncodeSelf(e) + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1181 := &x.ControllerStartInterval + yym1182 := z.EncBinary() + _ = yym1182 + if false { + } else if z.HasExtensions() && z.EncExt(yy1181) { + } else if !yym1182 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1181) + } else { + z.EncFallback(yy1181) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1183 := &x.ControllerStartInterval + yym1184 := z.EncBinary() + _ = yym1184 + if false { + } else if z.HasExtensions() && z.EncExt(yy1183) { + } else if !yym1184 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1183) + } else { + z.EncFallback(yy1183) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1186 := z.EncBinary() + _ = yym1186 + if false { + } else { + r.EncodeBool(bool(x.EnableGarbageCollector)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1187 := z.EncBinary() + _ = yym1187 + if false { + } else { + r.EncodeBool(bool(x.EnableGarbageCollector)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1189 := z.EncBinary() + _ = yym1189 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentGCSyncs)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("concurrentGCSyncs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1190 := z.EncBinary() + _ = yym1190 + if false { + } else { + r.EncodeInt(int64(x.ConcurrentGCSyncs)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1192 := z.EncBinary() + _ = yym1192 + if false { + } else { + r.EncodeFloat32(float32(x.NodeEvictionRate)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeEvictionRate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1193 := z.EncBinary() + _ = yym1193 + if false { + } else { + r.EncodeFloat32(float32(x.NodeEvictionRate)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1195 := z.EncBinary() + _ = yym1195 + if false { + } else { + r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secondaryNodeEvictionRate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1196 := z.EncBinary() + _ = yym1196 + if false { + } else { + r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1198 := z.EncBinary() + _ = yym1198 + if false { + } else { + r.EncodeInt(int64(x.LargeClusterSizeThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("largeClusterSizeThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1199 := z.EncBinary() + _ = yym1199 + if false { + } else { + r.EncodeInt(int64(x.LargeClusterSizeThreshold)) + } + } + if yyr994 || yy2arr994 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1201 := z.EncBinary() + _ = yym1201 + if false { + } else { + r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unhealthyZoneThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1202 := z.EncBinary() + _ = yym1202 + if false { + } else { + r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) + } + } + if yyr994 || yy2arr994 { + 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 + yym1203 := z.DecBinary() + _ = yym1203 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1204 := r.ContainerType() + if yyct1204 == codecSelferValueTypeMap1234 { + yyl1204 := r.ReadMapStart() + if yyl1204 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1204, d) + } + } else if yyct1204 == codecSelferValueTypeArray1234 { + yyl1204 := r.ReadArrayStart() + if yyl1204 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1204, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1205Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1205Slc + var yyhl1205 bool = l >= 0 + for yyj1205 := 0; ; yyj1205++ { + if yyhl1205 { + if yyj1205 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1205Slc = r.DecodeBytes(yys1205Slc, true, true) + yys1205 := string(yys1205Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1205 { + case "kind": + if 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 { + yyv1225 := &x.ServiceSyncPeriod + yym1226 := z.DecBinary() + _ = yym1226 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1225) { + } else if !yym1226 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1225) + } else { + z.DecFallback(yyv1225, false) + } + } + case "nodeSyncPeriod": + if r.TryDecodeAsNil() { + x.NodeSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1227 := &x.NodeSyncPeriod + yym1228 := z.DecBinary() + _ = yym1228 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1227) { + } else if !yym1228 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1227) + } else { + z.DecFallback(yyv1227, false) + } + } + case "routeReconciliationPeriod": + if r.TryDecodeAsNil() { + x.RouteReconciliationPeriod = pkg1_unversioned.Duration{} + } else { + yyv1229 := &x.RouteReconciliationPeriod + yym1230 := z.DecBinary() + _ = yym1230 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1229) { + } else if !yym1230 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1229) + } else { + z.DecFallback(yyv1229, false) + } + } + case "resourceQuotaSyncPeriod": + if r.TryDecodeAsNil() { + x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1231 := &x.ResourceQuotaSyncPeriod + yym1232 := z.DecBinary() + _ = yym1232 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1231) { + } else if !yym1232 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1231) + } else { + z.DecFallback(yyv1231, false) + } + } + case "namespaceSyncPeriod": + if r.TryDecodeAsNil() { + x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1233 := &x.NamespaceSyncPeriod + 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 "pvClaimBinderSyncPeriod": + if r.TryDecodeAsNil() { + x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1235 := &x.PVClaimBinderSyncPeriod + 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 "minResyncPeriod": + if r.TryDecodeAsNil() { + x.MinResyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1237 := &x.MinResyncPeriod + yym1238 := z.DecBinary() + _ = yym1238 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1237) { + } else if !yym1238 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1237) + } else { + z.DecFallback(yyv1237, 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 { + yyv1240 := &x.HorizontalPodAutoscalerSyncPeriod + yym1241 := z.DecBinary() + _ = yym1241 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1240) { + } else if !yym1241 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1240) + } else { + z.DecFallback(yyv1240, false) + } + } + case "deploymentControllerSyncPeriod": + if r.TryDecodeAsNil() { + x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1242 := &x.DeploymentControllerSyncPeriod + yym1243 := z.DecBinary() + _ = yym1243 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1242) { + } else if !yym1243 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1242) + } else { + z.DecFallback(yyv1242, false) + } + } + case "podEvictionTimeout": + if r.TryDecodeAsNil() { + x.PodEvictionTimeout = pkg1_unversioned.Duration{} + } else { + yyv1244 := &x.PodEvictionTimeout + yym1245 := z.DecBinary() + _ = yym1245 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1244) { + } else if !yym1245 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1244) + } else { + z.DecFallback(yyv1244, 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 { + yyv1248 := &x.NodeMonitorGracePeriod + yym1249 := z.DecBinary() + _ = yym1249 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1248) { + } else if !yym1249 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1248) + } else { + z.DecFallback(yyv1248, 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 { + yyv1251 := &x.NodeStartupGracePeriod + yym1252 := z.DecBinary() + _ = yym1252 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1251) { + } else if !yym1252 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1251) + } else { + z.DecFallback(yyv1251, false) + } + } + case "nodeMonitorPeriod": + if r.TryDecodeAsNil() { + x.NodeMonitorPeriod = pkg1_unversioned.Duration{} + } else { + yyv1253 := &x.NodeMonitorPeriod + yym1254 := z.DecBinary() + _ = yym1254 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1253) { + } else if !yym1254 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1253) + } else { + z.DecFallback(yyv1253, 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 { + yyv1270 := &x.LeaderElection + yyv1270.CodecDecodeSelf(d) + } + case "volumeConfiguration": + if r.TryDecodeAsNil() { + x.VolumeConfiguration = VolumeConfiguration{} + } else { + yyv1271 := &x.VolumeConfiguration + yyv1271.CodecDecodeSelf(d) + } + case "controllerStartInterval": + if r.TryDecodeAsNil() { + x.ControllerStartInterval = pkg1_unversioned.Duration{} + } else { + yyv1272 := &x.ControllerStartInterval + yym1273 := z.DecBinary() + _ = yym1273 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1272) { + } else if !yym1273 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1272) + } else { + z.DecFallback(yyv1272, false) + } + } + case "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, yys1205) + } // end switch yys1205 + } // end for yyj1205 + 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 yyj1280 int + var yyb1280 bool + var yyhl1280 bool = l >= 0 + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CloudProvider = "" + } else { + x.CloudProvider = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CloudConfigFile = "" + } else { + x.CloudConfigFile = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentEndpointSyncs = 0 + } else { + x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentRSSyncs = 0 + } else { + x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentRCSyncs = 0 + } else { + x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentServiceSyncs = 0 + } else { + x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentResourceQuotaSyncs = 0 + } else { + x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentDeploymentSyncs = 0 + } else { + x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentDaemonSetSyncs = 0 + } else { + x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentJobSyncs = 0 + } else { + x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentNamespaceSyncs = 0 + } else { + x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentSATokenSyncs = 0 + } else { + x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LookupCacheSizeForRC = 0 + } else { + x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LookupCacheSizeForRS = 0 + } else { + x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LookupCacheSizeForDaemonSet = 0 + } else { + x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1300 := &x.ServiceSyncPeriod + yym1301 := z.DecBinary() + _ = yym1301 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1300) { + } else if !yym1301 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1300) + } else { + z.DecFallback(yyv1300, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1302 := &x.NodeSyncPeriod + yym1303 := z.DecBinary() + _ = yym1303 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1302) { + } else if !yym1303 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1302) + } else { + z.DecFallback(yyv1302, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RouteReconciliationPeriod = pkg1_unversioned.Duration{} + } else { + yyv1304 := &x.RouteReconciliationPeriod + yym1305 := z.DecBinary() + _ = yym1305 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1304) { + } else if !yym1305 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1304) + } else { + z.DecFallback(yyv1304, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1306 := &x.ResourceQuotaSyncPeriod + yym1307 := z.DecBinary() + _ = yym1307 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1306) { + } else if !yym1307 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1306) + } else { + z.DecFallback(yyv1306, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1308 := &x.NamespaceSyncPeriod + 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) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1310 := &x.PVClaimBinderSyncPeriod + 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) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinResyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1312 := &x.MinResyncPeriod + yym1313 := z.DecBinary() + _ = yym1313 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1312) { + } else if !yym1313 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1312) + } else { + z.DecFallback(yyv1312, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TerminatedPodGCThreshold = 0 + } else { + x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1315 := &x.HorizontalPodAutoscalerSyncPeriod + yym1316 := z.DecBinary() + _ = yym1316 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1315) { + } else if !yym1316 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1315) + } else { + z.DecFallback(yyv1315, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} + } else { + yyv1317 := &x.DeploymentControllerSyncPeriod + yym1318 := z.DecBinary() + _ = yym1318 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1317) { + } else if !yym1318 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1317) + } else { + z.DecFallback(yyv1317, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodEvictionTimeout = pkg1_unversioned.Duration{} + } else { + yyv1319 := &x.PodEvictionTimeout + yym1320 := z.DecBinary() + _ = yym1320 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1319) { + } else if !yym1320 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1319) + } else { + z.DecFallback(yyv1319, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DeletingPodsQps = 0 + } else { + x.DeletingPodsQps = float32(r.DecodeFloat(true)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DeletingPodsBurst = 0 + } else { + x.DeletingPodsBurst = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} + } else { + yyv1323 := &x.NodeMonitorGracePeriod + yym1324 := z.DecBinary() + _ = yym1324 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1323) { + } else if !yym1324 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1323) + } else { + z.DecFallback(yyv1323, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RegisterRetryCount = 0 + } else { + x.RegisterRetryCount = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} + } else { + yyv1326 := &x.NodeStartupGracePeriod + yym1327 := z.DecBinary() + _ = yym1327 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1326) { + } else if !yym1327 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1326) + } else { + z.DecFallback(yyv1326, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeMonitorPeriod = pkg1_unversioned.Duration{} + } else { + yyv1328 := &x.NodeMonitorPeriod + yym1329 := z.DecBinary() + _ = yym1329 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1328) { + } else if !yym1329 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1328) + } else { + z.DecFallback(yyv1328, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceAccountKeyFile = "" + } else { + x.ServiceAccountKeyFile = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterSigningCertFile = "" + } else { + x.ClusterSigningCertFile = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterSigningKeyFile = "" + } else { + x.ClusterSigningKeyFile = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ApproveAllKubeletCSRsForGroup = "" + } else { + x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableProfiling = false + } else { + x.EnableProfiling = bool(r.DecodeBool()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterCIDR = "" + } else { + x.ClusterCIDR = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ServiceCIDR = "" + } else { + x.ServiceCIDR = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeCIDRMaskSize = 0 + } else { + x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AllocateNodeCIDRs = false + } else { + x.AllocateNodeCIDRs = bool(r.DecodeBool()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConfigureCloudRoutes = false + } else { + x.ConfigureCloudRoutes = bool(r.DecodeBool()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RootCAFile = "" + } else { + x.RootCAFile = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = string(r.DecodeString()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIQPS = 0 + } else { + x.KubeAPIQPS = float32(r.DecodeFloat(true)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.KubeAPIBurst = 0 + } else { + x.KubeAPIBurst = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LeaderElection = LeaderElectionConfiguration{} + } else { + yyv1345 := &x.LeaderElection + yyv1345.CodecDecodeSelf(d) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumeConfiguration = VolumeConfiguration{} + } else { + yyv1346 := &x.VolumeConfiguration + yyv1346.CodecDecodeSelf(d) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ControllerStartInterval = pkg1_unversioned.Duration{} + } else { + yyv1347 := &x.ControllerStartInterval + yym1348 := z.DecBinary() + _ = yym1348 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1347) { + } else if !yym1348 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1347) + } else { + z.DecFallback(yyv1347, false) + } + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableGarbageCollector = false + } else { + x.EnableGarbageCollector = bool(r.DecodeBool()) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ConcurrentGCSyncs = 0 + } else { + x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeEvictionRate = 0 + } else { + x.NodeEvictionRate = float32(r.DecodeFloat(true)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecondaryNodeEvictionRate = 0 + } else { + x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LargeClusterSizeThreshold = 0 + } else { + x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) + } + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UnhealthyZoneThreshold = 0 + } else { + x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) + } + for { + yyj1280++ + if yyhl1280 { + yyb1280 = yyj1280 > l + } else { + yyb1280 = r.CheckBreak() + } + if yyb1280 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1280-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1355 := z.EncBinary() + _ = yym1355 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1356 := !z.EncBinary() + yy2arr1356 := z.EncBasicHandle().StructToArray + var yyq1356 [4]bool + _, _, _ = yysep1356, yyq1356, yy2arr1356 + const yyr1356 bool = false + var yynn1356 int + if yyr1356 || yy2arr1356 { + r.EncodeArrayStart(4) + } else { + yynn1356 = 4 + for _, b := range yyq1356 { + if b { + yynn1356++ + } + } + r.EncodeMapStart(yynn1356) + yynn1356 = 0 + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1358 := z.EncBinary() + _ = yym1358 + if false { + } else { + r.EncodeBool(bool(x.EnableHostPathProvisioning)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1359 := z.EncBinary() + _ = yym1359 + if false { + } else { + r.EncodeBool(bool(x.EnableHostPathProvisioning)) + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1361 := z.EncBinary() + _ = yym1361 + if false { + } else { + r.EncodeBool(bool(x.EnableDynamicProvisioning)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1362 := z.EncBinary() + _ = yym1362 + if false { + } else { + r.EncodeBool(bool(x.EnableDynamicProvisioning)) + } + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1364 := &x.PersistentVolumeRecyclerConfiguration + yy1364.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1365 := &x.PersistentVolumeRecyclerConfiguration + yy1365.CodecEncodeSelf(e) + } + if yyr1356 || yy2arr1356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1367 := z.EncBinary() + _ = yym1367 + 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) + yym1368 := z.EncBinary() + _ = yym1368 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) + } + } + if yyr1356 || yy2arr1356 { + 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 + yym1369 := z.DecBinary() + _ = yym1369 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1370 := r.ContainerType() + if yyct1370 == codecSelferValueTypeMap1234 { + yyl1370 := r.ReadMapStart() + if yyl1370 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1370, d) + } + } else if yyct1370 == codecSelferValueTypeArray1234 { + yyl1370 := r.ReadArrayStart() + if yyl1370 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1370, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1371Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1371Slc + var yyhl1371 bool = l >= 0 + for yyj1371 := 0; ; yyj1371++ { + if yyhl1371 { + if yyj1371 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) + yys1371 := string(yys1371Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1371 { + case "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 { + yyv1374 := &x.PersistentVolumeRecyclerConfiguration + yyv1374.CodecDecodeSelf(d) + } + case "flexVolumePluginDir": + if r.TryDecodeAsNil() { + x.FlexVolumePluginDir = "" + } else { + x.FlexVolumePluginDir = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1371) + } // end switch yys1371 + } // end for yyj1371 + 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 yyj1376 int + var yyb1376 bool + var yyhl1376 bool = l >= 0 + yyj1376++ + if yyhl1376 { + yyb1376 = yyj1376 > l + } else { + yyb1376 = r.CheckBreak() + } + if yyb1376 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableHostPathProvisioning = false + } else { + x.EnableHostPathProvisioning = bool(r.DecodeBool()) + } + yyj1376++ + if yyhl1376 { + yyb1376 = yyj1376 > l + } else { + yyb1376 = r.CheckBreak() + } + if yyb1376 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EnableDynamicProvisioning = false + } else { + x.EnableDynamicProvisioning = bool(r.DecodeBool()) + } + yyj1376++ + if yyhl1376 { + yyb1376 = yyj1376 > l + } else { + yyb1376 = r.CheckBreak() + } + if yyb1376 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} + } else { + yyv1379 := &x.PersistentVolumeRecyclerConfiguration + yyv1379.CodecDecodeSelf(d) + } + yyj1376++ + if yyhl1376 { + yyb1376 = yyj1376 > l + } else { + yyb1376 = r.CheckBreak() + } + if yyb1376 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FlexVolumePluginDir = "" + } else { + x.FlexVolumePluginDir = string(r.DecodeString()) + } + for { + yyj1376++ + if yyhl1376 { + yyb1376 = yyj1376 > l + } else { + yyb1376 = r.CheckBreak() + } + if yyb1376 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1376-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 { + yym1381 := z.EncBinary() + _ = yym1381 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1382 := !z.EncBinary() + yy2arr1382 := z.EncBasicHandle().StructToArray + var yyq1382 [7]bool + _, _, _ = yysep1382, yyq1382, yy2arr1382 + const yyr1382 bool = false + var yynn1382 int + if yyr1382 || yy2arr1382 { + r.EncodeArrayStart(7) + } else { + yynn1382 = 7 + for _, b := range yyq1382 { + if b { + yynn1382++ + } + } + r.EncodeMapStart(yynn1382) + yynn1382 = 0 + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1384 := z.EncBinary() + _ = yym1384 + if false { + } else { + r.EncodeInt(int64(x.MaximumRetry)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maximumRetry")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1385 := z.EncBinary() + _ = yym1385 + if false { + } else { + r.EncodeInt(int64(x.MaximumRetry)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1387 := z.EncBinary() + _ = yym1387 + if false { + } else { + r.EncodeInt(int64(x.MinimumTimeoutNFS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1388 := z.EncBinary() + _ = yym1388 + if false { + } else { + r.EncodeInt(int64(x.MinimumTimeoutNFS)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1390 := z.EncBinary() + _ = yym1390 + 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) + yym1391 := z.EncBinary() + _ = yym1391 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1393 := z.EncBinary() + _ = yym1393 + if false { + } else { + r.EncodeInt(int64(x.IncrementTimeoutNFS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1394 := z.EncBinary() + _ = yym1394 + if false { + } else { + r.EncodeInt(int64(x.IncrementTimeoutNFS)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1396 := z.EncBinary() + _ = yym1396 + 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) + yym1397 := z.EncBinary() + _ = yym1397 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1399 := z.EncBinary() + _ = yym1399 + if false { + } else { + r.EncodeInt(int64(x.MinimumTimeoutHostPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1400 := z.EncBinary() + _ = yym1400 + if false { + } else { + r.EncodeInt(int64(x.MinimumTimeoutHostPath)) + } + } + if yyr1382 || yy2arr1382 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1402 := z.EncBinary() + _ = yym1402 + if false { + } else { + r.EncodeInt(int64(x.IncrementTimeoutHostPath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1403 := z.EncBinary() + _ = yym1403 + if false { + } else { + r.EncodeInt(int64(x.IncrementTimeoutHostPath)) + } + } + if yyr1382 || yy2arr1382 { + 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 + yym1404 := z.DecBinary() + _ = yym1404 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1405 := r.ContainerType() + if yyct1405 == codecSelferValueTypeMap1234 { + yyl1405 := r.ReadMapStart() + if yyl1405 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1405, d) + } + } else if yyct1405 == codecSelferValueTypeArray1234 { + yyl1405 := r.ReadArrayStart() + if yyl1405 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1405, 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 yys1406Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1406Slc + var yyhl1406 bool = l >= 0 + for yyj1406 := 0; ; yyj1406++ { + if yyhl1406 { + if yyj1406 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1406Slc = r.DecodeBytes(yys1406Slc, true, true) + yys1406 := string(yys1406Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1406 { + 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, yys1406) + } // end switch yys1406 + } // end for yyj1406 + 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 yyj1414 int + var yyb1414 bool + var yyhl1414 bool = l >= 0 + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaximumRetry = 0 + } else { + x.MaximumRetry = int32(r.DecodeInt(32)) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinimumTimeoutNFS = 0 + } else { + x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodTemplateFilePathNFS = "" + } else { + x.PodTemplateFilePathNFS = string(r.DecodeString()) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IncrementTimeoutNFS = 0 + } else { + x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodTemplateFilePathHostPath = "" + } else { + x.PodTemplateFilePathHostPath = string(r.DecodeString()) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinimumTimeoutHostPath = 0 + } else { + x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) + } + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IncrementTimeoutHostPath = 0 + } else { + x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) + } + for { + yyj1414++ + if yyhl1414 { + yyb1414 = yyj1414 > l + } else { + yyb1414 = r.CheckBreak() + } + if yyb1414 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1414-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 yyk1422, yyv1422 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym1423 := z.EncBinary() + _ = yym1423 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk1422)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1424 := z.EncBinary() + _ = yym1424 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyv1422)) + } + } + 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 + + yyv1425 := *v + yyl1425 := r.ReadMapStart() + yybh1425 := z.DecBasicHandle() + if yyv1425 == nil { + yyrl1425, _ := z.DecInferLen(yyl1425, yybh1425.MaxInitLen, 32) + yyv1425 = make(map[string]string, yyrl1425) + *v = yyv1425 + } + var yymk1425 string + var yymv1425 string + var yymg1425 bool + if yybh1425.MapValueReset { + } + if yyl1425 > 0 { + for yyj1425 := 0; yyj1425 < yyl1425; yyj1425++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk1425 = "" + } else { + yymk1425 = string(r.DecodeString()) + } + + if yymg1425 { + yymv1425 = yyv1425[yymk1425] + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv1425 = "" + } else { + yymv1425 = string(r.DecodeString()) + } + + if yyv1425 != nil { + yyv1425[yymk1425] = yymv1425 + } + } + } else if yyl1425 < 0 { + for yyj1425 := 0; !r.CheckBreak(); yyj1425++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk1425 = "" + } else { + yymk1425 = string(r.DecodeString()) + } + + if yymg1425 { + yymv1425 = yyv1425[yymk1425] + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv1425 = "" + } else { + yymv1425 = string(r.DecodeString()) + } + + if yyv1425 != nil { + yyv1425[yymk1425] = yymv1425 + } + } + } // 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 a7138db9082..6bc9ff3ab02 100644 --- a/pkg/apis/componentconfig/types.go +++ b/pkg/apis/componentconfig/types.go @@ -326,8 +326,6 @@ type KubeletConfiguration struct { RktPath string `json:"rktPath,omitempty"` // experimentalMounterPath is the path of mounter binary. Leave empty to use the default mount path ExperimentalMounterPath string `json:"experimentalMounterPath,omitempty"` - // experimentalMounterRootfsPath is the absolute path to root filesystem for the mounter binary. - ExperimentalMounterRootfsPath string `json:"experimentalMounterRootfsPath,omitempty"` // rktApiEndpoint is the endpoint of the rkt API service to communicate with. // +optional RktAPIEndpoint string `json:"rktAPIEndpoint,omitempty"` diff --git a/pkg/apis/componentconfig/v1alpha1/types.go b/pkg/apis/componentconfig/v1alpha1/types.go index ba56ae54a3b..cbdbddec4a9 100644 --- a/pkg/apis/componentconfig/v1alpha1/types.go +++ b/pkg/apis/componentconfig/v1alpha1/types.go @@ -374,8 +374,6 @@ type KubeletConfiguration struct { // experimentalMounterPath is the path to mounter binary. If not set, kubelet will attempt to use mount // binary that is available via $PATH, ExperimentalMounterPath string `json:"experimentalMounterPath,omitempty"` - // experimentalMounterRootfsPath is the absolute path to root filesystem for the mounter binary. - ExperimentalMounterRootfsPath string `json:"experimentalMounterRootfsPath,omitempty"` // rktApiEndpoint is the endpoint of the rkt API service to communicate with. RktAPIEndpoint string `json:"rktAPIEndpoint"` // rktStage1Image is the image to use as stage1. Local paths and diff --git a/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go b/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go index 38902344433..c44c9fa6f55 100644 --- a/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go +++ b/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go @@ -340,7 +340,6 @@ func autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfigu out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.ExperimentalMounterRootfsPath = in.ExperimentalMounterRootfsPath out.RktAPIEndpoint = in.RktAPIEndpoint out.RktStage1Image = in.RktStage1Image if err := api.Convert_Pointer_string_To_string(&in.LockFilePath, &out.LockFilePath, s); err != nil { @@ -509,7 +508,6 @@ func autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfigu out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.ExperimentalMounterRootfsPath = in.ExperimentalMounterRootfsPath out.RktAPIEndpoint = in.RktAPIEndpoint out.RktStage1Image = in.RktStage1Image if err := api.Convert_string_To_Pointer_string(&in.LockFilePath, &out.LockFilePath, s); err != nil { diff --git a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go index a2eb4fe2ffc..6a55040fd6b 100644 --- a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go @@ -316,7 +316,6 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.ExperimentalMounterRootfsPath = in.ExperimentalMounterRootfsPath out.RktAPIEndpoint = in.RktAPIEndpoint out.RktStage1Image = in.RktStage1Image if in.LockFilePath != nil { diff --git a/pkg/apis/componentconfig/zz_generated.deepcopy.go b/pkg/apis/componentconfig/zz_generated.deepcopy.go index be8f3db09c4..f38728fc238 100644 --- a/pkg/apis/componentconfig/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/zz_generated.deepcopy.go @@ -319,7 +319,6 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.ExperimentalMounterRootfsPath = in.ExperimentalMounterRootfsPath out.RktAPIEndpoint = in.RktAPIEndpoint out.RktStage1Image = in.RktStage1Image out.LockFilePath = in.LockFilePath diff --git a/pkg/cloudprovider/providers/openstack/metadata.go b/pkg/cloudprovider/providers/openstack/metadata.go index 97948f45a73..f26b28fb13f 100644 --- a/pkg/cloudprovider/providers/openstack/metadata.go +++ b/pkg/cloudprovider/providers/openstack/metadata.go @@ -95,7 +95,7 @@ func getMetadataFromConfigDrive() (*Metadata, error) { glog.V(4).Infof("Attempting to mount configdrive %s on %s", dev, mntdir) - mounter := mount.New() + mounter := mount.New("" /* default mount path */) err = mounter.Mount(dev, mntdir, "iso9660", []string{"ro"}) if err != nil { err = mounter.Mount(dev, mntdir, "vfat", []string{"ro"}) diff --git a/pkg/kubemark/hollow_kubelet.go b/pkg/kubemark/hollow_kubelet.go index 9d20a8a90ce..e2df407bc5b 100644 --- a/pkg/kubemark/hollow_kubelet.go +++ b/pkg/kubemark/hollow_kubelet.go @@ -72,7 +72,7 @@ func NewHollowKubelet( TLSOptions: nil, OOMAdjuster: oom.NewFakeOOMAdjuster(), Writer: &kubeio.StdWriter{}, - Mounter: mount.New(), + Mounter: mount.New("" /* default mount path */), } return &HollowKubelet{ diff --git a/pkg/util/mount/BUILD b/pkg/util/mount/BUILD index 75a91b324b0..a30c6992e22 100644 --- a/pkg/util/mount/BUILD +++ b/pkg/util/mount/BUILD @@ -22,6 +22,7 @@ go_library( tags = ["automanaged"], deps = [ "//pkg/util/exec:go_default_library", + "//pkg/util/sets:go_default_library", "//vendor:github.com/golang/glog", ], ) diff --git a/pkg/util/mount/mount.go b/pkg/util/mount/mount.go index f6919f0acd0..02ef476b1f5 100644 --- a/pkg/util/mount/mount.go +++ b/pkg/util/mount/mount.go @@ -30,7 +30,7 @@ import ( const ( // Default mount command if mounter path is not specified - mount = "mount" + defaultMountCommand = "mount" ) type Interface interface { @@ -94,25 +94,16 @@ func (mounter *SafeFormatAndMount) FormatAndMount(source string, target string, } // New returns a mount.Interface for the current system. -func New() Interface { - return &Mounter{} -} - -// NewCustomMounter returns a mount.Interface for the current system. // It provides options to override the default mounter behavior. // mounterPath allows using an alternative to `/bin/mount` for mounting. -// mounterRootfsPath allows specifying a custom root filesystem path for non default `mounterPath`. -func NewCustomMounter(mounterPath, mounterRootfsPath string) Interface { +func New(mounterPath string) Interface { // If mounter-path flag is not set, use default mount path if mounterPath == "" { - mounterPath = mount - } - if mounterRootfsPath == "" { - mounterRootfsPath = "/" + mounterPath = defaultMountCommand } + return &Mounter{ - mounterPath: mounterPath, - mounterRootfsPath: mounterRootfsPath, + mounterPath: mounterPath, } } diff --git a/pkg/util/mount/mount_linux.go b/pkg/util/mount/mount_linux.go index 2c7f12d6aed..2688f8105bf 100644 --- a/pkg/util/mount/mount_linux.go +++ b/pkg/util/mount/mount_linux.go @@ -25,13 +25,13 @@ import ( "io" "os" "os/exec" - "path" "strconv" "strings" "syscall" "github.com/golang/glog" utilExec "k8s.io/kubernetes/pkg/util/exec" + "k8s.io/kubernetes/pkg/util/sets" ) const ( @@ -54,8 +54,7 @@ const ( // for the linux platform. This implementation assumes that the // kubelet is running in the host's root mount namespace. type Mounter struct { - mounterPath string - mounterRootfsPath string + mounterPath string } // Mount mounts source to target as fstype with given options. 'source' and 'fstype' must @@ -63,18 +62,24 @@ type Mounter struct { // type, where kernel handles fs type for you. The mount 'options' is a list of options, // currently come from mount(8), e.g. "ro", "remount", "bind", etc. If no more option is // required, call Mount with an empty string list or nil. -// Update source path to include a root filesystem override to make a containerized mounter (specified via `mounterPath`) work. func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error { + // Path to mounter binary. Set to mount accessible via $PATH by default. + // All Linux distros are expected to be shipped with a mount utility that an support bind mounts. + mounterPath := defaultMountCommand bind, bindRemountOpts := isBind(options) if bind { - err := doMount(mounter.mounterPath, path.Join(mounter.mounterRootfsPath, source), path.Join(mounter.mounterRootfsPath, target), fstype, []string{"bind"}) + err := doMount(mounterPath, source, target, fstype, []string{"bind"}) if err != nil { return err } - return doMount(mounter.mounterPath, path.Join(mounter.mounterRootfsPath, source), path.Join(mounter.mounterRootfsPath, target), fstype, bindRemountOpts) - } else { - return doMount(mounter.mounterPath, source, path.Join(mounter.mounterRootfsPath, target), fstype, options) + return doMount(mounterPath, source, target, fstype, bindRemountOpts) } + // These filesystem types are expected to be supported by the mount utility on the host across all Linux distros. + var defaultMounterFsTypes = sets.NewString("tmpfs", "ext4", "ext3", "ext2") + if !defaultMounterFsTypes.Has(fstype) { + mounterPath = mounter.mounterPath + } + return doMount(mounterPath, source, target, fstype, options) } // isBind detects whether a bind mount is being requested and makes the remount options to diff --git a/pkg/util/mount/mount_unsupported.go b/pkg/util/mount/mount_unsupported.go index 4f2c4ef4326..f9abab813dc 100644 --- a/pkg/util/mount/mount_unsupported.go +++ b/pkg/util/mount/mount_unsupported.go @@ -19,8 +19,7 @@ limitations under the License. package mount type Mounter struct { - mounterPath string - mounterRootfsPath string + mounterPath string } func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error { diff --git a/test/e2e/framework/test_context.go b/test/e2e/framework/test_context.go index 9e0955a0797..6a0530457d9 100644 --- a/test/e2e/framework/test_context.go +++ b/test/e2e/framework/test_context.go @@ -123,8 +123,6 @@ type NodeTestContextType struct { ContainerRuntimeEndpoint string // MounterPath is the path to the program to run to perform a mount MounterPath string - // MounterRootfsPath is the path to the root filesystem for the program used to perform a mount in kubelet - MounterRootfsPath string } type CloudConfig struct { @@ -229,7 +227,6 @@ func RegisterNodeFlags() { flag.BoolVar(&TestContext.EnableCRI, "enable-cri", false, "Enable Container Runtime Interface (CRI) integration.") flag.StringVar(&TestContext.ContainerRuntimeEndpoint, "container-runtime-endpoint", "", "The endpoint of remote container runtime grpc server, mainly used for Remote CRI validation.") flag.StringVar(&TestContext.MounterPath, "experimental-mounter-path", "", "Path of mounter binary. Leave empty to use the default mount.") - flag.StringVar(&TestContext.MounterRootfsPath, "experimental-mounter-rootfs-path", "", "Absolute path to root filesystem for the mounter binary.") } // overwriteFlagsWithViperConfig finds and writes values to flags using viper as input. diff --git a/test/e2e_node/remote/remote.go b/test/e2e_node/remote/remote.go index bcc2cf353f8..b1787721893 100644 --- a/test/e2e_node/remote/remote.go +++ b/test/e2e_node/remote/remote.go @@ -273,6 +273,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string return "", false, fmt.Errorf("Issue detecting node's OS via node's /etc/os-release. Err: %v, Output:\n%s", err, output) } if strings.Contains(output, "ID=gci") { + glog.Infof("GCI node and GCI mounter both detected, modifying --experimental-mounter-path accordingly") // Note this implicitly requires the script to be where we expect in the tarball, so if that location changes the error // here will tell us to update the remote test runner. mounterPath := filepath.Join(tmp, "cluster/gce/gci/mounter/mounter") @@ -284,9 +285,6 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string // Insert args at beginning of testArgs, so any values from command line take precedence testArgs = fmt.Sprintf("--experimental-mounter-rootfs-path=%s ", mounterRootfsPath) + testArgs testArgs = fmt.Sprintf("--experimental-mounter-path=%s ", mounterPath) + testArgs - - // Temporarily disabled (associated Kubelet flags commented out in k8s.io/kubernetes/test/e2e_node/services/services.go): - // glog.Infof("GCI node and GCI mounter both detected, setting --experimental-mounter-path=%q and --experimental-mounter-rootfs-path=%q accordingly", mounterPath, mounterRootfsPath) } // Run the tests