Skip to content

Commit

Permalink
Remove "get" checks
Browse files Browse the repository at this point in the history
The e2e tests are currently failing because of this k8s-dqlite error:

  k8s.k8s-dqlite[1947]: time="2025-01-09T15:00:22Z" level=error
  msg="error while range on /registry/clusterroles/system:aggregate-to-view :
  unexpected limit: want 0, got 1"

A separate PR is removing this check: #212

That being considered, we'll apply this change here to unblock
the CI.
  • Loading branch information
petrutlucian94 committed Jan 10, 2025
1 parent 32d9896 commit f1e6430
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/kine/server/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ func (l *LimitedServer) get(ctx context.Context, r *etcdserverpb.RangeRequest) (
attribute.Int64("revision", r.Revision),
)

if len(r.RangeEnd) != 0 {
return nil, fmt.Errorf("unexpected rangeEnd: want empty, got %s", r.RangeEnd)
}
if r.Limit != 0 {
return nil, fmt.Errorf("unexpected limit: want 0, got %d", r.Limit)
}

rev, kv, err := l.backend.List(ctx, string(r.Key), "", 1, r.Revision)
if err != nil {
return nil, err
Expand Down

0 comments on commit f1e6430

Please sign in to comment.