aboutsummaryrefslogtreecommitdiffstats
path: root/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-09-04 15:00:54 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-09-04 15:06:21 +0800
commit43dac0bc4302fed79eaeb661723ca584a9c0496a (patch)
treea78f60300d73f0a69ed12e946d3fe4580455d8ba /kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig
parenta7837a0ac51704003c6aacba2dacb8e64f681622 (diff)
restructure the source directory
Issue-ID: OOM-61 Change-Id: Ib6f633d517ad197bfdbca59b374cdad2f1ed897e Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig')
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go299
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/doc.go19
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/helpers.go97
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go129
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go50
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go9703
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go621
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go182
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go110
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go114
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/doc.go20
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go40
-rw-r--r--kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go141
13 files changed, 0 insertions, 11525 deletions
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go
deleted file mode 100644
index 37615c4..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/deep_copy_generated.go
+++ /dev/null
@@ -1,299 +0,0 @@
-// +build !ignore_autogenerated
-
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// This file was autogenerated by deepcopy-gen. Do not edit it manually!
-
-package componentconfig
-
-import (
- api "k8s.io/kubernetes/pkg/api"
- conversion "k8s.io/kubernetes/pkg/conversion"
-)
-
-func init() {
- if err := api.Scheme.AddGeneratedDeepCopyFuncs(
- DeepCopy_componentconfig_IPVar,
- DeepCopy_componentconfig_KubeControllerManagerConfiguration,
- DeepCopy_componentconfig_KubeProxyConfiguration,
- DeepCopy_componentconfig_KubeSchedulerConfiguration,
- DeepCopy_componentconfig_KubeletConfiguration,
- DeepCopy_componentconfig_LeaderElectionConfiguration,
- DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration,
- DeepCopy_componentconfig_PortRangeVar,
- DeepCopy_componentconfig_VolumeConfiguration,
- ); err != nil {
- // if one of the deep copy functions is malformed, detect it immediately.
- panic(err)
- }
-}
-
-func DeepCopy_componentconfig_IPVar(in IPVar, out *IPVar, c *conversion.Cloner) error {
- if in.Val != nil {
- in, out := in.Val, &out.Val
- *out = new(string)
- **out = *in
- } else {
- out.Val = nil
- }
- return nil
-}
-
-func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in KubeControllerManagerConfiguration, out *KubeControllerManagerConfiguration, c *conversion.Cloner) error {
- out.TypeMeta = in.TypeMeta
- out.Port = in.Port
- out.Address = in.Address
- out.CloudProvider = in.CloudProvider
- out.CloudConfigFile = in.CloudConfigFile
- out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs
- out.ConcurrentRSSyncs = in.ConcurrentRSSyncs
- out.ConcurrentRCSyncs = in.ConcurrentRCSyncs
- out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs
- out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs
- out.ConcurrentDaemonSetSyncs = in.ConcurrentDaemonSetSyncs
- out.ConcurrentJobSyncs = in.ConcurrentJobSyncs
- out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs
- out.ConcurrentSATokenSyncs = in.ConcurrentSATokenSyncs
- out.LookupCacheSizeForRC = in.LookupCacheSizeForRC
- out.LookupCacheSizeForRS = in.LookupCacheSizeForRS
- out.LookupCacheSizeForDaemonSet = in.LookupCacheSizeForDaemonSet
- out.ServiceSyncPeriod = in.ServiceSyncPeriod
- out.NodeSyncPeriod = in.NodeSyncPeriod
- out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod
- out.NamespaceSyncPeriod = in.NamespaceSyncPeriod
- out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod
- out.MinResyncPeriod = in.MinResyncPeriod
- out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold
- out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod
- out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod
- out.PodEvictionTimeout = in.PodEvictionTimeout
- out.DeletingPodsQps = in.DeletingPodsQps
- out.DeletingPodsBurst = in.DeletingPodsBurst
- out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod
- out.RegisterRetryCount = in.RegisterRetryCount
- out.NodeStartupGracePeriod = in.NodeStartupGracePeriod
- out.NodeMonitorPeriod = in.NodeMonitorPeriod
- out.ServiceAccountKeyFile = in.ServiceAccountKeyFile
- out.EnableProfiling = in.EnableProfiling
- out.ClusterName = in.ClusterName
- out.ClusterCIDR = in.ClusterCIDR
- out.ServiceCIDR = in.ServiceCIDR
- out.NodeCIDRMaskSize = in.NodeCIDRMaskSize
- out.AllocateNodeCIDRs = in.AllocateNodeCIDRs
- out.ConfigureCloudRoutes = in.ConfigureCloudRoutes
- out.RootCAFile = in.RootCAFile
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = in.KubeAPIBurst
- out.LeaderElection = in.LeaderElection
- out.VolumeConfiguration = in.VolumeConfiguration
- out.ControllerStartInterval = in.ControllerStartInterval
- out.EnableGarbageCollector = in.EnableGarbageCollector
- return nil
-}
-
-func DeepCopy_componentconfig_KubeProxyConfiguration(in KubeProxyConfiguration, out *KubeProxyConfiguration, c *conversion.Cloner) error {
- out.TypeMeta = in.TypeMeta
- out.BindAddress = in.BindAddress
- out.ClusterCIDR = in.ClusterCIDR
- out.HealthzBindAddress = in.HealthzBindAddress
- out.HealthzPort = in.HealthzPort
- out.HostnameOverride = in.HostnameOverride
- if in.IPTablesMasqueradeBit != nil {
- in, out := in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
- *out = new(int32)
- **out = *in
- } else {
- out.IPTablesMasqueradeBit = nil
- }
- out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
- out.KubeconfigPath = in.KubeconfigPath
- out.MasqueradeAll = in.MasqueradeAll
- out.Master = in.Master
- if in.OOMScoreAdj != nil {
- in, out := in.OOMScoreAdj, &out.OOMScoreAdj
- *out = new(int32)
- **out = *in
- } else {
- out.OOMScoreAdj = nil
- }
- out.Mode = in.Mode
- out.PortRange = in.PortRange
- out.ResourceContainer = in.ResourceContainer
- out.UDPIdleTimeout = in.UDPIdleTimeout
- out.ConntrackMax = in.ConntrackMax
- out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
- return nil
-}
-
-func DeepCopy_componentconfig_KubeSchedulerConfiguration(in KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, c *conversion.Cloner) error {
- out.TypeMeta = in.TypeMeta
- out.Port = in.Port
- out.Address = in.Address
- out.AlgorithmProvider = in.AlgorithmProvider
- out.PolicyConfigFile = in.PolicyConfigFile
- out.EnableProfiling = in.EnableProfiling
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = in.KubeAPIBurst
- out.SchedulerName = in.SchedulerName
- out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
- out.FailureDomains = in.FailureDomains
- out.LeaderElection = in.LeaderElection
- return nil
-}
-
-func DeepCopy_componentconfig_KubeletConfiguration(in KubeletConfiguration, out *KubeletConfiguration, c *conversion.Cloner) error {
- out.Config = in.Config
- out.SyncFrequency = in.SyncFrequency
- out.FileCheckFrequency = in.FileCheckFrequency
- out.HTTPCheckFrequency = in.HTTPCheckFrequency
- out.ManifestURL = in.ManifestURL
- out.ManifestURLHeader = in.ManifestURLHeader
- out.EnableServer = in.EnableServer
- out.Address = in.Address
- out.Port = in.Port
- out.ReadOnlyPort = in.ReadOnlyPort
- out.TLSCertFile = in.TLSCertFile
- out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
- out.CertDirectory = in.CertDirectory
- out.HostnameOverride = in.HostnameOverride
- out.PodInfraContainerImage = in.PodInfraContainerImage
- out.DockerEndpoint = in.DockerEndpoint
- out.RootDirectory = in.RootDirectory
- out.SeccompProfileRoot = in.SeccompProfileRoot
- out.AllowPrivileged = in.AllowPrivileged
- out.HostNetworkSources = in.HostNetworkSources
- out.HostPIDSources = in.HostPIDSources
- out.HostIPCSources = in.HostIPCSources
- out.RegistryPullQPS = in.RegistryPullQPS
- out.RegistryBurst = in.RegistryBurst
- out.EventRecordQPS = in.EventRecordQPS
- out.EventBurst = in.EventBurst
- out.EnableDebuggingHandlers = in.EnableDebuggingHandlers
- out.MinimumGCAge = in.MinimumGCAge
- out.MaxPerPodContainerCount = in.MaxPerPodContainerCount
- out.MaxContainerCount = in.MaxContainerCount
- out.CAdvisorPort = in.CAdvisorPort
- out.HealthzPort = in.HealthzPort
- out.HealthzBindAddress = in.HealthzBindAddress
- out.OOMScoreAdj = in.OOMScoreAdj
- out.RegisterNode = in.RegisterNode
- out.ClusterDomain = in.ClusterDomain
- out.MasterServiceNamespace = in.MasterServiceNamespace
- out.ClusterDNS = in.ClusterDNS
- out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
- out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
- out.ImageMinimumGCAge = in.ImageMinimumGCAge
- out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent
- out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent
- out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB
- out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
- out.NetworkPluginName = in.NetworkPluginName
- out.NetworkPluginDir = in.NetworkPluginDir
- out.VolumePluginDir = in.VolumePluginDir
- out.CloudProvider = in.CloudProvider
- out.CloudConfigFile = in.CloudConfigFile
- out.KubeletCgroups = in.KubeletCgroups
- out.RuntimeCgroups = in.RuntimeCgroups
- out.SystemCgroups = in.SystemCgroups
- out.CgroupRoot = in.CgroupRoot
- out.ContainerRuntime = in.ContainerRuntime
- out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
- out.RktPath = in.RktPath
- out.RktAPIEndpoint = in.RktAPIEndpoint
- out.RktStage1Image = in.RktStage1Image
- out.LockFilePath = in.LockFilePath
- out.ExitOnLockContention = in.ExitOnLockContention
- out.ConfigureCBR0 = in.ConfigureCBR0
- out.HairpinMode = in.HairpinMode
- out.BabysitDaemons = in.BabysitDaemons
- out.MaxPods = in.MaxPods
- out.NvidiaGPUs = in.NvidiaGPUs
- out.DockerExecHandlerName = in.DockerExecHandlerName
- out.PodCIDR = in.PodCIDR
- out.ResolverConfig = in.ResolverConfig
- out.CPUCFSQuota = in.CPUCFSQuota
- out.Containerized = in.Containerized
- out.MaxOpenFiles = in.MaxOpenFiles
- out.ReconcileCIDR = in.ReconcileCIDR
- out.RegisterSchedulable = in.RegisterSchedulable
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = in.KubeAPIBurst
- out.SerializeImagePulls = in.SerializeImagePulls
- out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay
- out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
- out.NodeIP = in.NodeIP
- if in.NodeLabels != nil {
- in, out := in.NodeLabels, &out.NodeLabels
- *out = make(map[string]string)
- for key, val := range in {
- (*out)[key] = val
- }
- } else {
- out.NodeLabels = nil
- }
- out.NonMasqueradeCIDR = in.NonMasqueradeCIDR
- out.EnableCustomMetrics = in.EnableCustomMetrics
- out.EvictionHard = in.EvictionHard
- out.EvictionSoft = in.EvictionSoft
- out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod
- out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
- out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod
- out.PodsPerCore = in.PodsPerCore
- out.EnableControllerAttachDetach = in.EnableControllerAttachDetach
- return nil
-}
-
-func DeepCopy_componentconfig_LeaderElectionConfiguration(in LeaderElectionConfiguration, out *LeaderElectionConfiguration, c *conversion.Cloner) error {
- out.LeaderElect = in.LeaderElect
- out.LeaseDuration = in.LeaseDuration
- out.RenewDeadline = in.RenewDeadline
- out.RetryPeriod = in.RetryPeriod
- return nil
-}
-
-func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in PersistentVolumeRecyclerConfiguration, out *PersistentVolumeRecyclerConfiguration, c *conversion.Cloner) error {
- out.MaximumRetry = in.MaximumRetry
- out.MinimumTimeoutNFS = in.MinimumTimeoutNFS
- out.PodTemplateFilePathNFS = in.PodTemplateFilePathNFS
- out.IncrementTimeoutNFS = in.IncrementTimeoutNFS
- out.PodTemplateFilePathHostPath = in.PodTemplateFilePathHostPath
- out.MinimumTimeoutHostPath = in.MinimumTimeoutHostPath
- out.IncrementTimeoutHostPath = in.IncrementTimeoutHostPath
- return nil
-}
-
-func DeepCopy_componentconfig_PortRangeVar(in PortRangeVar, out *PortRangeVar, c *conversion.Cloner) error {
- if in.Val != nil {
- in, out := in.Val, &out.Val
- *out = new(string)
- **out = *in
- } else {
- out.Val = nil
- }
- return nil
-}
-
-func DeepCopy_componentconfig_VolumeConfiguration(in VolumeConfiguration, out *VolumeConfiguration, c *conversion.Cloner) error {
- out.EnableHostPathProvisioning = in.EnableHostPathProvisioning
- out.EnableDynamicProvisioning = in.EnableDynamicProvisioning
- out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration
- out.FlexVolumePluginDir = in.FlexVolumePluginDir
- return nil
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/doc.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/doc.go
deleted file mode 100644
index d044b16..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// +k8s:deepcopy-gen=package,register
-
-package componentconfig
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/helpers.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/helpers.go
deleted file mode 100644
index 43b625b..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/helpers.go
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package componentconfig
-
-import (
- "fmt"
- "net"
-
- utilnet "k8s.io/kubernetes/pkg/util/net"
-)
-
-// used for validating command line opts
-// TODO(mikedanese): remove these when we remove command line flags
-
-type IPVar struct {
- Val *string
-}
-
-func (v IPVar) Set(s string) error {
- if net.ParseIP(s) == nil {
- return fmt.Errorf("%q is not a valid IP address", s)
- }
- if v.Val == nil {
- // it's okay to panic here since this is programmer error
- panic("the string pointer passed into IPVar should not be nil")
- }
- *v.Val = s
- return nil
-}
-
-func (v IPVar) String() string {
- if v.Val == nil {
- return ""
- }
- return *v.Val
-}
-
-func (v IPVar) Type() string {
- return "ip"
-}
-
-func (m *ProxyMode) Set(s string) error {
- *m = ProxyMode(s)
- return nil
-}
-
-func (m *ProxyMode) String() string {
- if m != nil {
- return string(*m)
- }
- return ""
-}
-
-func (m *ProxyMode) Type() string {
- return "ProxyMode"
-}
-
-type PortRangeVar struct {
- Val *string
-}
-
-func (v PortRangeVar) Set(s string) error {
- if _, err := utilnet.ParsePortRange(s); err != nil {
- return fmt.Errorf("%q is not a valid port range: %v", s, err)
- }
- if v.Val == nil {
- // it's okay to panic here since this is programmer error
- panic("the string pointer passed into PortRangeVar should not be nil")
- }
- *v.Val = s
- return nil
-}
-
-func (v PortRangeVar) String() string {
- if v.Val == nil {
- return ""
- }
- return *v.Val
-}
-
-func (v PortRangeVar) Type() string {
- return "port-range"
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go
deleted file mode 100644
index 1a8b0cd..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/install/install.go
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// Package install installs the experimental API group, making it available as
-// an option to all of the API encoding/decoding machinery.
-package install
-
-import (
- "fmt"
-
- "github.com/golang/glog"
-
- "k8s.io/kubernetes/pkg/api"
- "k8s.io/kubernetes/pkg/api/meta"
- "k8s.io/kubernetes/pkg/api/unversioned"
- "k8s.io/kubernetes/pkg/apimachinery"
- "k8s.io/kubernetes/pkg/apimachinery/registered"
- "k8s.io/kubernetes/pkg/apis/componentconfig"
- "k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1"
- "k8s.io/kubernetes/pkg/runtime"
- "k8s.io/kubernetes/pkg/util/sets"
-)
-
-const importPrefix = "k8s.io/kubernetes/pkg/apis/componentconfig"
-
-var accessor = meta.NewAccessor()
-
-// availableVersions lists all known external versions for this group from most preferred to least preferred
-var availableVersions = []unversioned.GroupVersion{v1alpha1.SchemeGroupVersion}
-
-func init() {
- registered.RegisterVersions(availableVersions)
- externalVersions := []unversioned.GroupVersion{}
- for _, v := range availableVersions {
- if registered.IsAllowedVersion(v) {
- externalVersions = append(externalVersions, v)
- }
- }
- if len(externalVersions) == 0 {
- glog.V(4).Infof("No version is registered for group %v", componentconfig.GroupName)
- return
- }
-
- if err := registered.EnableVersions(externalVersions...); err != nil {
- glog.V(4).Infof("%v", err)
- return
- }
- if err := enableVersions(externalVersions); err != nil {
- glog.V(4).Infof("%v", err)
- return
- }
-}
-
-// TODO: enableVersions should be centralized rather than spread in each API
-// group.
-// We can combine registered.RegisterVersions, registered.EnableVersions and
-// registered.RegisterGroup once we have moved enableVersions there.
-func enableVersions(externalVersions []unversioned.GroupVersion) error {
- addVersionsToScheme(externalVersions...)
- preferredExternalVersion := externalVersions[0]
-
- groupMeta := apimachinery.GroupMeta{
- GroupVersion: preferredExternalVersion,
- GroupVersions: externalVersions,
- RESTMapper: newRESTMapper(externalVersions),
- SelfLinker: runtime.SelfLinker(accessor),
- InterfacesFor: interfacesFor,
- }
-
- if err := registered.RegisterGroup(groupMeta); err != nil {
- return err
- }
- api.RegisterRESTMapper(groupMeta.RESTMapper)
- return nil
-}
-
-func newRESTMapper(externalVersions []unversioned.GroupVersion) meta.RESTMapper {
- // the list of kinds that are scoped at the root of the api hierarchy
- // if a kind is not enumerated here, it is assumed to have a namespace scope
- rootScoped := sets.NewString()
-
- ignoredKinds := sets.NewString()
-
- return api.NewDefaultRESTMapper(externalVersions, interfacesFor, importPrefix, ignoredKinds, rootScoped)
-}
-
-// interfacesFor returns the default Codec and ResourceVersioner for a given version
-// string, or an error if the version is not known.
-func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, error) {
- switch version {
- case v1alpha1.SchemeGroupVersion:
- return &meta.VersionInterfaces{
- ObjectConvertor: api.Scheme,
- MetadataAccessor: accessor,
- }, nil
- default:
- g, _ := registered.Group(componentconfig.GroupName)
- return nil, fmt.Errorf("unsupported storage version: %s (valid: %v)", version, g.GroupVersions)
- }
-}
-
-func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) {
- // add the internal version to Scheme
- componentconfig.AddToScheme(api.Scheme)
- // add the enabled external versions to Scheme
- for _, v := range externalVersions {
- if !registered.IsEnabledVersion(v) {
- glog.Errorf("Version %s is not enabled, so it will not be added to the Scheme.", v)
- continue
- }
- switch v {
- case v1alpha1.SchemeGroupVersion:
- v1alpha1.AddToScheme(api.Scheme)
- }
- }
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go
deleted file mode 100644
index 599a44e..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/register.go
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package componentconfig
-
-import (
- "k8s.io/kubernetes/pkg/api/unversioned"
- "k8s.io/kubernetes/pkg/runtime"
-)
-
-func AddToScheme(scheme *runtime.Scheme) {
- addKnownTypes(scheme)
-}
-
-// GroupName is the group name use in this package
-const GroupName = "componentconfig"
-
-// SchemeGroupVersion is group version used to register these objects
-var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
-
-// Kind takes an unqualified kind and returns back a Group qualified GroupKind
-func Kind(kind string) unversioned.GroupKind {
- return SchemeGroupVersion.WithKind(kind).GroupKind()
-}
-
-// Resource takes an unqualified resource and returns back a Group qualified GroupResource
-func Resource(resource string) unversioned.GroupResource {
- return SchemeGroupVersion.WithResource(resource).GroupResource()
-}
-
-func addKnownTypes(scheme *runtime.Scheme) {
- // TODO this will get cleaned up with the scheme types are fixed
- scheme.AddKnownTypes(SchemeGroupVersion,
- &KubeProxyConfiguration{},
- &KubeSchedulerConfiguration{},
- )
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go
deleted file mode 100644
index c9fd484..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.generated.go
+++ /dev/null
@@ -1,9703 +0,0 @@
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// ************************************************************
-// DO NOT EDIT.
-// THIS FILE IS AUTO-GENERATED BY codecgen.
-// ************************************************************
-
-package componentconfig
-
-import (
- "errors"
- "fmt"
- codec1978 "github.com/ugorji/go/codec"
- pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
- "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 time.Duration
- _, _ = v0, v1
- }
-}
-
-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 [19]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- yyq2[17] = x.Kind != ""
- yyq2[18] = x.APIVersion != ""
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(19)
- } else {
- yynn2 = 17
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("bindAddress"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.BindAddress))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym7 := z.EncBinary()
- _ = yym7
- 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)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym10 := z.EncBinary()
- _ = yym10
- 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)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else {
- r.EncodeInt(int64(x.HealthzPort))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("healthzPort"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeInt(int64(x.HealthzPort))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym16 := z.EncBinary()
- _ = yym16
- 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)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if x.IPTablesMasqueradeBit == nil {
- r.EncodeNil()
- } else {
- yy19 := *x.IPTablesMasqueradeBit
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else {
- r.EncodeInt(int64(yy19))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- if x.IPTablesMasqueradeBit == nil {
- r.EncodeNil()
- } else {
- yy21 := *x.IPTablesMasqueradeBit
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeInt(int64(yy21))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy24 := &x.IPTablesSyncPeriod
- yym25 := z.EncBinary()
- _ = yym25
- if false {
- } else if z.HasExtensions() && z.EncExt(yy24) {
- } else if !yym25 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy24)
- } else {
- z.EncFallback(yy24)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("iptablesSyncPeriodSeconds"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy26 := &x.IPTablesSyncPeriod
- yym27 := z.EncBinary()
- _ = yym27
- if false {
- } else if z.HasExtensions() && z.EncExt(yy26) {
- } else if !yym27 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy26)
- } else {
- z.EncFallback(yy26)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym29 := z.EncBinary()
- _ = yym29
- 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)
- yym30 := z.EncBinary()
- _ = yym30
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.KubeconfigPath))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym32 := z.EncBinary()
- _ = yym32
- if false {
- } else {
- r.EncodeBool(bool(x.MasqueradeAll))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("masqueradeAll"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym33 := z.EncBinary()
- _ = yym33
- if false {
- } else {
- r.EncodeBool(bool(x.MasqueradeAll))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym35 := z.EncBinary()
- _ = yym35
- 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)
- yym36 := z.EncBinary()
- _ = yym36
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Master))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if x.OOMScoreAdj == nil {
- r.EncodeNil()
- } else {
- yy38 := *x.OOMScoreAdj
- yym39 := z.EncBinary()
- _ = yym39
- if false {
- } else {
- r.EncodeInt(int64(yy38))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- if x.OOMScoreAdj == nil {
- r.EncodeNil()
- } else {
- yy40 := *x.OOMScoreAdj
- yym41 := z.EncBinary()
- _ = yym41
- if false {
- } else {
- r.EncodeInt(int64(yy40))
- }
- }
- }
- 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)
- yym46 := z.EncBinary()
- _ = yym46
- 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)
- yym47 := z.EncBinary()
- _ = yym47
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PortRange))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym49 := z.EncBinary()
- _ = yym49
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym50 := z.EncBinary()
- _ = yym50
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ResourceContainer))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy52 := &x.UDPIdleTimeout
- yym53 := z.EncBinary()
- _ = yym53
- if false {
- } else if z.HasExtensions() && z.EncExt(yy52) {
- } else if !yym53 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy52)
- } else {
- z.EncFallback(yy52)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("udpTimeoutMilliseconds"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy54 := &x.UDPIdleTimeout
- yym55 := z.EncBinary()
- _ = yym55
- if false {
- } else if z.HasExtensions() && z.EncExt(yy54) {
- } else if !yym55 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy54)
- } else {
- z.EncFallback(yy54)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym57 := z.EncBinary()
- _ = yym57
- if false {
- } else {
- r.EncodeInt(int64(x.ConntrackMax))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("conntrackMax"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym58 := z.EncBinary()
- _ = yym58
- if false {
- } else {
- r.EncodeInt(int64(x.ConntrackMax))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy60 := &x.ConntrackTCPEstablishedTimeout
- yym61 := z.EncBinary()
- _ = yym61
- if false {
- } else if z.HasExtensions() && z.EncExt(yy60) {
- } else if !yym61 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy60)
- } else {
- z.EncFallback(yy60)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("conntrackTCPEstablishedTimeout"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy62 := &x.ConntrackTCPEstablishedTimeout
- yym63 := z.EncBinary()
- _ = yym63
- if false {
- } else if z.HasExtensions() && z.EncExt(yy62) {
- } else if !yym63 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy62)
- } else {
- z.EncFallback(yy62)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[17] {
- yym65 := z.EncBinary()
- _ = yym65
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[17] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kind"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym66 := z.EncBinary()
- _ = yym66
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[18] {
- yym68 := z.EncBinary()
- _ = yym68
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[18] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym69 := z.EncBinary()
- _ = yym69
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- }
- }
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *KubeProxyConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "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)
- }
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else {
- *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32))
- }
- }
- case "iptablesSyncPeriodSeconds":
- if r.TryDecodeAsNil() {
- x.IPTablesSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv11 := &x.IPTablesSyncPeriod
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv11) {
- } else if !yym12 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv11)
- } else {
- z.DecFallback(yyv11, 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)
- }
- yym17 := z.DecBinary()
- _ = yym17
- 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 "kubeletCgroups":
- if r.TryDecodeAsNil() {
- x.ResourceContainer = ""
- } else {
- x.ResourceContainer = string(r.DecodeString())
- }
- case "udpTimeoutMilliseconds":
- if r.TryDecodeAsNil() {
- x.UDPIdleTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv21 := &x.UDPIdleTimeout
- yym22 := z.DecBinary()
- _ = yym22
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv21) {
- } else if !yym22 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv21)
- } else {
- z.DecFallback(yyv21, false)
- }
- }
- case "conntrackMax":
- if r.TryDecodeAsNil() {
- x.ConntrackMax = 0
- } else {
- x.ConntrackMax = int32(r.DecodeInt(32))
- }
- case "conntrackTCPEstablishedTimeout":
- if r.TryDecodeAsNil() {
- x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv24 := &x.ConntrackTCPEstablishedTimeout
- yym25 := z.DecBinary()
- _ = yym25
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv24) {
- } else if !yym25 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv24)
- } else {
- z.DecFallback(yyv24, false)
- }
- }
- case "kind":
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- case "apiVersion":
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
-}
-
-func (x *KubeProxyConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj28 int
- var yyb28 bool
- var yyhl28 bool = l >= 0
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.BindAddress = ""
- } else {
- x.BindAddress = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ClusterCIDR = ""
- } else {
- x.ClusterCIDR = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HealthzBindAddress = ""
- } else {
- x.HealthzBindAddress = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HealthzPort = 0
- } else {
- x.HealthzPort = int32(r.DecodeInt(32))
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HostnameOverride = ""
- } else {
- x.HostnameOverride = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- 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)
- }
- yym35 := z.DecBinary()
- _ = yym35
- if false {
- } else {
- *((*int32)(x.IPTablesMasqueradeBit)) = int32(r.DecodeInt(32))
- }
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.IPTablesSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv36 := &x.IPTablesSyncPeriod
- yym37 := z.DecBinary()
- _ = yym37
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv36) {
- } else if !yym37 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv36)
- } else {
- z.DecFallback(yyv36, false)
- }
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeconfigPath = ""
- } else {
- x.KubeconfigPath = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MasqueradeAll = false
- } else {
- x.MasqueradeAll = bool(r.DecodeBool())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Master = ""
- } else {
- x.Master = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- 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)
- }
- yym42 := z.DecBinary()
- _ = yym42
- if false {
- } else {
- *((*int32)(x.OOMScoreAdj)) = int32(r.DecodeInt(32))
- }
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Mode = ""
- } else {
- x.Mode = ProxyMode(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PortRange = ""
- } else {
- x.PortRange = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ResourceContainer = ""
- } else {
- x.ResourceContainer = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.UDPIdleTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv46 := &x.UDPIdleTimeout
- yym47 := z.DecBinary()
- _ = yym47
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv46) {
- } else if !yym47 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv46)
- } else {
- z.DecFallback(yyv46, false)
- }
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConntrackMax = 0
- } else {
- x.ConntrackMax = int32(r.DecodeInt(32))
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConntrackTCPEstablishedTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv49 := &x.ConntrackTCPEstablishedTimeout
- yym50 := z.DecBinary()
- _ = yym50
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv49) {
- } else if !yym50 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv49)
- } else {
- z.DecFallback(yyv49, false)
- }
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- for {
- yyj28++
- if yyhl28 {
- yyb28 = yyj28 > l
- } else {
- yyb28 = r.CheckBreak()
- }
- if yyb28 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj28-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
-}
-
-func (x ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x))
- }
-}
-
-func (x *ProxyMode) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- *((*string)(x)) = r.DecodeString()
- }
-}
-
-func (x HairpinMode) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x))
- }
-}
-
-func (x *HairpinMode) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- *((*string)(x)) = r.DecodeString()
- }
-}
-
-func (x *KubeletConfiguration) 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 [91]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- yyq2[48] = x.CloudProvider != ""
- yyq2[49] = x.CloudConfigFile != ""
- yyq2[50] = x.KubeletCgroups != ""
- yyq2[51] = x.RuntimeCgroups != ""
- yyq2[52] = x.SystemCgroups != ""
- yyq2[53] = x.CgroupRoot != ""
- yyq2[55] = true
- yyq2[56] = x.RktPath != ""
- yyq2[57] = x.RktAPIEndpoint != ""
- yyq2[58] = x.RktStage1Image != ""
- yyq2[79] = true
- yyq2[80] = x.NodeIP != ""
- yyq2[84] = x.EvictionHard != ""
- yyq2[85] = x.EvictionSoft != ""
- yyq2[86] = x.EvictionSoftGracePeriod != ""
- yyq2[87] = true
- yyq2[88] = x.EvictionMaxPodGracePeriod != 0
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(91)
- } else {
- yynn2 = 74
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Config))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("config"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Config))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy7 := &x.SyncFrequency
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else if z.HasExtensions() && z.EncExt(yy7) {
- } else if !yym8 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy7)
- } else {
- z.EncFallback(yy7)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("syncFrequency"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy9 := &x.SyncFrequency
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else if z.HasExtensions() && z.EncExt(yy9) {
- } else if !yym10 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy9)
- } else {
- z.EncFallback(yy9)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy12 := &x.FileCheckFrequency
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else if z.HasExtensions() && z.EncExt(yy12) {
- } else if !yym13 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy12)
- } else {
- z.EncFallback(yy12)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("fileCheckFrequency"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy14 := &x.FileCheckFrequency
- yym15 := z.EncBinary()
- _ = yym15
- if false {
- } else if z.HasExtensions() && z.EncExt(yy14) {
- } else if !yym15 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy14)
- } else {
- z.EncFallback(yy14)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy17 := &x.HTTPCheckFrequency
- yym18 := z.EncBinary()
- _ = yym18
- if false {
- } else if z.HasExtensions() && z.EncExt(yy17) {
- } else if !yym18 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy17)
- } else {
- z.EncFallback(yy17)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("httpCheckFrequency"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy19 := &x.HTTPCheckFrequency
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else if z.HasExtensions() && z.EncExt(yy19) {
- } else if !yym20 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy19)
- } else {
- z.EncFallback(yy19)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym22 := z.EncBinary()
- _ = yym22
- 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)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURL))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym25 := z.EncBinary()
- _ = yym25
- 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)
- yym26 := z.EncBinary()
- _ = yym26
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ManifestURLHeader))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym28 := z.EncBinary()
- _ = yym28
- if false {
- } else {
- r.EncodeBool(bool(x.EnableServer))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableServer"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym29 := z.EncBinary()
- _ = yym29
- if false {
- } else {
- r.EncodeBool(bool(x.EnableServer))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym31 := z.EncBinary()
- _ = yym31
- 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)
- yym32 := z.EncBinary()
- _ = yym32
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Address))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym34 := z.EncBinary()
- _ = yym34
- if false {
- } else {
- r.EncodeUint(uint64(x.Port))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("port"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym35 := z.EncBinary()
- _ = yym35
- if false {
- } else {
- r.EncodeUint(uint64(x.Port))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym37 := z.EncBinary()
- _ = yym37
- if false {
- } else {
- r.EncodeUint(uint64(x.ReadOnlyPort))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("readOnlyPort"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym38 := z.EncBinary()
- _ = yym38
- if false {
- } else {
- r.EncodeUint(uint64(x.ReadOnlyPort))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym40 := z.EncBinary()
- _ = yym40
- 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)
- yym41 := z.EncBinary()
- _ = yym41
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.TLSCertFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym43 := z.EncBinary()
- _ = yym43
- 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)
- yym44 := z.EncBinary()
- _ = yym44
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.TLSPrivateKeyFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym46 := z.EncBinary()
- _ = yym46
- 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)
- yym47 := z.EncBinary()
- _ = yym47
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CertDirectory))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym49 := z.EncBinary()
- _ = yym49
- 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)
- yym50 := z.EncBinary()
- _ = yym50
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostnameOverride))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym52 := z.EncBinary()
- _ = yym52
- 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)
- yym53 := z.EncBinary()
- _ = yym53
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PodInfraContainerImage))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym55 := z.EncBinary()
- _ = yym55
- 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)
- yym56 := z.EncBinary()
- _ = yym56
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.DockerEndpoint))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym58 := z.EncBinary()
- _ = yym58
- 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)
- yym59 := z.EncBinary()
- _ = yym59
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RootDirectory))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym61 := z.EncBinary()
- _ = yym61
- 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)
- yym62 := z.EncBinary()
- _ = yym62
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.SeccompProfileRoot))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym64 := z.EncBinary()
- _ = yym64
- if false {
- } else {
- r.EncodeBool(bool(x.AllowPrivileged))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("allowPrivileged"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym65 := z.EncBinary()
- _ = yym65
- if false {
- } else {
- r.EncodeBool(bool(x.AllowPrivileged))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym67 := z.EncBinary()
- _ = yym67
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostNetworkSources))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("hostNetworkSources"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym68 := z.EncBinary()
- _ = yym68
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostNetworkSources))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym70 := z.EncBinary()
- _ = yym70
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostPIDSources))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("hostPIDSources"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym71 := z.EncBinary()
- _ = yym71
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostPIDSources))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym73 := z.EncBinary()
- _ = yym73
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostIPCSources))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("hostIPCSources"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym74 := z.EncBinary()
- _ = yym74
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HostIPCSources))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym76 := z.EncBinary()
- _ = yym76
- if false {
- } else {
- r.EncodeFloat64(float64(x.RegistryPullQPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("registryPullQPS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym77 := z.EncBinary()
- _ = yym77
- if false {
- } else {
- r.EncodeFloat64(float64(x.RegistryPullQPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym79 := z.EncBinary()
- _ = yym79
- if false {
- } else {
- r.EncodeInt(int64(x.RegistryBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("registryBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym80 := z.EncBinary()
- _ = yym80
- if false {
- } else {
- r.EncodeInt(int64(x.RegistryBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym82 := z.EncBinary()
- _ = yym82
- if false {
- } else {
- r.EncodeFloat32(float32(x.EventRecordQPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("eventRecordQPS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym83 := z.EncBinary()
- _ = yym83
- if false {
- } else {
- r.EncodeFloat32(float32(x.EventRecordQPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym85 := z.EncBinary()
- _ = yym85
- if false {
- } else {
- r.EncodeInt(int64(x.EventBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("eventBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym86 := z.EncBinary()
- _ = yym86
- if false {
- } else {
- r.EncodeInt(int64(x.EventBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym88 := z.EncBinary()
- _ = yym88
- if false {
- } else {
- r.EncodeBool(bool(x.EnableDebuggingHandlers))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableDebuggingHandlers"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym89 := z.EncBinary()
- _ = yym89
- if false {
- } else {
- r.EncodeBool(bool(x.EnableDebuggingHandlers))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy91 := &x.MinimumGCAge
- yym92 := z.EncBinary()
- _ = yym92
- if false {
- } else if z.HasExtensions() && z.EncExt(yy91) {
- } else if !yym92 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy91)
- } else {
- z.EncFallback(yy91)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("minimumGCAge"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy93 := &x.MinimumGCAge
- yym94 := z.EncBinary()
- _ = yym94
- if false {
- } else if z.HasExtensions() && z.EncExt(yy93) {
- } else if !yym94 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy93)
- } else {
- z.EncFallback(yy93)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym96 := z.EncBinary()
- _ = yym96
- if false {
- } else {
- r.EncodeInt(int64(x.MaxPerPodContainerCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("maxPerPodContainerCount"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym97 := z.EncBinary()
- _ = yym97
- if false {
- } else {
- r.EncodeInt(int64(x.MaxPerPodContainerCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym99 := z.EncBinary()
- _ = yym99
- if false {
- } else {
- r.EncodeInt(int64(x.MaxContainerCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("maxContainerCount"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym100 := z.EncBinary()
- _ = yym100
- if false {
- } else {
- r.EncodeInt(int64(x.MaxContainerCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym102 := z.EncBinary()
- _ = yym102
- if false {
- } else {
- r.EncodeUint(uint64(x.CAdvisorPort))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("cAdvisorPort"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym103 := z.EncBinary()
- _ = yym103
- if false {
- } else {
- r.EncodeUint(uint64(x.CAdvisorPort))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym105 := z.EncBinary()
- _ = yym105
- if false {
- } else {
- r.EncodeInt(int64(x.HealthzPort))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("healthzPort"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym106 := z.EncBinary()
- _ = yym106
- if false {
- } else {
- r.EncodeInt(int64(x.HealthzPort))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym108 := z.EncBinary()
- _ = yym108
- 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)
- yym109 := z.EncBinary()
- _ = yym109
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HealthzBindAddress))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym111 := z.EncBinary()
- _ = yym111
- if false {
- } else {
- r.EncodeInt(int64(x.OOMScoreAdj))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("oomScoreAdj"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym112 := z.EncBinary()
- _ = yym112
- if false {
- } else {
- r.EncodeInt(int64(x.OOMScoreAdj))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym114 := z.EncBinary()
- _ = yym114
- if false {
- } else {
- r.EncodeBool(bool(x.RegisterNode))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("registerNode"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym115 := z.EncBinary()
- _ = yym115
- if false {
- } else {
- r.EncodeBool(bool(x.RegisterNode))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym117 := z.EncBinary()
- _ = yym117
- 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)
- yym118 := z.EncBinary()
- _ = yym118
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDomain))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym120 := z.EncBinary()
- _ = yym120
- 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)
- yym121 := z.EncBinary()
- _ = yym121
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.MasterServiceNamespace))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym123 := z.EncBinary()
- _ = yym123
- 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)
- yym124 := z.EncBinary()
- _ = yym124
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ClusterDNS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy126 := &x.StreamingConnectionIdleTimeout
- yym127 := z.EncBinary()
- _ = yym127
- if false {
- } else if z.HasExtensions() && z.EncExt(yy126) {
- } else if !yym127 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy126)
- } else {
- z.EncFallback(yy126)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("streamingConnectionIdleTimeout"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy128 := &x.StreamingConnectionIdleTimeout
- yym129 := z.EncBinary()
- _ = yym129
- if false {
- } else if z.HasExtensions() && z.EncExt(yy128) {
- } else if !yym129 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy128)
- } else {
- z.EncFallback(yy128)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy131 := &x.NodeStatusUpdateFrequency
- yym132 := z.EncBinary()
- _ = yym132
- if false {
- } else if z.HasExtensions() && z.EncExt(yy131) {
- } else if !yym132 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy131)
- } else {
- z.EncFallback(yy131)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeStatusUpdateFrequency"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy133 := &x.NodeStatusUpdateFrequency
- yym134 := z.EncBinary()
- _ = yym134
- if false {
- } else if z.HasExtensions() && z.EncExt(yy133) {
- } else if !yym134 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy133)
- } else {
- z.EncFallback(yy133)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy136 := &x.ImageMinimumGCAge
- yym137 := z.EncBinary()
- _ = yym137
- if false {
- } else if z.HasExtensions() && z.EncExt(yy136) {
- } else if !yym137 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy136)
- } else {
- z.EncFallback(yy136)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("imageMinimumGCAge"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy138 := &x.ImageMinimumGCAge
- yym139 := z.EncBinary()
- _ = yym139
- if false {
- } else if z.HasExtensions() && z.EncExt(yy138) {
- } else if !yym139 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy138)
- } else {
- z.EncFallback(yy138)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym141 := z.EncBinary()
- _ = yym141
- if false {
- } else {
- r.EncodeInt(int64(x.ImageGCHighThresholdPercent))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("imageGCHighThresholdPercent"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym142 := z.EncBinary()
- _ = yym142
- if false {
- } else {
- r.EncodeInt(int64(x.ImageGCHighThresholdPercent))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym144 := z.EncBinary()
- _ = yym144
- if false {
- } else {
- r.EncodeInt(int64(x.ImageGCLowThresholdPercent))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("imageGCLowThresholdPercent"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym145 := z.EncBinary()
- _ = yym145
- if false {
- } else {
- r.EncodeInt(int64(x.ImageGCLowThresholdPercent))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym147 := z.EncBinary()
- _ = yym147
- if false {
- } else {
- r.EncodeInt(int64(x.LowDiskSpaceThresholdMB))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("lowDiskSpaceThresholdMB"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym148 := z.EncBinary()
- _ = yym148
- if false {
- } else {
- r.EncodeInt(int64(x.LowDiskSpaceThresholdMB))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy150 := &x.VolumeStatsAggPeriod
- yym151 := z.EncBinary()
- _ = yym151
- if false {
- } else if z.HasExtensions() && z.EncExt(yy150) {
- } else if !yym151 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy150)
- } else {
- z.EncFallback(yy150)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("volumeStatsAggPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy152 := &x.VolumeStatsAggPeriod
- yym153 := z.EncBinary()
- _ = yym153
- if false {
- } else if z.HasExtensions() && z.EncExt(yy152) {
- } else if !yym153 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy152)
- } else {
- z.EncFallback(yy152)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym155 := z.EncBinary()
- _ = yym155
- 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)
- yym156 := z.EncBinary()
- _ = yym156
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginName))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym158 := z.EncBinary()
- _ = yym158
- 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)
- yym159 := z.EncBinary()
- _ = yym159
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym161 := z.EncBinary()
- _ = yym161
- 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)
- yym162 := z.EncBinary()
- _ = yym162
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[48] {
- yym164 := z.EncBinary()
- _ = yym164
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[48] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("cloudProvider"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym165 := z.EncBinary()
- _ = yym165
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[49] {
- yym167 := z.EncBinary()
- _ = yym167
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[49] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym168 := z.EncBinary()
- _ = yym168
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[50] {
- yym170 := z.EncBinary()
- _ = yym170
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[50] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym171 := z.EncBinary()
- _ = yym171
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[51] {
- yym173 := z.EncBinary()
- _ = yym173
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[51] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym174 := z.EncBinary()
- _ = yym174
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[52] {
- yym176 := z.EncBinary()
- _ = yym176
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[52] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("systemContainer"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym177 := z.EncBinary()
- _ = yym177
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[53] {
- yym179 := z.EncBinary()
- _ = yym179
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[53] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym180 := z.EncBinary()
- _ = yym180
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym182 := z.EncBinary()
- _ = yym182
- 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)
- yym183 := z.EncBinary()
- _ = yym183
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[55] {
- yy185 := &x.RuntimeRequestTimeout
- yym186 := z.EncBinary()
- _ = yym186
- if false {
- } else if z.HasExtensions() && z.EncExt(yy185) {
- } else if !yym186 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy185)
- } else {
- z.EncFallback(yy185)
- }
- } else {
- r.EncodeNil()
- }
- } else {
- if yyq2[55] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy187 := &x.RuntimeRequestTimeout
- yym188 := z.EncBinary()
- _ = yym188
- if false {
- } else if z.HasExtensions() && z.EncExt(yy187) {
- } else if !yym188 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy187)
- } else {
- z.EncFallback(yy187)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[56] {
- yym190 := z.EncBinary()
- _ = yym190
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktPath))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[56] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("rktPath"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym191 := z.EncBinary()
- _ = yym191
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktPath))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[57] {
- yym193 := z.EncBinary()
- _ = yym193
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[57] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym194 := z.EncBinary()
- _ = yym194
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[58] {
- yym196 := z.EncBinary()
- _ = yym196
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[58] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym197 := z.EncBinary()
- _ = yym197
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym199 := z.EncBinary()
- _ = yym199
- 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)
- yym200 := z.EncBinary()
- _ = yym200
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym202 := z.EncBinary()
- _ = yym202
- if false {
- } else {
- r.EncodeBool(bool(x.ExitOnLockContention))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym203 := z.EncBinary()
- _ = yym203
- if false {
- } else {
- r.EncodeBool(bool(x.ExitOnLockContention))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym205 := z.EncBinary()
- _ = yym205
- if false {
- } else {
- r.EncodeBool(bool(x.ConfigureCBR0))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("configureCbr0"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym206 := z.EncBinary()
- _ = yym206
- if false {
- } else {
- r.EncodeBool(bool(x.ConfigureCBR0))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym208 := z.EncBinary()
- _ = yym208
- 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)
- yym209 := z.EncBinary()
- _ = yym209
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym211 := z.EncBinary()
- _ = yym211
- if false {
- } else {
- r.EncodeBool(bool(x.BabysitDaemons))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym212 := z.EncBinary()
- _ = yym212
- if false {
- } else {
- r.EncodeBool(bool(x.BabysitDaemons))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym214 := z.EncBinary()
- _ = yym214
- if false {
- } else {
- r.EncodeInt(int64(x.MaxPods))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("maxPods"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym215 := z.EncBinary()
- _ = yym215
- if false {
- } else {
- r.EncodeInt(int64(x.MaxPods))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym217 := z.EncBinary()
- _ = yym217
- if false {
- } else {
- r.EncodeInt(int64(x.NvidiaGPUs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym218 := z.EncBinary()
- _ = yym218
- if false {
- } else {
- r.EncodeInt(int64(x.NvidiaGPUs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym220 := z.EncBinary()
- _ = yym220
- 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)
- yym221 := z.EncBinary()
- _ = yym221
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym223 := z.EncBinary()
- _ = yym223
- 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)
- yym224 := z.EncBinary()
- _ = yym224
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym226 := z.EncBinary()
- _ = yym226
- 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)
- yym227 := z.EncBinary()
- _ = yym227
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym229 := z.EncBinary()
- _ = yym229
- if false {
- } else {
- r.EncodeBool(bool(x.CPUCFSQuota))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym230 := z.EncBinary()
- _ = yym230
- if false {
- } else {
- r.EncodeBool(bool(x.CPUCFSQuota))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym232 := z.EncBinary()
- _ = yym232
- if false {
- } else {
- r.EncodeBool(bool(x.Containerized))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("containerized"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym233 := z.EncBinary()
- _ = yym233
- if false {
- } else {
- r.EncodeBool(bool(x.Containerized))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym235 := z.EncBinary()
- _ = yym235
- if false {
- } else {
- r.EncodeUint(uint64(x.MaxOpenFiles))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym236 := z.EncBinary()
- _ = yym236
- if false {
- } else {
- r.EncodeUint(uint64(x.MaxOpenFiles))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym238 := z.EncBinary()
- _ = yym238
- if false {
- } else {
- r.EncodeBool(bool(x.ReconcileCIDR))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym239 := z.EncBinary()
- _ = yym239
- if false {
- } else {
- r.EncodeBool(bool(x.ReconcileCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym241 := z.EncBinary()
- _ = yym241
- if false {
- } else {
- r.EncodeBool(bool(x.RegisterSchedulable))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym242 := z.EncBinary()
- _ = yym242
- if false {
- } else {
- r.EncodeBool(bool(x.RegisterSchedulable))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym244 := z.EncBinary()
- _ = yym244
- 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)
- yym245 := z.EncBinary()
- _ = yym245
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ContentType))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym247 := z.EncBinary()
- _ = yym247
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym248 := z.EncBinary()
- _ = yym248
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym250 := z.EncBinary()
- _ = yym250
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym251 := z.EncBinary()
- _ = yym251
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym253 := z.EncBinary()
- _ = yym253
- if false {
- } else {
- r.EncodeBool(bool(x.SerializeImagePulls))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym254 := z.EncBinary()
- _ = yym254
- if false {
- } else {
- r.EncodeBool(bool(x.SerializeImagePulls))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym256 := z.EncBinary()
- _ = yym256
- if false {
- } else {
- r.EncodeBool(bool(x.ExperimentalFlannelOverlay))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("experimentalFlannelOverlay"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym257 := z.EncBinary()
- _ = yym257
- if false {
- } else {
- r.EncodeBool(bool(x.ExperimentalFlannelOverlay))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[79] {
- yy259 := &x.OutOfDiskTransitionFrequency
- yym260 := z.EncBinary()
- _ = yym260
- if false {
- } else if z.HasExtensions() && z.EncExt(yy259) {
- } else if !yym260 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy259)
- } else {
- z.EncFallback(yy259)
- }
- } else {
- r.EncodeNil()
- }
- } else {
- if yyq2[79] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy261 := &x.OutOfDiskTransitionFrequency
- yym262 := z.EncBinary()
- _ = yym262
- if false {
- } else if z.HasExtensions() && z.EncExt(yy261) {
- } else if !yym262 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy261)
- } else {
- z.EncFallback(yy261)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[80] {
- yym264 := z.EncBinary()
- _ = yym264
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[80] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeIP"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym265 := z.EncBinary()
- _ = yym265
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if x.NodeLabels == nil {
- r.EncodeNil()
- } else {
- yym267 := z.EncBinary()
- _ = yym267
- 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 {
- yym268 := z.EncBinary()
- _ = yym268
- if false {
- } else {
- z.F.EncMapStringStringV(x.NodeLabels, false, e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym270 := z.EncBinary()
- _ = yym270
- 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)
- yym271 := z.EncBinary()
- _ = yym271
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym273 := z.EncBinary()
- _ = yym273
- if false {
- } else {
- r.EncodeBool(bool(x.EnableCustomMetrics))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym274 := z.EncBinary()
- _ = yym274
- if false {
- } else {
- r.EncodeBool(bool(x.EnableCustomMetrics))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[84] {
- yym276 := z.EncBinary()
- _ = yym276
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[84] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("evictionHard"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym277 := z.EncBinary()
- _ = yym277
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[85] {
- yym279 := z.EncBinary()
- _ = yym279
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[85] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("evictionSoft"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym280 := z.EncBinary()
- _ = yym280
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[86] {
- yym282 := z.EncBinary()
- _ = yym282
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[86] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym283 := z.EncBinary()
- _ = yym283
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[87] {
- yy285 := &x.EvictionPressureTransitionPeriod
- yym286 := z.EncBinary()
- _ = yym286
- if false {
- } else if z.HasExtensions() && z.EncExt(yy285) {
- } else if !yym286 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy285)
- } else {
- z.EncFallback(yy285)
- }
- } else {
- r.EncodeNil()
- }
- } else {
- if yyq2[87] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy287 := &x.EvictionPressureTransitionPeriod
- yym288 := z.EncBinary()
- _ = yym288
- if false {
- } else if z.HasExtensions() && z.EncExt(yy287) {
- } else if !yym288 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy287)
- } else {
- z.EncFallback(yy287)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[88] {
- yym290 := z.EncBinary()
- _ = yym290
- if false {
- } else {
- r.EncodeInt(int64(x.EvictionMaxPodGracePeriod))
- }
- } else {
- r.EncodeInt(0)
- }
- } else {
- if yyq2[88] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym291 := z.EncBinary()
- _ = yym291
- if false {
- } else {
- r.EncodeInt(int64(x.EvictionMaxPodGracePeriod))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym293 := z.EncBinary()
- _ = yym293
- if false {
- } else {
- r.EncodeInt(int64(x.PodsPerCore))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("podsPerCore"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym294 := z.EncBinary()
- _ = yym294
- if false {
- } else {
- r.EncodeInt(int64(x.PodsPerCore))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym296 := z.EncBinary()
- _ = yym296
- if false {
- } else {
- r.EncodeBool(bool(x.EnableControllerAttachDetach))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym297 := z.EncBinary()
- _ = yym297
- if false {
- } else {
- r.EncodeBool(bool(x.EnableControllerAttachDetach))
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "config":
- if r.TryDecodeAsNil() {
- x.Config = ""
- } else {
- x.Config = string(r.DecodeString())
- }
- case "syncFrequency":
- if r.TryDecodeAsNil() {
- x.SyncFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv5 := &x.SyncFrequency
- yym6 := z.DecBinary()
- _ = yym6
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv5) {
- } else if !yym6 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv5)
- } else {
- z.DecFallback(yyv5, false)
- }
- }
- case "fileCheckFrequency":
- if r.TryDecodeAsNil() {
- x.FileCheckFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv7 := &x.FileCheckFrequency
- yym8 := z.DecBinary()
- _ = yym8
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv7) {
- } else if !yym8 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv7)
- } else {
- z.DecFallback(yyv7, false)
- }
- }
- case "httpCheckFrequency":
- if r.TryDecodeAsNil() {
- x.HTTPCheckFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv9 := &x.HTTPCheckFrequency
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv9) {
- } else if !yym10 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv9)
- } else {
- z.DecFallback(yyv9, 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 = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- case "readOnlyPort":
- if r.TryDecodeAsNil() {
- x.ReadOnlyPort = 0
- } else {
- x.ReadOnlyPort = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- 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 "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 = ""
- } else {
- x.HostNetworkSources = string(r.DecodeString())
- }
- case "hostPIDSources":
- if r.TryDecodeAsNil() {
- x.HostPIDSources = ""
- } else {
- x.HostPIDSources = string(r.DecodeString())
- }
- case "hostIPCSources":
- if r.TryDecodeAsNil() {
- x.HostIPCSources = ""
- } else {
- x.HostIPCSources = string(r.DecodeString())
- }
- case "registryPullQPS":
- if r.TryDecodeAsNil() {
- x.RegistryPullQPS = 0
- } else {
- x.RegistryPullQPS = float64(r.DecodeFloat(false))
- }
- 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 = float32(r.DecodeFloat(true))
- }
- 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 {
- yyv34 := &x.MinimumGCAge
- yym35 := z.DecBinary()
- _ = yym35
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv34) {
- } else if !yym35 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv34)
- } else {
- z.DecFallback(yyv34, 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 = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- 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 {
- yyv46 := &x.StreamingConnectionIdleTimeout
- yym47 := z.DecBinary()
- _ = yym47
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv46) {
- } else if !yym47 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv46)
- } else {
- z.DecFallback(yyv46, false)
- }
- }
- case "nodeStatusUpdateFrequency":
- if r.TryDecodeAsNil() {
- x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv48 := &x.NodeStatusUpdateFrequency
- yym49 := z.DecBinary()
- _ = yym49
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv48) {
- } else if !yym49 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv48)
- } else {
- z.DecFallback(yyv48, false)
- }
- }
- case "imageMinimumGCAge":
- if r.TryDecodeAsNil() {
- x.ImageMinimumGCAge = pkg1_unversioned.Duration{}
- } else {
- yyv50 := &x.ImageMinimumGCAge
- yym51 := z.DecBinary()
- _ = yym51
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv50) {
- } else if !yym51 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv50)
- } else {
- z.DecFallback(yyv50, 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 {
- yyv55 := &x.VolumeStatsAggPeriod
- yym56 := z.DecBinary()
- _ = yym56
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv55) {
- } else if !yym56 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv55)
- } else {
- z.DecFallback(yyv55, false)
- }
- }
- case "networkPluginName":
- if r.TryDecodeAsNil() {
- x.NetworkPluginName = ""
- } else {
- x.NetworkPluginName = string(r.DecodeString())
- }
- case "networkPluginDir":
- if r.TryDecodeAsNil() {
- x.NetworkPluginDir = ""
- } else {
- x.NetworkPluginDir = 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 "runtimeCgroups":
- if r.TryDecodeAsNil() {
- x.RuntimeCgroups = ""
- } else {
- x.RuntimeCgroups = string(r.DecodeString())
- }
- case "systemContainer":
- 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 "runtimeRequestTimeout":
- if r.TryDecodeAsNil() {
- x.RuntimeRequestTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv67 := &x.RuntimeRequestTimeout
- yym68 := z.DecBinary()
- _ = yym68
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv67) {
- } else if !yym68 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv67)
- } else {
- z.DecFallback(yyv67, false)
- }
- }
- case "rktPath":
- if r.TryDecodeAsNil() {
- x.RktPath = ""
- } else {
- x.RktPath = 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 "configureCbr0":
- if r.TryDecodeAsNil() {
- x.ConfigureCBR0 = false
- } else {
- x.ConfigureCBR0 = 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 = uint64(r.DecodeUint(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 = float32(r.DecodeFloat(true))
- }
- 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 "experimentalFlannelOverlay":
- if r.TryDecodeAsNil() {
- x.ExperimentalFlannelOverlay = false
- } else {
- x.ExperimentalFlannelOverlay = bool(r.DecodeBool())
- }
- case "outOfDiskTransitionFrequency":
- if r.TryDecodeAsNil() {
- x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv92 := &x.OutOfDiskTransitionFrequency
- yym93 := z.DecBinary()
- _ = yym93
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv92) {
- } else if !yym93 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv92)
- } else {
- z.DecFallback(yyv92, false)
- }
- }
- case "nodeIP":
- if r.TryDecodeAsNil() {
- x.NodeIP = ""
- } else {
- x.NodeIP = string(r.DecodeString())
- }
- case "nodeLabels":
- if r.TryDecodeAsNil() {
- x.NodeLabels = nil
- } else {
- yyv95 := &x.NodeLabels
- yym96 := z.DecBinary()
- _ = yym96
- if false {
- } else {
- z.F.DecMapStringStringX(yyv95, 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 {
- yyv102 := &x.EvictionPressureTransitionPeriod
- yym103 := z.DecBinary()
- _ = yym103
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv102) {
- } else if !yym103 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv102)
- } else {
- z.DecFallback(yyv102, false)
- }
- }
- case "evictionMaxPodGracePeriod":
- if r.TryDecodeAsNil() {
- x.EvictionMaxPodGracePeriod = 0
- } else {
- x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32))
- }
- 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())
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- 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 yyj107 int
- var yyb107 bool
- var yyhl107 bool = l >= 0
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Config = ""
- } else {
- x.Config = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.SyncFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv109 := &x.SyncFrequency
- yym110 := z.DecBinary()
- _ = yym110
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv109) {
- } else if !yym110 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv109)
- } else {
- z.DecFallback(yyv109, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.FileCheckFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv111 := &x.FileCheckFrequency
- yym112 := z.DecBinary()
- _ = yym112
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv111) {
- } else if !yym112 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv111)
- } else {
- z.DecFallback(yyv111, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HTTPCheckFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv113 := &x.HTTPCheckFrequency
- 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)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ManifestURL = ""
- } else {
- x.ManifestURL = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ManifestURLHeader = ""
- } else {
- x.ManifestURLHeader = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableServer = false
- } else {
- x.EnableServer = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Address = ""
- } else {
- x.Address = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Port = 0
- } else {
- x.Port = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ReadOnlyPort = 0
- } else {
- x.ReadOnlyPort = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.TLSCertFile = ""
- } else {
- x.TLSCertFile = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.TLSPrivateKeyFile = ""
- } else {
- x.TLSPrivateKeyFile = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CertDirectory = ""
- } else {
- x.CertDirectory = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HostnameOverride = ""
- } else {
- x.HostnameOverride = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodInfraContainerImage = ""
- } else {
- x.PodInfraContainerImage = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.DockerEndpoint = ""
- } else {
- x.DockerEndpoint = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RootDirectory = ""
- } else {
- x.RootDirectory = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.SeccompProfileRoot = ""
- } else {
- x.SeccompProfileRoot = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.AllowPrivileged = false
- } else {
- x.AllowPrivileged = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HostNetworkSources = ""
- } else {
- x.HostNetworkSources = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HostPIDSources = ""
- } else {
- x.HostPIDSources = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HostIPCSources = ""
- } else {
- x.HostIPCSources = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RegistryPullQPS = 0
- } else {
- x.RegistryPullQPS = float64(r.DecodeFloat(false))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RegistryBurst = 0
- } else {
- x.RegistryBurst = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EventRecordQPS = 0
- } else {
- x.EventRecordQPS = float32(r.DecodeFloat(true))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EventBurst = 0
- } else {
- x.EventBurst = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableDebuggingHandlers = false
- } else {
- x.EnableDebuggingHandlers = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MinimumGCAge = pkg1_unversioned.Duration{}
- } else {
- yyv138 := &x.MinimumGCAge
- yym139 := z.DecBinary()
- _ = yym139
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv138) {
- } else if !yym139 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv138)
- } else {
- z.DecFallback(yyv138, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MaxPerPodContainerCount = 0
- } else {
- x.MaxPerPodContainerCount = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MaxContainerCount = 0
- } else {
- x.MaxContainerCount = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CAdvisorPort = 0
- } else {
- x.CAdvisorPort = uint(r.DecodeUint(codecSelferBitsize1234))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HealthzPort = 0
- } else {
- x.HealthzPort = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HealthzBindAddress = ""
- } else {
- x.HealthzBindAddress = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.OOMScoreAdj = 0
- } else {
- x.OOMScoreAdj = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RegisterNode = false
- } else {
- x.RegisterNode = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ClusterDomain = ""
- } else {
- x.ClusterDomain = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MasterServiceNamespace = ""
- } else {
- x.MasterServiceNamespace = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ClusterDNS = ""
- } else {
- x.ClusterDNS = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv150 := &x.StreamingConnectionIdleTimeout
- yym151 := z.DecBinary()
- _ = yym151
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv150) {
- } else if !yym151 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv150)
- } else {
- z.DecFallback(yyv150, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv152 := &x.NodeStatusUpdateFrequency
- yym153 := z.DecBinary()
- _ = yym153
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv152) {
- } else if !yym153 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv152)
- } else {
- z.DecFallback(yyv152, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ImageMinimumGCAge = pkg1_unversioned.Duration{}
- } else {
- yyv154 := &x.ImageMinimumGCAge
- yym155 := z.DecBinary()
- _ = yym155
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv154) {
- } else if !yym155 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv154)
- } else {
- z.DecFallback(yyv154, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ImageGCHighThresholdPercent = 0
- } else {
- x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ImageGCLowThresholdPercent = 0
- } else {
- x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LowDiskSpaceThresholdMB = 0
- } else {
- x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv159 := &x.VolumeStatsAggPeriod
- yym160 := z.DecBinary()
- _ = yym160
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv159) {
- } else if !yym160 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv159)
- } else {
- z.DecFallback(yyv159, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NetworkPluginName = ""
- } else {
- x.NetworkPluginName = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NetworkPluginDir = ""
- } else {
- x.NetworkPluginDir = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.VolumePluginDir = ""
- } else {
- x.VolumePluginDir = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CloudProvider = ""
- } else {
- x.CloudProvider = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CloudConfigFile = ""
- } else {
- x.CloudConfigFile = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeletCgroups = ""
- } else {
- x.KubeletCgroups = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RuntimeCgroups = ""
- } else {
- x.RuntimeCgroups = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.SystemCgroups = ""
- } else {
- x.SystemCgroups = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CgroupRoot = ""
- } else {
- x.CgroupRoot = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ContainerRuntime = ""
- } else {
- x.ContainerRuntime = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RuntimeRequestTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv171 := &x.RuntimeRequestTimeout
- yym172 := z.DecBinary()
- _ = yym172
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv171) {
- } else if !yym172 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv171)
- } else {
- z.DecFallback(yyv171, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RktPath = ""
- } else {
- x.RktPath = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RktAPIEndpoint = ""
- } else {
- x.RktAPIEndpoint = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RktStage1Image = ""
- } else {
- x.RktStage1Image = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LockFilePath = ""
- } else {
- x.LockFilePath = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ExitOnLockContention = false
- } else {
- x.ExitOnLockContention = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConfigureCBR0 = false
- } else {
- x.ConfigureCBR0 = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HairpinMode = ""
- } else {
- x.HairpinMode = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.BabysitDaemons = false
- } else {
- x.BabysitDaemons = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MaxPods = 0
- } else {
- x.MaxPods = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NvidiaGPUs = 0
- } else {
- x.NvidiaGPUs = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.DockerExecHandlerName = ""
- } else {
- x.DockerExecHandlerName = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodCIDR = ""
- } else {
- x.PodCIDR = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ResolverConfig = ""
- } else {
- x.ResolverConfig = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CPUCFSQuota = false
- } else {
- x.CPUCFSQuota = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Containerized = false
- } else {
- x.Containerized = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MaxOpenFiles = 0
- } else {
- x.MaxOpenFiles = uint64(r.DecodeUint(64))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ReconcileCIDR = false
- } else {
- x.ReconcileCIDR = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RegisterSchedulable = false
- } else {
- x.RegisterSchedulable = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ContentType = ""
- } else {
- x.ContentType = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIQPS = 0
- } else {
- x.KubeAPIQPS = float32(r.DecodeFloat(true))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIBurst = 0
- } else {
- x.KubeAPIBurst = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.SerializeImagePulls = false
- } else {
- x.SerializeImagePulls = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ExperimentalFlannelOverlay = false
- } else {
- x.ExperimentalFlannelOverlay = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{}
- } else {
- yyv196 := &x.OutOfDiskTransitionFrequency
- yym197 := z.DecBinary()
- _ = yym197
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv196) {
- } else if !yym197 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv196)
- } else {
- z.DecFallback(yyv196, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeIP = ""
- } else {
- x.NodeIP = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeLabels = nil
- } else {
- yyv199 := &x.NodeLabels
- yym200 := z.DecBinary()
- _ = yym200
- if false {
- } else {
- z.F.DecMapStringStringX(yyv199, false, d)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NonMasqueradeCIDR = ""
- } else {
- x.NonMasqueradeCIDR = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableCustomMetrics = false
- } else {
- x.EnableCustomMetrics = bool(r.DecodeBool())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EvictionHard = ""
- } else {
- x.EvictionHard = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EvictionSoft = ""
- } else {
- x.EvictionSoft = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EvictionSoftGracePeriod = ""
- } else {
- x.EvictionSoftGracePeriod = string(r.DecodeString())
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv206 := &x.EvictionPressureTransitionPeriod
- yym207 := z.DecBinary()
- _ = yym207
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv206) {
- } else if !yym207 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv206)
- } else {
- z.DecFallback(yyv206, false)
- }
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EvictionMaxPodGracePeriod = 0
- } else {
- x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodsPerCore = 0
- } else {
- x.PodsPerCore = int32(r.DecodeInt(32))
- }
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableControllerAttachDetach = false
- } else {
- x.EnableControllerAttachDetach = bool(r.DecodeBool())
- }
- for {
- yyj107++
- if yyhl107 {
- yyb107 = yyj107 > l
- } else {
- yyb107 = r.CheckBreak()
- }
- if yyb107 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj107-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
-}
-
-func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [14]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- yyq2[12] = x.Kind != ""
- yyq2[13] = x.APIVersion != ""
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(14)
- } else {
- yynn2 = 12
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeInt(int64(x.Port))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("port"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeInt(int64(x.Port))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym7 := z.EncBinary()
- _ = yym7
- 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)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Address))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym10 := z.EncBinary()
- _ = yym10
- 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)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym13 := z.EncBinary()
- _ = yym13
- 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)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym16 := z.EncBinary()
- _ = yym16
- if false {
- } else {
- r.EncodeBool(bool(x.EnableProfiling))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableProfiling"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeBool(bool(x.EnableProfiling))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym19 := z.EncBinary()
- _ = yym19
- 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)
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ContentType))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym25 := z.EncBinary()
- _ = yym25
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym26 := z.EncBinary()
- _ = yym26
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym28 := z.EncBinary()
- _ = yym28
- 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)
- yym29 := z.EncBinary()
- _ = yym29
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym31 := z.EncBinary()
- _ = yym31
- if false {
- } else {
- r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym32 := z.EncBinary()
- _ = yym32
- if false {
- } else {
- r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym34 := z.EncBinary()
- _ = yym34
- 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)
- yym35 := z.EncBinary()
- _ = yym35
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy37 := &x.LeaderElection
- yy37.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("leaderElection"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy39 := &x.LeaderElection
- yy39.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[12] {
- yym42 := z.EncBinary()
- _ = yym42
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[12] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kind"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym43 := z.EncBinary()
- _ = yym43
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[13] {
- yym45 := z.EncBinary()
- _ = yym45
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[13] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym46 := z.EncBinary()
- _ = yym46
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "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 {
- yyv15 := &x.LeaderElection
- yyv15.CodecDecodeSelf(d)
- }
- case "kind":
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- case "apiVersion":
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- 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 yyj18 int
- var yyb18 bool
- var yyhl18 bool = l >= 0
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Port = 0
- } else {
- x.Port = int32(r.DecodeInt(32))
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Address = ""
- } else {
- x.Address = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.AlgorithmProvider = ""
- } else {
- x.AlgorithmProvider = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PolicyConfigFile = ""
- } else {
- x.PolicyConfigFile = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableProfiling = false
- } else {
- x.EnableProfiling = bool(r.DecodeBool())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ContentType = ""
- } else {
- x.ContentType = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIQPS = 0
- } else {
- x.KubeAPIQPS = float32(r.DecodeFloat(true))
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIBurst = 0
- } else {
- x.KubeAPIBurst = int32(r.DecodeInt(32))
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.SchedulerName = ""
- } else {
- x.SchedulerName = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HardPodAffinitySymmetricWeight = 0
- } else {
- x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234))
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.FailureDomains = ""
- } else {
- x.FailureDomains = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LeaderElection = LeaderElectionConfiguration{}
- } else {
- yyv30 := &x.LeaderElection
- yyv30.CodecDecodeSelf(d)
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- for {
- yyj18++
- if yyhl18 {
- yyb18 = yyj18 > l
- } else {
- yyb18 = r.CheckBreak()
- }
- if yyb18 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj18-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
-}
-
-func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [4]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(4)
- } else {
- yynn2 = 4
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeBool(bool(x.LeaderElect))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("leaderElect"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeBool(bool(x.LeaderElect))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy7 := &x.LeaseDuration
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else if z.HasExtensions() && z.EncExt(yy7) {
- } else if !yym8 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy7)
- } else {
- z.EncFallback(yy7)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("leaseDuration"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy9 := &x.LeaseDuration
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else if z.HasExtensions() && z.EncExt(yy9) {
- } else if !yym10 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy9)
- } else {
- z.EncFallback(yy9)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy12 := &x.RenewDeadline
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else if z.HasExtensions() && z.EncExt(yy12) {
- } else if !yym13 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy12)
- } else {
- z.EncFallback(yy12)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("renewDeadline"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy14 := &x.RenewDeadline
- yym15 := z.EncBinary()
- _ = yym15
- if false {
- } else if z.HasExtensions() && z.EncExt(yy14) {
- } else if !yym15 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy14)
- } else {
- z.EncFallback(yy14)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy17 := &x.RetryPeriod
- yym18 := z.EncBinary()
- _ = yym18
- if false {
- } else if z.HasExtensions() && z.EncExt(yy17) {
- } else if !yym18 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy17)
- } else {
- z.EncFallback(yy17)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("retryPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy19 := &x.RetryPeriod
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else if z.HasExtensions() && z.EncExt(yy19) {
- } else if !yym20 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy19)
- } else {
- z.EncFallback(yy19)
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "leaderElect":
- if r.TryDecodeAsNil() {
- x.LeaderElect = false
- } else {
- x.LeaderElect = bool(r.DecodeBool())
- }
- case "leaseDuration":
- if r.TryDecodeAsNil() {
- x.LeaseDuration = pkg1_unversioned.Duration{}
- } else {
- yyv5 := &x.LeaseDuration
- yym6 := z.DecBinary()
- _ = yym6
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv5) {
- } else if !yym6 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv5)
- } else {
- z.DecFallback(yyv5, false)
- }
- }
- case "renewDeadline":
- if r.TryDecodeAsNil() {
- x.RenewDeadline = pkg1_unversioned.Duration{}
- } else {
- yyv7 := &x.RenewDeadline
- yym8 := z.DecBinary()
- _ = yym8
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv7) {
- } else if !yym8 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv7)
- } else {
- z.DecFallback(yyv7, false)
- }
- }
- case "retryPeriod":
- if r.TryDecodeAsNil() {
- x.RetryPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv9 := &x.RetryPeriod
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv9) {
- } else if !yym10 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv9)
- } else {
- z.DecFallback(yyv9, false)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- 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 yyj11 int
- var yyb11 bool
- var yyhl11 bool = l >= 0
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LeaderElect = false
- } else {
- x.LeaderElect = bool(r.DecodeBool())
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LeaseDuration = pkg1_unversioned.Duration{}
- } else {
- yyv13 := &x.LeaseDuration
- yym14 := z.DecBinary()
- _ = yym14
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv13) {
- } else if !yym14 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv13)
- } else {
- z.DecFallback(yyv13, false)
- }
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RenewDeadline = pkg1_unversioned.Duration{}
- } else {
- yyv15 := &x.RenewDeadline
- yym16 := z.DecBinary()
- _ = yym16
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv15) {
- } else if !yym16 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv15)
- } else {
- z.DecFallback(yyv15, false)
- }
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RetryPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv17 := &x.RetryPeriod
- yym18 := z.DecBinary()
- _ = yym18
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv17) {
- } else if !yym18 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv17)
- } else {
- z.DecFallback(yyv17, false)
- }
- }
- for {
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj11-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 {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [50]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- yyq2[48] = x.Kind != ""
- yyq2[49] = x.APIVersion != ""
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(50)
- } else {
- yynn2 = 48
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeInt(int64(x.Port))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("port"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeInt(int64(x.Port))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym7 := z.EncBinary()
- _ = yym7
- 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)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Address))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym10 := z.EncBinary()
- _ = yym10
- 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)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym13 := z.EncBinary()
- _ = yym13
- 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)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym16 := z.EncBinary()
- _ = yym16
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentEndpointSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentEndpointSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym19 := z.EncBinary()
- _ = yym19
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentRSSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentRSSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentRCSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentRCSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym25 := z.EncBinary()
- _ = yym25
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym26 := z.EncBinary()
- _ = yym26
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym28 := z.EncBinary()
- _ = yym28
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentDeploymentSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym29 := z.EncBinary()
- _ = yym29
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentDeploymentSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym31 := z.EncBinary()
- _ = yym31
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym32 := z.EncBinary()
- _ = yym32
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym34 := z.EncBinary()
- _ = yym34
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentJobSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym35 := z.EncBinary()
- _ = yym35
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentJobSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym37 := z.EncBinary()
- _ = yym37
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentNamespaceSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym38 := z.EncBinary()
- _ = yym38
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentNamespaceSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym40 := z.EncBinary()
- _ = yym40
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentSATokenSyncs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym41 := z.EncBinary()
- _ = yym41
- if false {
- } else {
- r.EncodeInt(int64(x.ConcurrentSATokenSyncs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym43 := z.EncBinary()
- _ = yym43
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForRC))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym44 := z.EncBinary()
- _ = yym44
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForRC))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym46 := z.EncBinary()
- _ = yym46
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForRS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym47 := z.EncBinary()
- _ = yym47
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForRS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym49 := z.EncBinary()
- _ = yym49
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym50 := z.EncBinary()
- _ = yym50
- if false {
- } else {
- r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy52 := &x.ServiceSyncPeriod
- yym53 := z.EncBinary()
- _ = yym53
- if false {
- } else if z.HasExtensions() && z.EncExt(yy52) {
- } else if !yym53 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy52)
- } else {
- z.EncFallback(yy52)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy54 := &x.ServiceSyncPeriod
- yym55 := z.EncBinary()
- _ = yym55
- if false {
- } else if z.HasExtensions() && z.EncExt(yy54) {
- } else if !yym55 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy54)
- } else {
- z.EncFallback(yy54)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy57 := &x.NodeSyncPeriod
- yym58 := z.EncBinary()
- _ = yym58
- if false {
- } else if z.HasExtensions() && z.EncExt(yy57) {
- } else if !yym58 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy57)
- } else {
- z.EncFallback(yy57)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy59 := &x.NodeSyncPeriod
- yym60 := z.EncBinary()
- _ = yym60
- if false {
- } else if z.HasExtensions() && z.EncExt(yy59) {
- } else if !yym60 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy59)
- } else {
- z.EncFallback(yy59)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy62 := &x.ResourceQuotaSyncPeriod
- yym63 := z.EncBinary()
- _ = yym63
- if false {
- } else if z.HasExtensions() && z.EncExt(yy62) {
- } else if !yym63 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy62)
- } else {
- z.EncFallback(yy62)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy64 := &x.ResourceQuotaSyncPeriod
- yym65 := z.EncBinary()
- _ = yym65
- if false {
- } else if z.HasExtensions() && z.EncExt(yy64) {
- } else if !yym65 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy64)
- } else {
- z.EncFallback(yy64)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy67 := &x.NamespaceSyncPeriod
- yym68 := z.EncBinary()
- _ = yym68
- if false {
- } else if z.HasExtensions() && z.EncExt(yy67) {
- } else if !yym68 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy67)
- } else {
- z.EncFallback(yy67)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy69 := &x.NamespaceSyncPeriod
- yym70 := z.EncBinary()
- _ = yym70
- if false {
- } else if z.HasExtensions() && z.EncExt(yy69) {
- } else if !yym70 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy69)
- } else {
- z.EncFallback(yy69)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy72 := &x.PVClaimBinderSyncPeriod
- yym73 := z.EncBinary()
- _ = yym73
- if false {
- } else if z.HasExtensions() && z.EncExt(yy72) {
- } else if !yym73 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy72)
- } else {
- z.EncFallback(yy72)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy74 := &x.PVClaimBinderSyncPeriod
- yym75 := z.EncBinary()
- _ = yym75
- if false {
- } else if z.HasExtensions() && z.EncExt(yy74) {
- } else if !yym75 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy74)
- } else {
- z.EncFallback(yy74)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy77 := &x.MinResyncPeriod
- 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)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy79 := &x.MinResyncPeriod
- yym80 := z.EncBinary()
- _ = yym80
- if false {
- } else if z.HasExtensions() && z.EncExt(yy79) {
- } else if !yym80 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy79)
- } else {
- z.EncFallback(yy79)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym82 := z.EncBinary()
- _ = yym82
- if false {
- } else {
- r.EncodeInt(int64(x.TerminatedPodGCThreshold))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym83 := z.EncBinary()
- _ = yym83
- if false {
- } else {
- r.EncodeInt(int64(x.TerminatedPodGCThreshold))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy85 := &x.HorizontalPodAutoscalerSyncPeriod
- yym86 := z.EncBinary()
- _ = yym86
- if false {
- } else if z.HasExtensions() && z.EncExt(yy85) {
- } else if !yym86 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy85)
- } else {
- z.EncFallback(yy85)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy87 := &x.HorizontalPodAutoscalerSyncPeriod
- yym88 := z.EncBinary()
- _ = yym88
- if false {
- } else if z.HasExtensions() && z.EncExt(yy87) {
- } else if !yym88 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy87)
- } else {
- z.EncFallback(yy87)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy90 := &x.DeploymentControllerSyncPeriod
- yym91 := z.EncBinary()
- _ = yym91
- if false {
- } else if z.HasExtensions() && z.EncExt(yy90) {
- } else if !yym91 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy90)
- } else {
- z.EncFallback(yy90)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy92 := &x.DeploymentControllerSyncPeriod
- yym93 := z.EncBinary()
- _ = yym93
- if false {
- } else if z.HasExtensions() && z.EncExt(yy92) {
- } else if !yym93 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy92)
- } else {
- z.EncFallback(yy92)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy95 := &x.PodEvictionTimeout
- yym96 := z.EncBinary()
- _ = yym96
- if false {
- } else if z.HasExtensions() && z.EncExt(yy95) {
- } else if !yym96 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy95)
- } else {
- z.EncFallback(yy95)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy97 := &x.PodEvictionTimeout
- yym98 := z.EncBinary()
- _ = yym98
- if false {
- } else if z.HasExtensions() && z.EncExt(yy97) {
- } else if !yym98 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy97)
- } else {
- z.EncFallback(yy97)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym100 := z.EncBinary()
- _ = yym100
- if false {
- } else {
- r.EncodeFloat32(float32(x.DeletingPodsQps))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym101 := z.EncBinary()
- _ = yym101
- if false {
- } else {
- r.EncodeFloat32(float32(x.DeletingPodsQps))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym103 := z.EncBinary()
- _ = yym103
- if false {
- } else {
- r.EncodeInt(int64(x.DeletingPodsBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym104 := z.EncBinary()
- _ = yym104
- if false {
- } else {
- r.EncodeInt(int64(x.DeletingPodsBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy106 := &x.NodeMonitorGracePeriod
- yym107 := z.EncBinary()
- _ = yym107
- if false {
- } else if z.HasExtensions() && z.EncExt(yy106) {
- } else if !yym107 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy106)
- } else {
- z.EncFallback(yy106)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy108 := &x.NodeMonitorGracePeriod
- yym109 := z.EncBinary()
- _ = yym109
- if false {
- } else if z.HasExtensions() && z.EncExt(yy108) {
- } else if !yym109 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy108)
- } else {
- z.EncFallback(yy108)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym111 := z.EncBinary()
- _ = yym111
- if false {
- } else {
- r.EncodeInt(int64(x.RegisterRetryCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym112 := z.EncBinary()
- _ = yym112
- if false {
- } else {
- r.EncodeInt(int64(x.RegisterRetryCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy114 := &x.NodeStartupGracePeriod
- yym115 := z.EncBinary()
- _ = yym115
- if false {
- } else if z.HasExtensions() && z.EncExt(yy114) {
- } else if !yym115 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy114)
- } else {
- z.EncFallback(yy114)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy116 := &x.NodeStartupGracePeriod
- yym117 := z.EncBinary()
- _ = yym117
- if false {
- } else if z.HasExtensions() && z.EncExt(yy116) {
- } else if !yym117 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy116)
- } else {
- z.EncFallback(yy116)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy119 := &x.NodeMonitorPeriod
- yym120 := z.EncBinary()
- _ = yym120
- if false {
- } else if z.HasExtensions() && z.EncExt(yy119) {
- } else if !yym120 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy119)
- } else {
- z.EncFallback(yy119)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy121 := &x.NodeMonitorPeriod
- yym122 := z.EncBinary()
- _ = yym122
- if false {
- } else if z.HasExtensions() && z.EncExt(yy121) {
- } else if !yym122 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy121)
- } else {
- z.EncFallback(yy121)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym124 := z.EncBinary()
- _ = yym124
- 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)
- yym125 := z.EncBinary()
- _ = yym125
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym127 := z.EncBinary()
- _ = yym127
- if false {
- } else {
- r.EncodeBool(bool(x.EnableProfiling))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableProfiling"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym128 := z.EncBinary()
- _ = yym128
- if false {
- } else {
- r.EncodeBool(bool(x.EnableProfiling))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym130 := z.EncBinary()
- _ = yym130
- 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)
- yym131 := z.EncBinary()
- _ = yym131
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym133 := z.EncBinary()
- _ = yym133
- 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)
- yym134 := z.EncBinary()
- _ = yym134
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym136 := z.EncBinary()
- _ = yym136
- 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)
- yym137 := z.EncBinary()
- _ = yym137
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym139 := z.EncBinary()
- _ = yym139
- if false {
- } else {
- r.EncodeInt(int64(x.NodeCIDRMaskSize))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym140 := z.EncBinary()
- _ = yym140
- if false {
- } else {
- r.EncodeInt(int64(x.NodeCIDRMaskSize))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym142 := z.EncBinary()
- _ = yym142
- if false {
- } else {
- r.EncodeBool(bool(x.AllocateNodeCIDRs))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym143 := z.EncBinary()
- _ = yym143
- if false {
- } else {
- r.EncodeBool(bool(x.AllocateNodeCIDRs))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym145 := z.EncBinary()
- _ = yym145
- if false {
- } else {
- r.EncodeBool(bool(x.ConfigureCloudRoutes))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym146 := z.EncBinary()
- _ = yym146
- if false {
- } else {
- r.EncodeBool(bool(x.ConfigureCloudRoutes))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym148 := z.EncBinary()
- _ = yym148
- 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)
- yym149 := z.EncBinary()
- _ = yym149
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym151 := z.EncBinary()
- _ = yym151
- 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)
- yym152 := z.EncBinary()
- _ = yym152
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.ContentType))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym154 := z.EncBinary()
- _ = yym154
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym155 := z.EncBinary()
- _ = yym155
- if false {
- } else {
- r.EncodeFloat32(float32(x.KubeAPIQPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym157 := z.EncBinary()
- _ = yym157
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym158 := z.EncBinary()
- _ = yym158
- if false {
- } else {
- r.EncodeInt(int64(x.KubeAPIBurst))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy160 := &x.LeaderElection
- yy160.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("leaderElection"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy162 := &x.LeaderElection
- yy162.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy165 := &x.VolumeConfiguration
- yy165.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy167 := &x.VolumeConfiguration
- yy167.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy170 := &x.ControllerStartInterval
- yym171 := z.EncBinary()
- _ = yym171
- if false {
- } else if z.HasExtensions() && z.EncExt(yy170) {
- } else if !yym171 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy170)
- } else {
- z.EncFallback(yy170)
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy172 := &x.ControllerStartInterval
- yym173 := z.EncBinary()
- _ = yym173
- if false {
- } else if z.HasExtensions() && z.EncExt(yy172) {
- } else if !yym173 && z.IsJSONHandle() {
- z.EncJSONMarshal(yy172)
- } else {
- z.EncFallback(yy172)
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym175 := z.EncBinary()
- _ = yym175
- if false {
- } else {
- r.EncodeBool(bool(x.EnableGarbageCollector))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym176 := z.EncBinary()
- _ = yym176
- if false {
- } else {
- r.EncodeBool(bool(x.EnableGarbageCollector))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[48] {
- yym178 := z.EncBinary()
- _ = yym178
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[48] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("kind"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym179 := z.EncBinary()
- _ = yym179
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- if yyq2[49] {
- yym181 := z.EncBinary()
- _ = yym181
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- } else {
- r.EncodeString(codecSelferC_UTF81234, "")
- }
- } else {
- if yyq2[49] {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym182 := z.EncBinary()
- _ = yym182
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
- }
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "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 "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 {
- yyv20 := &x.ServiceSyncPeriod
- yym21 := z.DecBinary()
- _ = yym21
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv20) {
- } else if !yym21 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv20)
- } else {
- z.DecFallback(yyv20, false)
- }
- }
- case "nodeSyncPeriod":
- if r.TryDecodeAsNil() {
- x.NodeSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv22 := &x.NodeSyncPeriod
- yym23 := z.DecBinary()
- _ = yym23
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv22) {
- } else if !yym23 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv22)
- } else {
- z.DecFallback(yyv22, false)
- }
- }
- case "resourceQuotaSyncPeriod":
- if r.TryDecodeAsNil() {
- x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv24 := &x.ResourceQuotaSyncPeriod
- yym25 := z.DecBinary()
- _ = yym25
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv24) {
- } else if !yym25 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv24)
- } else {
- z.DecFallback(yyv24, false)
- }
- }
- case "namespaceSyncPeriod":
- if r.TryDecodeAsNil() {
- x.NamespaceSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv26 := &x.NamespaceSyncPeriod
- yym27 := z.DecBinary()
- _ = yym27
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv26) {
- } else if !yym27 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv26)
- } else {
- z.DecFallback(yyv26, false)
- }
- }
- case "pvClaimBinderSyncPeriod":
- if r.TryDecodeAsNil() {
- x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv28 := &x.PVClaimBinderSyncPeriod
- yym29 := z.DecBinary()
- _ = yym29
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv28) {
- } else if !yym29 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv28)
- } else {
- z.DecFallback(yyv28, false)
- }
- }
- case "minResyncPeriod":
- if r.TryDecodeAsNil() {
- x.MinResyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv30 := &x.MinResyncPeriod
- yym31 := z.DecBinary()
- _ = yym31
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv30) {
- } else if !yym31 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv30)
- } else {
- z.DecFallback(yyv30, 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 {
- yyv33 := &x.HorizontalPodAutoscalerSyncPeriod
- yym34 := z.DecBinary()
- _ = yym34
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv33) {
- } else if !yym34 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv33)
- } else {
- z.DecFallback(yyv33, false)
- }
- }
- case "deploymentControllerSyncPeriod":
- if r.TryDecodeAsNil() {
- x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv35 := &x.DeploymentControllerSyncPeriod
- yym36 := z.DecBinary()
- _ = yym36
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv35) {
- } else if !yym36 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv35)
- } else {
- z.DecFallback(yyv35, false)
- }
- }
- case "podEvictionTimeout":
- if r.TryDecodeAsNil() {
- x.PodEvictionTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv37 := &x.PodEvictionTimeout
- yym38 := z.DecBinary()
- _ = yym38
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv37) {
- } else if !yym38 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv37)
- } else {
- z.DecFallback(yyv37, 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 {
- yyv41 := &x.NodeMonitorGracePeriod
- yym42 := z.DecBinary()
- _ = yym42
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv41) {
- } else if !yym42 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv41)
- } else {
- z.DecFallback(yyv41, 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 {
- yyv44 := &x.NodeStartupGracePeriod
- yym45 := z.DecBinary()
- _ = yym45
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv44) {
- } else if !yym45 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv44)
- } else {
- z.DecFallback(yyv44, false)
- }
- }
- case "nodeMonitorPeriod":
- if r.TryDecodeAsNil() {
- x.NodeMonitorPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv46 := &x.NodeMonitorPeriod
- yym47 := z.DecBinary()
- _ = yym47
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv46) {
- } else if !yym47 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv46)
- } else {
- z.DecFallback(yyv46, false)
- }
- }
- case "serviceAccountKeyFile":
- if r.TryDecodeAsNil() {
- x.ServiceAccountKeyFile = ""
- } else {
- x.ServiceAccountKeyFile = 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 {
- yyv60 := &x.LeaderElection
- yyv60.CodecDecodeSelf(d)
- }
- case "volumeConfiguration":
- if r.TryDecodeAsNil() {
- x.VolumeConfiguration = VolumeConfiguration{}
- } else {
- yyv61 := &x.VolumeConfiguration
- yyv61.CodecDecodeSelf(d)
- }
- case "controllerStartInterval":
- if r.TryDecodeAsNil() {
- x.ControllerStartInterval = pkg1_unversioned.Duration{}
- } else {
- yyv62 := &x.ControllerStartInterval
- yym63 := z.DecBinary()
- _ = yym63
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv62) {
- } else if !yym63 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv62)
- } else {
- z.DecFallback(yyv62, false)
- }
- }
- case "enableGarbageCollector":
- if r.TryDecodeAsNil() {
- x.EnableGarbageCollector = false
- } else {
- x.EnableGarbageCollector = bool(r.DecodeBool())
- }
- case "kind":
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- case "apiVersion":
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
-}
-
-func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj67 int
- var yyb67 bool
- var yyhl67 bool = l >= 0
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Port = 0
- } else {
- x.Port = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Address = ""
- } else {
- x.Address = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CloudProvider = ""
- } else {
- x.CloudProvider = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.CloudConfigFile = ""
- } else {
- x.CloudConfigFile = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentEndpointSyncs = 0
- } else {
- x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentRSSyncs = 0
- } else {
- x.ConcurrentRSSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentRCSyncs = 0
- } else {
- x.ConcurrentRCSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentResourceQuotaSyncs = 0
- } else {
- x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentDeploymentSyncs = 0
- } else {
- x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentDaemonSetSyncs = 0
- } else {
- x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentJobSyncs = 0
- } else {
- x.ConcurrentJobSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentNamespaceSyncs = 0
- } else {
- x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConcurrentSATokenSyncs = 0
- } else {
- x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LookupCacheSizeForRC = 0
- } else {
- x.LookupCacheSizeForRC = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LookupCacheSizeForRS = 0
- } else {
- x.LookupCacheSizeForRS = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LookupCacheSizeForDaemonSet = 0
- } else {
- x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ServiceSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv84 := &x.ServiceSyncPeriod
- yym85 := z.DecBinary()
- _ = yym85
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv84) {
- } else if !yym85 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv84)
- } else {
- z.DecFallback(yyv84, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv86 := &x.NodeSyncPeriod
- yym87 := z.DecBinary()
- _ = yym87
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv86) {
- } else if !yym87 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv86)
- } else {
- z.DecFallback(yyv86, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv88 := &x.ResourceQuotaSyncPeriod
- yym89 := z.DecBinary()
- _ = yym89
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv88) {
- } else if !yym89 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv88)
- } else {
- z.DecFallback(yyv88, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NamespaceSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv90 := &x.NamespaceSyncPeriod
- yym91 := z.DecBinary()
- _ = yym91
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv90) {
- } else if !yym91 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv90)
- } else {
- z.DecFallback(yyv90, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv92 := &x.PVClaimBinderSyncPeriod
- yym93 := z.DecBinary()
- _ = yym93
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv92) {
- } else if !yym93 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv92)
- } else {
- z.DecFallback(yyv92, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MinResyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv94 := &x.MinResyncPeriod
- yym95 := z.DecBinary()
- _ = yym95
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv94) {
- } else if !yym95 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv94)
- } else {
- z.DecFallback(yyv94, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.TerminatedPodGCThreshold = 0
- } else {
- x.TerminatedPodGCThreshold = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv97 := &x.HorizontalPodAutoscalerSyncPeriod
- yym98 := z.DecBinary()
- _ = yym98
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv97) {
- } else if !yym98 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv97)
- } else {
- z.DecFallback(yyv97, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv99 := &x.DeploymentControllerSyncPeriod
- yym100 := z.DecBinary()
- _ = yym100
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv99) {
- } else if !yym100 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv99)
- } else {
- z.DecFallback(yyv99, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodEvictionTimeout = pkg1_unversioned.Duration{}
- } else {
- yyv101 := &x.PodEvictionTimeout
- yym102 := z.DecBinary()
- _ = yym102
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv101) {
- } else if !yym102 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv101)
- } else {
- z.DecFallback(yyv101, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.DeletingPodsQps = 0
- } else {
- x.DeletingPodsQps = float32(r.DecodeFloat(true))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.DeletingPodsBurst = 0
- } else {
- x.DeletingPodsBurst = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{}
- } else {
- yyv105 := &x.NodeMonitorGracePeriod
- yym106 := z.DecBinary()
- _ = yym106
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv105) {
- } else if !yym106 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv105)
- } else {
- z.DecFallback(yyv105, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RegisterRetryCount = 0
- } else {
- x.RegisterRetryCount = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeStartupGracePeriod = pkg1_unversioned.Duration{}
- } else {
- yyv108 := &x.NodeStartupGracePeriod
- 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)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeMonitorPeriod = pkg1_unversioned.Duration{}
- } else {
- yyv110 := &x.NodeMonitorPeriod
- yym111 := z.DecBinary()
- _ = yym111
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv110) {
- } else if !yym111 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv110)
- } else {
- z.DecFallback(yyv110, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ServiceAccountKeyFile = ""
- } else {
- x.ServiceAccountKeyFile = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableProfiling = false
- } else {
- x.EnableProfiling = bool(r.DecodeBool())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ClusterName = ""
- } else {
- x.ClusterName = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ClusterCIDR = ""
- } else {
- x.ClusterCIDR = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ServiceCIDR = ""
- } else {
- x.ServiceCIDR = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.NodeCIDRMaskSize = 0
- } else {
- x.NodeCIDRMaskSize = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.AllocateNodeCIDRs = false
- } else {
- x.AllocateNodeCIDRs = bool(r.DecodeBool())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ConfigureCloudRoutes = false
- } else {
- x.ConfigureCloudRoutes = bool(r.DecodeBool())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.RootCAFile = ""
- } else {
- x.RootCAFile = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ContentType = ""
- } else {
- x.ContentType = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIQPS = 0
- } else {
- x.KubeAPIQPS = float32(r.DecodeFloat(true))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.KubeAPIBurst = 0
- } else {
- x.KubeAPIBurst = int32(r.DecodeInt(32))
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.LeaderElection = LeaderElectionConfiguration{}
- } else {
- yyv124 := &x.LeaderElection
- yyv124.CodecDecodeSelf(d)
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.VolumeConfiguration = VolumeConfiguration{}
- } else {
- yyv125 := &x.VolumeConfiguration
- yyv125.CodecDecodeSelf(d)
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.ControllerStartInterval = pkg1_unversioned.Duration{}
- } else {
- yyv126 := &x.ControllerStartInterval
- yym127 := z.DecBinary()
- _ = yym127
- if false {
- } else if z.HasExtensions() && z.DecExt(yyv126) {
- } else if !yym127 && z.IsJSONHandle() {
- z.DecJSONUnmarshal(yyv126)
- } else {
- z.DecFallback(yyv126, false)
- }
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableGarbageCollector = false
- } else {
- x.EnableGarbageCollector = bool(r.DecodeBool())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.Kind = ""
- } else {
- x.Kind = string(r.DecodeString())
- }
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.APIVersion = ""
- } else {
- x.APIVersion = string(r.DecodeString())
- }
- for {
- yyj67++
- if yyhl67 {
- yyb67 = yyj67 > l
- } else {
- yyb67 = r.CheckBreak()
- }
- if yyb67 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj67-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 {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [4]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(4)
- } else {
- yynn2 = 4
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeBool(bool(x.EnableHostPathProvisioning))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeBool(bool(x.EnableHostPathProvisioning))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeBool(bool(x.EnableDynamicProvisioning))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeBool(bool(x.EnableDynamicProvisioning))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yy10 := &x.PersistentVolumeRecyclerConfiguration
- yy10.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yy12 := &x.PersistentVolumeRecyclerConfiguration
- yy12.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym15 := z.EncBinary()
- _ = yym15
- 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)
- yym16 := z.EncBinary()
- _ = yym16
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir))
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "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 {
- yyv6 := &x.PersistentVolumeRecyclerConfiguration
- yyv6.CodecDecodeSelf(d)
- }
- case "flexVolumePluginDir":
- if r.TryDecodeAsNil() {
- x.FlexVolumePluginDir = ""
- } else {
- x.FlexVolumePluginDir = string(r.DecodeString())
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- 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 yyj8 int
- var yyb8 bool
- var yyhl8 bool = l >= 0
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableHostPathProvisioning = false
- } else {
- x.EnableHostPathProvisioning = bool(r.DecodeBool())
- }
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.EnableDynamicProvisioning = false
- } else {
- x.EnableDynamicProvisioning = bool(r.DecodeBool())
- }
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{}
- } else {
- yyv11 := &x.PersistentVolumeRecyclerConfiguration
- yyv11.CodecDecodeSelf(d)
- }
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.FlexVolumePluginDir = ""
- } else {
- x.FlexVolumePluginDir = string(r.DecodeString())
- }
- for {
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj8-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
-}
-
-func (x *PersistentVolumeRecyclerConfiguration) 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 [7]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(7)
- } else {
- yynn2 = 7
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeInt(int64(x.MaximumRetry))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("maximumRetry"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeInt(int64(x.MaximumRetry))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeInt(int64(x.MinimumTimeoutNFS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeInt(int64(x.MinimumTimeoutNFS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym10 := z.EncBinary()
- _ = yym10
- 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)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else {
- r.EncodeInt(int64(x.IncrementTimeoutNFS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeInt(int64(x.IncrementTimeoutNFS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym16 := z.EncBinary()
- _ = yym16
- 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)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym19 := z.EncBinary()
- _ = yym19
- if false {
- } else {
- r.EncodeInt(int64(x.MinimumTimeoutHostPath))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else {
- r.EncodeInt(int64(x.MinimumTimeoutHostPath))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem1234)
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeInt(int64(x.IncrementTimeoutHostPath))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey1234)
- r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath"))
- z.EncSendContainerState(codecSelfer_containerMapValue1234)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeInt(int64(x.IncrementTimeoutHostPath))
- }
- }
- if yyr2 || yy2arr2 {
- 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
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap1234 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd1234)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray1234 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
- }
- }
-}
-
-func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer1234
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey1234)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3 := string(yys3Slc)
- z.DecSendContainerState(codecSelfer_containerMapValue1234)
- switch yys3 {
- case "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, yys3)
- } // end switch yys3
- } // end for yyj3
- 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 yyj11 int
- var yyb11 bool
- var yyhl11 bool = l >= 0
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MaximumRetry = 0
- } else {
- x.MaximumRetry = int32(r.DecodeInt(32))
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MinimumTimeoutNFS = 0
- } else {
- x.MinimumTimeoutNFS = int32(r.DecodeInt(32))
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodTemplateFilePathNFS = ""
- } else {
- x.PodTemplateFilePathNFS = string(r.DecodeString())
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.IncrementTimeoutNFS = 0
- } else {
- x.IncrementTimeoutNFS = int32(r.DecodeInt(32))
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.PodTemplateFilePathHostPath = ""
- } else {
- x.PodTemplateFilePathHostPath = string(r.DecodeString())
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.MinimumTimeoutHostPath = 0
- } else {
- x.MinimumTimeoutHostPath = int32(r.DecodeInt(32))
- }
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- if r.TryDecodeAsNil() {
- x.IncrementTimeoutHostPath = 0
- } else {
- x.IncrementTimeoutHostPath = int32(r.DecodeInt(32))
- }
- for {
- yyj11++
- if yyhl11 {
- yyb11 = yyj11 > l
- } else {
- yyb11 = r.CheckBreak()
- }
- if yyb11 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem1234)
- z.DecStructFieldNotFound(yyj11-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go
deleted file mode 100644
index 97e9233..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/types.go
+++ /dev/null
@@ -1,621 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package componentconfig
-
-import "k8s.io/kubernetes/pkg/api/unversioned"
-
-type KubeProxyConfiguration struct {
- unversioned.TypeMeta
-
- // bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
- // for all interfaces)
- BindAddress string `json:"bindAddress"`
- // clusterCIDR is the CIDR range of the pods in the cluster. It is used to
- // bridge traffic coming from outside of the cluster. If not provided,
- // no off-cluster bridging will be performed.
- ClusterCIDR string `json:"clusterCIDR"`
- // healthzBindAddress is the IP address for the health check server to serve on,
- // defaulting to 127.0.0.1 (set to 0.0.0.0 for all interfaces)
- HealthzBindAddress string `json:"healthzBindAddress"`
- // healthzPort is the port to bind the health check server. Use 0 to disable.
- HealthzPort int32 `json:"healthzPort"`
- // hostnameOverride, if non-empty, will be used as the identity instead of the actual hostname.
- HostnameOverride string `json:"hostnameOverride"`
- // iptablesMasqueradeBit is the bit of the iptables fwmark space to use for SNAT if using
- // the pure iptables proxy mode. Values must be within the range [0, 31].
- IPTablesMasqueradeBit *int32 `json:"iptablesMasqueradeBit"`
- // iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
- // '2h22m'). Must be greater than 0.
- IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"`
- // kubeconfigPath is the path to the kubeconfig file with authorization information (the
- // master location is set by the master flag).
- KubeconfigPath string `json:"kubeconfigPath"`
- // masqueradeAll tells kube-proxy to SNAT everything if using the pure iptables proxy mode.
- MasqueradeAll bool `json:"masqueradeAll"`
- // master is the address of the Kubernetes API server (overrides any value in kubeconfig)
- Master string `json:"master"`
- // oomScoreAdj is the oom-score-adj value for kube-proxy process. Values must be within
- // the range [-1000, 1000]
- OOMScoreAdj *int32 `json:"oomScoreAdj"`
- // mode specifies which proxy mode to use.
- Mode ProxyMode `json:"mode"`
- // portRange is the range of host ports (beginPort-endPort, inclusive) that may be consumed
- // in order to proxy service traffic. If unspecified (0-0) then ports will be randomly chosen.
- PortRange string `json:"portRange"`
- // resourceContainer is the absolute name of the resource-only container to create and run
- // the Kube-proxy in (Default: /kube-proxy).
- ResourceContainer string `json:"kubeletCgroups"`
- // udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s').
- // Must be greater than 0. Only applicable for proxyMode=userspace.
- UDPIdleTimeout unversioned.Duration `json:"udpTimeoutMilliseconds"`
- // conntrackMax is the maximum number of NAT connections to track (0 to leave as-is)")
- ConntrackMax int32 `json:"conntrackMax"`
- // conntrackTCPEstablishedTimeout is how long an idle UDP connection will be kept open
- // (e.g. '250ms', '2s'). Must be greater than 0. Only applicable for proxyMode is Userspace
- ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"`
-}
-
-// Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables'
-// (newer, faster). If blank, look at the Node object on the Kubernetes API and respect the
-// 'net.experimental.kubernetes.io/proxy-mode' annotation if provided. Otherwise use the
-// best-available proxy (currently iptables, but may change in future versions). If the
-// iptables proxy is selected, regardless of how, but the system's kernel or iptables
-// versions are insufficient, this always falls back to the userspace proxy.
-type ProxyMode string
-
-const (
- ProxyModeUserspace ProxyMode = "userspace"
- ProxyModeIPTables ProxyMode = "iptables"
-)
-
-// HairpinMode denotes how the kubelet should configure networking to handle
-// hairpin packets.
-type HairpinMode string
-
-// Enum settings for different ways to handle hairpin packets.
-const (
- // Set the hairpin flag on the veth of containers in the respective
- // container runtime.
- HairpinVeth = "hairpin-veth"
- // Make the container bridge promiscuous. This will force it to accept
- // hairpin packets, even if the flag isn't set on ports of the bridge.
- PromiscuousBridge = "promiscuous-bridge"
- // Neither of the above. If the kubelet is started in this hairpin mode
- // and kube-proxy is running in iptables mode, hairpin packets will be
- // dropped by the container bridge.
- HairpinNone = "none"
-)
-
-// TODO: curate the ordering and structure of this config object
-type KubeletConfiguration struct {
- // config is the path to the config file or directory of files
- Config string `json:"config"`
- // syncFrequency is the max period between synchronizing running
- // containers and config
- SyncFrequency unversioned.Duration `json:"syncFrequency"`
- // fileCheckFrequency is the duration between checking config files for
- // new data
- FileCheckFrequency unversioned.Duration `json:"fileCheckFrequency"`
- // httpCheckFrequency is the duration between checking http for new data
- HTTPCheckFrequency unversioned.Duration `json:"httpCheckFrequency"`
- // manifestURL is the URL for accessing the container manifest
- ManifestURL string `json:"manifestURL"`
- // manifestURLHeader is the HTTP header to use when accessing the manifest
- // URL, with the key separated from the value with a ':', as in 'key:value'
- ManifestURLHeader string `json:"manifestURLHeader"`
- // enableServer enables the Kubelet's server
- EnableServer bool `json:"enableServer"`
- // address is the IP address for the Kubelet to serve on (set to 0.0.0.0
- // for all interfaces)
- Address string `json:"address"`
- // port is the port for the Kubelet to serve on.
- Port uint `json:"port"`
- // readOnlyPort is the read-only port for the Kubelet to serve on with
- // no authentication/authorization (set to 0 to disable)
- ReadOnlyPort uint `json:"readOnlyPort"`
- // tLSCertFile is the file containing x509 Certificate for HTTPS. (CA cert,
- // if any, concatenated after server cert). If tlsCertFile and
- // tlsPrivateKeyFile are not provided, a self-signed certificate
- // and key are generated for the public address and saved to the directory
- // passed to certDir.
- TLSCertFile string `json:"tLSCertFile"`
- // tLSPrivateKeyFile is the ile containing x509 private key matching
- // tlsCertFile.
- TLSPrivateKeyFile string `json:"tLSPrivateKeyFile"`
- // certDirectory is the directory where the TLS certs are located (by
- // default /var/run/kubernetes). If tlsCertFile and tlsPrivateKeyFile
- // are provided, this flag will be ignored.
- CertDirectory string `json:"certDirectory"`
- // hostnameOverride is the hostname used to identify the kubelet instead
- // of the actual hostname.
- HostnameOverride string `json:"hostnameOverride"`
- // podInfraContainerImage is the image whose network/ipc namespaces
- // containers in each pod will use.
- PodInfraContainerImage string `json:"podInfraContainerImage"`
- // dockerEndpoint is the path to the docker endpoint to communicate with.
- DockerEndpoint string `json:"dockerEndpoint"`
- // rootDirectory is the directory path to place kubelet files (volume
- // mounts,etc).
- RootDirectory string `json:"rootDirectory"`
- // seccompProfileRoot is the directory path for seccomp profiles.
- SeccompProfileRoot string `json:"seccompProfileRoot"`
- // allowPrivileged enables containers to request privileged mode.
- // Defaults to false.
- AllowPrivileged bool `json:"allowPrivileged"`
- // hostNetworkSources is a comma-separated list of sources from which the
- // Kubelet allows pods to use of host network. Defaults to "*".
- HostNetworkSources string `json:"hostNetworkSources"`
- // hostPIDSources is a comma-separated list of sources from which the
- // Kubelet allows pods to use the host pid namespace. Defaults to "*".
- HostPIDSources string `json:"hostPIDSources"`
- // hostIPCSources is a comma-separated list of sources from which the
- // Kubelet allows pods to use the host ipc namespace. Defaults to "*".
- HostIPCSources string `json:"hostIPCSources"`
- // registryPullQPS is the limit of registry pulls per second. If 0,
- // unlimited. Set to 0 for no limit. Defaults to 5.0.
- RegistryPullQPS float64 `json:"registryPullQPS"`
- // registryBurst is the maximum size of a bursty pulls, temporarily allows
- // pulls to burst to this number, while still not exceeding registryQps.
- // Only used if registryQps > 0.
- RegistryBurst int32 `json:"registryBurst"`
- // eventRecordQPS is the maximum event creations per second. If 0, there
- // is no limit enforced.
- EventRecordQPS float32 `json:"eventRecordQPS"`
- // eventBurst is the maximum size of a bursty event records, temporarily
- // allows event records to burst to this number, while still not exceeding
- // event-qps. Only used if eventQps > 0
- EventBurst int32 `json:"eventBurst"`
- // enableDebuggingHandlers enables server endpoints for log collection
- // and local running of containers and commands
- EnableDebuggingHandlers bool `json:"enableDebuggingHandlers"`
- // minimumGCAge is the minimum age for a finished container before it is
- // garbage collected.
- MinimumGCAge unversioned.Duration `json:"minimumGCAge"`
- // maxPerPodContainerCount is the maximum number of old instances to
- // retain per container. Each container takes up some disk space.
- MaxPerPodContainerCount int32 `json:"maxPerPodContainerCount"`
- // maxContainerCount is the maximum number of old instances of containers
- // to retain globally. Each container takes up some disk space.
- MaxContainerCount int32 `json:"maxContainerCount"`
- // cAdvisorPort is the port of the localhost cAdvisor endpoint
- CAdvisorPort uint `json:"cAdvisorPort"`
- // healthzPort is the port of the localhost healthz endpoint
- HealthzPort int32 `json:"healthzPort"`
- // healthzBindAddress is the IP address for the healthz server to serve
- // on.
- HealthzBindAddress string `json:"healthzBindAddress"`
- // oomScoreAdj is The oom-score-adj value for kubelet process. Values
- // must be within the range [-1000, 1000].
- OOMScoreAdj int32 `json:"oomScoreAdj"`
- // registerNode enables automatic registration with the apiserver.
- RegisterNode bool `json:"registerNode"`
- // clusterDomain is the DNS domain for this cluster. If set, kubelet will
- // configure all containers to search this domain in addition to the
- // host's search domains.
- ClusterDomain string `json:"clusterDomain"`
- // masterServiceNamespace is The namespace from which the kubernetes
- // master services should be injected into pods.
- MasterServiceNamespace string `json:"masterServiceNamespace"`
- // clusterDNS is the IP address for a cluster DNS server. If set, kubelet
- // will configure all containers to use this for DNS resolution in
- // addition to the host's DNS servers
- ClusterDNS string `json:"clusterDNS"`
- // streamingConnectionIdleTimeout is the maximum time a streaming connection
- // can be idle before the connection is automatically closed.
- StreamingConnectionIdleTimeout unversioned.Duration `json:"streamingConnectionIdleTimeout"`
- // nodeStatusUpdateFrequency is the frequency that kubelet posts node
- // status to master. Note: be cautious when changing the constant, it
- // must work with nodeMonitorGracePeriod in nodecontroller.
- NodeStatusUpdateFrequency unversioned.Duration `json:"nodeStatusUpdateFrequency"`
- // minimumGCAge is the minimum age for a unused image before it is
- // garbage collected.
- ImageMinimumGCAge unversioned.Duration `json:"imageMinimumGCAge"`
- // imageGCHighThresholdPercent is the percent of disk usage after which
- // image garbage collection is always run.
- ImageGCHighThresholdPercent int32 `json:"imageGCHighThresholdPercent"`
- // imageGCLowThresholdPercent is the percent of disk usage before which
- // image garbage collection is never run. Lowest disk usage to garbage
- // collect to.
- ImageGCLowThresholdPercent int32 `json:"imageGCLowThresholdPercent"`
- // lowDiskSpaceThresholdMB is the absolute free disk space, in MB, to
- // maintain. When disk space falls below this threshold, new pods would
- // be rejected.
- LowDiskSpaceThresholdMB int32 `json:"lowDiskSpaceThresholdMB"`
- // How frequently to calculate and cache volume disk usage for all pods
- VolumeStatsAggPeriod unversioned.Duration `json:"volumeStatsAggPeriod"`
- // networkPluginName is the name of the network plugin to be invoked for
- // various events in kubelet/pod lifecycle
- NetworkPluginName string `json:"networkPluginName"`
- // networkPluginDir is the full path of the directory in which to search
- // for network plugins
- NetworkPluginDir string `json:"networkPluginDir"`
- // volumePluginDir is the full path of the directory in which to search
- // for additional third party volume plugins
- VolumePluginDir string `json:"volumePluginDir"`
- // cloudProvider is the provider for cloud services.
- CloudProvider string `json:"cloudProvider,omitempty"`
- // cloudConfigFile is the path to the cloud provider configuration file.
- CloudConfigFile string `json:"cloudConfigFile,omitempty"`
- // KubeletCgroups is the absolute name of cgroups to isolate the kubelet in.
- KubeletCgroups string `json:"kubeletCgroups,omitempty"`
- // Cgroups that container runtime is expected to be isolated in.
- RuntimeCgroups string `json:"runtimeCgroups,omitempty"`
- // SystemCgroups is absolute name of cgroups in which to place
- // all non-kernel processes that are not already in a container. Empty
- // for no container. Rolling back the flag requires a reboot.
- SystemCgroups string `json:"systemContainer,omitempty"`
- // cgroupRoot is the root cgroup to use for pods. This is handled by the
- // container runtime on a best effort basis.
- CgroupRoot string `json:"cgroupRoot,omitempty"`
- // containerRuntime is the container runtime to use.
- ContainerRuntime string `json:"containerRuntime"`
- // runtimeRequestTimeout is the timeout for all runtime requests except long running
- // requests - pull, logs, exec and attach.
- RuntimeRequestTimeout unversioned.Duration `json:"runtimeRequestTimeout,omitempty"`
- // rktPath is the path of rkt binary. Leave empty to use the first rkt in
- // $PATH.
- RktPath string `json:"rktPath,omitempty"`
- // rktApiEndpoint is the endpoint of the rkt API service to communicate with.
- RktAPIEndpoint string `json:"rktAPIEndpoint,omitempty"`
- // rktStage1Image is the image to use as stage1. Local paths and
- // http/https URLs are supported.
- RktStage1Image string `json:"rktStage1Image,omitempty"`
- // lockFilePath is the path that kubelet will use to as a lock file.
- // It uses this file as a lock to synchronize with other kubelet processes
- // that may be running.
- LockFilePath string `json:"lockFilePath"`
- // ExitOnLockContention is a flag that signifies to the kubelet that it is running
- // in "bootstrap" mode. This requires that 'LockFilePath' has been set.
- // This will cause the kubelet to listen to inotify events on the lock file,
- // releasing it and exiting when another process tries to open that file.
- ExitOnLockContention bool `json:"exitOnLockContention"`
- // configureCBR0 enables the kublet to configure cbr0 based on
- // Node.Spec.PodCIDR.
- ConfigureCBR0 bool `json:"configureCbr0"`
- // How should the kubelet configure the container bridge for hairpin packets.
- // Setting this flag allows endpoints in a Service to loadbalance back to
- // themselves if they should try to access their own Service. Values:
- // "promiscuous-bridge": make the container bridge promiscuous.
- // "hairpin-veth": set the hairpin flag on container veth interfaces.
- // "none": do nothing.
- // Setting --configure-cbr0 to false implies that to achieve hairpin NAT
- // one must set --hairpin-mode=veth-flag, because bridge assumes the
- // existence of a container bridge named cbr0.
- HairpinMode string `json:"hairpinMode"`
- // The node has babysitter process monitoring docker and kubelet.
- BabysitDaemons bool `json:"babysitDaemons"`
- // maxPods is the number of pods that can run on this Kubelet.
- MaxPods int32 `json:"maxPods"`
- // nvidiaGPUs is the number of NVIDIA GPU devices on this node.
- NvidiaGPUs int32 `json:"nvidiaGPUs"`
- // dockerExecHandlerName is the handler to use when executing a command
- // in a container. Valid values are 'native' and 'nsenter'. Defaults to
- // 'native'.
- DockerExecHandlerName string `json:"dockerExecHandlerName"`
- // The CIDR to use for pod IP addresses, only used in standalone mode.
- // In cluster mode, this is obtained from the master.
- PodCIDR string `json:"podCIDR"`
- // ResolverConfig is the resolver configuration file used as the basis
- // for the container DNS resolution configuration."), []
- ResolverConfig string `json:"resolvConf"`
- // cpuCFSQuota is Enable CPU CFS quota enforcement for containers that
- // specify CPU limits
- CPUCFSQuota bool `json:"cpuCFSQuota"`
- // containerized should be set to true if kubelet is running in a container.
- Containerized bool `json:"containerized"`
- // maxOpenFiles is Number of files that can be opened by Kubelet process.
- MaxOpenFiles uint64 `json:"maxOpenFiles"`
- // reconcileCIDR is Reconcile node CIDR with the CIDR specified by the
- // API server. No-op if register-node or configure-cbr0 is false.
- ReconcileCIDR bool `json:"reconcileCIDR"`
- // registerSchedulable tells the kubelet to register the node as
- // schedulable. No-op if register-node is false.
- RegisterSchedulable bool `json:"registerSchedulable"`
- // contentType is contentType of requests sent to apiserver.
- ContentType string `json:"contentType"`
- // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver
- KubeAPIQPS float32 `json:"kubeAPIQPS"`
- // kubeAPIBurst is the burst to allow while talking with kubernetes
- // apiserver
- KubeAPIBurst int32 `json:"kubeAPIBurst"`
- // serializeImagePulls when enabled, tells the Kubelet to pull images one
- // at a time. We recommend *not* changing the default value on nodes that
- // run docker daemon with version < 1.9 or an Aufs storage backend.
- // Issue #10959 has more details.
- SerializeImagePulls bool `json:"serializeImagePulls"`
- // experimentalFlannelOverlay enables experimental support for starting the
- // kubelet with the default overlay network (flannel). Assumes flanneld
- // is already running in client mode.
- ExperimentalFlannelOverlay bool `json:"experimentalFlannelOverlay"`
- // outOfDiskTransitionFrequency is duration for which the kubelet has to
- // wait before transitioning out of out-of-disk node condition status.
- OutOfDiskTransitionFrequency unversioned.Duration `json:"outOfDiskTransitionFrequency,omitempty"`
- // nodeIP is IP address of the node. If set, kubelet will use this IP
- // address for the node.
- NodeIP string `json:"nodeIP,omitempty"`
- // nodeLabels to add when registering the node in the cluster.
- NodeLabels map[string]string `json:"nodeLabels"`
- // nonMasqueradeCIDR configures masquerading: traffic to IPs outside this range will use IP masquerade.
- NonMasqueradeCIDR string `json:"nonMasqueradeCIDR"`
- // enable gathering custom metrics.
- EnableCustomMetrics bool `json:"enableCustomMetrics"`
- // Comma-delimited list of hard eviction expressions. For example, 'memory.available<300Mi'.
- EvictionHard string `json:"evictionHard,omitempty"`
- // Comma-delimited list of soft eviction expressions. For example, 'memory.available<300Mi'.
- EvictionSoft string `json:"evictionSoft,omitempty"`
- // Comma-delimeted list of grace periods for each soft eviction signal. For example, 'memory.available=30s'.
- EvictionSoftGracePeriod string `json:"evictionSoftGracePeriod,omitempty"`
- // Duration for which the kubelet has to wait before transitioning out of an eviction pressure condition.
- EvictionPressureTransitionPeriod unversioned.Duration `json:"evictionPressureTransitionPeriod,omitempty"`
- // Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met.
- EvictionMaxPodGracePeriod int32 `json:"evictionMaxPodGracePeriod,omitempty"`
- // Maximum number of pods per core. Cannot exceed MaxPods
- PodsPerCore int32 `json:"podsPerCore"`
- // enableControllerAttachDetach enables the Attach/Detach controller to
- // manage attachment/detachment of volumes scheduled to this node, and
- // disables kubelet from executing any attach/detach operations
- EnableControllerAttachDetach bool `json:"enableControllerAttachDetach"`
-}
-
-type KubeSchedulerConfiguration struct {
- unversioned.TypeMeta
-
- // port is the port that the scheduler's http service runs on.
- Port int32 `json:"port"`
- // address is the IP address to serve on.
- Address string `json:"address"`
- // algorithmProvider is the scheduling algorithm provider to use.
- AlgorithmProvider string `json:"algorithmProvider"`
- // policyConfigFile is the filepath to the scheduler policy configuration.
- PolicyConfigFile string `json:"policyConfigFile"`
- // enableProfiling enables profiling via web interface.
- EnableProfiling bool `json:"enableProfiling"`
- // contentType is contentType of requests sent to apiserver.
- ContentType string `json:"contentType"`
- // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
- KubeAPIQPS float32 `json:"kubeAPIQPS"`
- // kubeAPIBurst is the QPS burst to use while talking with kubernetes apiserver.
- KubeAPIBurst int32 `json:"kubeAPIBurst"`
- // schedulerName is name of the scheduler, used to select which pods
- // will be processed by this scheduler, based on pod's annotation with
- // key 'scheduler.alpha.kubernetes.io/name'.
- SchedulerName string `json:"schedulerName"`
- // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule
- // corresponding to every RequiredDuringScheduling affinity rule.
- // HardPodAffinitySymmetricWeight represents the weight of implicit PreferredDuringScheduling affinity rule, in the range 0-100.
- HardPodAffinitySymmetricWeight int `json:"hardPodAffinitySymmetricWeight"`
- // Indicate the "all topologies" set for empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity.
- FailureDomains string `json:"failureDomains"`
- // leaderElection defines the configuration of leader election client.
- LeaderElection LeaderElectionConfiguration `json:"leaderElection"`
-}
-
-// LeaderElectionConfiguration defines the configuration of leader election
-// clients for components that can run with leader election enabled.
-type LeaderElectionConfiguration struct {
- // leaderElect enables a leader election client to gain leadership
- // before executing the main loop. Enable this when running replicated
- // components for high availability.
- LeaderElect bool `json:"leaderElect"`
- // leaseDuration is the duration that non-leader candidates will wait
- // after observing a leadership renewal until attempting to acquire
- // leadership of a led but unrenewed leader slot. This is effectively the
- // maximum duration that a leader can be stopped before it is replaced
- // by another candidate. This is only applicable if leader election is
- // enabled.
- LeaseDuration unversioned.Duration `json:"leaseDuration"`
- // renewDeadline is the interval between attempts by the acting master to
- // renew a leadership slot before it stops leading. This must be less
- // than or equal to the lease duration. This is only applicable if leader
- // election is enabled.
- RenewDeadline unversioned.Duration `json:"renewDeadline"`
- // retryPeriod is the duration the clients should wait between attempting
- // acquisition and renewal of a leadership. This is only applicable if
- // leader election is enabled.
- RetryPeriod unversioned.Duration `json:"retryPeriod"`
-}
-
-type KubeControllerManagerConfiguration struct {
- unversioned.TypeMeta
-
- // port is the port that the controller-manager's http service runs on.
- Port int32 `json:"port"`
- // address is the IP address to serve on (set to 0.0.0.0 for all interfaces).
- Address string `json:"address"`
- // cloudProvider is the provider for cloud services.
- CloudProvider string `json:"cloudProvider"`
- // cloudConfigFile is the path to the cloud provider configuration file.
- CloudConfigFile string `json:"cloudConfigFile"`
- // concurrentEndpointSyncs is the number of endpoint syncing operations
- // that will be done concurrently. Larger number = faster endpoint updating,
- // but more CPU (and network) load.
- ConcurrentEndpointSyncs int32 `json:"concurrentEndpointSyncs"`
- // concurrentRSSyncs is the number of replica sets that are allowed to sync
- // concurrently. Larger number = more responsive replica management, but more
- // CPU (and network) load.
- ConcurrentRSSyncs int32 `json:"concurrentRSSyncs"`
- // concurrentRCSyncs is the number of replication controllers that are
- // allowed to sync concurrently. Larger number = more responsive replica
- // management, but more CPU (and network) load.
- ConcurrentRCSyncs int32 `json:"concurrentRCSyncs"`
- // concurrentResourceQuotaSyncs is the number of resource quotas that are
- // allowed to sync concurrently. Larger number = more responsive quota
- // management, but more CPU (and network) load.
- ConcurrentResourceQuotaSyncs int32 `json:"concurrentResourceQuotaSyncs"`
- // concurrentDeploymentSyncs is the number of deployment objects that are
- // allowed to sync concurrently. Larger number = more responsive deployments,
- // but more CPU (and network) load.
- ConcurrentDeploymentSyncs int32 `json:"concurrentDeploymentSyncs"`
- // concurrentDaemonSetSyncs is the number of daemonset objects that are
- // allowed to sync concurrently. Larger number = more responsive daemonset,
- // but more CPU (and network) load.
- ConcurrentDaemonSetSyncs int32 `json:"concurrentDaemonSetSyncs"`
- // concurrentJobSyncs is the number of job objects that are
- // allowed to sync concurrently. Larger number = more responsive jobs,
- // but more CPU (and network) load.
- ConcurrentJobSyncs int32 `json:"concurrentJobSyncs"`
- // concurrentNamespaceSyncs is the number of namespace objects that are
- // allowed to sync concurrently.
- ConcurrentNamespaceSyncs int32 `json:"concurrentNamespaceSyncs"`
- // concurrentSATokenSyncs is the number of service account token syncing operations
- // that will be done concurrently.
- ConcurrentSATokenSyncs int32 `json:"concurrentSATokenSyncs"`
- // lookupCacheSizeForRC is the size of lookup cache for replication controllers.
- // Larger number = more responsive replica management, but more MEM load.
- LookupCacheSizeForRC int32 `json:"lookupCacheSizeForRC"`
- // lookupCacheSizeForRS is the size of lookup cache for replicatsets.
- // Larger number = more responsive replica management, but more MEM load.
- LookupCacheSizeForRS int32 `json:"lookupCacheSizeForRS"`
- // lookupCacheSizeForDaemonSet is the size of lookup cache for daemonsets.
- // Larger number = more responsive daemonset, but more MEM load.
- LookupCacheSizeForDaemonSet int32 `json:"lookupCacheSizeForDaemonSet"`
- // serviceSyncPeriod is the period for syncing services with their external
- // load balancers.
- ServiceSyncPeriod unversioned.Duration `json:"serviceSyncPeriod"`
- // nodeSyncPeriod is the period for syncing nodes from cloudprovider. Longer
- // periods will result in fewer calls to cloud provider, but may delay addition
- // of new nodes to cluster.
- NodeSyncPeriod unversioned.Duration `json:"nodeSyncPeriod"`
- // resourceQuotaSyncPeriod is the period for syncing quota usage status
- // in the system.
- ResourceQuotaSyncPeriod unversioned.Duration `json:"resourceQuotaSyncPeriod"`
- // namespaceSyncPeriod is the period for syncing namespace life-cycle
- // updates.
- NamespaceSyncPeriod unversioned.Duration `json:"namespaceSyncPeriod"`
- // pvClaimBinderSyncPeriod is the period for syncing persistent volumes
- // and persistent volume claims.
- PVClaimBinderSyncPeriod unversioned.Duration `json:"pvClaimBinderSyncPeriod"`
- // minResyncPeriod is the resync period in reflectors; will be random between
- // minResyncPeriod and 2*minResyncPeriod.
- MinResyncPeriod unversioned.Duration `json:"minResyncPeriod"`
- // terminatedPodGCThreshold is the number of terminated pods that can exist
- // before the terminated pod garbage collector starts deleting terminated pods.
- // If <= 0, the terminated pod garbage collector is disabled.
- TerminatedPodGCThreshold int32 `json:"terminatedPodGCThreshold"`
- // horizontalPodAutoscalerSyncPeriod is the period for syncing the number of
- // pods in horizontal pod autoscaler.
- HorizontalPodAutoscalerSyncPeriod unversioned.Duration `json:"horizontalPodAutoscalerSyncPeriod"`
- // deploymentControllerSyncPeriod is the period for syncing the deployments.
- DeploymentControllerSyncPeriod unversioned.Duration `json:"deploymentControllerSyncPeriod"`
- // podEvictionTimeout is the grace period for deleting pods on failed nodes.
- PodEvictionTimeout unversioned.Duration `json:"podEvictionTimeout"`
- // deletingPodsQps is the number of nodes per second on which pods are deleted in
- // case of node failure.
- DeletingPodsQps float32 `json:"deletingPodsQps"`
- // deletingPodsBurst is the number of nodes on which pods are bursty deleted in
- // case of node failure. For more details look into RateLimiter.
- DeletingPodsBurst int32 `json:"deletingPodsBurst"`
- // nodeMontiorGracePeriod is the amount of time which we allow a running node to be
- // unresponsive before marking it unhealty. Must be N times more than kubelet's
- // nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet
- // to post node status.
- NodeMonitorGracePeriod unversioned.Duration `json:"nodeMonitorGracePeriod"`
- // registerRetryCount is the number of retries for initial node registration.
- // Retry interval equals node-sync-period.
- RegisterRetryCount int32 `json:"registerRetryCount"`
- // nodeStartupGracePeriod is the amount of time which we allow starting a node to
- // be unresponsive before marking it unhealty.
- NodeStartupGracePeriod unversioned.Duration `json:"nodeStartupGracePeriod"`
- // nodeMonitorPeriod is the period for syncing NodeStatus in NodeController.
- NodeMonitorPeriod unversioned.Duration `json:"nodeMonitorPeriod"`
- // serviceAccountKeyFile is the filename containing a PEM-encoded private RSA key
- // used to sign service account tokens.
- ServiceAccountKeyFile string `json:"serviceAccountKeyFile"`
- // enableProfiling enables profiling via web interface host:port/debug/pprof/
- EnableProfiling bool `json:"enableProfiling"`
- // clusterName is the instance prefix for the cluster.
- ClusterName string `json:"clusterName"`
- // clusterCIDR is CIDR Range for Pods in cluster.
- ClusterCIDR string `json:"clusterCIDR"`
- // serviceCIDR is CIDR Range for Services in cluster.
- ServiceCIDR string `json:"serviceCIDR"`
- // NodeCIDRMaskSize is the mask size for node cidr in cluster.
- NodeCIDRMaskSize int32 `json:"nodeCIDRMaskSize"`
- // allocateNodeCIDRs enables CIDRs for Pods to be allocated and, if
- // ConfigureCloudRoutes is true, to be set on the cloud provider.
- AllocateNodeCIDRs bool `json:"allocateNodeCIDRs"`
- // configureCloudRoutes enables CIDRs allocated with allocateNodeCIDRs
- // to be configured on the cloud provider.
- ConfigureCloudRoutes bool `json:"configureCloudRoutes"`
- // rootCAFile is the root certificate authority will be included in service
- // account's token secret. This must be a valid PEM-encoded CA bundle.
- RootCAFile string `json:"rootCAFile"`
- // contentType is contentType of requests sent to apiserver.
- ContentType string `json:"contentType"`
- // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
- KubeAPIQPS float32 `json:"kubeAPIQPS"`
- // kubeAPIBurst is the burst to use while talking with kubernetes apiserver.
- KubeAPIBurst int32 `json:"kubeAPIBurst"`
- // leaderElection defines the configuration of leader election client.
- LeaderElection LeaderElectionConfiguration `json:"leaderElection"`
- // volumeConfiguration holds configuration for volume related features.
- VolumeConfiguration VolumeConfiguration `json:"volumeConfiguration"`
- // How long to wait between starting controller managers
- ControllerStartInterval unversioned.Duration `json:"controllerStartInterval"`
- // enables the generic garbage collector. MUST be synced with the
- // corresponding flag of the kube-apiserver. WARNING: the generic garbage
- // collector is an alpha feature.
- EnableGarbageCollector bool `json:"enableGarbageCollector"`
-}
-
-// VolumeConfiguration contains *all* enumerated flags meant to configure all volume
-// plugins. From this config, the controller-manager binary will create many instances of
-// volume.VolumeConfig, each containing only the configuration needed for that plugin which
-// are then passed to the appropriate plugin. The ControllerManager binary is the only part
-// of the code which knows what plugins are supported and which flags correspond to each plugin.
-type VolumeConfiguration struct {
- // enableHostPathProvisioning enables HostPath PV provisioning when running without a
- // cloud provider. This allows testing and development of provisioning features. HostPath
- // provisioning is not supported in any way, won't work in a multi-node cluster, and
- // should not be used for anything other than testing or development.
- EnableHostPathProvisioning bool `json:"enableHostPathProvisioning"`
- // enableDynamicProvisioning enables the provisioning of volumes when running within an environment
- // that supports dynamic provisioning. Defaults to true.
- EnableDynamicProvisioning bool `json:"enableDynamicProvisioning"`
- // persistentVolumeRecyclerConfiguration holds configuration for persistent volume plugins.
- PersistentVolumeRecyclerConfiguration PersistentVolumeRecyclerConfiguration `json:"persitentVolumeRecyclerConfiguration"`
- // volumePluginDir is the full path of the directory in which the flex
- // volume plugin should search for additional third party volume plugins
- FlexVolumePluginDir string `json:"flexVolumePluginDir"`
-}
-
-type PersistentVolumeRecyclerConfiguration struct {
- // maximumRetry is number of retries the PV recycler will execute on failure to recycle
- // PV.
- MaximumRetry int32 `json:"maximumRetry"`
- // minimumTimeoutNFS is the minimum ActiveDeadlineSeconds to use for an NFS Recycler
- // pod.
- MinimumTimeoutNFS int32 `json:"minimumTimeoutNFS"`
- // podTemplateFilePathNFS is the file path to a pod definition used as a template for
- // NFS persistent volume recycling
- PodTemplateFilePathNFS string `json:"podTemplateFilePathNFS"`
- // incrementTimeoutNFS is the increment of time added per Gi to ActiveDeadlineSeconds
- // for an NFS scrubber pod.
- IncrementTimeoutNFS int32 `json:"incrementTimeoutNFS"`
- // podTemplateFilePathHostPath is the file path to a pod definition used as a template for
- // HostPath persistent volume recycling. This is for development and testing only and
- // will not work in a multi-node cluster.
- PodTemplateFilePathHostPath string `json:"podTemplateFilePathHostPath"`
- // minimumTimeoutHostPath is the minimum ActiveDeadlineSeconds to use for a HostPath
- // Recycler pod. This is for development and testing only and will not work in a multi-node
- // cluster.
- MinimumTimeoutHostPath int32 `json:"minimumTimeoutHostPath"`
- // incrementTimeoutHostPath is the increment of time added per Gi to ActiveDeadlineSeconds
- // for a HostPath scrubber pod. This is for development and testing only and will not work
- // in a multi-node cluster.
- IncrementTimeoutHostPath int32 `json:"incrementTimeoutHostPath"`
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go
deleted file mode 100644
index 160b0f9..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/conversion_generated.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// +build !ignore_autogenerated
-
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// This file was autogenerated by conversion-gen. Do not edit it manually!
-
-package v1alpha1
-
-import (
- api "k8s.io/kubernetes/pkg/api"
- componentconfig "k8s.io/kubernetes/pkg/apis/componentconfig"
- conversion "k8s.io/kubernetes/pkg/conversion"
-)
-
-func init() {
- if err := api.Scheme.AddGeneratedConversionFuncs(
- Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration,
- Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration,
- Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration,
- Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration,
- Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration,
- Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration,
- ); err != nil {
- // if one of the conversion functions is malformed, detect it immediately.
- panic(err)
- }
-}
-
-func autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error {
- SetDefaults_KubeProxyConfiguration(in)
- if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
- return err
- }
- out.BindAddress = in.BindAddress
- out.ClusterCIDR = in.ClusterCIDR
- out.HealthzBindAddress = in.HealthzBindAddress
- out.HealthzPort = in.HealthzPort
- out.HostnameOverride = in.HostnameOverride
- out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit
- out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
- out.KubeconfigPath = in.KubeconfigPath
- out.MasqueradeAll = in.MasqueradeAll
- out.Master = in.Master
- out.OOMScoreAdj = in.OOMScoreAdj
- out.Mode = componentconfig.ProxyMode(in.Mode)
- out.PortRange = in.PortRange
- out.ResourceContainer = in.ResourceContainer
- out.UDPIdleTimeout = in.UDPIdleTimeout
- out.ConntrackMax = in.ConntrackMax
- out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
- return nil
-}
-
-func Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in *KubeProxyConfiguration, out *componentconfig.KubeProxyConfiguration, s conversion.Scope) error {
- return autoConvert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration(in, out, s)
-}
-
-func autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error {
- if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
- return err
- }
- out.BindAddress = in.BindAddress
- out.ClusterCIDR = in.ClusterCIDR
- out.HealthzBindAddress = in.HealthzBindAddress
- out.HealthzPort = in.HealthzPort
- out.HostnameOverride = in.HostnameOverride
- out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit
- out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
- out.KubeconfigPath = in.KubeconfigPath
- out.MasqueradeAll = in.MasqueradeAll
- out.Master = in.Master
- out.OOMScoreAdj = in.OOMScoreAdj
- out.Mode = ProxyMode(in.Mode)
- out.PortRange = in.PortRange
- out.ResourceContainer = in.ResourceContainer
- out.UDPIdleTimeout = in.UDPIdleTimeout
- out.ConntrackMax = in.ConntrackMax
- out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
- return nil
-}
-
-func Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in *componentconfig.KubeProxyConfiguration, out *KubeProxyConfiguration, s conversion.Scope) error {
- return autoConvert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration(in, out, s)
-}
-
-func autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error {
- SetDefaults_KubeSchedulerConfiguration(in)
- if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
- return err
- }
- out.Port = int32(in.Port)
- out.Address = in.Address
- out.AlgorithmProvider = in.AlgorithmProvider
- out.PolicyConfigFile = in.PolicyConfigFile
- if err := api.Convert_Pointer_bool_To_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil {
- return err
- }
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = int32(in.KubeAPIBurst)
- out.SchedulerName = in.SchedulerName
- out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
- out.FailureDomains = in.FailureDomains
- if err := Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil {
- return err
- }
- return nil
-}
-
-func Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration, out *componentconfig.KubeSchedulerConfiguration, s conversion.Scope) error {
- return autoConvert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration(in, out, s)
-}
-
-func autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error {
- if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
- return err
- }
- out.Port = int(in.Port)
- out.Address = in.Address
- out.AlgorithmProvider = in.AlgorithmProvider
- out.PolicyConfigFile = in.PolicyConfigFile
- if err := api.Convert_bool_To_Pointer_bool(&in.EnableProfiling, &out.EnableProfiling, s); err != nil {
- return err
- }
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = int(in.KubeAPIBurst)
- out.SchedulerName = in.SchedulerName
- out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
- out.FailureDomains = in.FailureDomains
- if err := Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, s); err != nil {
- return err
- }
- return nil
-}
-
-func Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in *componentconfig.KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, s conversion.Scope) error {
- return autoConvert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration(in, out, s)
-}
-
-func autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error {
- SetDefaults_LeaderElectionConfiguration(in)
- if err := api.Convert_Pointer_bool_To_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil {
- return err
- }
- out.LeaseDuration = in.LeaseDuration
- out.RenewDeadline = in.RenewDeadline
- out.RetryPeriod = in.RetryPeriod
- return nil
-}
-
-func Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *componentconfig.LeaderElectionConfiguration, s conversion.Scope) error {
- return autoConvert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration(in, out, s)
-}
-
-func autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error {
- if err := api.Convert_bool_To_Pointer_bool(&in.LeaderElect, &out.LeaderElect, s); err != nil {
- return err
- }
- out.LeaseDuration = in.LeaseDuration
- out.RenewDeadline = in.RenewDeadline
- out.RetryPeriod = in.RetryPeriod
- return nil
-}
-
-func Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *componentconfig.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error {
- return autoConvert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in, out, s)
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go
deleted file mode 100644
index 04d9ab0..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/deep_copy_generated.go
+++ /dev/null
@@ -1,110 +0,0 @@
-// +build !ignore_autogenerated
-
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// This file was autogenerated by deepcopy-gen. Do not edit it manually!
-
-package v1alpha1
-
-import (
- api "k8s.io/kubernetes/pkg/api"
- conversion "k8s.io/kubernetes/pkg/conversion"
-)
-
-func init() {
- if err := api.Scheme.AddGeneratedDeepCopyFuncs(
- DeepCopy_v1alpha1_KubeProxyConfiguration,
- DeepCopy_v1alpha1_KubeSchedulerConfiguration,
- DeepCopy_v1alpha1_LeaderElectionConfiguration,
- ); err != nil {
- // if one of the deep copy functions is malformed, detect it immediately.
- panic(err)
- }
-}
-
-func DeepCopy_v1alpha1_KubeProxyConfiguration(in KubeProxyConfiguration, out *KubeProxyConfiguration, c *conversion.Cloner) error {
- out.TypeMeta = in.TypeMeta
- out.BindAddress = in.BindAddress
- out.ClusterCIDR = in.ClusterCIDR
- out.HealthzBindAddress = in.HealthzBindAddress
- out.HealthzPort = in.HealthzPort
- out.HostnameOverride = in.HostnameOverride
- if in.IPTablesMasqueradeBit != nil {
- in, out := in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
- *out = new(int32)
- **out = *in
- } else {
- out.IPTablesMasqueradeBit = nil
- }
- out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
- out.KubeconfigPath = in.KubeconfigPath
- out.MasqueradeAll = in.MasqueradeAll
- out.Master = in.Master
- if in.OOMScoreAdj != nil {
- in, out := in.OOMScoreAdj, &out.OOMScoreAdj
- *out = new(int32)
- **out = *in
- } else {
- out.OOMScoreAdj = nil
- }
- out.Mode = in.Mode
- out.PortRange = in.PortRange
- out.ResourceContainer = in.ResourceContainer
- out.UDPIdleTimeout = in.UDPIdleTimeout
- out.ConntrackMax = in.ConntrackMax
- out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
- return nil
-}
-
-func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in KubeSchedulerConfiguration, out *KubeSchedulerConfiguration, c *conversion.Cloner) error {
- out.TypeMeta = in.TypeMeta
- out.Port = in.Port
- out.Address = in.Address
- out.AlgorithmProvider = in.AlgorithmProvider
- out.PolicyConfigFile = in.PolicyConfigFile
- if in.EnableProfiling != nil {
- in, out := in.EnableProfiling, &out.EnableProfiling
- *out = new(bool)
- **out = *in
- } else {
- out.EnableProfiling = nil
- }
- out.ContentType = in.ContentType
- out.KubeAPIQPS = in.KubeAPIQPS
- out.KubeAPIBurst = in.KubeAPIBurst
- out.SchedulerName = in.SchedulerName
- out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
- out.FailureDomains = in.FailureDomains
- if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(in.LeaderElection, &out.LeaderElection, c); err != nil {
- return err
- }
- return nil
-}
-
-func DeepCopy_v1alpha1_LeaderElectionConfiguration(in LeaderElectionConfiguration, out *LeaderElectionConfiguration, c *conversion.Cloner) error {
- if in.LeaderElect != nil {
- in, out := in.LeaderElect, &out.LeaderElect
- *out = new(bool)
- **out = *in
- } else {
- out.LeaderElect = nil
- }
- out.LeaseDuration = in.LeaseDuration
- out.RenewDeadline = in.RenewDeadline
- out.RetryPeriod = in.RetryPeriod
- return nil
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go
deleted file mode 100644
index b40b3e4..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/defaults.go
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package v1alpha1
-
-import (
- "time"
-
- "k8s.io/kubernetes/pkg/api"
- "k8s.io/kubernetes/pkg/api/unversioned"
- "k8s.io/kubernetes/pkg/kubelet/qos"
- "k8s.io/kubernetes/pkg/master/ports"
- "k8s.io/kubernetes/pkg/runtime"
-)
-
-func addDefaultingFuncs(scheme *runtime.Scheme) {
- scheme.AddDefaultingFuncs(
- SetDefaults_KubeProxyConfiguration,
- SetDefaults_KubeSchedulerConfiguration,
- SetDefaults_LeaderElectionConfiguration,
- )
-}
-
-func SetDefaults_KubeProxyConfiguration(obj *KubeProxyConfiguration) {
- if obj.BindAddress == "" {
- obj.BindAddress = "0.0.0.0"
- }
- if obj.HealthzPort == 0 {
- obj.HealthzPort = 10249
- }
- if obj.HealthzBindAddress == "" {
- obj.HealthzBindAddress = "127.0.0.1"
- }
- if obj.OOMScoreAdj == nil {
- temp := int32(qos.KubeProxyOOMScoreAdj)
- obj.OOMScoreAdj = &temp
- }
- if obj.ResourceContainer == "" {
- obj.ResourceContainer = "/kube-proxy"
- }
- if obj.IPTablesSyncPeriod.Duration == 0 {
- obj.IPTablesSyncPeriod = unversioned.Duration{Duration: 30 * time.Second}
- }
- zero := unversioned.Duration{}
- if obj.UDPIdleTimeout == zero {
- obj.UDPIdleTimeout = unversioned.Duration{Duration: 250 * time.Millisecond}
- }
- if obj.ConntrackMax == 0 {
- obj.ConntrackMax = 256 * 1024 // 4x default (64k)
- }
- if obj.IPTablesMasqueradeBit == nil {
- temp := int32(14)
- obj.IPTablesMasqueradeBit = &temp
- }
- if obj.ConntrackTCPEstablishedTimeout == zero {
- obj.ConntrackTCPEstablishedTimeout = unversioned.Duration{Duration: 24 * time.Hour} // 1 day (1/5 default)
- }
-}
-
-func SetDefaults_KubeSchedulerConfiguration(obj *KubeSchedulerConfiguration) {
- if obj.Port == 0 {
- obj.Port = ports.SchedulerPort
- }
- if obj.Address == "" {
- obj.Address = "0.0.0.0"
- }
- if obj.AlgorithmProvider == "" {
- obj.AlgorithmProvider = "DefaultProvider"
- }
- if obj.ContentType == "" {
- obj.ContentType = "application/vnd.kubernetes.protobuf"
- }
- if obj.KubeAPIQPS == 0 {
- obj.KubeAPIQPS = 50.0
- }
- if obj.KubeAPIBurst == 0 {
- obj.KubeAPIBurst = 100
- }
- if obj.SchedulerName == "" {
- obj.SchedulerName = api.DefaultSchedulerName
- }
- if obj.HardPodAffinitySymmetricWeight == 0 {
- obj.HardPodAffinitySymmetricWeight = api.DefaultHardPodAffinitySymmetricWeight
- }
- if obj.FailureDomains == "" {
- obj.FailureDomains = api.DefaultFailureDomains
- }
-}
-
-func SetDefaults_LeaderElectionConfiguration(obj *LeaderElectionConfiguration) {
- zero := unversioned.Duration{}
- if obj.LeaseDuration == zero {
- obj.LeaseDuration = unversioned.Duration{Duration: 15 * time.Second}
- }
- if obj.RenewDeadline == zero {
- obj.RenewDeadline = unversioned.Duration{Duration: 10 * time.Second}
- }
- if obj.RetryPeriod == zero {
- obj.RetryPeriod = unversioned.Duration{Duration: 2 * time.Second}
- }
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/doc.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/doc.go
deleted file mode 100644
index 621e806..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/doc.go
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-Copyright 2016 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// +k8s:deepcopy-gen=package,register
-// +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/componentconfig
-
-package v1alpha1
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go
deleted file mode 100644
index 17fb52a..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/register.go
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package v1alpha1
-
-import (
- "k8s.io/kubernetes/pkg/api/unversioned"
- "k8s.io/kubernetes/pkg/runtime"
-)
-
-// GroupName is the group name use in this package
-const GroupName = "componentconfig"
-
-// SchemeGroupVersion is group version used to register these objects
-var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"}
-
-func AddToScheme(scheme *runtime.Scheme) {
- addKnownTypes(scheme)
- addDefaultingFuncs(scheme)
-}
-
-func addKnownTypes(scheme *runtime.Scheme) {
- scheme.AddKnownTypes(SchemeGroupVersion,
- &KubeProxyConfiguration{},
- &KubeSchedulerConfiguration{},
- )
-}
diff --git a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go b/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go
deleted file mode 100644
index 817468a..0000000
--- a/kube2msb/src/vendor/k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1/types.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
-Copyright 2015 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package v1alpha1
-
-import "k8s.io/kubernetes/pkg/api/unversioned"
-
-type KubeProxyConfiguration struct {
- unversioned.TypeMeta
-
- // bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
- // for all interfaces)
- BindAddress string `json:"bindAddress"`
- // clusterCIDR is the CIDR range of the pods in the cluster. It is used to
- // bridge traffic coming from outside of the cluster. If not provided,
- // no off-cluster bridging will be performed.
- ClusterCIDR string `json:"clusterCIDR"`
- // healthzBindAddress is the IP address for the health check server to serve on,
- // defaulting to 127.0.0.1 (set to 0.0.0.0 for all interfaces)
- HealthzBindAddress string `json:"healthzBindAddress"`
- // healthzPort is the port to bind the health check server. Use 0 to disable.
- HealthzPort int32 `json:"healthzPort"`
- // hostnameOverride, if non-empty, will be used as the identity instead of the actual hostname.
- HostnameOverride string `json:"hostnameOverride"`
- // iptablesMasqueradeBit is the bit of the iptables fwmark space to use for SNAT if using
- // the pure iptables proxy mode. Values must be within the range [0, 31].
- IPTablesMasqueradeBit *int32 `json:"iptablesMasqueradeBit"`
- // iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
- // '2h22m'). Must be greater than 0.
- IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"`
- // kubeconfigPath is the path to the kubeconfig file with authorization information (the
- // master location is set by the master flag).
- KubeconfigPath string `json:"kubeconfigPath"`
- // masqueradeAll tells kube-proxy to SNAT everything if using the pure iptables proxy mode.
- MasqueradeAll bool `json:"masqueradeAll"`
- // master is the address of the Kubernetes API server (overrides any value in kubeconfig)
- Master string `json:"master"`
- // oomScoreAdj is the oom-score-adj value for kube-proxy process. Values must be within
- // the range [-1000, 1000]
- OOMScoreAdj *int32 `json:"oomScoreAdj"`
- // mode specifies which proxy mode to use.
- Mode ProxyMode `json:"mode"`
- // portRange is the range of host ports (beginPort-endPort, inclusive) that may be consumed
- // in order to proxy service traffic. If unspecified (0-0) then ports will be randomly chosen.
- PortRange string `json:"portRange"`
- // resourceContainer is the bsolute name of the resource-only container to create and run
- // the Kube-proxy in (Default: /kube-proxy).
- ResourceContainer string `json:"resourceContainer"`
- // udpIdleTimeout is how long an idle UDP connection will be kept open (e.g. '250ms', '2s').
- // Must be greater than 0. Only applicable for proxyMode=userspace.
- UDPIdleTimeout unversioned.Duration `json:"udpTimeoutMilliseconds"`
- // conntrackMax is the maximum number of NAT connections to track (0 to leave as-is)")
- ConntrackMax int32 `json:"conntrackMax"`
- // conntrackTCPEstablishedTimeout is how long an idle UDP connection will be kept open
- // (e.g. '250ms', '2s'). Must be greater than 0. Only applicable for proxyMode is Userspace
- ConntrackTCPEstablishedTimeout unversioned.Duration `json:"conntrackTCPEstablishedTimeout"`
-}
-
-// Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables'
-// (experimental). If blank, look at the Node object on the Kubernetes API and respect the
-// 'net.experimental.kubernetes.io/proxy-mode' annotation if provided. Otherwise use the
-// best-available proxy (currently userspace, but may change in future versions). If the
-// iptables proxy is selected, regardless of how, but the system's kernel or iptables
-// versions are insufficient, this always falls back to the userspace proxy.
-type ProxyMode string
-
-const (
- ProxyModeUserspace ProxyMode = "userspace"
- ProxyModeIPTables ProxyMode = "iptables"
-)
-
-type KubeSchedulerConfiguration struct {
- unversioned.TypeMeta
-
- // port is the port that the scheduler's http service runs on.
- Port int `json:"port"`
- // address is the IP address to serve on.
- Address string `json:"address"`
- // algorithmProvider is the scheduling algorithm provider to use.
- AlgorithmProvider string `json:"algorithmProvider"`
- // policyConfigFile is the filepath to the scheduler policy configuration.
- PolicyConfigFile string `json:"policyConfigFile"`
- // enableProfiling enables profiling via web interface.
- EnableProfiling *bool `json:"enableProfiling"`
- // contentType is contentType of requests sent to apiserver.
- ContentType string `json:"contentType"`
- // kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
- KubeAPIQPS float32 `json:"kubeAPIQPS"`
- // kubeAPIBurst is the QPS burst to use while talking with kubernetes apiserver.
- KubeAPIBurst int `json:"kubeAPIBurst"`
- // schedulerName is name of the scheduler, used to select which pods
- // will be processed by this scheduler, based on pod's annotation with
- // key 'scheduler.alpha.kubernetes.io/name'.
- SchedulerName string `json:"schedulerName"`
- // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule
- // corresponding to every RequiredDuringScheduling affinity rule.
- // HardPodAffinitySymmetricWeight represents the weight of implicit PreferredDuringScheduling affinity rule, in the range 0-100.
- HardPodAffinitySymmetricWeight int `json:"hardPodAffinitySymmetricWeight"`
- // Indicate the "all topologies" set for empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity.
- FailureDomains string `json:"failureDomains"`
- // leaderElection defines the configuration of leader election client.
- LeaderElection LeaderElectionConfiguration `json:"leaderElection"`
-}
-
-// LeaderElectionConfiguration defines the configuration of leader election
-// clients for components that can run with leader election enabled.
-type LeaderElectionConfiguration struct {
- // leaderElect enables a leader election client to gain leadership
- // before executing the main loop. Enable this when running replicated
- // components for high availability.
- LeaderElect *bool `json:"leaderElect"`
- // leaseDuration is the duration that non-leader candidates will wait
- // after observing a leadership renewal until attempting to acquire
- // leadership of a led but unrenewed leader slot. This is effectively the
- // maximum duration that a leader can be stopped before it is replaced
- // by another candidate. This is only applicable if leader election is
- // enabled.
- LeaseDuration unversioned.Duration `json:"leaseDuration"`
- // renewDeadline is the interval between attempts by the acting master to
- // renew a leadership slot before it stops leading. This must be less
- // than or equal to the lease duration. This is only applicable if leader
- // election is enabled.
- RenewDeadline unversioned.Duration `json:"renewDeadline"`
- // retryPeriod is the duration the clients should wait between attempting
- // acquisition and renewal of a leadership. This is only applicable if
- // leader election is enabled.
- RetryPeriod unversioned.Duration `json:"retryPeriod"`
-}