mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
Revert "kube-proxy: internal config: refactor HealthzAddress and MetricsAddress "
This commit is contained in:
@@ -551,8 +551,7 @@ func Test_checkBadIPConfig(t *testing.T) {
|
||||
name: "ok IPv4 metricsBindAddress",
|
||||
proxy: &ProxyServer{
|
||||
Config: &kubeproxyconfig.KubeProxyConfiguration{
|
||||
MetricsBindAddresses: []string{"10.0.0.0/24"},
|
||||
MetricsBindPort: 9999,
|
||||
MetricsBindAddress: "10.0.0.1:9999",
|
||||
},
|
||||
PrimaryIPFamily: v1.IPv4Protocol,
|
||||
},
|
||||
@@ -563,8 +562,7 @@ func Test_checkBadIPConfig(t *testing.T) {
|
||||
name: "ok IPv6 metricsBindAddress",
|
||||
proxy: &ProxyServer{
|
||||
Config: &kubeproxyconfig.KubeProxyConfiguration{
|
||||
MetricsBindAddresses: []string{"fd01:2345::/64"},
|
||||
MetricsBindPort: 9999,
|
||||
MetricsBindAddress: "[fd01:2345::1]:9999",
|
||||
},
|
||||
PrimaryIPFamily: v1.IPv6Protocol,
|
||||
},
|
||||
@@ -575,8 +573,7 @@ func Test_checkBadIPConfig(t *testing.T) {
|
||||
name: "ok unspecified wrong-family metricsBindAddress",
|
||||
proxy: &ProxyServer{
|
||||
Config: &kubeproxyconfig.KubeProxyConfiguration{
|
||||
MetricsBindAddresses: []string{"0.0.0.0/0"},
|
||||
MetricsBindPort: 9999,
|
||||
MetricsBindAddress: "0.0.0.0:9999",
|
||||
},
|
||||
PrimaryIPFamily: v1.IPv6Protocol,
|
||||
},
|
||||
@@ -587,8 +584,7 @@ func Test_checkBadIPConfig(t *testing.T) {
|
||||
name: "wrong family metricsBindAddress",
|
||||
proxy: &ProxyServer{
|
||||
Config: &kubeproxyconfig.KubeProxyConfiguration{
|
||||
MetricsBindAddresses: []string{"10.0.0.0/24"},
|
||||
MetricsBindPort: 9999,
|
||||
MetricsBindAddress: "10.0.0.1:9999",
|
||||
},
|
||||
PrimaryIPFamily: v1.IPv6Protocol,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user