kube-apiserver: switch apiserver's DeprecatedInsecureServingOptions
Kubernetes-commit: d787213d1b8802d370032d17157ac1de7573ad15
This commit is contained in:
parent
3698d7a898
commit
a549f2934f
|
@ -464,7 +464,7 @@ func TestServerRunWithSNI(t *testing.T) {
|
|||
config.Version = &v
|
||||
|
||||
config.EnableIndex = true
|
||||
secureOptions := SecureServingOptions{
|
||||
secureOptions := (&SecureServingOptions{
|
||||
BindAddress: net.ParseIP("127.0.0.1"),
|
||||
BindPort: 6443,
|
||||
ServerCert: GeneratableKeyCert{
|
||||
|
@ -474,7 +474,7 @@ func TestServerRunWithSNI(t *testing.T) {
|
|||
},
|
||||
},
|
||||
SNICertKeys: namedCertKeys,
|
||||
}.WithLoopback()
|
||||
}).WithLoopback()
|
||||
// use a random free port
|
||||
ln, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue