From 24b73253cdf216313fc6bcc0b459d48dc838a24f Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Tue, 8 Nov 2016 03:38:56 +0000 Subject: [PATCH] published by bot (https://github.com/kubernetes/contrib/tree/master/mungegithub) copied from https://github.com/kubernetes/kubernetes.git, branch master, last commit is 8558768650b1da489aa63050bc03f1d42912c968 --- pkg/apis/componentconfig/types.go | 2 +- pkg/apis/componentconfig/v1alpha1/defaults.go | 3 --- pkg/apis/componentconfig/v1alpha1/types.go | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/apis/componentconfig/types.go b/pkg/apis/componentconfig/types.go index 335b2cf4..c5eeb5f1 100644 --- a/pkg/apis/componentconfig/types.go +++ b/pkg/apis/componentconfig/types.go @@ -45,7 +45,7 @@ type KubeProxyConfiguration struct { // '2h22m'). Must be greater than 0. IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"` // iptablesMinSyncPeriod is the minimum period that iptables rules are refreshed (e.g. '5s', '1m', - // '2h22m'). Must be greater than 0. + // '2h22m'). IPTablesMinSyncPeriod unversioned.Duration `json:"iptablesMinSyncPeriodSeconds"` // kubeconfigPath is the path to the kubeconfig file with authorization information (the // master location is set by the master flag). diff --git a/pkg/apis/componentconfig/v1alpha1/defaults.go b/pkg/apis/componentconfig/v1alpha1/defaults.go index 8293fbaf..70b395e1 100644 --- a/pkg/apis/componentconfig/v1alpha1/defaults.go +++ b/pkg/apis/componentconfig/v1alpha1/defaults.go @@ -80,9 +80,6 @@ func SetDefaults_KubeProxyConfiguration(obj *KubeProxyConfiguration) { if obj.IPTablesSyncPeriod.Duration == 0 { obj.IPTablesSyncPeriod = unversioned.Duration{Duration: 30 * time.Second} } - if obj.IPTablesMinSyncPeriod.Duration == 0 { - obj.IPTablesMinSyncPeriod = unversioned.Duration{Duration: 2 * time.Second} - } zero := unversioned.Duration{} if obj.UDPIdleTimeout == zero { obj.UDPIdleTimeout = unversioned.Duration{Duration: 250 * time.Millisecond} diff --git a/pkg/apis/componentconfig/v1alpha1/types.go b/pkg/apis/componentconfig/v1alpha1/types.go index ec19fe0a..f23b1239 100644 --- a/pkg/apis/componentconfig/v1alpha1/types.go +++ b/pkg/apis/componentconfig/v1alpha1/types.go @@ -42,7 +42,7 @@ type KubeProxyConfiguration struct { // '2h22m'). Must be greater than 0. IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"` // iptablesMinSyncPeriod is the minimum period that iptables rules are refreshed (e.g. '5s', '1m', - // '2h22m'). Must be greater than 0. + // '2h22m'). IPTablesMinSyncPeriod unversioned.Duration `json:"iptablesMinSyncPeriodSeconds"` // kubeconfigPath is the path to the kubeconfig file with authorization information (the // master location is set by the master flag).