Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.31.0-k3s1 #10715

Merged
merged 8 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/k3s-io/k3s/pkg/containerd"
ctr2 "github.com/k3s-io/k3s/pkg/ctr"
kubectl2 "github.com/k3s-io/k3s/pkg/kubectl"
crictl2 "github.com/kubernetes-sigs/cri-tools/cmd/crictl"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
crictl2 "sigs.k8s.io/cri-tools/cmd/crictl"
)

func init() {
Expand Down
254 changes: 126 additions & 128 deletions go.mod

Large diffs are not rendered by default.

596 changes: 320 additions & 276 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/agent/containerd/config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
"k8s.io/kubernetes/pkg/kubelet/util"
"k8s.io/cri-client/pkg/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/containerd/config_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
util3 "github.com/k3s-io/k3s/pkg/util"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"k8s.io/kubernetes/pkg/kubelet/util"
"k8s.io/cri-client/pkg/util"
)

func getContainerdArgs(cfg *config.Node) []string {
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/cri/cri_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"google.golang.org/grpc"
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
k8sutil "k8s.io/kubernetes/pkg/kubelet/util"
k8sutil "k8s.io/cri-client/pkg/util"
)

const socketPrefix = "unix://"
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/cri/cri_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"google.golang.org/grpc"
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
"k8s.io/kubernetes/pkg/kubelet/util"
"k8s.io/cri-client/pkg/util"
)

// Connection connects to a CRI socket at the given path.
Expand Down
5 changes: 4 additions & 1 deletion pkg/agent/https/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/k3s-io/k3s/pkg/generated/clientset/versioned/scheme"
"github.com/k3s-io/k3s/pkg/util"
"github.com/k3s-io/k3s/pkg/version"
"k8s.io/apiserver/pkg/apis/apiserver"
"k8s.io/apiserver/pkg/authentication/authenticator"
"k8s.io/apiserver/pkg/authorization/authorizer"
genericapifilters "k8s.io/apiserver/pkg/endpoints/filters"
Expand Down Expand Up @@ -63,7 +64,9 @@ func Start(ctx context.Context, nodeConfig *config.Node, runtime *config.Control
}

authn := options.NewDelegatingAuthenticationOptions()
authn.DisableAnonymous = true
authn.Anonymous = &apiserver.AnonymousAuthConfig{
Enabled: false,
}
authn.SkipInClusterLookup = true
authn.ClientCert = options.ClientCertAuthenticationOptions{
ClientCA: nodeConfig.AgentConfig.ClientCA,
Expand Down
10 changes: 5 additions & 5 deletions pkg/agent/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
}

customConfig := defaultConfig.DeepCopy()
customConfig.Conntrack.Min = utilsptr.To(int32(100))
customConfig.Conntrack.TCPCloseWaitTimeout.Duration = 42 * time.Second
customConfig.Linux.Conntrack.Min = utilsptr.To(int32(100))
customConfig.Linux.Conntrack.TCPCloseWaitTimeout.Duration = 42 * time.Second

type args struct {
nodeConfig *daemonconfig.Node
Expand All @@ -44,7 +44,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
want: &defaultConfig.Conntrack,
want: &defaultConfig.Linux.Conntrack,
wantErr: false,
},
{
Expand All @@ -56,7 +56,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
want: &defaultConfig.Conntrack,
want: &defaultConfig.Linux.Conntrack,
wantErr: false,
},
{
Expand All @@ -80,7 +80,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
want: &customConfig.Conntrack,
want: &customConfig.Linux.Conntrack,
wantErr: false,
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/crictl/crictl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"runtime"

"github.com/kubernetes-sigs/cri-tools/cmd/crictl"
"github.com/urfave/cli"
"sigs.k8s.io/cri-tools/cmd/crictl"
)

func Run(ctx *cli.Context) error {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

129 changes: 9 additions & 120 deletions pkg/generated/clientset/versioned/typed/k3s.cattle.io/v1/addon.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading