ingress-nginx-helm/vendor/sigs.k8s.io/testing_frameworks/integration/internal/apiserver.go
Manuel Alejandro de Brito Fontes d3c957192e
Update go dependencies
2019-05-23 04:58:14 -04:00

17 lines
474 B
Go

package internal
var APIServerDefaultArgs = []string{
"--etcd-servers={{ if .EtcdURL }}{{ .EtcdURL.String }}{{ end }}",
"--cert-dir={{ .CertDir }}",
"--insecure-port={{ if .URL }}{{ .URL.Port }}{{ end }}",
"--insecure-bind-address={{ if .URL }}{{ .URL.Hostname }}{{ end }}",
"--secure-port={{ if .SecurePort }}{{ .SecurePort }}{{ end }}",
}
func DoAPIServerArgDefaulting(args []string) []string {
if len(args) != 0 {
return args
}
return APIServerDefaultArgs
}