Merge pull request #125479 from kundan2707/kube_proxy_update

kube-proxy config update
This commit is contained in:
Kubernetes Prow Robot 2024-06-27 18:13:32 -07:00 committed by GitHub
commit bec82cc63c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -59107,7 +59107,7 @@ func schema_k8sio_kube_proxy_config_v1alpha1_KubeProxyConfiguration(ref common.R
},
"detectLocalMode": {
SchemaProps: spec.SchemaProps{
Description: "detectLocalMode determines mode to use for detecting local traffic, defaults to LocalModeClusterCIDR",
Description: "detectLocalMode determines mode to use for detecting local traffic, defaults to ClusterCIDR",
Default: "",
Type: []string{"string"},
Format: "",
@ -59122,7 +59122,7 @@ func schema_k8sio_kube_proxy_config_v1alpha1_KubeProxyConfiguration(ref common.R
},
"clusterCIDR": {
SchemaProps: spec.SchemaProps{
Description: "clusterCIDR is the CIDR range of the pods in the cluster. (For dual-stack clusters, this can be a comma-separated dual-stack pair of CIDR ranges.). When DetectLocalMode is set to LocalModeClusterCIDR, kube-proxy will consider traffic to be local if its source IP is in this range. (Otherwise it is not used.)",
Description: "clusterCIDR is the CIDR range of the pods in the cluster. (For dual-stack clusters, this can be a comma-separated dual-stack pair of CIDR ranges.). When DetectLocalMode is set to ClusterCIDR, kube-proxy will consider traffic to be local if its source IP is in this range. (Otherwise it is not used.)",
Default: "",
Type: []string{"string"},
Format: "",

View File

@ -213,13 +213,13 @@ type KubeProxyConfiguration struct {
// winkernel contains winkernel-related configuration options.
Winkernel KubeProxyWinkernelConfiguration `json:"winkernel"`
// detectLocalMode determines mode to use for detecting local traffic, defaults to LocalModeClusterCIDR
// detectLocalMode determines mode to use for detecting local traffic, defaults to ClusterCIDR
DetectLocalMode LocalMode `json:"detectLocalMode"`
// detectLocal contains optional configuration settings related to DetectLocalMode.
DetectLocal DetectLocalConfiguration `json:"detectLocal"`
// clusterCIDR is the CIDR range of the pods in the cluster. (For dual-stack
// clusters, this can be a comma-separated dual-stack pair of CIDR ranges.). When
// DetectLocalMode is set to LocalModeClusterCIDR, kube-proxy will consider
// DetectLocalMode is set to ClusterCIDR, kube-proxy will consider
// traffic to be local if its source IP is in this range. (Otherwise it is not
// used.)
ClusterCIDR string `json:"clusterCIDR"`