mirror of
https://github.com/containerd/containerd.git
synced 2026-07-06 06:39:28 +00:00
the client package provides a WithDialOpts option, however, dial-options passed to override all defaults that are set in containerd. This makes it difficult to expand the defaults with custom options, as this requires copying the defaults, and trying to keep those in sync (e.g. see [moby#48617]). This patch introduces a new `WithExtraDialOpts` option which, unlike `WithDialOpts` are appended to, instead of overriding, previous options. This allows setting custom options, while maintaining containerd's defaults. Also unlike `WithDialOpts`, this option can be used multiple times to allow additional options to be set. [moby#48617]: https://github.com/moby/moby/pull/48617 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>