Skip to content

Commit 689f681

Browse files
author
Mengqi Yu
committed
🐛 fix flag in testenv
1 parent be360b1 commit 689f681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envtest/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var DefaultKubeAPIServerFlags = []string{
5959
"--cert-dir={{ .CertDir }}",
6060
"--insecure-port={{ if .URL }}{{ .URL.Port }}{{ end }}",
6161
"--insecure-bind-address={{ if .URL }}{{ .URL.Hostname }}{{ end }}",
62-
"--secure-port=0",
62+
"--secure-port={{ if .SecurePort }}{{ .SecurePort }}{{ end }}",
6363
"--admission-control=AlwaysAdmit",
6464
}
6565

0 commit comments

Comments
 (0)