Refactor handling of local traffic detection.

Kubernetes-commit: 8c6956e5bb4f9557e6ba459f1f6bbcb80e3b5b80
This commit is contained in:
Satyadeep Musuvathy 2020-01-16 18:51:31 -08:00 committed by Kubernetes Publisher
parent e8d2dcd19a
commit cafffb64d4
1 changed files with 5 additions and 0 deletions

View File

@ -160,6 +160,8 @@ type KubeProxyConfiguration struct {
Winkernel KubeProxyWinkernelConfiguration `json:"winkernel"` Winkernel KubeProxyWinkernelConfiguration `json:"winkernel"`
// ShowHiddenMetricsForVersion is the version for which you want to show hidden metrics. // ShowHiddenMetricsForVersion is the version for which you want to show hidden metrics.
ShowHiddenMetricsForVersion string `json:"showHiddenMetricsForVersion"` ShowHiddenMetricsForVersion string `json:"showHiddenMetricsForVersion"`
// DetectLocalMode determines mode to use for detecting local traffic, defaults to LocalModeClusterCIDR
DetectLocalMode LocalMode `json:"detectLocalMode"`
} }
// Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables' // Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables'
@ -176,3 +178,6 @@ type KubeProxyConfiguration struct {
// future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy, // future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy,
// this always falls back to the userspace proxy. // this always falls back to the userspace proxy.
type ProxyMode string type ProxyMode string
// LocalMode represents modes to detect local traffic from the node
type LocalMode string