We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40070e2 commit ee4a7b9Copy full SHA for ee4a7b9
pkg/envtest/server.go
@@ -62,6 +62,9 @@ func defaultAssetPath(binary string) string {
62
63
// DefaultKubeAPIServerFlags are default flags necessary to bring up apiserver.
64
var DefaultKubeAPIServerFlags = []string{
65
+ // Allow tests to run offline, by preventing API server from attempting to
66
+ // use default route to determine its --advertise-address
67
+ "--advertise-address=127.0.0.1",
68
"--etcd-servers={{ if .EtcdURL }}{{ .EtcdURL.String }}{{ end }}",
69
"--cert-dir={{ .CertDir }}",
70
"--insecure-port={{ if .URL }}{{ .URL.Port }}{{ end }}",
0 commit comments