moby/daemon/config
Sebastiaan van Stijn fb96b94ed0
daemon: remove handling for deprecated "oom-score-adjust", and produce error
This option was deprecated in 5a922dc162, which
is part of the v24.0.0 release, so we can remove it from master.

This patch;

- adds a check to ValidatePlatformConfig, and produces a fatal error
  if oom-score-adjust is set
- removes the deprecated libcontainerd/supervisor.WithOOMScore
- removes the warning from docker info

With this patch:

    dockerd --oom-score-adjust=-500 --validate
    Flag --oom-score-adjust has been deprecated, and will be removed in the next release.
    unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" options have been removed.

And when using `daemon.json`:

    dockerd --validate
    unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: DEPRECATED: The "oom-score-adjust" config parameter and the dockerd "--oom-score-adjust" options have been removed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-06 16:36:17 +02:00
..
builder.go vendor: update buildkit to v0.11.2 2023-02-01 23:29:10 -08:00
builder_test.go daemon/config: use strings.Cut(), fix panic in BuilderGCFilter 2022-11-16 15:15:05 +01:00
config.go d/config: fix default-network-opts in daemon.json 2023-04-03 15:59:53 -04:00
config_linux.go daemon: remove handling for deprecated "oom-score-adjust", and produce error 2023-05-06 16:36:17 +02:00
config_linux_test.go d/config: fix default-network-opts in daemon.json 2023-04-03 15:59:53 -04:00
config_test.go daemon/config: inform the user when the input JSON contains invalid UTF-8 2023-01-10 17:27:21 -07:00
config_windows.go daemon/config: New(): initialize config with platform-specific defaults 2022-08-17 08:54:32 +02:00
config_windows_test.go daemon/config: clean up tests to use common helper 2023-01-10 13:54:17 -07:00
opts.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00