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

Improve error handling for '/containerLogs' API in kubelet. #4373

Merged
merged 1 commit into from
Feb 12, 2015

Conversation

vishh
Copy link
Contributor

@vishh vishh commented Feb 12, 2015

@vishh
Copy link
Contributor Author

vishh commented Feb 12, 2015

@dchen1107: I see that many of the kubelet APIs can follow a input validation pattern similar to this PR. WDYT?

@dchen1107
Copy link
Member

LGTM, will merge tomorrow morning.

@saad-ali saad-ali added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 12, 2015
saad-ali added a commit that referenced this pull request Feb 12, 2015
Improve error handling for '/containerLogs' API in kubelet.
@saad-ali saad-ali merged commit 35a62fb into kubernetes:master Feb 12, 2015
@smarterclayton
Copy link
Contributor

This broke how we fetch logs for containers that are stopped - I don't think our intent was to not return logs for stopped containers, just make it deterministic.

for cName, cStatus := range podStatus.Info {
if containerName == cName {
exists = true
if !cStatus.Ready {
Copy link
Contributor

Choose a reason for hiding this comment

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

Specifically, this check is too aggressive, it means you cannot return logs for a container that ran to completion and succeeded (a RestartPolicyNever)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants