Skip to content

client: add WithExtraDialOpts option#11276

Merged
estesp merged 1 commit intocontainerd:mainfrom
thaJeztah:client_WithExtraDialOpts
Jan 21, 2025
Merged

client: add WithExtraDialOpts option#11276
estesp merged 1 commit intocontainerd:mainfrom
thaJeztah:client_WithExtraDialOpts

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

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.

@thaJeztah
Copy link
Copy Markdown
Member Author

/test pull-containerd-node-e2e

@thaJeztah
Copy link
Copy Markdown
Member Author

/retest-required

@thaJeztah
Copy link
Copy Markdown
Member Author

Not sure why that test keeps failing; should be unrelated, but let me do a rebase to see if we can get CI go green

@thaJeztah thaJeztah force-pushed the client_WithExtraDialOpts branch from 4df425e to ccc9bbf Compare January 19, 2025 17:36
@djdongjin
Copy link
Copy Markdown
Member

Not sure why that test keeps failing; should be unrelated, but let me do a rebase to see if we can get CI go green

It's a k8s side issue kubernetes/kubernetes#129695. A fix seems on the way kubernetes/test-infra#34179.

@AkihiroSuda AkihiroSuda added this pull request to the merge queue Jan 20, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 20, 2025
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]: moby/moby#48617

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the client_WithExtraDialOpts branch from ccc9bbf to a6dc990 Compare January 21, 2025 15:19
@thaJeztah
Copy link
Copy Markdown
Member Author

Not sure why that test keeps failing; should be unrelated, but let me do a rebase to see if we can get CI go green

It's a k8s side issue kubernetes/kubernetes#129695. A fix seems on the way kubernetes/test-infra#34179.

Thanks for linking those (and thanks for review, both!). I saw the PR was merged, so I did another rebase to see if the problem is fixed now 👍

@thaJeztah
Copy link
Copy Markdown
Member Author

🎉 CI is green now 👍

@estesp estesp added this pull request to the merge queue Jan 21, 2025
Merged via the queue into containerd:main with commit 10bfd5f Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants