Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
1dcd5cd3
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1dcd5cd3
编写于
4月 01, 2020
作者:
T
Thomas Stromberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pick a more universal hostname, add comment about docker
上级
04320951
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
test/integration/cert_options_test.go
test/integration/cert_options_test.go
+3
-4
test/integration/main.go
test/integration/main.go
+2
-1
未找到文件。
test/integration/cert_options_test.go
浏览文件 @
1dcd5cd3
...
...
@@ -24,7 +24,7 @@ import (
"testing"
)
func
TestCertOption
Flag
s
(
t
*
testing
.
T
)
{
func
TestCertOptions
(
t
*
testing
.
T
)
{
if
NoneDriver
()
{
t
.
Skip
(
"skipping: none driver does not support ssh or bundle docker"
)
}
...
...
@@ -37,10 +37,9 @@ func TestCertOptionFlags(t *testing.T) {
// Use the most verbose logging for the simplest test. If it fails, something is very wrong.
args
:=
append
([]
string
{
"start"
,
"-p"
,
profile
,
"--apiserver-ips=127.0.0.1,192.168.15.15"
,
"--apiserver-names=localhost,www.google.com"
,
"--apiserver-port=8555"
},
StartArgs
()
...
)
// We can safely override --apiserver-name with
unique that works
// We can safely override --apiserver-name with
if
NeedsPortForward
()
{
args
=
append
(
args
,
"--apiserver-name=kubernetes.docker.internal"
)
args
=
append
(
args
,
"--apiserver-name=localhost"
)
}
rr
,
err
:=
Run
(
t
,
exec
.
CommandContext
(
ctx
,
Target
(),
args
...
))
...
...
test/integration/main.go
浏览文件 @
1dcd5cd3
...
...
@@ -74,7 +74,8 @@ func KicDriver() bool {
return
strings
.
Contains
(
*
startArgs
,
"--driver=docker"
)
||
strings
.
Contains
(
*
startArgs
,
"--vm-driver=docker"
)
||
strings
.
Contains
(
*
startArgs
,
"--vm-driver=podman"
)
||
strings
.
Contains
(
*
startArgs
,
"driver=podman"
)
}
// NeedsPortForward requires whether or not this host needs port forwarding
// NeedsPortForward returns access to endpoints with this driver needs port forwarding
// (Docker on non-Linux platforms requires ports to be forwarded to 127.0.0.1)
func
NeedsPortForward
()
bool
{
return
KicDriver
()
&&
(
runtime
.
GOOS
==
"windows"
||
runtime
.
GOOS
==
"darwin"
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录