mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-23 13:47:19 +00:00
published by bot
(https://github.com/kubernetes/contrib/tree/master/mungegithub) copied from https://github.com/kubernetes/kubernetes.git, branch master, last commit is 66a7a1f961489b81e0357a6307270d50b00c5f50
This commit is contained in:
parent
b22087a53b
commit
0742ae7ca5
File diff suppressed because it is too large
Load Diff
@ -44,6 +44,9 @@ type KubeProxyConfiguration struct {
|
|||||||
// iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
|
// iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
|
||||||
// '2h22m'). Must be greater than 0.
|
// '2h22m'). Must be greater than 0.
|
||||||
IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"`
|
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.
|
||||||
|
IPTablesMinSyncPeriod unversioned.Duration `json:"iptablesMinSyncPeriodSeconds"`
|
||||||
// kubeconfigPath is the path to the kubeconfig file with authorization information (the
|
// kubeconfigPath is the path to the kubeconfig file with authorization information (the
|
||||||
// master location is set by the master flag).
|
// master location is set by the master flag).
|
||||||
KubeconfigPath string `json:"kubeconfigPath"`
|
KubeconfigPath string `json:"kubeconfigPath"`
|
||||||
|
@ -80,6 +80,9 @@ func SetDefaults_KubeProxyConfiguration(obj *KubeProxyConfiguration) {
|
|||||||
if obj.IPTablesSyncPeriod.Duration == 0 {
|
if obj.IPTablesSyncPeriod.Duration == 0 {
|
||||||
obj.IPTablesSyncPeriod = unversioned.Duration{Duration: 30 * time.Second}
|
obj.IPTablesSyncPeriod = unversioned.Duration{Duration: 30 * time.Second}
|
||||||
}
|
}
|
||||||
|
if obj.IPTablesMinSyncPeriod.Duration == 0 {
|
||||||
|
obj.IPTablesMinSyncPeriod = unversioned.Duration{Duration: 2 * time.Second}
|
||||||
|
}
|
||||||
zero := unversioned.Duration{}
|
zero := unversioned.Duration{}
|
||||||
if obj.UDPIdleTimeout == zero {
|
if obj.UDPIdleTimeout == zero {
|
||||||
obj.UDPIdleTimeout = unversioned.Duration{Duration: 250 * time.Millisecond}
|
obj.UDPIdleTimeout = unversioned.Duration{Duration: 250 * time.Millisecond}
|
||||||
|
@ -41,6 +41,9 @@ type KubeProxyConfiguration struct {
|
|||||||
// iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
|
// iptablesSyncPeriod is the period that iptables rules are refreshed (e.g. '5s', '1m',
|
||||||
// '2h22m'). Must be greater than 0.
|
// '2h22m'). Must be greater than 0.
|
||||||
IPTablesSyncPeriod unversioned.Duration `json:"iptablesSyncPeriodSeconds"`
|
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.
|
||||||
|
IPTablesMinSyncPeriod unversioned.Duration `json:"iptablesMinSyncPeriodSeconds"`
|
||||||
// kubeconfigPath is the path to the kubeconfig file with authorization information (the
|
// kubeconfigPath is the path to the kubeconfig file with authorization information (the
|
||||||
// master location is set by the master flag).
|
// master location is set by the master flag).
|
||||||
KubeconfigPath string `json:"kubeconfigPath"`
|
KubeconfigPath string `json:"kubeconfigPath"`
|
||||||
|
Loading…
Reference in New Issue
Block a user