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
00fb7aad
Commit
00fb7aad
authored
Jun 08, 2018
by
Ed Bartosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubeadm: use constant instead of hardcoded path
Used DefaultCRISocket constant instead of hardcoded path /var/run/dockershim.sock
parent
80c40978
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
reset.go
cmd/kubeadm/app/cmd/reset.go
+1
-1
reset_test.go
cmd/kubeadm/app/cmd/reset_test.go
+1
-1
No files found.
cmd/kubeadm/app/cmd/reset.go
View file @
00fb7aad
...
...
@@ -76,7 +76,7 @@ func NewCmdReset(in io.Reader, out io.Writer) *cobra.Command {
)
cmd
.
PersistentFlags
()
.
StringVar
(
&
criSocketPath
,
"cri-socket"
,
"/var/run/dockershim.sock"
,
&
criSocketPath
,
"cri-socket"
,
kubeadmapiv1alpha3
.
DefaultCRISocket
,
"The path to the CRI socket to use with crictl when cleaning up containers."
,
)
...
...
cmd/kubeadm/app/cmd/reset_test.go
View file @
00fb7aad
...
...
@@ -58,7 +58,7 @@ func assertDirEmpty(t *testing.T, path string) {
func
TestNewReset
(
t
*
testing
.
T
)
{
var
in
io
.
Reader
certsDir
:=
kubeadmapiv1alpha3
.
DefaultCertificatesDir
criSocketPath
:=
"/var/run/dockershim.sock"
criSocketPath
:=
kubeadmapiv1alpha3
.
DefaultCRISocket
skipPreFlight
:=
false
forceReset
:=
true
...
...
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