Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
20b50426
Commit
20b50426
authored
Aug 16, 2024
by
galal-hussein
Committed by
Derek Nola
Aug 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to v1.31.0
Signed-off-by:
galal-hussein
<
hussein.galal.ahmed.11@gmail.com
>
parent
876d54cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
14 deletions
+17
-14
main.go
cmd/server/main.go
+1
-1
go.mod
go.mod
+0
-0
go.sum
go.sum
+0
-0
config_linux.go
pkg/agent/containerd/config_linux.go
+1
-1
cri_linux.go
pkg/agent/cri/cri_linux.go
+1
-1
https.go
pkg/agent/https/https.go
+4
-1
run_test.go
pkg/agent/run_test.go
+5
-5
crictl.go
pkg/cli/crictl/crictl.go
+1
-1
build
scripts/build
+1
-1
validate-cross-compilation
scripts/validate-cross-compilation
+1
-1
version.sh
scripts/version.sh
+2
-2
No files found.
cmd/server/main.go
View file @
20b50426
...
@@ -22,9 +22,9 @@ import (
...
@@ -22,9 +22,9 @@ import (
"github.com/k3s-io/k3s/pkg/containerd"
"github.com/k3s-io/k3s/pkg/containerd"
ctr2
"github.com/k3s-io/k3s/pkg/ctr"
ctr2
"github.com/k3s-io/k3s/pkg/ctr"
kubectl2
"github.com/k3s-io/k3s/pkg/kubectl"
kubectl2
"github.com/k3s-io/k3s/pkg/kubectl"
crictl2
"github.com/kubernetes-sigs/cri-tools/cmd/crictl"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"github.com/urfave/cli"
crictl2
"sigs.k8s.io/cri-tools/cmd/crictl"
)
)
func
init
()
{
func
init
()
{
...
...
go.mod
View file @
20b50426
This diff is collapsed.
Click to expand it.
go.sum
View file @
20b50426
This diff is collapsed.
Click to expand it.
pkg/agent/containerd/config_linux.go
View file @
20b50426
...
@@ -19,7 +19,7 @@ import (
...
@@ -19,7 +19,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
"golang.org/x/sys/unix"
"k8s.io/
kubernetes/pkg/kubelet
/util"
"k8s.io/
cri-client/pkg
/util"
)
)
const
(
const
(
...
...
pkg/agent/cri/cri_linux.go
View file @
20b50426
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc"
runtimeapi
"k8s.io/cri-api/pkg/apis/runtime/v1"
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://"
const
socketPrefix
=
"unix://"
...
...
pkg/agent/https/https.go
View file @
20b50426
...
@@ -11,6 +11,7 @@ import (
...
@@ -11,6 +11,7 @@ import (
"github.com/k3s-io/k3s/pkg/generated/clientset/versioned/scheme"
"github.com/k3s-io/k3s/pkg/generated/clientset/versioned/scheme"
"github.com/k3s-io/k3s/pkg/util"
"github.com/k3s-io/k3s/pkg/util"
"github.com/k3s-io/k3s/pkg/version"
"github.com/k3s-io/k3s/pkg/version"
"k8s.io/apiserver/pkg/apis/apiserver"
"k8s.io/apiserver/pkg/authentication/authenticator"
"k8s.io/apiserver/pkg/authentication/authenticator"
"k8s.io/apiserver/pkg/authorization/authorizer"
"k8s.io/apiserver/pkg/authorization/authorizer"
genericapifilters
"k8s.io/apiserver/pkg/endpoints/filters"
genericapifilters
"k8s.io/apiserver/pkg/endpoints/filters"
...
@@ -63,7 +64,9 @@ func Start(ctx context.Context, nodeConfig *config.Node, runtime *config.Control
...
@@ -63,7 +64,9 @@ func Start(ctx context.Context, nodeConfig *config.Node, runtime *config.Control
}
}
authn
:=
options
.
NewDelegatingAuthenticationOptions
()
authn
:=
options
.
NewDelegatingAuthenticationOptions
()
authn
.
DisableAnonymous
=
true
authn
.
Anonymous
=
&
apiserver
.
AnonymousAuthConfig
{
Enabled
:
false
,
}
authn
.
SkipInClusterLookup
=
true
authn
.
SkipInClusterLookup
=
true
authn
.
ClientCert
=
options
.
ClientCertAuthenticationOptions
{
authn
.
ClientCert
=
options
.
ClientCertAuthenticationOptions
{
ClientCA
:
nodeConfig
.
AgentConfig
.
ClientCA
,
ClientCA
:
nodeConfig
.
AgentConfig
.
ClientCA
,
...
...
pkg/agent/run_test.go
View file @
20b50426
...
@@ -23,8 +23,8 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
...
@@ -23,8 +23,8 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
}
}
customConfig
:=
defaultConfig
.
DeepCopy
()
customConfig
:=
defaultConfig
.
DeepCopy
()
customConfig
.
Conntrack
.
Min
=
utilsptr
.
To
(
int32
(
100
))
customConfig
.
Linux
.
Conntrack
.
Min
=
utilsptr
.
To
(
int32
(
100
))
customConfig
.
Conntrack
.
TCPCloseWaitTimeout
.
Duration
=
42
*
time
.
Second
customConfig
.
Linux
.
Conntrack
.
TCPCloseWaitTimeout
.
Duration
=
42
*
time
.
Second
type
args
struct
{
type
args
struct
{
nodeConfig
*
daemonconfig
.
Node
nodeConfig
*
daemonconfig
.
Node
...
@@ -44,7 +44,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
...
@@ -44,7 +44,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
},
},
},
want
:
&
defaultConfig
.
Conntrack
,
want
:
&
defaultConfig
.
Linux
.
Conntrack
,
wantErr
:
false
,
wantErr
:
false
,
},
},
{
{
...
@@ -56,7 +56,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
...
@@ -56,7 +56,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
},
},
},
want
:
&
defaultConfig
.
Conntrack
,
want
:
&
defaultConfig
.
Linux
.
Conntrack
,
wantErr
:
false
,
wantErr
:
false
,
},
},
{
{
...
@@ -80,7 +80,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
...
@@ -80,7 +80,7 @@ func Test_UnitGetConntrackConfig(t *testing.T) {
},
},
},
},
},
},
want
:
&
customConfig
.
Conntrack
,
want
:
&
customConfig
.
Linux
.
Conntrack
,
wantErr
:
false
,
wantErr
:
false
,
},
},
}
}
...
...
pkg/cli/crictl/crictl.go
View file @
20b50426
...
@@ -4,8 +4,8 @@ import (
...
@@ -4,8 +4,8 @@ import (
"os"
"os"
"runtime"
"runtime"
"github.com/kubernetes-sigs/cri-tools/cmd/crictl"
"github.com/urfave/cli"
"github.com/urfave/cli"
"sigs.k8s.io/cri-tools/cmd/crictl"
)
)
func
Run
(
ctx
*
cli
.
Context
)
error
{
func
Run
(
ctx
*
cli
.
Context
)
error
{
...
...
scripts/build
View file @
20b50426
...
@@ -9,7 +9,7 @@ GO=${GO-go}
...
@@ -9,7 +9,7 @@ GO=${GO-go}
PKG
=
"github.com/k3s-io/k3s"
PKG
=
"github.com/k3s-io/k3s"
PKG_CONTAINERD
=
"github.com/containerd/containerd"
PKG_CONTAINERD
=
"github.com/containerd/containerd"
PKG_CRICTL
=
"
github.com/kubernetes-sigs
/cri-tools/pkg"
PKG_CRICTL
=
"
sigs.k8s.io
/cri-tools/pkg"
PKG_K8S_BASE
=
"k8s.io/component-base"
PKG_K8S_BASE
=
"k8s.io/component-base"
PKG_K8S_CLIENT
=
"k8s.io/client-go/pkg"
PKG_K8S_CLIENT
=
"k8s.io/client-go/pkg"
PKG_CNI_PLUGINS
=
"github.com/containernetworking/plugins"
PKG_CNI_PLUGINS
=
"github.com/containernetworking/plugins"
...
...
scripts/validate-cross-compilation
View file @
20b50426
...
@@ -10,7 +10,7 @@ GO=${GO-go}
...
@@ -10,7 +10,7 @@ GO=${GO-go}
PKG
=
"github.com/k3s-io/k3s"
PKG
=
"github.com/k3s-io/k3s"
PKG_CONTAINERD
=
"github.com/containerd/containerd"
PKG_CONTAINERD
=
"github.com/containerd/containerd"
PKG_K3S_CONTAINERD
=
"github.com/k3s-io/containerd"
PKG_K3S_CONTAINERD
=
"github.com/k3s-io/containerd"
PKG_CRICTL
=
"
github.com/kubernetes-sigs
/cri-tools/pkg"
PKG_CRICTL
=
"
sigs.k8s.io
/cri-tools/pkg"
PKG_K8S_BASE
=
"k8s.io/component-base"
PKG_K8S_BASE
=
"k8s.io/component-base"
PKG_K8S_CLIENT
=
"k8s.io/client-go/pkg"
PKG_K8S_CLIENT
=
"k8s.io/client-go/pkg"
...
...
scripts/version.sh
View file @
20b50426
...
@@ -37,13 +37,13 @@ if [ -z "$VERSION_CONTAINERD" ]; then
...
@@ -37,13 +37,13 @@ if [ -z "$VERSION_CONTAINERD" ]; then
VERSION_CONTAINERD
=
"v0.0.0"
VERSION_CONTAINERD
=
"v0.0.0"
fi
fi
VERSION_CRICTL
=
$(
get-module-version
github.com/kubernetes-sigs
/cri-tools
)
VERSION_CRICTL
=
$(
get-module-version
sigs.k8s.io
/cri-tools
)
if
[
-z
"
$VERSION_CRICTL
"
]
;
then
if
[
-z
"
$VERSION_CRICTL
"
]
;
then
VERSION_CRICTL
=
"v0.0.0"
VERSION_CRICTL
=
"v0.0.0"
fi
fi
VERSION_K8S_K3S
=
$(
get-module-version k8s.io/kubernetes
)
VERSION_K8S_K3S
=
$(
get-module-version k8s.io/kubernetes
)
VERSION_K8S
=
${
VERSION_K8S_K3S
%
"-k3s
1
"
}
VERSION_K8S
=
${
VERSION_K8S_K3S
%
"-k3s
2
"
}
if
[
-z
"
$VERSION_K8S
"
]
;
then
if
[
-z
"
$VERSION_K8S
"
]
;
then
VERSION_K8S
=
"v0.0.0"
VERSION_K8S
=
"v0.0.0"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment