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
389e065e
Unverified
Commit
389e065e
authored
Feb 21, 2017
by
Derek McQuay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubeadm: update token to use '.' in discovery pkg
parent
746cc5d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
flags.go
cmd/kubeadm/app/discovery/flags.go
+1
-1
flags_test.go
cmd/kubeadm/app/discovery/flags_test.go
+1
-1
No files found.
cmd/kubeadm/app/discovery/flags.go
View file @
389e065e
...
...
@@ -46,7 +46,7 @@ func (d *discoveryValue) String() string {
case
d
.
v
.
File
!=
nil
:
return
"file://"
+
d
.
v
.
File
.
Path
case
d
.
v
.
Token
!=
nil
:
return
fmt
.
Sprintf
(
"token://%s
:
%s@%s"
,
d
.
v
.
Token
.
ID
,
d
.
v
.
Token
.
Secret
,
strings
.
Join
(
d
.
v
.
Token
.
Addresses
,
","
))
return
fmt
.
Sprintf
(
"token://%s
.
%s@%s"
,
d
.
v
.
Token
.
ID
,
d
.
v
.
Token
.
Secret
,
strings
.
Join
(
d
.
v
.
Token
.
Addresses
,
","
))
default
:
return
"unknown"
}
...
...
cmd/kubeadm/app/discovery/flags_test.go
View file @
389e065e
...
...
@@ -60,7 +60,7 @@ func TestNewDiscoveryValue(t *testing.T) {
Addresses
:
[]
string
{
"foobar"
},
},
},
},
expect
:
"token://foo
:
bar@foobar"
,
},
expect
:
"token://foo
.
bar@foobar"
,
},
}
for
_
,
rt
:=
range
tests
{
...
...
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