Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
797925f1
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,发现更多精彩内容 >>
提交
797925f1
编写于
12月 10, 2017
作者:
K
kairen
提交者:
dlorenc
12月 12, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ingress controller, and fix integration test
上级
1fc0b9b9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
6 deletion
+23
-6
deploy/addons/ingress/ingress-rc.yaml
deploy/addons/ingress/ingress-rc.yaml
+1
-1
pkg/minikube/constants/constants.go
pkg/minikube/constants/constants.go
+10
-0
test/integration/addons_test.go
test/integration/addons_test.go
+12
-5
未找到文件。
deploy/addons/ingress/ingress-rc.yaml
浏览文件 @
797925f1
...
...
@@ -77,7 +77,7 @@ spec:
spec
:
terminationGracePeriodSeconds
:
60
containers
:
-
image
:
quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0
-beta.17
-
image
:
quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0
name
:
nginx-ingress-controller
imagePullPolicy
:
IfNotPresent
readinessProbe
:
...
...
pkg/minikube/constants/constants.go
浏览文件 @
797925f1
...
...
@@ -170,6 +170,11 @@ var LocalkubeCachedImages = []string{
// Dashboard
"gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.3"
,
// Ingress Controller
"nginx:alpine"
,
"gcr.io/google_containers/defaultbackend:1.4"
,
"quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0"
,
// DNS
"gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5"
,
"gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5"
,
...
...
@@ -190,6 +195,11 @@ func GetKubeadmCachedImages(version string) []string {
// Dashboard
"gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.3"
,
// Ingress Controller
"nginx:alpine"
,
"gcr.io/google_containers/defaultbackend:1.4"
,
"quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0"
,
// Addon Manager
"gcr.io/google-containers/kube-addon-manager:v6.4-beta.2"
,
...
...
test/integration/addons_test.go
浏览文件 @
797925f1
...
...
@@ -97,11 +97,18 @@ func testIngressController(t *testing.T) {
t
.
Fatalf
(
"waiting for nginx to be up: %s"
,
err
)
}
expectedStr
:=
"Welcome to nginx!"
runCmd
:=
fmt
.
Sprintf
(
"curl http://127.0.0.1:80 -H 'Host: nginx.example.com'"
)
sshCmdOutput
,
_
:=
minikubeRunner
.
SSH
(
runCmd
)
if
!
strings
.
Contains
(
sshCmdOutput
,
expectedStr
)
{
t
.
Fatalf
(
"ExpectedStr sshCmdOutput to be: %s. Output was: %s"
,
expectedStr
,
sshCmdOutput
)
checkIngress
:=
func
()
error
{
expectedStr
:=
"Welcome to nginx!"
runCmd
:=
fmt
.
Sprintf
(
"curl http://127.0.0.1:80 -H 'Host: nginx.example.com'"
)
sshCmdOutput
,
_
:=
minikubeRunner
.
SSH
(
runCmd
)
if
!
strings
.
Contains
(
sshCmdOutput
,
expectedStr
)
{
return
fmt
.
Errorf
(
"ExpectedStr sshCmdOutput to be: %s. Output was: %s"
,
expectedStr
,
sshCmdOutput
)
}
return
nil
}
if
err
:=
util
.
Retry
(
t
,
checkIngress
,
3
*
time
.
Second
,
5
);
err
!=
nil
{
t
.
Fatalf
(
err
.
Error
())
}
defer
kubectlRunner
.
RunCommand
([]
string
{
"delete"
,
"-f"
,
podPath
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录