mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix linting issues
This commit is contained in:
parent
c1413e1c89
commit
720197b9b1
@ -11,7 +11,7 @@ import (
|
||||
|
||||
func main() {
|
||||
app := cmds.NewApp()
|
||||
app.Commands = []cli.Command{
|
||||
app.Commands = []*cli.Command{
|
||||
cmds.NewAgentCommand(agent.Run),
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@ package loadbalancer
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@ -106,7 +105,7 @@ func TestFailOver(t *testing.T) {
|
||||
DataDir: tmpDir,
|
||||
}
|
||||
|
||||
lb, err := New(context.Background(), cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
|
||||
lb, err := New(cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
|
||||
if err != nil {
|
||||
assertEqual(t, err, nil)
|
||||
}
|
||||
@ -157,7 +156,7 @@ func TestFailFast(t *testing.T) {
|
||||
DataDir: tmpDir,
|
||||
}
|
||||
|
||||
lb, err := New(context.Background(), cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
|
||||
lb, err := New(cfg.DataDir, SupervisorServiceName, cfg.ServerURL)
|
||||
if err != nil {
|
||||
assertEqual(t, err, nil)
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ func startWrangler(ctx context.Context, config *Config) error {
|
||||
return
|
||||
case <-config.ControlConfig.Runtime.APIServerReady:
|
||||
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 {
|
||||
node.Labels[MasterRoleLabelKey] = "true"
|
||||
_, err = nodes.Update(node)
|
||||
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
|
||||
}
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user