-
Notifications
You must be signed in to change notification settings - Fork 16
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
Emulated etcd version #211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, minor nit
BenchmarkResults
Current status
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, small questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @louiseschmidtgen, LGTM!
if r.Limit != 0 { | ||
return nil, fmt.Errorf("unexpected limit: want 0, got %d", r.Limit) | ||
if r.Limit != 0 && len(r.RangeEnd) != 0 { | ||
err := fmt.Errorf("invalid combination of rangeEnd and limit, limit should be 0 got %d", r.Limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can change this to a named return (probably in another PR). Because IMO it's easy to miss this and just return fmt.Errorf(...)
which won't be caught in the defer.
See https://github.com/canonical/k8s-dqlite/pull/212/files#r1879804010, emulatedEtcdVersion is implemented in the linked PR. |
Emulated etcd version
Support for etcd version check that evaluates whether RequestWatchProgress is supported by the current version of etcd endpoint from status request: https://github.com/kubernetes/kubernetes/blob/beb696c2c9467dbc44cbaf35c5a4a3daf0321db3/staging/src/k8s.io/apiserver/pkg/storage/feature/feature_support_checker.go#L157
Affected upstream k8s features:
ConsistentListFromCache
,WatchList
.Backport of k3s-io/kine#316.
This PR defines an emulated etcd version that signifies the RequestWatchProgress is not yet supported. Only once k8s-dqlite supports WatchProgressRequests we can bump the version to signal the feature's support.
Tested with 1.32 rc: https://github.com/canonical/k8s-dqlite/actions/runs/12237343236