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
4dd45b31
Unverified
Commit
4dd45b31
authored
Sep 26, 2023
by
Manuel Buil
Committed by
GitHub
Sep 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8439 from manuelbuil/fixGofmt
Fix gofmt error
parents
b6ab24c4
172a7f1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
agent.go
pkg/cli/agent/agent.go
+1
-1
server.go
pkg/cli/server/server.go
+1
-1
No files found.
pkg/cli/agent/agent.go
View file @
4dd45b31
...
@@ -60,7 +60,7 @@ func Run(ctx *cli.Context) error {
...
@@ -60,7 +60,7 @@ func Run(ctx *cli.Context) error {
}
}
if
cmds
.
AgentConfig
.
FlannelIface
!=
""
&&
len
(
cmds
.
AgentConfig
.
NodeIP
)
==
0
{
if
cmds
.
AgentConfig
.
FlannelIface
!=
""
&&
len
(
cmds
.
AgentConfig
.
NodeIP
)
==
0
{
ip
,
err
:=
util
.
GetIPFromInterface
(
cmds
.
AgentConfig
.
FlannelIface
)
ip
,
err
:=
util
.
GetIPFromInterface
(
cmds
.
AgentConfig
.
FlannelIface
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
pkg/cli/server/server.go
View file @
4dd45b31
...
@@ -217,7 +217,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
...
@@ -217,7 +217,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
}
}
if
cmds
.
AgentConfig
.
FlannelIface
!=
""
&&
len
(
cmds
.
AgentConfig
.
NodeIP
)
==
0
{
if
cmds
.
AgentConfig
.
FlannelIface
!=
""
&&
len
(
cmds
.
AgentConfig
.
NodeIP
)
==
0
{
ip
,
err
:=
util
.
GetIPFromInterface
(
cmds
.
AgentConfig
.
FlannelIface
)
ip
,
err
:=
util
.
GetIPFromInterface
(
cmds
.
AgentConfig
.
FlannelIface
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
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