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
66dff577
Commit
66dff577
authored
Sep 03, 2015
by
Steve Milner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: improved master coverage.
parent
90ba96d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
0 deletions
+1
-0
master.go
pkg/master/master.go
+1
-0
master_test.go
pkg/master/master_test.go
+0
-0
No files found.
pkg/master/master.go
View file @
66dff577
...
@@ -1024,6 +1024,7 @@ func (m *Master) setupSecureProxy(user, privateKeyfile, publicKeyfile string) {
...
@@ -1024,6 +1024,7 @@ func (m *Master) setupSecureProxy(user, privateKeyfile, publicKeyfile string) {
}
}
func
(
m
*
Master
)
generateSSHKey
(
user
,
privateKeyfile
,
publicKeyfile
string
)
error
{
func
(
m
*
Master
)
generateSSHKey
(
user
,
privateKeyfile
,
publicKeyfile
string
)
error
{
// TODO: user is not used. Consider removing it as an input to the function.
private
,
public
,
err
:=
util
.
GenerateKey
(
2048
)
private
,
public
,
err
:=
util
.
GenerateKey
(
2048
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
pkg/master/master_test.go
View file @
66dff577
This diff is collapsed.
Click to expand it.
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