Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add disableIMEXChannelCreation feature flag #741

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

elezar
Copy link
Member

@elezar elezar commented Oct 14, 2024

This change adds a disableIMEXChannelCreation feature flag that allows the --no-create-imex-channels option added in NVIDIA/libnvidia-container#286 to be toggled.

This allows IMEX channels to be exposed in environment where they are expected to be created up front.

See also NVIDIA/k8s-device-plugin#985

@elezar elezar requested a review from klueska October 14, 2024 13:48
@elezar elezar self-assigned this Oct 14, 2024
@elezar elezar changed the title Add disableImexChannelCreation feature flag Add disableIMEXChannelCreation feature flag Oct 15, 2024
case FeatureGDRCopy:
return fs.GDRCopy.isEnabled(envvar, in...)
return fs.GDRCopy.isEnabledWithEnvvarOverride("NVIDIA_GDRCOPY", in...)
// Features without envvar overrides
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
// Features without envvar overrides
// Global features.
// These cannot be set on a per-container bases and as such don't have envvar overrides

internal/config/features.go Outdated Show resolved Hide resolved
@elezar elezar force-pushed the imex-default branch 3 times, most recently from 61f7dec to c9389e4 Compare October 16, 2024 13:31
This change enables opt-in (off-by-default) features to be opted into.
These features can be toggled by name by specifying the (repeated)
--opt-in-features command line argument or as a comma-separated list
in the NVIDIA_CONTAINER_TOOLKIT_OPT_IN_FEATURES environment variable.

Signed-off-by: Evan Lezar <[email protected]>
@elezar elezar merged commit b077e26 into NVIDIA:main Oct 17, 2024
10 checks passed
@elezar elezar deleted the imex-default branch October 17, 2024 13:26
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.

3 participants