Skip to content
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

Add the /runningpods/ api endpoint #611

Merged
merged 4 commits into from May 13, 2019

Conversation

sargun
Copy link
Contributor

@sargun sargun commented May 9, 2019

This adds an API endpoint from the kubelet (/runningpods/). It is
an endpoint on kubelet which is considered a "debug" endpoint, so
it might be worth exposing through the options, but by default
it is exposed in most k8s configs AFAICT.

sargun added 2 commits May 8, 2019 17:22
This adds tracing to the testing to get the kubelet's logs upon
failure. In addition, it keeps track of the pods, and the node
statuses throughout the test.
@sargun sargun force-pushed the add-running-pods-endpoint branch from c613524 to cceb51d Compare May 9, 2019 00:48
ctx = log.WithLogger(ctx, log.L)
pods, err := p.GetPods(ctx)
if err != nil {
return strongerrors.System(err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpuguy83 No idea if this is the right one to use.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provider should give the correct error rather than try to figure it out here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will handlError handle it correctly if they don't return a strongerror?

@sargun sargun force-pushed the add-running-pods-endpoint branch from cceb51d to 0ba2881 Compare May 9, 2019 03:22
This adds an API endpoint from the kubelet (/runningpods/). It is
an endpoint on kubelet which is considered a "debug" endpoint, so
it might be worth exposing through the options, but by default
it is exposed in most k8s configs AFAICT.
@sargun sargun force-pushed the add-running-pods-endpoint branch from 0ba2881 to 10c44e7 Compare May 10, 2019 05:28
@sargun
Copy link
Contributor Author

sargun commented May 13, 2019

@cpuguy83 any opinions?

Copy link
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83 cpuguy83 merged commit 63fa4e1 into virtual-kubelet:master May 13, 2019
hongbin pushed a commit to hongbin/virtual-kubelet that referenced this pull request May 18, 2020
* Add the /runningpods/ api endpoint

This adds an API endpoint from the kubelet (/runningpods/). It is
an endpoint on kubelet which is considered a "debug" endpoint, so
it might be worth exposing through the options, but by default
it is exposed in most k8s configs AFAICT.
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.

None yet

2 participants