Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
0a5b64ee
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,发现更多精彩内容 >>
提交
0a5b64ee
编写于
2月 11, 2019
作者:
T
Thomas Stromberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve text strings for existing VM's and setting cluster permissions
上级
452054bf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
8 deletion
+9
-8
cmd/minikube/cmd/start.go
cmd/minikube/cmd/start.go
+1
-4
pkg/minikube/bootstrapper/kubeadm/kubeadm.go
pkg/minikube/bootstrapper/kubeadm/kubeadm.go
+1
-1
pkg/minikube/cluster/cluster.go
pkg/minikube/cluster/cluster.go
+7
-3
未找到文件。
cmd/minikube/cmd/start.go
浏览文件 @
0a5b64ee
...
...
@@ -331,10 +331,7 @@ func startHost(api libmachine.API, mc cfg.MachineConfig) (*host.Host, bool) {
prepareNone
()
}
else
{
if
exists
{
if
cfg
.
GetMachineName
()
==
constants
.
DefaultMachineName
{
console
.
OutStyle
(
"tip"
,
"Tip: To create another VM, use 'minikube start -p <new name>' or use 'minikube delete' to delete this one."
)
}
console
.
OutStyle
(
"waiting"
,
"Waiting for existing %q VM to start ..."
,
cfg
.
GetMachineName
())
console
.
OutStyle
(
"waiting"
,
"Spinning up existing VM for %q ..."
,
cfg
.
GetMachineName
())
}
else
{
console
.
OutStyle
(
"starting-vm"
,
"Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ..."
,
mc
.
VMDriver
,
mc
.
CPUs
,
mc
.
Memory
,
mc
.
DiskSize
)
}
...
...
pkg/minikube/bootstrapper/kubeadm/kubeadm.go
浏览文件 @
0a5b64ee
...
...
@@ -188,7 +188,7 @@ func (k *KubeadmBootstrapper) StartCluster(k8s config.KubernetesConfig) error {
}
// NOTE: We have not yet asserted that we can access the apiserver. Now would be a great time to do so.
console
.
OutStyle
(
"permissions"
,
"
Setting up cluster admin privilege
s ..."
)
console
.
OutStyle
(
"permissions"
,
"
Configuring cluster permission
s ..."
)
if
err
:=
util
.
RetryAfter
(
100
,
elevateKubeSystemPrivileges
,
time
.
Millisecond
*
500
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"timed out waiting to elevate kube-system RBAC privileges"
)
}
...
...
pkg/minikube/cluster/cluster.go
浏览文件 @
0a5b64ee
...
...
@@ -80,10 +80,14 @@ func StartHost(api libmachine.API, config cfg.MachineConfig) (*host.Host, error)
}
if
h
.
Driver
.
DriverName
()
!=
config
.
VMDriver
{
console
.
Warning
(
"Ignoring --vm-driver=%s, as the %q host was created using the %s driver."
,
console
.
Out
(
"
\n
"
)
console
.
Warning
(
"Ignoring --vm-driver=%s, as the existing %q VM was created using the %s driver."
,
config
.
VMDriver
,
cfg
.
GetMachineName
(),
h
.
Driver
.
DriverName
())
console
.
Warning
(
"To change drivers, create a new host using `minikube start -p <name>` or run `minikube delete -p %s`"
,
h
.
Driver
.
DriverName
(),
cfg
.
GetMachineName
())
console
.
Warning
(
"To switch drivers, you may create a new VM using `minikube start -p <name> --vm-driver=%s`"
,
config
.
VMDriver
)
console
.
Warning
(
"Alternatively, you may delete the existing VM using `minikube delete -p %s`"
,
cfg
.
GetMachineName
())
console
.
Out
(
"
\n
"
)
}
else
if
exists
&&
cfg
.
GetMachineName
()
==
constants
.
DefaultMachineName
{
console
.
OutStyle
(
"tip"
,
"Tip: To create a new cluster, use 'minikube start -p <new name>' or use 'minikube delete' to delete this one."
)
}
s
,
err
:=
h
.
Driver
.
GetState
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录