Skip to content

Commit 6c3de34

Browse files
committed
Don't read cdi generate mode from runtime mode
Although there is overlap, the runtime modes (auto, legacy, csv, cdi, jit-cdi, wsl) are not directly usable as nvidia-ctk cdi generate modes as these don't include (legacy, cdi, jit-cdi). This change removes reading the CDI generate mode from the config file as this prevents automatic CDI spec generation in cases where a user has updated their config to override the mode (e.g. explicitly set it to legacy or cdi). Signed-off-by: Evan Lezar <[email protected]>
1 parent b1e4c3b commit 6c3de34

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmd/nvidia-ctk/cdi/generate/generate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ func (m command) build() *cli.Command {
132132
Destination: &opts.mode,
133133
Sources: cli.NewValueSourceChain(
134134
cli.EnvVar("NVIDIA_CTK_CDI_GENERATE_MODE"),
135-
m.config.ValueFrom("nvidia-container-runtime.mode"),
136135
),
137136
},
138137
&cli.StringFlag{

0 commit comments

Comments
 (0)