add support for dns nameservers and search domains in stack files#32059
Merged
vdemeester merged 1 commit intomoby:masterfrom Apr 11, 2017
Merged
add support for dns nameservers and search domains in stack files#32059vdemeester merged 1 commit intomoby:masterfrom
vdemeester merged 1 commit intomoby:masterfrom
Conversation
b1f94dc to
8d77d27
Compare
vdemeester
reviewed
Mar 26, 2017
Member
vdemeester
left a comment
There was a problem hiding this comment.
@dnephin I don't remember if there was a reason for not supporting it (other than not available in the service/create endpoint at that time 👼
Design SGTM otherwise 👍
Contributor
Author
|
Cool. I will go forward with a test and also not sending an empty |
7ddc1d2 to
d73eb2b
Compare
Member
|
Design LGTM |
Member
|
I guess they are already in the jsonschema |
Contributor
Author
|
I will add a test for the conversion and will ping you when done. |
Signed-off-by: Benjamin Boudreau <boudreau.benjamin@gmail.com>
d73eb2b to
6b60a60
Compare
Contributor
Author
|
@dnephin Just added some tests. I believe this PR is ready to go. |
dnephin
pushed a commit
to dnephin/docker
that referenced
this pull request
Apr 17, 2017
add support for dns nameservers and search domains in stack files
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.
- What I did
Added support for dns config flags in stack files. (only nameservers and search domain)
- How I did it
docker service create --dns x.x.x.x ...is supported right now but stack files do not support it.I just simply hooked the
ServiceConfigwith theContainerSpecused inServiceSpec- How to verify it
docker swarm init
stack deploy behaviour before this PR
Notice the
DNSConfigis passed in correctly.- Description for the changelog
add support for dns nameservers and search domains in stack files
- A picture of a cute animal (not mandatory but encouraged)
Fixes #29685