Skip to content

[release/2.4] ctr: disable slice flag separator on commands - #14188

Merged
samuelkarp merged 1 commit into
containerd:release/2.4from
k8s-infra-cherrypick-robot:cherry-pick-14185-to-release/2.4
Sep 17, 2026
Merged

samuelkarp merged 1 commit into
containerd:release/2.4from
k8s-infra-cherrypick-robot:cherry-pick-14185-to-release/2.4

Conversation

@k8s-infra-cherrypick-robot

@k8s-infra-cherrypick-robot k8s-infra-cherrypick-robot commented Sep 17, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #14185

/assign thaJeztah

Fix bug where comma-separated flag values were incorrectly split in ctr subcommands

In urfave/cli/v3, child commands do not inherit
DisableSliceFlagSeparator from the root command, unlike in
urfave/cli/v2. When containerd migrated to v3 in commit f72829f,
subcommands inadvertently reverted to splitting slice flags on commas,
breaking flags that expect comma-separated values such as
--mount type=bind,src=/tmp,dst=/host,options=rbind:ro.

Explicitly set DisableSliceFlagSeparator on all cli.Command structs in
cmd/ctr/commands, restoring the behavior where slice flags are not
split on commas.

Fixes containerd#14181

Assisted-by: Antigravity
Signed-off-by: Samuel Karp <[email protected]>
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Sep 17, 2026

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samuelkarp
samuelkarp merged commit cb906ab into containerd:release/2.4 Sep 17, 2026
55 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 17, 2026
@samuelkarp samuelkarp added impact/changelog area/ctr ctr development tool labels Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants