Commit e44e71ca authored by mqliang's avatar mqliang

make cache size configurable

parent d9a35a25
...@@ -196,7 +196,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string ...@@ -196,7 +196,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
Run(3, wait.NeverStop) Run(3, wait.NeverStop)
// TODO: Write an integration test for the replication controllers watch. // TODO: Write an integration test for the replication controllers watch.
go replicationcontroller.NewReplicationManager(clientset, controller.NoResyncPeriodFunc, replicationcontroller.BurstReplicas). go replicationcontroller.NewReplicationManager(clientset, controller.NoResyncPeriodFunc, replicationcontroller.BurstReplicas, 4096).
Run(3, wait.NeverStop) Run(3, wait.NeverStop)
nodeController := nodecontroller.NewNodeController(nil, clientset, 5*time.Minute, util.NewFakeAlwaysRateLimiter(), util.NewFakeAlwaysRateLimiter(), nodeController := nodecontroller.NewNodeController(nil, clientset, 5*time.Minute, util.NewFakeAlwaysRateLimiter(), util.NewFakeAlwaysRateLimiter(),
......
...@@ -181,6 +181,7 @@ func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig ...@@ -181,6 +181,7 @@ func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig
clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replication-controller")), clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replication-controller")),
ResyncPeriod(s), ResyncPeriod(s),
replicationcontroller.BurstReplicas, replicationcontroller.BurstReplicas,
s.LookupCacheSizeForRC,
).Run(s.ConcurrentRCSyncs, wait.NeverStop) ).Run(s.ConcurrentRCSyncs, wait.NeverStop)
if s.TerminatedPodGCThreshold > 0 { if s.TerminatedPodGCThreshold > 0 {
...@@ -285,7 +286,7 @@ func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig ...@@ -285,7 +286,7 @@ func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig
if containsResource(resources, "replicasets") { if containsResource(resources, "replicasets") {
glog.Infof("Starting ReplicaSet controller") glog.Infof("Starting ReplicaSet controller")
go replicaset.NewReplicaSetController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replicaset-controller")), ResyncPeriod(s), replicaset.BurstReplicas). go replicaset.NewReplicaSetController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replicaset-controller")), ResyncPeriod(s), replicaset.BurstReplicas, s.LookupCacheSizeForRS).
Run(s.ConcurrentRSSyncs, wait.NeverStop) Run(s.ConcurrentRSSyncs, wait.NeverStop)
} }
} }
......
...@@ -53,6 +53,8 @@ func NewCMServer() *CMServer { ...@@ -53,6 +53,8 @@ func NewCMServer() *CMServer {
ConcurrentResourceQuotaSyncs: 5, ConcurrentResourceQuotaSyncs: 5,
ConcurrentDeploymentSyncs: 5, ConcurrentDeploymentSyncs: 5,
ConcurrentNamespaceSyncs: 2, ConcurrentNamespaceSyncs: 2,
LookupCacheSizeForRC: 4096,
LookupCacheSizeForRS: 4096,
ServiceSyncPeriod: unversioned.Duration{5 * time.Minute}, ServiceSyncPeriod: unversioned.Duration{5 * time.Minute},
NodeSyncPeriod: unversioned.Duration{10 * time.Second}, NodeSyncPeriod: unversioned.Duration{10 * time.Second},
ResourceQuotaSyncPeriod: unversioned.Duration{5 * time.Minute}, ResourceQuotaSyncPeriod: unversioned.Duration{5 * time.Minute},
...@@ -98,6 +100,8 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) { ...@@ -98,6 +100,8 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.ConcurrentResourceQuotaSyncs, "concurrent-resource-quota-syncs", s.ConcurrentResourceQuotaSyncs, "The number of resource quotas that are allowed to sync concurrently. Larger number = more responsive quota management, but more CPU (and network) load") fs.IntVar(&s.ConcurrentResourceQuotaSyncs, "concurrent-resource-quota-syncs", s.ConcurrentResourceQuotaSyncs, "The number of resource quotas that are allowed to sync concurrently. Larger number = more responsive quota management, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentDeploymentSyncs, "concurrent-deployment-syncs", s.ConcurrentDeploymentSyncs, "The number of deployment objects that are allowed to sync concurrently. Larger number = more responsive deployments, but more CPU (and network) load") fs.IntVar(&s.ConcurrentDeploymentSyncs, "concurrent-deployment-syncs", s.ConcurrentDeploymentSyncs, "The number of deployment objects that are allowed to sync concurrently. Larger number = more responsive deployments, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentNamespaceSyncs, "concurrent-namespace-syncs", s.ConcurrentNamespaceSyncs, "The number of namespace objects that are allowed to sync concurrently. Larger number = more responsive namespace termination, but more CPU (and network) load") fs.IntVar(&s.ConcurrentNamespaceSyncs, "concurrent-namespace-syncs", s.ConcurrentNamespaceSyncs, "The number of namespace objects that are allowed to sync concurrently. Larger number = more responsive namespace termination, but more CPU (and network) load")
fs.IntVar(&s.LookupCacheSizeForRC, "rc-lookup-cache-size", s.LookupCacheSizeForRC, "The the size of lookup cache for replication controllers. Larger number = more responsive replica management, but more MEM load.")
fs.IntVar(&s.LookupCacheSizeForRS, "rs-lookup-cache-size", s.LookupCacheSizeForRS, "The the size of lookup cache for replicatsets. Larger number = more responsive replica management, but more MEM load.")
fs.DurationVar(&s.ServiceSyncPeriod.Duration, "service-sync-period", s.ServiceSyncPeriod.Duration, "The period for syncing services with their external load balancers") fs.DurationVar(&s.ServiceSyncPeriod.Duration, "service-sync-period", s.ServiceSyncPeriod.Duration, "The period for syncing services with their external load balancers")
fs.DurationVar(&s.NodeSyncPeriod.Duration, "node-sync-period", s.NodeSyncPeriod.Duration, ""+ fs.DurationVar(&s.NodeSyncPeriod.Duration, "node-sync-period", s.NodeSyncPeriod.Duration, ""+
"The period for syncing nodes from cloudprovider. Longer periods will result in "+ "The period for syncing nodes from cloudprovider. Longer periods will result in "+
......
...@@ -131,7 +131,7 @@ func (s *CMServer) Run(_ []string) error { ...@@ -131,7 +131,7 @@ func (s *CMServer) Run(_ []string) error {
endpoints := s.createEndpointController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "endpoint-controller"))) endpoints := s.createEndpointController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "endpoint-controller")))
go endpoints.Run(s.ConcurrentEndpointSyncs, wait.NeverStop) go endpoints.Run(s.ConcurrentEndpointSyncs, wait.NeverStop)
go replicationcontroller.NewReplicationManager(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replication-controller")), s.resyncPeriod, replicationcontroller.BurstReplicas). go replicationcontroller.NewReplicationManager(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replication-controller")), s.resyncPeriod, replicationcontroller.BurstReplicas, s.LookupCacheSizeForRC).
Run(s.ConcurrentRCSyncs, wait.NeverStop) Run(s.ConcurrentRCSyncs, wait.NeverStop)
if s.TerminatedPodGCThreshold > 0 { if s.TerminatedPodGCThreshold > 0 {
...@@ -238,7 +238,7 @@ func (s *CMServer) Run(_ []string) error { ...@@ -238,7 +238,7 @@ func (s *CMServer) Run(_ []string) error {
if containsResource(resources, "replicasets") { if containsResource(resources, "replicasets") {
glog.Infof("Starting ReplicaSet controller") glog.Infof("Starting ReplicaSet controller")
go replicaset.NewReplicaSetController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replicaset-controller")), s.resyncPeriod, replicaset.BurstReplicas). go replicaset.NewReplicaSetController(clientset.NewForConfigOrDie(client.AddUserAgent(kubeconfig, "replicaset-controller")), s.resyncPeriod, replicaset.BurstReplicas, s.LookupCacheSizeForRS).
Run(s.ConcurrentRSSyncs, wait.NeverStop) Run(s.ConcurrentRSSyncs, wait.NeverStop)
} }
} }
......
...@@ -98,14 +98,16 @@ kube-controller-manager ...@@ -98,14 +98,16 @@ kube-controller-manager
--pv-recycler-pod-template-filepath-nfs="": The file path to a pod definition used as a template for NFS persistent volume recycling --pv-recycler-pod-template-filepath-nfs="": The file path to a pod definition used as a template for NFS persistent volume recycling
--pv-recycler-timeout-increment-hostpath=30: 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. --pv-recycler-timeout-increment-hostpath=30: 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.
--pvclaimbinder-sync-period=10m0s: The period for syncing persistent volumes and persistent volume claims --pvclaimbinder-sync-period=10m0s: The period for syncing persistent volumes and persistent volume claims
--rc-lookup-cache-size=4096: The the size of lookup cache for replication controllers. Larger number = more responsive replica management, but more MEM load.
--resource-quota-sync-period=5m0s: The period for syncing quota usage status in the system --resource-quota-sync-period=5m0s: The period for syncing quota usage status in the system
--root-ca-file="": If set, this root certificate authority will be included in service account's token secret. This must be a valid PEM-encoded CA bundle. --root-ca-file="": If set, this root certificate authority will be included in service account's token secret. This must be a valid PEM-encoded CA bundle.
--rs-lookup-cache-size=4096: The the size of lookup cache for replicatsets. Larger number = more responsive replica management, but more MEM load.
--service-account-private-key-file="": Filename containing a PEM-encoded private RSA key used to sign service account tokens. --service-account-private-key-file="": Filename containing a PEM-encoded private RSA key used to sign service account tokens.
--service-sync-period=5m0s: The period for syncing services with their external load balancers --service-sync-period=5m0s: The period for syncing services with their external load balancers
--terminated-pod-gc-threshold=12500: 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. --terminated-pod-gc-threshold=12500: 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.
``` ```
###### Auto generated by spf13/cobra on 8-Feb-2016 ###### Auto generated by spf13/cobra on 24-Feb-2016
<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
......
...@@ -289,6 +289,7 @@ pv-recycler-pod-template-filepath-nfs ...@@ -289,6 +289,7 @@ pv-recycler-pod-template-filepath-nfs
pv-recycler-maximum-retry pv-recycler-maximum-retry
pv-recycler-timeout-increment-hostpath pv-recycler-timeout-increment-hostpath
pvclaimbinder-sync-period pvclaimbinder-sync-period
rc-lookup-cache-size
read-only-port read-only-port
really-crash-for-testing really-crash-for-testing
reconcile-cidr reconcile-cidr
...@@ -314,6 +315,7 @@ rkt-path ...@@ -314,6 +315,7 @@ rkt-path
rkt-stage1-image rkt-stage1-image
root-ca-file root-ca-file
root-dir root-dir
rs-lookup-cache-size
run-proxy run-proxy
runtime-config runtime-config
runtime-cgroups runtime-cgroups
......
...@@ -5679,16 +5679,16 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -5679,16 +5679,16 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} else { } else {
yysep2 := !z.EncBinary() yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray yy2arr2 := z.EncBasicHandle().StructToArray
var yyq2 [40]bool var yyq2 [42]bool
_, _, _ = yysep2, yyq2, yy2arr2 _, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false const yyr2 bool = false
yyq2[38] = x.Kind != "" yyq2[40] = x.Kind != ""
yyq2[39] = x.APIVersion != "" yyq2[41] = x.APIVersion != ""
var yynn2 int var yynn2 int
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
r.EncodeArrayStart(40) r.EncodeArrayStart(42)
} else { } else {
yynn2 = 38 yynn2 = 40
for _, b := range yyq2 { for _, b := range yyq2 {
if b { if b {
yynn2++ yynn2++
...@@ -5927,170 +5927,208 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -5927,170 +5927,208 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy40 := &x.ServiceSyncPeriod yym40 := z.EncBinary()
_ = yym40
if false {
} else {
r.EncodeInt(int64(x.LookupCacheSizeForRC))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym41 := z.EncBinary() yym41 := z.EncBinary()
_ = yym41 _ = yym41
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy40) {
} else if !yym41 && z.IsJSONHandle() {
z.EncJSONMarshal(yy40)
} else { } else {
z.EncFallback(yy40) r.EncodeInt(int64(x.LookupCacheSizeForRC))
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym43 := z.EncBinary()
_ = yym43
if false {
} else {
r.EncodeInt(int64(x.LookupCacheSizeForRS))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym44 := z.EncBinary()
_ = yym44
if false {
} else {
r.EncodeInt(int64(x.LookupCacheSizeForRS))
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy46 := &x.ServiceSyncPeriod
yym47 := z.EncBinary()
_ = yym47
if false {
} else if z.HasExtensions() && z.EncExt(yy46) {
} else if !yym47 && z.IsJSONHandle() {
z.EncJSONMarshal(yy46)
} else {
z.EncFallback(yy46)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy42 := &x.ServiceSyncPeriod yy48 := &x.ServiceSyncPeriod
yym43 := z.EncBinary() yym49 := z.EncBinary()
_ = yym43 _ = yym49
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy42) { } else if z.HasExtensions() && z.EncExt(yy48) {
} else if !yym43 && z.IsJSONHandle() { } else if !yym49 && z.IsJSONHandle() {
z.EncJSONMarshal(yy42) z.EncJSONMarshal(yy48)
} else { } else {
z.EncFallback(yy42) z.EncFallback(yy48)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy45 := &x.NodeSyncPeriod yy51 := &x.NodeSyncPeriod
yym46 := z.EncBinary() yym52 := z.EncBinary()
_ = yym46 _ = yym52
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy45) { } else if z.HasExtensions() && z.EncExt(yy51) {
} else if !yym46 && z.IsJSONHandle() { } else if !yym52 && z.IsJSONHandle() {
z.EncJSONMarshal(yy45) z.EncJSONMarshal(yy51)
} else { } else {
z.EncFallback(yy45) z.EncFallback(yy51)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy47 := &x.NodeSyncPeriod yy53 := &x.NodeSyncPeriod
yym48 := z.EncBinary() yym54 := z.EncBinary()
_ = yym48 _ = yym54
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy47) { } else if z.HasExtensions() && z.EncExt(yy53) {
} else if !yym48 && z.IsJSONHandle() { } else if !yym54 && z.IsJSONHandle() {
z.EncJSONMarshal(yy47) z.EncJSONMarshal(yy53)
} else { } else {
z.EncFallback(yy47) z.EncFallback(yy53)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy50 := &x.ResourceQuotaSyncPeriod yy56 := &x.ResourceQuotaSyncPeriod
yym51 := z.EncBinary() yym57 := z.EncBinary()
_ = yym51 _ = yym57
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy50) { } else if z.HasExtensions() && z.EncExt(yy56) {
} else if !yym51 && z.IsJSONHandle() { } else if !yym57 && z.IsJSONHandle() {
z.EncJSONMarshal(yy50) z.EncJSONMarshal(yy56)
} else { } else {
z.EncFallback(yy50) z.EncFallback(yy56)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy52 := &x.ResourceQuotaSyncPeriod yy58 := &x.ResourceQuotaSyncPeriod
yym53 := z.EncBinary() yym59 := z.EncBinary()
_ = yym53 _ = yym59
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy52) { } else if z.HasExtensions() && z.EncExt(yy58) {
} else if !yym53 && z.IsJSONHandle() { } else if !yym59 && z.IsJSONHandle() {
z.EncJSONMarshal(yy52) z.EncJSONMarshal(yy58)
} else { } else {
z.EncFallback(yy52) z.EncFallback(yy58)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy55 := &x.NamespaceSyncPeriod yy61 := &x.NamespaceSyncPeriod
yym56 := z.EncBinary() yym62 := z.EncBinary()
_ = yym56 _ = yym62
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy55) { } else if z.HasExtensions() && z.EncExt(yy61) {
} else if !yym56 && z.IsJSONHandle() { } else if !yym62 && z.IsJSONHandle() {
z.EncJSONMarshal(yy55) z.EncJSONMarshal(yy61)
} else { } else {
z.EncFallback(yy55) z.EncFallback(yy61)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy57 := &x.NamespaceSyncPeriod yy63 := &x.NamespaceSyncPeriod
yym58 := z.EncBinary() yym64 := z.EncBinary()
_ = yym58 _ = yym64
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy57) { } else if z.HasExtensions() && z.EncExt(yy63) {
} else if !yym58 && z.IsJSONHandle() { } else if !yym64 && z.IsJSONHandle() {
z.EncJSONMarshal(yy57) z.EncJSONMarshal(yy63)
} else { } else {
z.EncFallback(yy57) z.EncFallback(yy63)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy60 := &x.PVClaimBinderSyncPeriod yy66 := &x.PVClaimBinderSyncPeriod
yym61 := z.EncBinary() yym67 := z.EncBinary()
_ = yym61 _ = yym67
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy60) { } else if z.HasExtensions() && z.EncExt(yy66) {
} else if !yym61 && z.IsJSONHandle() { } else if !yym67 && z.IsJSONHandle() {
z.EncJSONMarshal(yy60) z.EncJSONMarshal(yy66)
} else { } else {
z.EncFallback(yy60) z.EncFallback(yy66)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy62 := &x.PVClaimBinderSyncPeriod yy68 := &x.PVClaimBinderSyncPeriod
yym63 := z.EncBinary() yym69 := z.EncBinary()
_ = yym63 _ = yym69
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy62) { } else if z.HasExtensions() && z.EncExt(yy68) {
} else if !yym63 && z.IsJSONHandle() { } else if !yym69 && z.IsJSONHandle() {
z.EncJSONMarshal(yy62) z.EncJSONMarshal(yy68)
} else { } else {
z.EncFallback(yy62) z.EncFallback(yy68)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy65 := &x.MinResyncPeriod yy71 := &x.MinResyncPeriod
yym66 := z.EncBinary() yym72 := z.EncBinary()
_ = yym66 _ = yym72
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy65) { } else if z.HasExtensions() && z.EncExt(yy71) {
} else if !yym66 && z.IsJSONHandle() { } else if !yym72 && z.IsJSONHandle() {
z.EncJSONMarshal(yy65) z.EncJSONMarshal(yy71)
} else { } else {
z.EncFallback(yy65) z.EncFallback(yy71)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy67 := &x.MinResyncPeriod yy73 := &x.MinResyncPeriod
yym68 := z.EncBinary() yym74 := z.EncBinary()
_ = yym68 _ = yym74
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy67) { } else if z.HasExtensions() && z.EncExt(yy73) {
} else if !yym68 && z.IsJSONHandle() { } else if !yym74 && z.IsJSONHandle() {
z.EncJSONMarshal(yy67) z.EncJSONMarshal(yy73)
} else { } else {
z.EncFallback(yy67) z.EncFallback(yy73)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym70 := z.EncBinary() yym76 := z.EncBinary()
_ = yym70 _ = yym76
if false { if false {
} else { } else {
r.EncodeInt(int64(x.TerminatedPodGCThreshold)) r.EncodeInt(int64(x.TerminatedPodGCThreshold))
...@@ -6099,8 +6137,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6099,8 +6137,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym71 := z.EncBinary() yym77 := z.EncBinary()
_ = yym71 _ = yym77
if false { if false {
} else { } else {
r.EncodeInt(int64(x.TerminatedPodGCThreshold)) r.EncodeInt(int64(x.TerminatedPodGCThreshold))
...@@ -6108,89 +6146,89 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6108,89 +6146,89 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy73 := &x.HorizontalPodAutoscalerSyncPeriod yy79 := &x.HorizontalPodAutoscalerSyncPeriod
yym74 := z.EncBinary() yym80 := z.EncBinary()
_ = yym74 _ = yym80
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy73) { } else if z.HasExtensions() && z.EncExt(yy79) {
} else if !yym74 && z.IsJSONHandle() { } else if !yym80 && z.IsJSONHandle() {
z.EncJSONMarshal(yy73) z.EncJSONMarshal(yy79)
} else { } else {
z.EncFallback(yy73) z.EncFallback(yy79)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy75 := &x.HorizontalPodAutoscalerSyncPeriod yy81 := &x.HorizontalPodAutoscalerSyncPeriod
yym76 := z.EncBinary() yym82 := z.EncBinary()
_ = yym76 _ = yym82
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy75) { } else if z.HasExtensions() && z.EncExt(yy81) {
} else if !yym76 && z.IsJSONHandle() { } else if !yym82 && z.IsJSONHandle() {
z.EncJSONMarshal(yy75) z.EncJSONMarshal(yy81)
} else { } else {
z.EncFallback(yy75) z.EncFallback(yy81)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy78 := &x.DeploymentControllerSyncPeriod yy84 := &x.DeploymentControllerSyncPeriod
yym79 := z.EncBinary() yym85 := z.EncBinary()
_ = yym79 _ = yym85
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy78) { } else if z.HasExtensions() && z.EncExt(yy84) {
} else if !yym79 && z.IsJSONHandle() { } else if !yym85 && z.IsJSONHandle() {
z.EncJSONMarshal(yy78) z.EncJSONMarshal(yy84)
} else { } else {
z.EncFallback(yy78) z.EncFallback(yy84)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy80 := &x.DeploymentControllerSyncPeriod yy86 := &x.DeploymentControllerSyncPeriod
yym81 := z.EncBinary() yym87 := z.EncBinary()
_ = yym81 _ = yym87
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy80) { } else if z.HasExtensions() && z.EncExt(yy86) {
} else if !yym81 && z.IsJSONHandle() { } else if !yym87 && z.IsJSONHandle() {
z.EncJSONMarshal(yy80) z.EncJSONMarshal(yy86)
} else { } else {
z.EncFallback(yy80) z.EncFallback(yy86)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy83 := &x.PodEvictionTimeout yy89 := &x.PodEvictionTimeout
yym84 := z.EncBinary() yym90 := z.EncBinary()
_ = yym84 _ = yym90
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy83) { } else if z.HasExtensions() && z.EncExt(yy89) {
} else if !yym84 && z.IsJSONHandle() { } else if !yym90 && z.IsJSONHandle() {
z.EncJSONMarshal(yy83) z.EncJSONMarshal(yy89)
} else { } else {
z.EncFallback(yy83) z.EncFallback(yy89)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy85 := &x.PodEvictionTimeout yy91 := &x.PodEvictionTimeout
yym86 := z.EncBinary() yym92 := z.EncBinary()
_ = yym86 _ = yym92
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy85) { } else if z.HasExtensions() && z.EncExt(yy91) {
} else if !yym86 && z.IsJSONHandle() { } else if !yym92 && z.IsJSONHandle() {
z.EncJSONMarshal(yy85) z.EncJSONMarshal(yy91)
} else { } else {
z.EncFallback(yy85) z.EncFallback(yy91)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym88 := z.EncBinary() yym94 := z.EncBinary()
_ = yym88 _ = yym94
if false { if false {
} else { } else {
r.EncodeFloat32(float32(x.DeletingPodsQps)) r.EncodeFloat32(float32(x.DeletingPodsQps))
...@@ -6199,8 +6237,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6199,8 +6237,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym89 := z.EncBinary() yym95 := z.EncBinary()
_ = yym89 _ = yym95
if false { if false {
} else { } else {
r.EncodeFloat32(float32(x.DeletingPodsQps)) r.EncodeFloat32(float32(x.DeletingPodsQps))
...@@ -6208,8 +6246,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6208,8 +6246,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym91 := z.EncBinary() yym97 := z.EncBinary()
_ = yym91 _ = yym97
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DeletingPodsBurst)) r.EncodeInt(int64(x.DeletingPodsBurst))
...@@ -6218,8 +6256,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6218,8 +6256,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym92 := z.EncBinary() yym98 := z.EncBinary()
_ = yym92 _ = yym98
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DeletingPodsBurst)) r.EncodeInt(int64(x.DeletingPodsBurst))
...@@ -6227,35 +6265,35 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6227,35 +6265,35 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy94 := &x.NodeMonitorGracePeriod yy100 := &x.NodeMonitorGracePeriod
yym95 := z.EncBinary() yym101 := z.EncBinary()
_ = yym95 _ = yym101
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy94) { } else if z.HasExtensions() && z.EncExt(yy100) {
} else if !yym95 && z.IsJSONHandle() { } else if !yym101 && z.IsJSONHandle() {
z.EncJSONMarshal(yy94) z.EncJSONMarshal(yy100)
} else { } else {
z.EncFallback(yy94) z.EncFallback(yy100)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy96 := &x.NodeMonitorGracePeriod yy102 := &x.NodeMonitorGracePeriod
yym97 := z.EncBinary() yym103 := z.EncBinary()
_ = yym97 _ = yym103
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy96) { } else if z.HasExtensions() && z.EncExt(yy102) {
} else if !yym97 && z.IsJSONHandle() { } else if !yym103 && z.IsJSONHandle() {
z.EncJSONMarshal(yy96) z.EncJSONMarshal(yy102)
} else { } else {
z.EncFallback(yy96) z.EncFallback(yy102)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym99 := z.EncBinary() yym105 := z.EncBinary()
_ = yym99 _ = yym105
if false { if false {
} else { } else {
r.EncodeInt(int64(x.RegisterRetryCount)) r.EncodeInt(int64(x.RegisterRetryCount))
...@@ -6264,8 +6302,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6264,8 +6302,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym100 := z.EncBinary() yym106 := z.EncBinary()
_ = yym100 _ = yym106
if false { if false {
} else { } else {
r.EncodeInt(int64(x.RegisterRetryCount)) r.EncodeInt(int64(x.RegisterRetryCount))
...@@ -6273,62 +6311,62 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6273,62 +6311,62 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy102 := &x.NodeStartupGracePeriod yy108 := &x.NodeStartupGracePeriod
yym103 := z.EncBinary() yym109 := z.EncBinary()
_ = yym103 _ = yym109
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy102) { } else if z.HasExtensions() && z.EncExt(yy108) {
} else if !yym103 && z.IsJSONHandle() { } else if !yym109 && z.IsJSONHandle() {
z.EncJSONMarshal(yy102) z.EncJSONMarshal(yy108)
} else { } else {
z.EncFallback(yy102) z.EncFallback(yy108)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy104 := &x.NodeStartupGracePeriod yy110 := &x.NodeStartupGracePeriod
yym105 := z.EncBinary() yym111 := z.EncBinary()
_ = yym105 _ = yym111
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy104) { } else if z.HasExtensions() && z.EncExt(yy110) {
} else if !yym105 && z.IsJSONHandle() { } else if !yym111 && z.IsJSONHandle() {
z.EncJSONMarshal(yy104) z.EncJSONMarshal(yy110)
} else { } else {
z.EncFallback(yy104) z.EncFallback(yy110)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy107 := &x.NodeMonitorPeriod yy113 := &x.NodeMonitorPeriod
yym108 := z.EncBinary() yym114 := z.EncBinary()
_ = yym108 _ = yym114
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy107) { } else if z.HasExtensions() && z.EncExt(yy113) {
} else if !yym108 && z.IsJSONHandle() { } else if !yym114 && z.IsJSONHandle() {
z.EncJSONMarshal(yy107) z.EncJSONMarshal(yy113)
} else { } else {
z.EncFallback(yy107) z.EncFallback(yy113)
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod")) r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy109 := &x.NodeMonitorPeriod yy115 := &x.NodeMonitorPeriod
yym110 := z.EncBinary() yym116 := z.EncBinary()
_ = yym110 _ = yym116
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy109) { } else if z.HasExtensions() && z.EncExt(yy115) {
} else if !yym110 && z.IsJSONHandle() { } else if !yym116 && z.IsJSONHandle() {
z.EncJSONMarshal(yy109) z.EncJSONMarshal(yy115)
} else { } else {
z.EncFallback(yy109) z.EncFallback(yy115)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym112 := z.EncBinary() yym118 := z.EncBinary()
_ = yym112 _ = yym118
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile))
...@@ -6337,8 +6375,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6337,8 +6375,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("serviceAccountKeyFile")) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountKeyFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym113 := z.EncBinary() yym119 := z.EncBinary()
_ = yym113 _ = yym119
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile))
...@@ -6346,8 +6384,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6346,8 +6384,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym115 := z.EncBinary() yym121 := z.EncBinary()
_ = yym115 _ = yym121
if false { if false {
} else { } else {
r.EncodeBool(bool(x.EnableProfiling)) r.EncodeBool(bool(x.EnableProfiling))
...@@ -6356,8 +6394,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6356,8 +6394,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) r.EncodeString(codecSelferC_UTF81234, string("enableProfiling"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym116 := z.EncBinary() yym122 := z.EncBinary()
_ = yym116 _ = yym122
if false { if false {
} else { } else {
r.EncodeBool(bool(x.EnableProfiling)) r.EncodeBool(bool(x.EnableProfiling))
...@@ -6365,8 +6403,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6365,8 +6403,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym118 := z.EncBinary() yym124 := z.EncBinary()
_ = yym118 _ = yym124
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
...@@ -6375,8 +6413,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6375,8 +6413,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterName")) r.EncodeString(codecSelferC_UTF81234, string("clusterName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym119 := z.EncBinary() yym125 := z.EncBinary()
_ = yym119 _ = yym125
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
...@@ -6384,8 +6422,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6384,8 +6422,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym121 := z.EncBinary() yym127 := z.EncBinary()
_ = yym121 _ = yym127
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR))
...@@ -6394,8 +6432,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6394,8 +6432,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym122 := z.EncBinary() yym128 := z.EncBinary()
_ = yym122 _ = yym128
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR))
...@@ -6403,8 +6441,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6403,8 +6441,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym124 := z.EncBinary() yym130 := z.EncBinary()
_ = yym124 _ = yym130
if false { if false {
} else { } else {
r.EncodeBool(bool(x.AllocateNodeCIDRs)) r.EncodeBool(bool(x.AllocateNodeCIDRs))
...@@ -6413,8 +6451,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6413,8 +6451,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym125 := z.EncBinary() yym131 := z.EncBinary()
_ = yym125 _ = yym131
if false { if false {
} else { } else {
r.EncodeBool(bool(x.AllocateNodeCIDRs)) r.EncodeBool(bool(x.AllocateNodeCIDRs))
...@@ -6422,8 +6460,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6422,8 +6460,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym127 := z.EncBinary() yym133 := z.EncBinary()
_ = yym127 _ = yym133
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile))
...@@ -6432,8 +6470,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6432,8 +6470,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rootCAFile")) r.EncodeString(codecSelferC_UTF81234, string("rootCAFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym128 := z.EncBinary() yym134 := z.EncBinary()
_ = yym128 _ = yym134
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile))
...@@ -6441,8 +6479,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6441,8 +6479,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym130 := z.EncBinary() yym136 := z.EncBinary()
_ = yym130 _ = yym136
if false { if false {
} else { } else {
r.EncodeFloat32(float32(x.KubeAPIQPS)) r.EncodeFloat32(float32(x.KubeAPIQPS))
...@@ -6451,8 +6489,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6451,8 +6489,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym131 := z.EncBinary() yym137 := z.EncBinary()
_ = yym131 _ = yym137
if false { if false {
} else { } else {
r.EncodeFloat32(float32(x.KubeAPIQPS)) r.EncodeFloat32(float32(x.KubeAPIQPS))
...@@ -6460,8 +6498,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6460,8 +6498,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym133 := z.EncBinary() yym139 := z.EncBinary()
_ = yym133 _ = yym139
if false { if false {
} else { } else {
r.EncodeInt(int64(x.KubeAPIBurst)) r.EncodeInt(int64(x.KubeAPIBurst))
...@@ -6470,8 +6508,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6470,8 +6508,8 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym134 := z.EncBinary() yym140 := z.EncBinary()
_ = yym134 _ = yym140
if false { if false {
} else { } else {
r.EncodeInt(int64(x.KubeAPIBurst)) r.EncodeInt(int64(x.KubeAPIBurst))
...@@ -6479,31 +6517,31 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6479,31 +6517,31 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy136 := &x.LeaderElection yy142 := &x.LeaderElection
yy136.CodecEncodeSelf(e) yy142.CodecEncodeSelf(e)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) r.EncodeString(codecSelferC_UTF81234, string("leaderElection"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy138 := &x.LeaderElection yy144 := &x.LeaderElection
yy138.CodecEncodeSelf(e) yy144.CodecEncodeSelf(e)
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy141 := &x.VolumeConfiguration yy147 := &x.VolumeConfiguration
yy141.CodecEncodeSelf(e) yy147.CodecEncodeSelf(e)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy143 := &x.VolumeConfiguration yy149 := &x.VolumeConfiguration
yy143.CodecEncodeSelf(e) yy149.CodecEncodeSelf(e)
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[38] { if yyq2[40] {
yym146 := z.EncBinary() yym152 := z.EncBinary()
_ = yym146 _ = yym152
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -6512,12 +6550,12 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6512,12 +6550,12 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq2[38] { if yyq2[40] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym147 := z.EncBinary() yym153 := z.EncBinary()
_ = yym147 _ = yym153
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -6526,9 +6564,9 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6526,9 +6564,9 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[39] { if yyq2[41] {
yym149 := z.EncBinary() yym155 := z.EncBinary()
_ = yym149 _ = yym155
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -6537,12 +6575,12 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode ...@@ -6537,12 +6575,12 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq2[39] { if yyq2[41] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym150 := z.EncBinary() yym156 := z.EncBinary()
_ = yym150 _ = yym156
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -6682,26 +6720,23 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6682,26 +6720,23 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
} else { } else {
x.ConcurrentNamespaceSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentNamespaceSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
case "serviceSyncPeriod": case "lookupCacheSizeForRC":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ServiceSyncPeriod = pkg1_unversioned.Duration{} x.LookupCacheSizeForRC = 0
} else { } else {
yyv16 := &x.ServiceSyncPeriod x.LookupCacheSizeForRC = int(r.DecodeInt(codecSelferBitsize1234))
yym17 := z.DecBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.DecExt(yyv16) {
} else if !yym17 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv16)
} else {
z.DecFallback(yyv16, false)
}
} }
case "nodeSyncPeriod": case "lookupCacheSizeForRS":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeSyncPeriod = pkg1_unversioned.Duration{} x.LookupCacheSizeForRS = 0
} else { } else {
yyv18 := &x.NodeSyncPeriod x.LookupCacheSizeForRS = int(r.DecodeInt(codecSelferBitsize1234))
}
case "serviceSyncPeriod":
if r.TryDecodeAsNil() {
x.ServiceSyncPeriod = pkg1_unversioned.Duration{}
} else {
yyv18 := &x.ServiceSyncPeriod
yym19 := z.DecBinary() yym19 := z.DecBinary()
_ = yym19 _ = yym19
if false { if false {
...@@ -6712,11 +6747,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6712,11 +6747,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv18, false) z.DecFallback(yyv18, false)
} }
} }
case "resourceQuotaSyncPeriod": case "nodeSyncPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} x.NodeSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv20 := &x.ResourceQuotaSyncPeriod yyv20 := &x.NodeSyncPeriod
yym21 := z.DecBinary() yym21 := z.DecBinary()
_ = yym21 _ = yym21
if false { if false {
...@@ -6727,11 +6762,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6727,11 +6762,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv20, false) z.DecFallback(yyv20, false)
} }
} }
case "namespaceSyncPeriod": case "resourceQuotaSyncPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv22 := &x.NamespaceSyncPeriod yyv22 := &x.ResourceQuotaSyncPeriod
yym23 := z.DecBinary() yym23 := z.DecBinary()
_ = yym23 _ = yym23
if false { if false {
...@@ -6742,11 +6777,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6742,11 +6777,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv22, false) z.DecFallback(yyv22, false)
} }
} }
case "pvClaimBinderSyncPeriod": case "namespaceSyncPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} x.NamespaceSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv24 := &x.PVClaimBinderSyncPeriod yyv24 := &x.NamespaceSyncPeriod
yym25 := z.DecBinary() yym25 := z.DecBinary()
_ = yym25 _ = yym25
if false { if false {
...@@ -6757,11 +6792,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6757,11 +6792,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv24, false) z.DecFallback(yyv24, false)
} }
} }
case "minResyncPeriod": case "pvClaimBinderSyncPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.MinResyncPeriod = pkg1_unversioned.Duration{} x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv26 := &x.MinResyncPeriod yyv26 := &x.PVClaimBinderSyncPeriod
yym27 := z.DecBinary() yym27 := z.DecBinary()
_ = yym27 _ = yym27
if false { if false {
...@@ -6772,6 +6807,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6772,6 +6807,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv26, false) z.DecFallback(yyv26, false)
} }
} }
case "minResyncPeriod":
if r.TryDecodeAsNil() {
x.MinResyncPeriod = pkg1_unversioned.Duration{}
} else {
yyv28 := &x.MinResyncPeriod
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 "terminatedPodGCThreshold": case "terminatedPodGCThreshold":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.TerminatedPodGCThreshold = 0 x.TerminatedPodGCThreshold = 0
...@@ -6782,22 +6832,7 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6782,22 +6832,7 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv29 := &x.HorizontalPodAutoscalerSyncPeriod yyv31 := &x.HorizontalPodAutoscalerSyncPeriod
yym30 := z.DecBinary()
_ = yym30
if false {
} else if z.HasExtensions() && z.DecExt(yyv29) {
} else if !yym30 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv29)
} else {
z.DecFallback(yyv29, false)
}
}
case "deploymentControllerSyncPeriod":
if r.TryDecodeAsNil() {
x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{}
} else {
yyv31 := &x.DeploymentControllerSyncPeriod
yym32 := z.DecBinary() yym32 := z.DecBinary()
_ = yym32 _ = yym32
if false { if false {
...@@ -6808,11 +6843,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6808,11 +6843,11 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv31, false) z.DecFallback(yyv31, false)
} }
} }
case "podEvictionTimeout": case "deploymentControllerSyncPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodEvictionTimeout = pkg1_unversioned.Duration{} x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv33 := &x.PodEvictionTimeout yyv33 := &x.DeploymentControllerSyncPeriod
yym34 := z.DecBinary() yym34 := z.DecBinary()
_ = yym34 _ = yym34
if false { if false {
...@@ -6823,6 +6858,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6823,6 +6858,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
z.DecFallback(yyv33, false) z.DecFallback(yyv33, false)
} }
} }
case "podEvictionTimeout":
if r.TryDecodeAsNil() {
x.PodEvictionTimeout = pkg1_unversioned.Duration{}
} else {
yyv35 := &x.PodEvictionTimeout
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 "deletingPodsQps": case "deletingPodsQps":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DeletingPodsQps = 0 x.DeletingPodsQps = 0
...@@ -6839,15 +6889,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6839,15 +6889,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv37 := &x.NodeMonitorGracePeriod yyv39 := &x.NodeMonitorGracePeriod
yym38 := z.DecBinary() yym40 := z.DecBinary()
_ = yym38 _ = yym40
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv37) { } else if z.HasExtensions() && z.DecExt(yyv39) {
} else if !yym38 && z.IsJSONHandle() { } else if !yym40 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv37) z.DecJSONUnmarshal(yyv39)
} else { } else {
z.DecFallback(yyv37, false) z.DecFallback(yyv39, false)
} }
} }
case "registerRetryCount": case "registerRetryCount":
...@@ -6860,30 +6910,30 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6860,30 +6910,30 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} x.NodeStartupGracePeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv40 := &x.NodeStartupGracePeriod yyv42 := &x.NodeStartupGracePeriod
yym41 := z.DecBinary() yym43 := z.DecBinary()
_ = yym41 _ = yym43
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv40) { } else if z.HasExtensions() && z.DecExt(yyv42) {
} else if !yym41 && z.IsJSONHandle() { } else if !yym43 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv40) z.DecJSONUnmarshal(yyv42)
} else { } else {
z.DecFallback(yyv40, false) z.DecFallback(yyv42, false)
} }
} }
case "nodeMonitorPeriod": case "nodeMonitorPeriod":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeMonitorPeriod = pkg1_unversioned.Duration{} x.NodeMonitorPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv42 := &x.NodeMonitorPeriod yyv44 := &x.NodeMonitorPeriod
yym43 := z.DecBinary() yym45 := z.DecBinary()
_ = yym43 _ = yym45
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv42) { } else if z.HasExtensions() && z.DecExt(yyv44) {
} else if !yym43 && z.IsJSONHandle() { } else if !yym45 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv42) z.DecJSONUnmarshal(yyv44)
} else { } else {
z.DecFallback(yyv42, false) z.DecFallback(yyv44, false)
} }
} }
case "serviceAccountKeyFile": case "serviceAccountKeyFile":
...@@ -6938,15 +6988,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co ...@@ -6938,15 +6988,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.LeaderElection = LeaderElectionConfiguration{} x.LeaderElection = LeaderElectionConfiguration{}
} else { } else {
yyv52 := &x.LeaderElection yyv54 := &x.LeaderElection
yyv52.CodecDecodeSelf(d) yyv54.CodecDecodeSelf(d)
} }
case "volumeConfiguration": case "volumeConfiguration":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.VolumeConfiguration = VolumeConfiguration{} x.VolumeConfiguration = VolumeConfiguration{}
} else { } else {
yyv53 := &x.VolumeConfiguration yyv55 := &x.VolumeConfiguration
yyv53.CodecDecodeSelf(d) yyv55.CodecDecodeSelf(d)
} }
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
...@@ -6971,16 +7021,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -6971,16 +7021,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj56 int var yyj58 int
var yyb56 bool var yyb58 bool
var yyhl56 bool = l >= 0 var yyhl58 bool = l >= 0
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -6990,13 +7040,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -6990,13 +7040,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234)) x.Port = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7006,13 +7056,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7006,13 +7056,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.Address = string(r.DecodeString()) x.Address = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7022,13 +7072,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7022,13 +7072,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.CloudProvider = string(r.DecodeString()) x.CloudProvider = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7038,13 +7088,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7038,13 +7088,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.CloudConfigFile = string(r.DecodeString()) x.CloudConfigFile = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7054,13 +7104,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7054,13 +7104,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentEndpointSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentEndpointSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7070,13 +7120,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7070,13 +7120,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentRSSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentRSSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7086,13 +7136,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7086,13 +7136,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentRCSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentRCSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7102,13 +7152,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7102,13 +7152,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentResourceQuotaSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentResourceQuotaSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7118,13 +7168,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7118,13 +7168,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentDeploymentSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentDeploymentSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7134,13 +7184,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7134,13 +7184,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentDaemonSetSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentDaemonSetSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7150,13 +7200,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7150,13 +7200,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentJobSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentJobSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7166,71 +7216,53 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7166,71 +7216,53 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ConcurrentNamespaceSyncs = int(r.DecodeInt(codecSelferBitsize1234)) x.ConcurrentNamespaceSyncs = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ServiceSyncPeriod = pkg1_unversioned.Duration{} x.LookupCacheSizeForRC = 0
} else { } else {
yyv69 := &x.ServiceSyncPeriod x.LookupCacheSizeForRC = int(r.DecodeInt(codecSelferBitsize1234))
yym70 := z.DecBinary()
_ = yym70
if false {
} else if z.HasExtensions() && z.DecExt(yyv69) {
} else if !yym70 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv69)
} else {
z.DecFallback(yyv69, false)
}
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeSyncPeriod = pkg1_unversioned.Duration{} x.LookupCacheSizeForRS = 0
} else { } else {
yyv71 := &x.NodeSyncPeriod x.LookupCacheSizeForRS = int(r.DecodeInt(codecSelferBitsize1234))
yym72 := z.DecBinary()
_ = yym72
if false {
} else if z.HasExtensions() && z.DecExt(yyv71) {
} else if !yym72 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv71)
} else {
z.DecFallback(yyv71, false)
}
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} x.ServiceSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv73 := &x.ResourceQuotaSyncPeriod yyv73 := &x.ServiceSyncPeriod
yym74 := z.DecBinary() yym74 := z.DecBinary()
_ = yym74 _ = yym74
if false { if false {
...@@ -7241,21 +7273,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7241,21 +7273,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
z.DecFallback(yyv73, false) z.DecFallback(yyv73, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} x.NodeSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv75 := &x.NamespaceSyncPeriod yyv75 := &x.NodeSyncPeriod
yym76 := z.DecBinary() yym76 := z.DecBinary()
_ = yym76 _ = yym76
if false { if false {
...@@ -7266,21 +7298,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7266,21 +7298,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
z.DecFallback(yyv75, false) z.DecFallback(yyv75, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv77 := &x.PVClaimBinderSyncPeriod yyv77 := &x.ResourceQuotaSyncPeriod
yym78 := z.DecBinary() yym78 := z.DecBinary()
_ = yym78 _ = yym78
if false { if false {
...@@ -7291,21 +7323,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7291,21 +7323,21 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
z.DecFallback(yyv77, false) z.DecFallback(yyv77, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.MinResyncPeriod = pkg1_unversioned.Duration{} x.NamespaceSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv79 := &x.MinResyncPeriod yyv79 := &x.NamespaceSyncPeriod
yym80 := z.DecBinary() yym80 := z.DecBinary()
_ = yym80 _ = yym80
if false { if false {
...@@ -7316,13 +7348,63 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7316,13 +7348,63 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
z.DecFallback(yyv79, false) z.DecFallback(yyv79, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{}
} else {
yyv81 := &x.PVClaimBinderSyncPeriod
yym82 := z.DecBinary()
_ = yym82
if false {
} else if z.HasExtensions() && z.DecExt(yyv81) {
} else if !yym82 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv81)
} else {
z.DecFallback(yyv81, false)
}
}
yyj58++
if yyhl58 {
yyb58 = yyj58 > l
} else {
yyb58 = r.CheckBreak()
}
if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MinResyncPeriod = pkg1_unversioned.Duration{}
} else {
yyv83 := &x.MinResyncPeriod
yym84 := z.DecBinary()
_ = yym84
if false {
} else if z.HasExtensions() && z.DecExt(yyv83) {
} else if !yym84 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv83)
} else {
z.DecFallback(yyv83, false)
}
}
yyj58++
if yyhl58 {
yyb58 = yyj58 > l
} else {
yyb58 = r.CheckBreak()
}
if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7332,13 +7414,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7332,13 +7414,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.TerminatedPodGCThreshold = int(r.DecodeInt(codecSelferBitsize1234)) x.TerminatedPodGCThreshold = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7346,24 +7428,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7346,24 +7428,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv82 := &x.HorizontalPodAutoscalerSyncPeriod yyv86 := &x.HorizontalPodAutoscalerSyncPeriod
yym83 := z.DecBinary() yym87 := z.DecBinary()
_ = yym83 _ = yym87
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv82) { } else if z.HasExtensions() && z.DecExt(yyv86) {
} else if !yym83 && z.IsJSONHandle() { } else if !yym87 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv82) z.DecJSONUnmarshal(yyv86)
} else { } else {
z.DecFallback(yyv82, false) z.DecFallback(yyv86, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7371,24 +7453,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7371,24 +7453,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv84 := &x.DeploymentControllerSyncPeriod yyv88 := &x.DeploymentControllerSyncPeriod
yym85 := z.DecBinary() yym89 := z.DecBinary()
_ = yym85 _ = yym89
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv84) { } else if z.HasExtensions() && z.DecExt(yyv88) {
} else if !yym85 && z.IsJSONHandle() { } else if !yym89 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv84) z.DecJSONUnmarshal(yyv88)
} else { } else {
z.DecFallback(yyv84, false) z.DecFallback(yyv88, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7396,24 +7478,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7396,24 +7478,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodEvictionTimeout = pkg1_unversioned.Duration{} x.PodEvictionTimeout = pkg1_unversioned.Duration{}
} else { } else {
yyv86 := &x.PodEvictionTimeout yyv90 := &x.PodEvictionTimeout
yym87 := z.DecBinary() yym91 := z.DecBinary()
_ = yym87 _ = yym91
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv86) { } else if z.HasExtensions() && z.DecExt(yyv90) {
} else if !yym87 && z.IsJSONHandle() { } else if !yym91 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv86) z.DecJSONUnmarshal(yyv90)
} else { } else {
z.DecFallback(yyv86, false) z.DecFallback(yyv90, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7423,13 +7505,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7423,13 +7505,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.DeletingPodsQps = float32(r.DecodeFloat(true)) x.DeletingPodsQps = float32(r.DecodeFloat(true))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7439,13 +7521,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7439,13 +7521,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.DeletingPodsBurst = int(r.DecodeInt(codecSelferBitsize1234)) x.DeletingPodsBurst = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7453,24 +7535,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7453,24 +7535,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv90 := &x.NodeMonitorGracePeriod yyv94 := &x.NodeMonitorGracePeriod
yym91 := z.DecBinary() yym95 := z.DecBinary()
_ = yym91 _ = yym95
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv90) { } else if z.HasExtensions() && z.DecExt(yyv94) {
} else if !yym91 && z.IsJSONHandle() { } else if !yym95 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv90) z.DecJSONUnmarshal(yyv94)
} else { } else {
z.DecFallback(yyv90, false) z.DecFallback(yyv94, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7480,13 +7562,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7480,13 +7562,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.RegisterRetryCount = int(r.DecodeInt(codecSelferBitsize1234)) x.RegisterRetryCount = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7494,24 +7576,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7494,24 +7576,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} x.NodeStartupGracePeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv93 := &x.NodeStartupGracePeriod yyv97 := &x.NodeStartupGracePeriod
yym94 := z.DecBinary() yym98 := z.DecBinary()
_ = yym94 _ = yym98
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv93) { } else if z.HasExtensions() && z.DecExt(yyv97) {
} else if !yym94 && z.IsJSONHandle() { } else if !yym98 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv93) z.DecJSONUnmarshal(yyv97)
} else { } else {
z.DecFallback(yyv93, false) z.DecFallback(yyv97, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7519,24 +7601,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7519,24 +7601,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.NodeMonitorPeriod = pkg1_unversioned.Duration{} x.NodeMonitorPeriod = pkg1_unversioned.Duration{}
} else { } else {
yyv95 := &x.NodeMonitorPeriod yyv99 := &x.NodeMonitorPeriod
yym96 := z.DecBinary() yym100 := z.DecBinary()
_ = yym96 _ = yym100
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv95) { } else if z.HasExtensions() && z.DecExt(yyv99) {
} else if !yym96 && z.IsJSONHandle() { } else if !yym100 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv95) z.DecJSONUnmarshal(yyv99)
} else { } else {
z.DecFallback(yyv95, false) z.DecFallback(yyv99, false)
} }
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7546,13 +7628,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7546,13 +7628,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ServiceAccountKeyFile = string(r.DecodeString()) x.ServiceAccountKeyFile = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7562,13 +7644,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7562,13 +7644,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.EnableProfiling = bool(r.DecodeBool()) x.EnableProfiling = bool(r.DecodeBool())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7578,13 +7660,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7578,13 +7660,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ClusterName = string(r.DecodeString()) x.ClusterName = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7594,13 +7676,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7594,13 +7676,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.ClusterCIDR = string(r.DecodeString()) x.ClusterCIDR = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7610,13 +7692,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7610,13 +7692,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.AllocateNodeCIDRs = bool(r.DecodeBool()) x.AllocateNodeCIDRs = bool(r.DecodeBool())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7626,13 +7708,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7626,13 +7708,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.RootCAFile = string(r.DecodeString()) x.RootCAFile = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7642,13 +7724,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7642,13 +7724,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.KubeAPIQPS = float32(r.DecodeFloat(true)) x.KubeAPIQPS = float32(r.DecodeFloat(true))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7658,13 +7740,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7658,13 +7740,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.KubeAPIBurst = int(r.DecodeInt(codecSelferBitsize1234)) x.KubeAPIBurst = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7672,16 +7754,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7672,16 +7754,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.LeaderElection = LeaderElectionConfiguration{} x.LeaderElection = LeaderElectionConfiguration{}
} else { } else {
yyv105 := &x.LeaderElection yyv109 := &x.LeaderElection
yyv105.CodecDecodeSelf(d) yyv109.CodecDecodeSelf(d)
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7689,16 +7771,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7689,16 +7771,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.VolumeConfiguration = VolumeConfiguration{} x.VolumeConfiguration = VolumeConfiguration{}
} else { } else {
yyv106 := &x.VolumeConfiguration yyv110 := &x.VolumeConfiguration
yyv106.CodecDecodeSelf(d) yyv110.CodecDecodeSelf(d)
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7708,13 +7790,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7708,13 +7790,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -7725,17 +7807,17 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * ...@@ -7725,17 +7807,17 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d *
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj56++ yyj58++
if yyhl56 { if yyhl58 {
yyb56 = yyj56 > l yyb58 = yyj58 > l
} else { } else {
yyb56 = r.CheckBreak() yyb58 = r.CheckBreak()
} }
if yyb56 { if yyb58 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj56-1, "") z.DecStructFieldNotFound(yyj58-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
......
...@@ -399,11 +399,11 @@ type KubeControllerManagerConfiguration struct { ...@@ -399,11 +399,11 @@ type KubeControllerManagerConfiguration struct {
// but more CPU (and network) load. // but more CPU (and network) load.
ConcurrentEndpointSyncs int `json:"concurrentEndpointSyncs"` ConcurrentEndpointSyncs int `json:"concurrentEndpointSyncs"`
// concurrentRSSyncs is the number of replica sets that are allowed to sync // concurrentRSSyncs is the number of replica sets that are allowed to sync
// concurrently. Larger number = more reponsive replica management, but more // concurrently. Larger number = more responsive replica management, but more
// CPU (and network) load. // CPU (and network) load.
ConcurrentRSSyncs int `json:"concurrentRSSyncs"` ConcurrentRSSyncs int `json:"concurrentRSSyncs"`
// concurrentRCSyncs is the number of replication controllers that are // concurrentRCSyncs is the number of replication controllers that are
// allowed to sync concurrently. Larger number = more reponsive replica // allowed to sync concurrently. Larger number = more responsive replica
// management, but more CPU (and network) load. // management, but more CPU (and network) load.
ConcurrentRCSyncs int `json:"concurrentRCSyncs"` ConcurrentRCSyncs int `json:"concurrentRCSyncs"`
// concurrentResourceQuotaSyncs is the number of resource quotas that are // concurrentResourceQuotaSyncs is the number of resource quotas that are
...@@ -411,20 +411,26 @@ type KubeControllerManagerConfiguration struct { ...@@ -411,20 +411,26 @@ type KubeControllerManagerConfiguration struct {
// management, but more CPU (and network) load. // management, but more CPU (and network) load.
ConcurrentResourceQuotaSyncs int `json:"concurrentResourceQuotaSyncs"` ConcurrentResourceQuotaSyncs int `json:"concurrentResourceQuotaSyncs"`
// concurrentDeploymentSyncs is the number of deployment objects that are // concurrentDeploymentSyncs is the number of deployment objects that are
// allowed to sync concurrently. Larger number = more reponsive deployments, // allowed to sync concurrently. Larger number = more responsive deployments,
// but more CPU (and network) load. // but more CPU (and network) load.
ConcurrentDeploymentSyncs int `json:"concurrentDeploymentSyncs"` ConcurrentDeploymentSyncs int `json:"concurrentDeploymentSyncs"`
// concurrentDaemonSetSyncs is the number of daemonset objects that are // concurrentDaemonSetSyncs is the number of daemonset objects that are
// allowed to sync concurrently. Larger number = more reponsive DaemonSet, // allowed to sync concurrently. Larger number = more responsive DaemonSet,
// but more CPU (and network) load. // but more CPU (and network) load.
ConcurrentDaemonSetSyncs int `json:"concurrentDaemonSetSyncs"` ConcurrentDaemonSetSyncs int `json:"concurrentDaemonSetSyncs"`
// concurrentJobSyncs is the number of job objects that are // concurrentJobSyncs is the number of job objects that are
// allowed to sync concurrently. Larger number = more reponsive jobs, // allowed to sync concurrently. Larger number = more responsive jobs,
// but more CPU (and network) load. // but more CPU (and network) load.
ConcurrentJobSyncs int `json:"concurrentJobSyncs"` ConcurrentJobSyncs int `json:"concurrentJobSyncs"`
// concurrentNamespaceSyncs is the number of namespace objects that are // concurrentNamespaceSyncs is the number of namespace objects that are
// allowed to sync concurrently. // allowed to sync concurrently.
ConcurrentNamespaceSyncs int `json:"concurrentNamespaceSyncs"` ConcurrentNamespaceSyncs int `json:"concurrentNamespaceSyncs"`
// LookupCacheSizeForRC is the size of lookup cache for replication controllers.
// Larger number = more responsive replica management, but more MEM load.
LookupCacheSizeForRC int `json:"lookupCacheSizeForRC"`
// LookupCacheSizeForRS is the size of lookup cache for replicatsets.
// Larger number = more responsive replica management, but more MEM load.
LookupCacheSizeForRS int `json:"lookupCacheSizeForRS"`
// serviceSyncPeriod is the period for syncing services with their external // serviceSyncPeriod is the period for syncing services with their external
// load balancers. // load balancers.
ServiceSyncPeriod unversioned.Duration `json:"serviceSyncPeriod"` ServiceSyncPeriod unversioned.Duration `json:"serviceSyncPeriod"`
......
...@@ -25,8 +25,6 @@ import ( ...@@ -25,8 +25,6 @@ import (
hashutil "k8s.io/kubernetes/pkg/util/hash" hashutil "k8s.io/kubernetes/pkg/util/hash"
) )
const DefaultCacheEntries = 4096
type objectWithMeta interface { type objectWithMeta interface {
meta.Object meta.Object
} }
......
...@@ -95,7 +95,7 @@ type ReplicaSetController struct { ...@@ -95,7 +95,7 @@ type ReplicaSetController struct {
} }
// NewReplicaSetController creates a new ReplicaSetController. // NewReplicaSetController creates a new ReplicaSetController.
func NewReplicaSetController(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, burstReplicas int) *ReplicaSetController { func NewReplicaSetController(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, burstReplicas int, lookupCacheSize int) *ReplicaSetController {
eventBroadcaster := record.NewBroadcaster() eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(glog.Infof) eventBroadcaster.StartLogging(glog.Infof)
eventBroadcaster.StartRecordingToSink(&unversionedcore.EventSinkImpl{kubeClient.Core().Events("")}) eventBroadcaster.StartRecordingToSink(&unversionedcore.EventSinkImpl{kubeClient.Core().Events("")})
...@@ -191,7 +191,7 @@ func NewReplicaSetController(kubeClient clientset.Interface, resyncPeriod contro ...@@ -191,7 +191,7 @@ func NewReplicaSetController(kubeClient clientset.Interface, resyncPeriod contro
rsc.syncHandler = rsc.syncReplicaSet rsc.syncHandler = rsc.syncReplicaSet
rsc.podStoreSynced = rsc.podController.HasSynced rsc.podStoreSynced = rsc.podController.HasSynced
rsc.lookupCache = controller.NewMatchingCache(controller.DefaultCacheEntries) rsc.lookupCache = controller.NewMatchingCache(lookupCacheSize)
return rsc return rsc
} }
......
...@@ -139,7 +139,7 @@ type serverResponse struct { ...@@ -139,7 +139,7 @@ type serverResponse struct {
func TestSyncReplicaSetDoesNothing(t *testing.T) { func TestSyncReplicaSetDoesNothing(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// 2 running pods, a controller with 2 replicas, sync is a no-op // 2 running pods, a controller with 2 replicas, sync is a no-op
...@@ -156,7 +156,7 @@ func TestSyncReplicaSetDoesNothing(t *testing.T) { ...@@ -156,7 +156,7 @@ func TestSyncReplicaSetDoesNothing(t *testing.T) {
func TestSyncReplicaSetDeletes(t *testing.T) { func TestSyncReplicaSetDeletes(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -173,7 +173,7 @@ func TestSyncReplicaSetDeletes(t *testing.T) { ...@@ -173,7 +173,7 @@ func TestSyncReplicaSetDeletes(t *testing.T) {
func TestDeleteFinalStateUnknown(t *testing.T) { func TestDeleteFinalStateUnknown(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -206,7 +206,7 @@ func TestDeleteFinalStateUnknown(t *testing.T) { ...@@ -206,7 +206,7 @@ func TestDeleteFinalStateUnknown(t *testing.T) {
func TestSyncReplicaSetCreates(t *testing.T) { func TestSyncReplicaSetCreates(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// A controller with 2 replicas and no pods in the store, 2 creates expected // A controller with 2 replicas and no pods in the store, 2 creates expected
...@@ -229,7 +229,7 @@ func TestStatusUpdatesWithoutReplicasChange(t *testing.T) { ...@@ -229,7 +229,7 @@ func TestStatusUpdatesWithoutReplicasChange(t *testing.T) {
testServer := httptest.NewServer(&fakeHandler) testServer := httptest.NewServer(&fakeHandler)
defer testServer.Close() defer testServer.Close()
client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Steady state for the ReplicaSet, no Status.Replicas updates expected // Steady state for the ReplicaSet, no Status.Replicas updates expected
...@@ -272,7 +272,7 @@ func TestControllerUpdateReplicas(t *testing.T) { ...@@ -272,7 +272,7 @@ func TestControllerUpdateReplicas(t *testing.T) {
defer testServer.Close() defer testServer.Close()
client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Insufficient number of pods in the system, and Status.Replicas is wrong; // Insufficient number of pods in the system, and Status.Replicas is wrong;
...@@ -313,7 +313,7 @@ func TestSyncReplicaSetDormancy(t *testing.T) { ...@@ -313,7 +313,7 @@ func TestSyncReplicaSetDormancy(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -360,7 +360,7 @@ func TestSyncReplicaSetDormancy(t *testing.T) { ...@@ -360,7 +360,7 @@ func TestSyncReplicaSetDormancy(t *testing.T) {
} }
func TestPodControllerLookup(t *testing.T) { func TestPodControllerLookup(t *testing.T) {
manager := NewReplicaSetController(clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}), controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}), controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
testCases := []struct { testCases := []struct {
inRSs []*extensions.ReplicaSet inRSs []*extensions.ReplicaSet
...@@ -428,7 +428,7 @@ func TestWatchControllers(t *testing.T) { ...@@ -428,7 +428,7 @@ func TestWatchControllers(t *testing.T) {
fakeWatch := watch.NewFake() fakeWatch := watch.NewFake()
client := &fake.Clientset{} client := &fake.Clientset{}
client.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil)) client.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil))
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
var testRSSpec extensions.ReplicaSet var testRSSpec extensions.ReplicaSet
...@@ -471,7 +471,7 @@ func TestWatchPods(t *testing.T) { ...@@ -471,7 +471,7 @@ func TestWatchPods(t *testing.T) {
fakeWatch := watch.NewFake() fakeWatch := watch.NewFake()
client := &fake.Clientset{} client := &fake.Clientset{}
client.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil)) client.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil))
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Put one ReplicaSet and one pod into the controller's stores // Put one ReplicaSet and one pod into the controller's stores
...@@ -514,7 +514,7 @@ func TestWatchPods(t *testing.T) { ...@@ -514,7 +514,7 @@ func TestWatchPods(t *testing.T) {
} }
func TestUpdatePods(t *testing.T) { func TestUpdatePods(t *testing.T) {
manager := NewReplicaSetController(fake.NewSimpleClientset(), controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(fake.NewSimpleClientset(), controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
received := make(chan string) received := make(chan string)
...@@ -575,7 +575,7 @@ func TestControllerUpdateRequeue(t *testing.T) { ...@@ -575,7 +575,7 @@ func TestControllerUpdateRequeue(t *testing.T) {
defer testServer.Close() defer testServer.Close()
client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
labelMap := map[string]string{"foo": "bar"} labelMap := map[string]string{"foo": "bar"}
...@@ -655,7 +655,7 @@ func TestControllerUpdateStatusWithFailure(t *testing.T) { ...@@ -655,7 +655,7 @@ func TestControllerUpdateStatusWithFailure(t *testing.T) {
func doTestControllerBurstReplicas(t *testing.T, burstReplicas, numReplicas int) { func doTestControllerBurstReplicas(t *testing.T, burstReplicas, numReplicas int) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, burstReplicas) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, burstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -777,7 +777,7 @@ func (fe FakeRSExpectations) SatisfiedExpectations(controllerKey string) bool { ...@@ -777,7 +777,7 @@ func (fe FakeRSExpectations) SatisfiedExpectations(controllerKey string) bool {
func TestRSSyncExpectations(t *testing.T) { func TestRSSyncExpectations(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 2) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 2, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -802,7 +802,7 @@ func TestRSSyncExpectations(t *testing.T) { ...@@ -802,7 +802,7 @@ func TestRSSyncExpectations(t *testing.T) {
func TestDeleteControllerAndExpectations(t *testing.T) { func TestDeleteControllerAndExpectations(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 10) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 10, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
rs := newReplicaSet(1, map[string]string{"foo": "bar"}) rs := newReplicaSet(1, map[string]string{"foo": "bar"})
...@@ -845,7 +845,7 @@ func TestDeleteControllerAndExpectations(t *testing.T) { ...@@ -845,7 +845,7 @@ func TestDeleteControllerAndExpectations(t *testing.T) {
func TestRSManagerNotReady(t *testing.T) { func TestRSManagerNotReady(t *testing.T) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 2) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 2, 0)
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
manager.podStoreSynced = func() bool { return false } manager.podStoreSynced = func() bool { return false }
...@@ -884,7 +884,7 @@ func TestOverlappingRSs(t *testing.T) { ...@@ -884,7 +884,7 @@ func TestOverlappingRSs(t *testing.T) {
labelMap := map[string]string{"foo": "bar"} labelMap := map[string]string{"foo": "bar"}
for i := 0; i < 5; i++ { for i := 0; i < 5; i++ {
manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 10) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 10, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Create 10 ReplicaSets, shuffled them randomly and insert them into the ReplicaSet controller's store // Create 10 ReplicaSets, shuffled them randomly and insert them into the ReplicaSet controller's store
......
...@@ -94,7 +94,7 @@ type ReplicationManager struct { ...@@ -94,7 +94,7 @@ type ReplicationManager struct {
} }
// NewReplicationManager creates a new ReplicationManager. // NewReplicationManager creates a new ReplicationManager.
func NewReplicationManager(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, burstReplicas int) *ReplicationManager { func NewReplicationManager(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, burstReplicas int, lookupCacheSize int) *ReplicationManager {
eventBroadcaster := record.NewBroadcaster() eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(glog.Infof) eventBroadcaster.StartLogging(glog.Infof)
eventBroadcaster.StartRecordingToSink(&unversionedcore.EventSinkImpl{kubeClient.Core().Events("")}) eventBroadcaster.StartRecordingToSink(&unversionedcore.EventSinkImpl{kubeClient.Core().Events("")})
...@@ -190,7 +190,7 @@ func NewReplicationManager(kubeClient clientset.Interface, resyncPeriod controll ...@@ -190,7 +190,7 @@ func NewReplicationManager(kubeClient clientset.Interface, resyncPeriod controll
rm.syncHandler = rm.syncReplicationController rm.syncHandler = rm.syncReplicationController
rm.podStoreSynced = rm.podController.HasSynced rm.podStoreSynced = rm.podController.HasSynced
rm.lookupCache = controller.NewMatchingCache(controller.DefaultCacheEntries) rm.lookupCache = controller.NewMatchingCache(lookupCacheSize)
return rm return rm
} }
......
...@@ -137,7 +137,7 @@ type serverResponse struct { ...@@ -137,7 +137,7 @@ type serverResponse struct {
func TestSyncReplicationControllerDoesNothing(t *testing.T) { func TestSyncReplicationControllerDoesNothing(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// 2 running pods, a controller with 2 replicas, sync is a no-op // 2 running pods, a controller with 2 replicas, sync is a no-op
...@@ -153,7 +153,7 @@ func TestSyncReplicationControllerDoesNothing(t *testing.T) { ...@@ -153,7 +153,7 @@ func TestSyncReplicationControllerDoesNothing(t *testing.T) {
func TestSyncReplicationControllerDeletes(t *testing.T) { func TestSyncReplicationControllerDeletes(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -169,7 +169,7 @@ func TestSyncReplicationControllerDeletes(t *testing.T) { ...@@ -169,7 +169,7 @@ func TestSyncReplicationControllerDeletes(t *testing.T) {
func TestDeleteFinalStateUnknown(t *testing.T) { func TestDeleteFinalStateUnknown(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -201,7 +201,7 @@ func TestDeleteFinalStateUnknown(t *testing.T) { ...@@ -201,7 +201,7 @@ func TestDeleteFinalStateUnknown(t *testing.T) {
func TestSyncReplicationControllerCreates(t *testing.T) { func TestSyncReplicationControllerCreates(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// A controller with 2 replicas and no pods in the store, 2 creates expected // A controller with 2 replicas and no pods in the store, 2 creates expected
...@@ -224,7 +224,7 @@ func TestStatusUpdatesWithoutReplicasChange(t *testing.T) { ...@@ -224,7 +224,7 @@ func TestStatusUpdatesWithoutReplicasChange(t *testing.T) {
// TODO: Uncomment when fix #19254 // TODO: Uncomment when fix #19254
// defer testServer.Close() // defer testServer.Close()
c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Steady state for the replication controller, no Status.Replicas updates expected // Steady state for the replication controller, no Status.Replicas updates expected
...@@ -266,7 +266,7 @@ func TestControllerUpdateReplicas(t *testing.T) { ...@@ -266,7 +266,7 @@ func TestControllerUpdateReplicas(t *testing.T) {
// TODO: Uncomment when fix #19254 // TODO: Uncomment when fix #19254
// defer testServer.Close() // defer testServer.Close()
c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Insufficient number of pods in the system, and Status.Replicas is wrong; // Insufficient number of pods in the system, and Status.Replicas is wrong;
...@@ -306,7 +306,7 @@ func TestSyncReplicationControllerDormancy(t *testing.T) { ...@@ -306,7 +306,7 @@ func TestSyncReplicationControllerDormancy(t *testing.T) {
// defer testServer.Close() // defer testServer.Close()
c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -352,7 +352,7 @@ func TestSyncReplicationControllerDormancy(t *testing.T) { ...@@ -352,7 +352,7 @@ func TestSyncReplicationControllerDormancy(t *testing.T) {
} }
func TestPodControllerLookup(t *testing.T) { func TestPodControllerLookup(t *testing.T) {
manager := NewReplicationManager(clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}), controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}), controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
testCases := []struct { testCases := []struct {
inRCs []*api.ReplicationController inRCs []*api.ReplicationController
...@@ -415,7 +415,7 @@ func TestWatchControllers(t *testing.T) { ...@@ -415,7 +415,7 @@ func TestWatchControllers(t *testing.T) {
fakeWatch := watch.NewFake() fakeWatch := watch.NewFake()
c := &fake.Clientset{} c := &fake.Clientset{}
c.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil)) c.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil))
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
var testControllerSpec api.ReplicationController var testControllerSpec api.ReplicationController
...@@ -458,7 +458,7 @@ func TestWatchPods(t *testing.T) { ...@@ -458,7 +458,7 @@ func TestWatchPods(t *testing.T) {
fakeWatch := watch.NewFake() fakeWatch := watch.NewFake()
c := &fake.Clientset{} c := &fake.Clientset{}
c.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil)) c.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil))
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Put one rc and one pod into the controller's stores // Put one rc and one pod into the controller's stores
...@@ -500,7 +500,7 @@ func TestWatchPods(t *testing.T) { ...@@ -500,7 +500,7 @@ func TestWatchPods(t *testing.T) {
} }
func TestUpdatePods(t *testing.T) { func TestUpdatePods(t *testing.T) {
manager := NewReplicationManager(fake.NewSimpleClientset(), controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(fake.NewSimpleClientset(), controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
received := make(chan string) received := make(chan string)
...@@ -560,7 +560,7 @@ func TestControllerUpdateRequeue(t *testing.T) { ...@@ -560,7 +560,7 @@ func TestControllerUpdateRequeue(t *testing.T) {
// defer testServer.Close() // defer testServer.Close()
c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: testServer.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
rc := newReplicationController(1) rc := newReplicationController(1)
...@@ -641,7 +641,7 @@ func TestControllerUpdateStatusWithFailure(t *testing.T) { ...@@ -641,7 +641,7 @@ func TestControllerUpdateStatusWithFailure(t *testing.T) {
func doTestControllerBurstReplicas(t *testing.T, burstReplicas, numReplicas int) { func doTestControllerBurstReplicas(t *testing.T, burstReplicas, numReplicas int) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, burstReplicas) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, burstReplicas, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -761,7 +761,7 @@ func (fe FakeRCExpectations) SatisfiedExpectations(controllerKey string) bool { ...@@ -761,7 +761,7 @@ func (fe FakeRCExpectations) SatisfiedExpectations(controllerKey string) bool {
func TestRCSyncExpectations(t *testing.T) { func TestRCSyncExpectations(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 2) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 2, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
...@@ -785,7 +785,7 @@ func TestRCSyncExpectations(t *testing.T) { ...@@ -785,7 +785,7 @@ func TestRCSyncExpectations(t *testing.T) {
func TestDeleteControllerAndExpectations(t *testing.T) { func TestDeleteControllerAndExpectations(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 10) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 10, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
rc := newReplicationController(1) rc := newReplicationController(1)
...@@ -828,7 +828,7 @@ func TestDeleteControllerAndExpectations(t *testing.T) { ...@@ -828,7 +828,7 @@ func TestDeleteControllerAndExpectations(t *testing.T) {
func TestRCManagerNotReady(t *testing.T) { func TestRCManagerNotReady(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
fakePodControl := controller.FakePodControl{} fakePodControl := controller.FakePodControl{}
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 2) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 2, 0)
manager.podControl = &fakePodControl manager.podControl = &fakePodControl
manager.podStoreSynced = func() bool { return false } manager.podStoreSynced = func() bool { return false }
...@@ -866,7 +866,7 @@ func TestOverlappingRCs(t *testing.T) { ...@@ -866,7 +866,7 @@ func TestOverlappingRCs(t *testing.T) {
c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) c := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
for i := 0; i < 5; i++ { for i := 0; i < 5; i++ {
manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 10) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 10, 0)
manager.podStoreSynced = alwaysReady manager.podStoreSynced = alwaysReady
// Create 10 rcs, shuffled them randomly and insert them into the rc manager's store // Create 10 rcs, shuffled them randomly and insert them into the rc manager's store
...@@ -895,7 +895,7 @@ func TestOverlappingRCs(t *testing.T) { ...@@ -895,7 +895,7 @@ func TestOverlappingRCs(t *testing.T) {
func BenchmarkGetPodControllerMultiNS(b *testing.B) { func BenchmarkGetPodControllerMultiNS(b *testing.B) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
const nsNum = 1000 const nsNum = 1000
...@@ -941,7 +941,7 @@ func BenchmarkGetPodControllerMultiNS(b *testing.B) { ...@@ -941,7 +941,7 @@ func BenchmarkGetPodControllerMultiNS(b *testing.B) {
func BenchmarkGetPodControllerSingleNS(b *testing.B) { func BenchmarkGetPodControllerSingleNS(b *testing.B) {
client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) client := clientset.NewForConfigOrDie(&client.Config{Host: "", ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
manager := NewReplicationManager(client, controller.NoResyncPeriodFunc, BurstReplicas) manager := NewReplicationManager(client, controller.NoResyncPeriodFunc, BurstReplicas, 0)
const rcNum = 1000 const rcNum = 1000
const replicaNum = 3 const replicaNum = 3
......
...@@ -107,7 +107,7 @@ func NewMasterComponents(c *Config) *MasterComponents { ...@@ -107,7 +107,7 @@ func NewMasterComponents(c *Config) *MasterComponents {
restClient := client.NewOrDie(&client.Config{Host: s.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}, QPS: c.QPS, Burst: c.Burst}) restClient := client.NewOrDie(&client.Config{Host: s.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}, QPS: c.QPS, Burst: c.Burst})
clientset := clientset.NewForConfigOrDie(&client.Config{Host: s.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}, QPS: c.QPS, Burst: c.Burst}) clientset := clientset.NewForConfigOrDie(&client.Config{Host: s.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}, QPS: c.QPS, Burst: c.Burst})
rcStopCh := make(chan struct{}) rcStopCh := make(chan struct{})
controllerManager := replicationcontroller.NewReplicationManager(clientset, controller.NoResyncPeriodFunc, c.Burst) controllerManager := replicationcontroller.NewReplicationManager(clientset, controller.NoResyncPeriodFunc, c.Burst, 4096)
// TODO: Support events once we can cleanly shutdown an event recorder. // TODO: Support events once we can cleanly shutdown an event recorder.
controllerManager.SetEventRecorder(&record.FakeRecorder{}) controllerManager.SetEventRecorder(&record.FakeRecorder{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment