@@ -109,49 +109,49 @@ func TestKubeEndpointConfiguration(t *testing.T) {
109
109
{
110
110
name : "no overrides supplied" ,
111
111
envConfig : map [string ]string {},
112
- expectedKubeletEndpoint : "http://127.0.0.1:10248" ,
113
- expectedKubeProxyEndpoint : "http://127.0.0.1:10256" ,
112
+ expectedKubeletEndpoint : "http://127.0.0.1:10248/healthz " ,
113
+ expectedKubeProxyEndpoint : "http://127.0.0.1:10256/healthz " ,
114
114
}, {
115
115
name : "HOST_ADDRESS override supplied" ,
116
116
envConfig : map [string ]string {
117
117
"HOST_ADDRESS" : "samplehost.testdomain.com" ,
118
118
},
119
- expectedKubeletEndpoint : "http://samplehost.testdomain.com:10248" ,
120
- expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:10256" ,
119
+ expectedKubeletEndpoint : "http://samplehost.testdomain.com:10248/healthz " ,
120
+ expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:10256/healthz " ,
121
121
},
122
122
{
123
123
name : "KUBELET_PORT override supplied" ,
124
124
envConfig : map [string ]string {
125
125
"KUBELET_PORT" : "12345" ,
126
126
},
127
- expectedKubeletEndpoint : "http://127.0.0.1:12345" ,
128
- expectedKubeProxyEndpoint : "http://127.0.0.1:10256" ,
127
+ expectedKubeletEndpoint : "http://127.0.0.1:12345/healthz " ,
128
+ expectedKubeProxyEndpoint : "http://127.0.0.1:10256/healthz " ,
129
129
},
130
130
{
131
131
name : "KUBEPROXY_PORT override supplied" ,
132
132
envConfig : map [string ]string {
133
133
"KUBEPROXY_PORT" : "12345" ,
134
134
},
135
- expectedKubeletEndpoint : "http://127.0.0.1:10248" ,
136
- expectedKubeProxyEndpoint : "http://127.0.0.1:12345" ,
135
+ expectedKubeletEndpoint : "http://127.0.0.1:10248/healthz " ,
136
+ expectedKubeProxyEndpoint : "http://127.0.0.1:12345/healthz " ,
137
137
},
138
138
{
139
139
name : "HOST_ADDRESS and KUBELET_PORT override supplied" ,
140
140
envConfig : map [string ]string {
141
141
"HOST_ADDRESS" : "samplehost.testdomain.com" ,
142
142
"KUBELET_PORT" : "12345" ,
143
143
},
144
- expectedKubeletEndpoint : "http://samplehost.testdomain.com:12345" ,
145
- expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:10256" ,
144
+ expectedKubeletEndpoint : "http://samplehost.testdomain.com:12345/healthz " ,
145
+ expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:10256/healthz " ,
146
146
},
147
147
{
148
148
name : "HOST_ADDRESS and KUBEPROXY_PORT override supplied" ,
149
149
envConfig : map [string ]string {
150
150
"HOST_ADDRESS" : "samplehost.testdomain.com" ,
151
151
"KUBEPROXY_PORT" : "12345" ,
152
152
},
153
- expectedKubeletEndpoint : "http://samplehost.testdomain.com:10248" ,
154
- expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:12345" ,
153
+ expectedKubeletEndpoint : "http://samplehost.testdomain.com:10248/healthz " ,
154
+ expectedKubeProxyEndpoint : "http://samplehost.testdomain.com:12345/healthz " ,
155
155
},
156
156
{
157
157
name : "HOST_ADDRESS, KUBELET_PORT and KUBEPROXY_PORT override supplied" ,
@@ -160,8 +160,8 @@ func TestKubeEndpointConfiguration(t *testing.T) {
160
160
"KUBELET_PROXY" : "12345" ,
161
161
"KUBEPROXY_PORT" : "12346" ,
162
162
},
163
- expectedKubeletEndpoint : "http://10.0.10.1:12345" ,
164
- expectedKubeProxyEndpoint : "http://10.0.10.1:12346" ,
163
+ expectedKubeletEndpoint : "http://10.0.10.1:12345/healthz " ,
164
+ expectedKubeProxyEndpoint : "http://10.0.10.1:12346/healthz " ,
165
165
},
166
166
}
167
167
for _ , test := range testCases {
0 commit comments