Remove feature flag "windows-dns-proxy"#48738
Conversation
| } | ||
|
|
||
| if _, ok := conf.Features["windows-dns-proxy"]; ok { | ||
| return errors.New("feature option 'windows-dns-proxy' is only available on Windows") |
There was a problem hiding this comment.
Not sure how likely it is, but the only thing we could do is to (in the Windows variant of this) either return an error, or to log a Error / Warning to surface that the user is using an option that's no longer taken into account; given that the default is "true", that should probably only be relevant if they have it configured and set to false;
Lines 687 to 693 in 43bbacb
Alternative to logging, we could add it to the Warnings array on the /info endpoint, which shows up in the output of docker info;
Lines 46 to 50 in 43bbacb
Lines 153 to 165 in 43bbacb
There was a problem hiding this comment.
Ok, sure - I've added a docker info warning (and I'll mark this as ready for review!), how does this look? ...
PS C:\ProgramData\docker> docker info
Client:
Version: 27.3.0-rc.1
[...]
Insecure Registries:
::1/128
127.0.0.0/8
Live Restore Enabled: false
WARNING: Feature flag "windows-dns-proxy" has been removed, forwarding to external DNS resolvers is enabled.
Added in 26.1.0, commit 6c68be2 Default changed to true in 27.0.0, commit 33f9a53 No sign of problems so, remove. Signed-off-by: Rob Murray <[email protected]>
4f65a0d to
b79bba6
Compare
| if _, ok := cfg.Features["windows-dns-proxy"]; ok { | ||
| v.Warnings = append(v.Warnings, ` | ||
| WARNING: Feature flag "windows-dns-proxy" has been removed, forwarding to external DNS resolvers is enabled.`) | ||
| } |
There was a problem hiding this comment.
Thanks! Yes, I was thinking we'd need it only if someone has false set, but I guess this is good as well to tell them "remove this from your config"
We can remove this in v29.0 or so (maybe earlier, it's just a warning)
- What I did
windows-dns-proxyfeature flag #47732Added in 26.1.0, commit 6c68be2
Default changed to true in 27.0.0, commit 33f9a53
- How I did it
No sign of problems so, removed.
- How to verify it
It doesn't do anything now.
- Description for the changelog