Skip to content

Commit

Permalink
Fix k0s controller args in autopilot inttests
Browse files Browse the repository at this point in the history
The controller args were erroneously passed to the asserting function,
not to the test suite's controller init function.

Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Nov 22, 2023
1 parent 1660081 commit 984b97b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inttest/ap-platformselect/platformselect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s *platformSelectSuite) SetupTest() {
ctx := s.Context()
s.Require().NoError(s.WaitForSSH(s.ControllerNode(0), 2*time.Minute, 1*time.Second))

s.Require().NoError(s.InitController(0), "--disable-components=metrics-server")
s.Require().NoError(s.InitController(0, "--disable-components=metrics-server"))
s.Require().NoError(s.WaitJoinAPI(s.ControllerNode(0)))

client, err := s.ExtensionsClient(s.ControllerNode(0))
Expand Down
2 changes: 1 addition & 1 deletion inttest/ap-single/single_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *plansSingleControllerSuite) SetupTest() {
_, err = ssh.ExecWithOutput(ctx, "cp /dist/k0s /tmp/k0s")
s.Require().NoError(err)

s.Require().NoError(s.InitController(0), "--disable-components=metrics-server")
s.Require().NoError(s.InitController(0, "--disable-components=metrics-server"))
s.Require().NoError(s.WaitJoinAPI(s.ControllerNode(0)))

client, err := s.ExtensionsClient(s.ControllerNode(0))
Expand Down
2 changes: 1 addition & 1 deletion inttest/ap-updater-periodic/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s *plansSingleControllerSuite) SetupTest() {
}
s.PutFileTemplate(s.ControllerNode(0), "/etc/conf.d/k0scontroller", envTemplate, vars)

s.Require().NoError(s.InitController(0), "--disable-components=metrics-server")
s.Require().NoError(s.InitController(0, "--disable-components=metrics-server"))
s.Require().NoError(s.WaitJoinAPI(s.ControllerNode(0)))

kc, err := s.KubeClient(s.ControllerNode(0))
Expand Down
2 changes: 1 addition & 1 deletion inttest/ap-updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *plansSingleControllerSuite) SetupTest() {
ctx := s.Context()
s.Require().NoError(s.WaitForSSH(s.ControllerNode(0), 2*time.Minute, 1*time.Second))

s.Require().NoError(s.InitController(0), "--disable-components=metrics-server")
s.Require().NoError(s.InitController(0, "--disable-components=metrics-server"))
s.Require().NoError(s.WaitJoinAPI(s.ControllerNode(0)))

client, err := s.ExtensionsClient(s.ControllerNode(0))
Expand Down

0 comments on commit 984b97b

Please sign in to comment.