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
38a8c72f
Commit
38a8c72f
authored
Jan 02, 2018
by
xiangpengzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print the full path of Kubeconfig files.
parent
da9a4d5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kubeconfig.go
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
+2
-2
No files found.
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
View file @
38a8c72f
...
...
@@ -231,7 +231,7 @@ func createKubeConfigFileIfNotExists(outDir, filename string, config *clientcmda
return
fmt
.
Errorf
(
"failed to save kubeconfig file %s on disk: %v"
,
kubeConfigFilePath
,
err
)
}
fmt
.
Printf
(
"[kubeconfig] Wrote KubeConfig file to disk: %q
\n
"
,
filename
)
fmt
.
Printf
(
"[kubeconfig] Wrote KubeConfig file to disk: %q
\n
"
,
kubeConfigFilePath
)
return
nil
}
...
...
@@ -258,7 +258,7 @@ func createKubeConfigFileIfNotExists(outDir, filename string, config *clientcmda
// kubeadm doesn't validate the existing kubeconfig file more than this (kubeadm trusts the client certs to be valid)
// Basically, if we find a kubeconfig file with the same path; the same CA cert and the same server URL;
// kubeadm thinks those files are equal and doesn't bother writing a new file
fmt
.
Printf
(
"[kubeconfig] Using existing up-to-date KubeConfig file: %q
\n
"
,
filename
)
fmt
.
Printf
(
"[kubeconfig] Using existing up-to-date KubeConfig file: %q
\n
"
,
kubeConfigFilePath
)
return
nil
}
...
...
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