Fix linting issues

parent c1413e1c
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
func main() { func main() {
app := cmds.NewApp() app := cmds.NewApp()
app.Commands = []cli.Command{ app.Commands = []*cli.Command{
cmds.NewAgentCommand(agent.Run), cmds.NewAgentCommand(agent.Run),
} }
......
...@@ -2,7 +2,6 @@ package loadbalancer ...@@ -2,7 +2,6 @@ package loadbalancer
import ( import (
"bufio" "bufio"
"context"
"errors" "errors"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
...@@ -106,7 +105,7 @@ func TestFailOver(t *testing.T) { ...@@ -106,7 +105,7 @@ func TestFailOver(t *testing.T) {
DataDir: tmpDir, DataDir: tmpDir,
} }
lb, err := New(context.Background(), cfg.DataDir, SupervisorServiceName, cfg.ServerURL) lb, err := New(cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
if err != nil { if err != nil {
assertEqual(t, err, nil) assertEqual(t, err, nil)
} }
...@@ -157,7 +156,7 @@ func TestFailFast(t *testing.T) { ...@@ -157,7 +156,7 @@ func TestFailFast(t *testing.T) {
DataDir: tmpDir, DataDir: tmpDir,
} }
lb, err := New(context.Background(), cfg.DataDir, SupervisorServiceName, cfg.ServerURL) lb, err := New(cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
if err != nil { if err != nil {
assertEqual(t, err, nil) assertEqual(t, err, nil)
} }
......
...@@ -103,7 +103,7 @@ func startWrangler(ctx context.Context, config *Config) error { ...@@ -103,7 +103,7 @@ func startWrangler(ctx context.Context, config *Config) error {
return return
case <-config.ControlConfig.Runtime.APIServerReady: case <-config.ControlConfig.Runtime.APIServerReady:
if err := runControllers(ctx, config); err != nil { if err := runControllers(ctx, config); err != nil {
logrus.Fatal("failed to start controllers: %v", err) logrus.Fatalf("failed to start controllers: %v", err)
} }
} }
}() }()
...@@ -433,7 +433,7 @@ func setMasterRoleLabel(ctx context.Context, nodes v1.NodeClient) error { ...@@ -433,7 +433,7 @@ func setMasterRoleLabel(ctx context.Context, nodes v1.NodeClient) error {
node.Labels[MasterRoleLabelKey] = "true" node.Labels[MasterRoleLabelKey] = "true"
_, err = nodes.Update(node) _, err = nodes.Update(node)
if err == nil { if err == nil {
logrus.Infof("master role label has been set succesfully on node: %s", nodeName) logrus.Infof("master role label has been set successfully on node: %s", nodeName)
break break
} }
select { select {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment