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
de825845
Commit
de825845
authored
Feb 02, 2024
by
Brad Davidson
Committed by
Brad Davidson
Feb 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump kine and set NotifyInterval to what the apiserver expects
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
0ac4c6a0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
go.mod
go.mod
+2
-2
go.sum
go.sum
+4
-4
server.go
pkg/cli/server/server.go
+1
-0
executor.go
pkg/daemons/executor/executor.go
+2
-0
etcd.go
pkg/etcd/etcd.go
+5
-1
No files found.
go.mod
View file @
de825845
...
...
@@ -121,12 +121,12 @@ require (
github.com/ipfs/go-log/v2 v2.5.1
github.com/json-iterator/go v1.1.12
github.com/k3s-io/helm-controller v0.15.8
github.com/k3s-io/kine v0.11.
0
github.com/k3s-io/kine v0.11.
4
github.com/klauspost/compress v1.17.2
github.com/kubernetes-sigs/cri-tools v0.0.0-00010101000000-000000000000
github.com/lib/pq v1.10.2
github.com/libp2p/go-libp2p v0.30.0
github.com/mattn/go-sqlite3 v1.14.1
7
github.com/mattn/go-sqlite3 v1.14.1
9
github.com/minio/minio-go/v7 v7.0.33
github.com/mwitkow/go-http-dialer v0.0.0-20161116154839-378f744fb2b8
github.com/natefinch/lumberjack v2.0.0+incompatible
...
...
go.sum
View file @
de825845
...
...
@@ -976,8 +976,8 @@ github.com/k3s-io/etcd/server/v3 v3.5.9-k3s1 h1:B3039IkTPnwQEt4tIMjC6yd6b1Q3Z9ZZ
github.com/k3s-io/etcd/server/v3 v3.5.9-k3s1/go.mod h1:GgI1fQClQCFIzuVjlvdbMxNbnISt90gdfYyqiAIt65g=
github.com/k3s-io/helm-controller v0.15.8 h1:CAMEPmiqf4ugUCpZdICGINthCn+hkG/l1fadn8aVjfQ=
github.com/k3s-io/helm-controller v0.15.8/go.mod h1:AYitg40howLjKloL/zdjDDOPL1jg/K5R4af0tQcyPR8=
github.com/k3s-io/kine v0.11.
0 h1:7tS0H9yBDxXiy1BgEEkBWLswwG/q4sARPTHdxOMz1qw
=
github.com/k3s-io/kine v0.11.
0/go.mod h1:tjSsWrCetgaGMTfnJW6vzqdT/qOPhF/+nUEaE+eixBA
=
github.com/k3s-io/kine v0.11.
4 h1:ZIXQT4vPPKNL9DwLF4dQ11tWtpJ1C/7OKNIpFmTkImo
=
github.com/k3s-io/kine v0.11.
4/go.mod h1:NmwOWsWgB3aScq5+LEYytAaceqkG7lmCLLjjrWug8v4
=
github.com/k3s-io/klog/v2 v2.100.1-k3s1 h1:xb/Ta8dpQuIZueQEw2YTZUYrKoILdBmPiITVkNmYPa0=
github.com/k3s-io/klog/v2 v2.100.1-k3s1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
github.com/k3s-io/kube-router/v2 v2.0.1 h1:UCsdkQjSfOkVakixilRDDkG9yq775GBSKxBfsyUj8ng=
...
...
@@ -1155,8 +1155,8 @@ github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzp
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/mattn/go-sqlite3 v1.14.1
7 h1:mCRHCLDUBXgpKAqIKsaAaAsrAlbkeomtRFKXh2L6YIM
=
github.com/mattn/go-sqlite3 v1.14.1
7
/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/mattn/go-sqlite3 v1.14.1
9 h1:fhGleo2h1p8tVChob4I9HpmVFIAkKGpiukdrgQbWfGI
=
github.com/mattn/go-sqlite3 v1.14.1
9
/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg=
...
...
pkg/cli/server/server.go
View file @
de825845
...
...
@@ -149,6 +149,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
serverConfig
.
ControlConfig
.
ExtraEtcdArgs
=
cfg
.
ExtraEtcdArgs
serverConfig
.
ControlConfig
.
ExtraSchedulerAPIArgs
=
cfg
.
ExtraSchedulerArgs
serverConfig
.
ControlConfig
.
ClusterDomain
=
cfg
.
ClusterDomain
serverConfig
.
ControlConfig
.
Datastore
.
NotifyInterval
=
5
*
time
.
Second
serverConfig
.
ControlConfig
.
Datastore
.
Endpoint
=
cfg
.
DatastoreEndpoint
serverConfig
.
ControlConfig
.
Datastore
.
BackendTLSConfig
.
CAFile
=
cfg
.
DatastoreCAFile
serverConfig
.
ControlConfig
.
Datastore
.
BackendTLSConfig
.
CertFile
=
cfg
.
DatastoreCertFile
...
...
pkg/daemons/executor/executor.go
View file @
de825845
...
...
@@ -52,7 +52,9 @@ type ETCDConfig struct {
ElectionTimeout
int
`json:"election-timeout"`
Logger
string
`json:"logger"`
LogOutputs
[]
string
`json:"log-outputs"`
ExperimentalInitialCorruptCheck
bool
`json:"experimental-initial-corrupt-check"`
ExperimentalWatchProgressNotifyInterval
time
.
Duration
`json:"experimental-watch-progress-notify-interval"`
}
type
ServerTrust
struct
{
...
...
pkg/etcd/etcd.go
View file @
de825845
...
...
@@ -913,8 +913,10 @@ func (e *ETCD) cluster(ctx context.Context, reset bool, options executor.Initial
HeartbeatInterval
:
500
,
Logger
:
"zap"
,
LogOutputs
:
[]
string
{
"stderr"
},
ExperimentalInitialCorruptCheck
:
true
,
ListenClientHTTPURLs
:
e
.
listenClientHTTPURLs
(),
ExperimentalInitialCorruptCheck
:
true
,
ExperimentalWatchProgressNotifyInterval
:
e
.
config
.
Datastore
.
NotifyInterval
,
},
e
.
config
.
ExtraEtcdArgs
)
}
...
...
@@ -980,7 +982,9 @@ func (e *ETCD) StartEmbeddedTemporary(ctx context.Context) error {
SnapshotCount
:
10000
,
Name
:
e
.
name
,
LogOutputs
:
[]
string
{
"stderr"
},
ExperimentalInitialCorruptCheck
:
true
,
ExperimentalWatchProgressNotifyInterval
:
e
.
config
.
Datastore
.
NotifyInterval
,
},
append
(
e
.
config
.
ExtraEtcdArgs
,
"--max-snapshots=0"
,
"--max-wals=0"
))
}
...
...
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