diff --git a/config/v1alpha1/types.go b/config/v1alpha1/types.go index fc31406..7b29591 100644 --- a/config/v1alpha1/types.go +++ b/config/v1alpha1/types.go @@ -160,6 +160,8 @@ type KubeProxyConfiguration struct { Winkernel KubeProxyWinkernelConfiguration `json:"winkernel"` // ShowHiddenMetricsForVersion is the version for which you want to show hidden metrics. 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' @@ -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, // this always falls back to the userspace proxy. type ProxyMode string + +// LocalMode represents modes to detect local traffic from the node +type LocalMode string