Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@yifan-gu
Copy link
Contributor

api_service: Minor refactoring on what to return for different pod state.

If a pod is in Embryo, Preparing, AbortedPrepare state,
only id and state will be returned.

If a pod is in other states, the pod manifest and
apps will be returned when 'detailed' is true in the request.

Valid pid and networks are only returned when a pod is in Running.

@yifan-gu
Copy link
Contributor Author

Also fix #1890 As now the api service will check the state first before fetching the pod manifest.

@yifan-gu yifan-gu force-pushed the fix_api_service branch 2 times, most recently from 88dbc8f to 564743d Compare December 18, 2015 02:42
@alban alban modified the milestones: v0.15.0, v0.14.0 Dec 18, 2015
@alban
Copy link
Member

alban commented Dec 18, 2015

It does not compile in Semaphore

Copy link
Contributor

Choose a reason for hiding this comment

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

Evidently I missed this earlier, but while you're here: we should probably describe which pid exactly this is, since a pod is multiple processes.

@yifan-gu yifan-gu force-pushed the fix_api_service branch 5 times, most recently from 5198ea9 to 18a88d9 Compare December 19, 2015 01:43
…ate.

If a pod is in Embryo, Preparing, AbortedPrepare state,
only id and state will be returned.

If a pod is in other states, the pod manifest and
apps will be returned when 'detailed' is true in the request.

Valid pid and networks are only returned when a pod is in Running.
@jonboulle
Copy link
Contributor

lgtm

yifan-gu added a commit that referenced this pull request Dec 20, 2015
api_service: Minor refactoring on what to return for different pod state.
@yifan-gu yifan-gu merged commit 63eac2b into rkt:master Dec 20, 2015
@yifan-gu yifan-gu deleted the fix_api_service branch December 20, 2015 07:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants