Skip to content

feat: add custom CLI arguments for Multus CNI #2148

Draft
e0ne wants to merge 2 commits intoMellanox:masterfrom
e0ne:multus-cli
Draft

feat: add custom CLI arguments for Multus CNI #2148
e0ne wants to merge 2 commits intoMellanox:masterfrom
e0ne:multus-cli

Conversation

@e0ne
Copy link
Collaborator

@e0ne e0ne commented Feb 6, 2026

No description provided.

e0ne added 2 commits February 6, 2026 17:14
Extends MultusSpec with optional CliArgs field to allow passing
custom command-line arguments to Multus CNI, enabling more
flexible Multus configuration.

Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
Adds argument merging functionality to allow CliArgs
to extend or override default Multus CNI arguments.
The implementation builds default args with runtime values,
merges with user-provided CliArgs (with CliArgs taking precedence),
and passes the merged list to the DaemonSet template.

Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
@e0ne e0ne requested a review from adrianchiris February 6, 2026 16:53
return arg
}

// mergeMultusArgs merges default args with custom CliArgs, allowing CliArgs to override defaults.
Copy link
Collaborator

Choose a reason for hiding this comment

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

what if i want to remove an arg ?

maybe its better to:

  1. have default set of args
  2. if user provides args we use that (no merging)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree, that's simplifies implementation and adds more flexibility. I'll update my pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants