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

kubelet: Small refactor on GetPhase() #18237

Merged
merged 1 commit into from
Dec 10, 2015

Conversation

yifan-gu
Copy link
Contributor

@yifan-gu yifan-gu commented Dec 4, 2015

@k8s-github-robot
Copy link

Labelling this PR as size/M

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 4, 2015
@yujuhong yujuhong assigned Random-Liu and unassigned lavalamp Dec 4, 2015
failed++
}
case containerStatus.State.Waiting != nil:
if containerStatus.LastTerminationState.Terminated != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

The definition of stopped is unclear at best. I think #17971 also needs to be clearly defined...

Copy link
Member

Choose a reason for hiding this comment

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

Yeah...I'm totally confused now...Why the waiting container should be calculated as stopped here? @yujuhong

Copy link
Contributor

Choose a reason for hiding this comment

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

Because they are in the crashloop backoff state :-(

Copy link
Member

Choose a reason for hiding this comment

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

Ah...I didn't read the following code just now...Thanks! :)

@k8s-bot
Copy link

k8s-bot commented Dec 4, 2015

GCE e2e build/test failed for commit db4b7b10bc5397173abd51a3286374bbe1068d5d.

@Random-Liu Random-Liu added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 4, 2015
@Random-Liu
Copy link
Member

@yifan-gu LGTM. Switch is really cleaner than if-else chain (I just took a Golang class today, the teacher also taught us this, hahaha)

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Dec 5, 2015

@k8s-bot test this

@k8s-bot
Copy link

k8s-bot commented Dec 5, 2015

GCE e2e test build/test passed for commit db4b7b10bc5397173abd51a3286374bbe1068d5d.

@Random-Liu Random-Liu changed the title kublet: Small refactor on GetPhase() kubelet: Small refactor on GetPhase() Dec 5, 2015
@yifan-gu
Copy link
Contributor Author

yifan-gu commented Dec 5, 2015

@Random-Liu Thanks for fixing the title :) I fixed the commit title as well.

@k8s-github-robot
Copy link

PR changed after LGTM, removing LGTM.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 5, 2015
@Random-Liu Random-Liu added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 5, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 5, 2015

GCE e2e test build/test passed for commit 4ac6129.

@k8s-github-robot
Copy link

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Dec 7, 2015

GCE e2e test build/test passed for commit 4ac6129.

@k8s-github-robot
Copy link

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 4ac6129.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 10, 2015

GCE e2e test build/test passed for commit 4ac6129.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 10, 2015
@k8s-github-robot k8s-github-robot merged commit 2ef2544 into kubernetes:master Dec 10, 2015
@yifan-gu yifan-gu deleted the refactor_getphase branch December 10, 2015 17:25
openshift-publish-robot pushed a commit to openshift/kubernetes that referenced this pull request Feb 27, 2018
Automatic merge from submit-queue (batch tested with PRs 18237, 18586, 18578).

UPSTREAM: 58685: Fill size attribute for the OpenStack V3 API volumes

The getVolume method in OpenStack provider is not filling the Size for the V3 API type volumes. This
breaks the PV resizing of Cinder volumes which compares the existing volume size with the new request. This leads to redundant volume resize calls to the cloud provider that end with errors.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1535314

Origin-commit: 0ea2737d4d4112ece8f6616e108867a46d85ae37
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants