DockerCLI/cli/command
Sebastiaan van Stijn a71d39bcad
info: remove printServerWarningsLegacy
Docker Engine 18.09 (API v1.39) introduced a Warnings field in the into response.
This enhancement was not gated by API version (see [moby/moby@a3d4238]), and
will be returned by Docker Engine 18.09 and up, regardless of the API version
chosen.

Likewise, the client-side code was written to prefer warnings returned by
the daemon, but to fall back on client-side detection of missing features
based on information in the Info response (see [docker/cli@3c27ce2]).

Thse warnings are purely informational, and given that Docker Engine versions
before 18.09 have reached EOL 6 Years ago, and any current version of the
Engine now returns the Warnings, it should be safe to remove the client-side
fall back logic.

This patch removes the client-side fall back code for warnings that was
added in 3c27ce21c9.

[moby/moby@a3d4238]: a3d4238b9c
[docker/cli@3c27ce2]: 3c27ce21c9

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-20 20:45:59 +01:00
..
builder Plumb contexts through commands 2023-12-12 22:30:16 +01:00
checkpoint Plumb contexts through commands 2023-12-12 22:30:16 +01:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion vendor: github.com/docker/docker cdb3f9fb8dca (v25.0.0-dev) 2023-10-13 22:09:04 +02:00
config add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
container cli/command/container: parseSecurityOpts: fix --security-opt seccomp=builtin 2024-01-05 12:19:00 +01:00
context add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
formatter add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
idresolver add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
image change back nolint -> nosec 2024-01-03 15:33:16 +01:00
inspect add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
manifest Plumb contexts through commands 2023-12-12 22:30:16 +01:00
network add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
node add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
plugin add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
registry Plumb contexts through commands 2023-12-12 22:30:16 +01:00
secret add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
service add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
stack add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
swarm Plumb contexts through commands 2023-12-12 22:30:16 +01:00
system info: remove printServerWarningsLegacy 2024-01-20 20:45:59 +01:00
task linting: address slice-append issues found by gocritic 2023-11-20 16:02:17 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
volume add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
cli.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
cli_options.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
cli_options_test.go golangci-lint: enable thelper linter 2023-11-20 16:02:17 +01:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
context_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
defaultcontextstore_test.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
events_utils.go vendor: github.com/docker/docker 7abd7fa73965 (v25.0.0-dev) 2023-09-05 13:43:35 +02:00
registry.go migrate reference github.com/distribution/reference 2023-09-05 17:53:20 +02:00
registry_test.go cli/command: remove dot-imports and unhandled errors 2023-10-23 15:21:47 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00