Skip to content

Commit d1186c3

Browse files
committed
Add disable-imex-channel-creation feature flag
Signed-off-by: Evan Lezar <[email protected]>
1 parent fb8a553 commit d1186c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cmd/nvidia-container-runtime-hook/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func doPrestart() {
9595
if cli.LoadKmods {
9696
args = append(args, "--load-kmods")
9797
}
98+
if hook.Features.DisableImexChannelCreation.IsEnabled() {
99+
args = append(args, "--no-create-imex-channels")
100+
}
98101
if cli.NoPivot {
99102
args = append(args, "--no-pivot")
100103
}

internal/config/features.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ package config
1818

1919
// features specifies a set of named features.
2020
type features struct {
21+
// DisableImexChannelCreation ensures that the implicit creation of
22+
// requested IMEX channels is skipped when invoking the nvidia-container-cli.
23+
DisableImexChannelCreation *feature `toml:"disable-imex-channel-creation,omitempty"`
2124
}
2225

2326
type feature bool

0 commit comments

Comments
 (0)