Skip to content

Commit

Permalink
Merge pull request k0sproject#3510 from twz123/fix-ci-for-kernel-6.2
Browse files Browse the repository at this point in the history
Fixes for kernel >= 6.0
  • Loading branch information
twz123 authored Sep 21, 2023
2 parents 6c8cf9a + 8f13f13 commit e19102f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions inttest/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *CliSuite) TestK0sCliKubectlAndResetCommand() {

s.T().Run("k0sInstall", func(t *testing.T) {
// Install with some arbitrary kubelet flags so we see those get properly passed to the kubelet
out, err := ssh.ExecWithOutput(s.Context(), "/usr/local/bin/k0s install controller --enable-worker --disable-components konnectivity-server,metrics-server --kubelet-extra-args='--event-qps=7 --enable-load-reader=true'")
out, err := ssh.ExecWithOutput(s.Context(), "/usr/local/bin/k0s install controller --enable-worker --disable-components konnectivity-server,metrics-server --kubelet-extra-args='--housekeeping-interval=10s --log-flush-frequency=5s'")
assert.NoError(t, err)
assert.Equal(t, "", out)
})
Expand Down Expand Up @@ -114,9 +114,9 @@ func (s *CliSuite) TestK0sCliKubectlAndResetCommand() {

// Check that the kubelet extra flags are properly set
kubeletCmdLine, err := s.GetKubeletCMDLine(s.ControllerNode(0))
s.Require().NoError(err)
s.Require().Contains(kubeletCmdLine, "--event-qps=7")
s.Require().Contains(kubeletCmdLine, "--enable-load-reader=true")
require.NoError(err)
assert.Contains(kubeletCmdLine, "--housekeeping-interval=10s")
assert.Contains(kubeletCmdLine, "--log-flush-frequency=5s")
})

s.T().Log("waiting for k0s to terminate")
Expand Down
8 changes: 4 additions & 4 deletions inttest/common/footloosesuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,19 +1062,19 @@ func (s *FootlooseSuite) initializeFootlooseCluster() error {
}

// Verifies that kubelet process has the address flag set
func (s *FootlooseSuite) GetKubeletCMDLine(node string) (string, error) {
func (s *FootlooseSuite) GetKubeletCMDLine(node string) ([]string, error) {
ssh, err := s.SSH(s.Context(), node)
if err != nil {
return "", err
return nil, err
}
defer ssh.Disconnect()

output, err := ssh.ExecWithOutput(s.Context(), `cat /proc/$(pidof kubelet)/cmdline`)
if err != nil {
return "", err
return nil, err
}

return output, nil
return strings.Split(output, "\x00"), nil
}

func (s *FootlooseSuite) initializeFootlooseClusterInDir(dir string) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/constant/constant_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const (
EnvoyProxyImage = "quay.io/k0sproject/envoy-distroless"
EnvoyProxyImageVersion = "v1.24.1"
CalicoImage = "quay.io/k0sproject/calico-cni"
CalicoComponentImagesVersion = "v3.26.1-0"
CalicoComponentImagesVersion = "v3.26.1-1"
CalicoNodeImage = "quay.io/k0sproject/calico-node"
KubeControllerImage = "quay.io/k0sproject/calico-kube-controllers"
KubeRouterCNIImage = "quay.io/k0sproject/kube-router"
Expand Down

0 comments on commit e19102f

Please sign in to comment.