-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Refactor the stack services
command to be uniform [carry 2131]
#2167
Merged
thaJeztah
merged 1 commit into
docker:master
from
thaJeztah:carry_refactor_stack_services
Oct 30, 2019
Merged
Refactor the stack services
command to be uniform [carry 2131]
#2167
thaJeztah
merged 1 commit into
docker:master
from
thaJeztah:carry_refactor_stack_services
Oct 30, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thaJeztah
force-pushed
the
carry_refactor_stack_services
branch
11 times, most recently
from
October 28, 2019 11:42
2d0cd51
to
67be0c7
Compare
4 tasks
thaJeztah
force-pushed
the
carry_refactor_stack_services
branch
from
October 29, 2019 14:52
400ee23
to
4cdc783
Compare
thaJeztah
added
area/kubernetes
area/stack
status/2-code-review
and removed
status/0-triage
labels
Oct 29, 2019
Running `docker stack services <STACK> --orchestrator swarm would yield the message "Noting found in stack: asdf" with an exit code 0. The same command with kubernetes orchestrator would yield "nothing found in stack: adsf" (note the lower-case "nothing") and a non-zero exit code. This change makes the `stack services` command uniform for both orchestrators. The logic of getting and printing services is split to reuse the same formatting code. Signed-off-by: Djordje Lukic <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
force-pushed
the
carry_refactor_stack_services
branch
from
October 29, 2019 14:58
4cdc783
to
568ea3a
Compare
@rumpl @silvin-lubecki @chris-crone PTAL this should be an easy review now |
silvin-lubecki
approved these changes
Oct 29, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
👍 |
thaJeztah
commented
Oct 30, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for reviewing! I'll "LGTM" and merge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
carries #2131
closes #2131
depends on:
build static binaries with -tags osusergo #2162 build static binaries with -tags osusergo- What I did
Running
docker stack services <STACK> --orchestrator swarm
would yield the message "Noting found in stack: asdf" with an exit code 0. The same command with kubernetes orchestrator would yield "nothing found in stack: adsf" (note the lower-case "nothing") and a non-zero exit code. This change makes thestack services
command uniform for both orchestrators. The logic of getting and printing services is split to reuse the same formatting code.- How to verify it
Run:
Both commands should return
0
and show the error messageNoting found in stack: unknown
.- Description for the changelog
Stack services will return the same exit code for all orchestrators.
- A picture of a cute animal (not mandatory but encouraged)