Skip to content

fix(k8s/instance): honor the request limit instead of always capping at 10 - #236

Merged
fedemaleh merged 2 commits into
betafrom
fix/k8s-instance-list-limit
Sep 2, 2026
Merged

fix(k8s/instance): honor the request limit instead of always capping at 10#236
fedemaleh merged 2 commits into
betafrom
fix/k8s-instance-list-limit

Conversation

@francocirulli95

Copy link
Copy Markdown
Contributor

Stops the k8s instance list from always returning the first 10 pods.

  • instance/build_context had LIMIT=${LIMIT:-10} and instance/list sliced to it. Nothing in the chain set LIMIT, so a scope with 20 pods showed 10 in the performance view, with no next page.
  • A limit in the request now wins, the LIMIT env var stays as the operator override, and with neither every pod is returned.
  • New bats tests in k8s/instance/tests cover the resolution order and the slice. bats k8s/instance/tests passes.
  • Pairs with the telemetry-logs-api change that forwards limit to the agent.

…at 10

The instance list sliced the pods to LIMIT with a hard default of 10 that
nothing in the chain could override, so scopes with more pods showed only
the first 10 in the dashboard. A `limit` in the request now wins, the LIMIT
env var stays as the operator override, and with neither every pod is
returned.
@francocirulli95
francocirulli95 force-pushed the fix/k8s-instance-list-limit branch from d4576a9 to e9edcc9 Compare September 2, 2026 19:56
@fedemaleh fedemaleh mentioned this pull request Sep 2, 2026
@francocirulli95
francocirulli95 marked this pull request as ready for review September 2, 2026 20:40
@fedemaleh
fedemaleh merged commit 97ce0e8 into beta Sep 2, 2026
3 checks passed
@fedemaleh
fedemaleh deleted the fix/k8s-instance-list-limit branch September 2, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants