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

Always set (empty) UpdateStatus #2820

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thaJeztah
Copy link
Member

When deploying a service the UpdateStatus.State field is not present
during docker service create. This complicates creating scripts that
check for UpdateStatus.State to reach a certain state, as they have to take
into account that the UpdateStatus as a whole is missing.

This patch always sets the UpdateStatus.State to make it easier to consume.

addresses moby/moby#28012

@thaJeztah
Copy link
Member Author

@dperny @aaronlehmann PTAL; I haven't fully triaged if this could have side-effects, but noticed I still had this change in my local repo after looking at moby/moby#28012 (comment), so thought I'd push it as a PR 🤗 😇

@codecov
Copy link

codecov bot commented Feb 9, 2019

Codecov Report

Merging #2820 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2820      +/-   ##
==========================================
- Coverage   62.01%   61.98%   -0.04%     
==========================================
  Files         139      137       -2     
  Lines       22123    22145      +22     
==========================================
+ Hits        13720    13727       +7     
- Misses       6930     6939       +9     
- Partials     1473     1479       +6

When deploying a service the `UpdateStatus.State` field is not present
during `docker service create`. This complicates creating scripts that
check for `UpdateStatus.State` to reach a certain state, as they have to take
into account that the `UpdateStatus` as a whole is missing.

This patch always sets the `UpdateStatus.State` to make it easier to consume.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
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.

1 participant