Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d9506299
Commit
d9506299
authored
Jun 11, 2018
by
fabriziopandini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix-kubeadm-pull-log
parent
d70e7844
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
init.go
cmd/kubeadm/app/cmd/init.go
+4
-0
checks.go
cmd/kubeadm/app/preflight/checks.go
+1
-0
No files found.
cmd/kubeadm/app/cmd/init.go
View file @
d9506299
...
@@ -259,6 +259,10 @@ func NewInit(cfgPath string, externalcfg *kubeadmapiv1alpha2.MasterConfiguration
...
@@ -259,6 +259,10 @@ func NewInit(cfgPath string, externalcfg *kubeadmapiv1alpha2.MasterConfiguration
if
err
:=
preflight
.
RunInitMasterChecks
(
utilsexec
.
New
(),
cfg
,
ignorePreflightErrors
);
err
!=
nil
{
if
err
:=
preflight
.
RunInitMasterChecks
(
utilsexec
.
New
(),
cfg
,
ignorePreflightErrors
);
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
fmt
.
Println
(
"[preflight/images] Pulling images required for setting up a Kubernetes cluster"
)
fmt
.
Println
(
"[preflight/images] This might take a minute or two, depending on the speed of your internet connection"
)
fmt
.
Println
(
"[preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'"
)
if
err
:=
preflight
.
RunPullImagesCheck
(
utilsexec
.
New
(),
cfg
,
ignorePreflightErrors
);
err
!=
nil
{
if
err
:=
preflight
.
RunPullImagesCheck
(
utilsexec
.
New
(),
cfg
,
ignorePreflightErrors
);
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
cmd/kubeadm/app/preflight/checks.go
View file @
d9506299
...
@@ -843,6 +843,7 @@ func (ImagePullCheck) Name() string {
...
@@ -843,6 +843,7 @@ func (ImagePullCheck) Name() string {
// Check pulls images required by kubeadm. This is a mutating check
// Check pulls images required by kubeadm. This is a mutating check
func
(
i
ImagePullCheck
)
Check
()
(
warnings
,
errors
[]
error
)
{
func
(
i
ImagePullCheck
)
Check
()
(
warnings
,
errors
[]
error
)
{
for
_
,
image
:=
range
i
.
ImageList
{
for
_
,
image
:=
range
i
.
ImageList
{
glog
.
V
(
1
)
.
Infoln
(
"pulling "
,
image
)
if
err
:=
i
.
Images
.
Exists
(
image
);
err
==
nil
{
if
err
:=
i
.
Images
.
Exists
(
image
);
err
==
nil
{
continue
continue
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment