kube-apiserver: switch apiserver's DeprecatedInsecureServingOptions

Kubernetes-commit: d787213d1b8802d370032d17157ac1de7573ad15
This commit is contained in:
Dr. Stefan Schimanski 2018-08-06 16:31:23 +02:00 committed by Kubernetes Publisher
parent 3698d7a898
commit a549f2934f
1 changed files with 2 additions and 2 deletions

View File

@ -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 {