Mark --kubelet-https deprecated, unconditionally use https for apiserver->kubelet connections
This commit is contained in:
@@ -30,7 +30,6 @@ import (
|
||||
|
||||
func TestMakeTransportInvalid(t *testing.T) {
|
||||
config := &KubeletClientConfig{
|
||||
EnableHTTPS: true,
|
||||
//Invalid certificate and key path
|
||||
TLSClientConfig: restclient.TLSClientConfig{
|
||||
CertFile: "../../client/testdata/mycertinvalid.cer",
|
||||
@@ -50,13 +49,12 @@ func TestMakeTransportInvalid(t *testing.T) {
|
||||
|
||||
func TestMakeTransportValid(t *testing.T) {
|
||||
config := &KubeletClientConfig{
|
||||
Port: 1234,
|
||||
EnableHTTPS: true,
|
||||
Port: 1234,
|
||||
TLSClientConfig: restclient.TLSClientConfig{
|
||||
CertFile: "../../client/testdata/mycertvalid.cer",
|
||||
// TLS Configuration, only applies if EnableHTTPS is true.
|
||||
// TLS Configuration
|
||||
KeyFile: "../../client/testdata/mycertvalid.key",
|
||||
// TLS Configuration, only applies if EnableHTTPS is true.
|
||||
// TLS Configuration
|
||||
CAFile: "../../client/testdata/myCA.cer",
|
||||
},
|
||||
}
|
||||
@@ -90,13 +88,12 @@ func TestMakeInsecureTransport(t *testing.T) {
|
||||
}
|
||||
|
||||
config := &KubeletClientConfig{
|
||||
Port: uint(port),
|
||||
EnableHTTPS: true,
|
||||
Port: uint(port),
|
||||
TLSClientConfig: restclient.TLSClientConfig{
|
||||
CertFile: "../../client/testdata/mycertvalid.cer",
|
||||
// TLS Configuration, only applies if EnableHTTPS is true.
|
||||
// TLS Configuration
|
||||
KeyFile: "../../client/testdata/mycertvalid.key",
|
||||
// TLS Configuration, only applies if EnableHTTPS is true.
|
||||
// TLS Configuration
|
||||
CAFile: "../../client/testdata/myCA.cer",
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user