Skip to content

Snapshots with more than 500 pods will return incorrect data #1

Open
@fernandorubbo

Description

@fernandorubbo

Current version of the plugin executes kubectl command and it limits the requests. Once pods are the root of the data used in this plugin we will see incorrect numbers for large (>500 pods) cluster.

Eg.
kubectl get pods -v=9

Executes
curl -k -v -XGET -H "User-Agent: kubectl/v1.13.11 (linux/amd64) kubernetes/2e298c7" -H "Accept: application/json;as=Table;v=v1beta1;g=meta.k8s.io, application/json" 'https://34.68.198.225/api/v1/namespaces/default/pods?limit=500'

We need to replace kubectl command and call api directly using the pagination feature.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions