fix(service): reload the docker service when daemon.json has changed#289
Merged
noelmcloughlin merged 1 commit intosaltstack-formulas:masterfrom May 21, 2021
Conversation
2926850 to
b34f434
Compare
noelmcloughlin
approved these changes
May 20, 2021
Contributor
noelmcloughlin
left a comment
There was a problem hiding this comment.
LGTM. thanks @danny-smit
Contributor
Author
|
@noelmcloughlin Thanks for reviewing |
Contributor
|
I just wait a day or two for any objections - or someone else to take initiative in merging. Happy to merge now!! |
|
🎉 This PR is included in version 2.0.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Contributor
Author
|
@noelmcloughlin Thanks for explaining and merging! |
This file contains hidden or 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
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.
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]Changes related to the build system[chore]Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]Changes to the continuous integration configuration[feat]A new feature[fix]A bug fix[perf]A code change that improves performance[refactor]A code change that neither fixes a bug nor adds a feature[revert]A change used to revert a previous commit[style]Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]Documentation changes[test]Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE?No.
Related issues and/or pull requests
Follow up of #282
Describe the changes you're proposing
Ensure that the docker daemon is reloaded when changes are applied to the daemon.json.
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
The 'watch' added to the 'service.running' state causes the service to be restarted:
Documentation checklist
README(e.g.Available states).pillar.example.Testing checklist
state_top).Additional context
Current tests execute a clean installation. The problem occurs when salt runs a second time with configuration changes for the daemon.json. It is difficult to get this included in the tests.