Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cmd/nvidia-ctk-installer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,14 @@ func (a *app) Run(ctx context.Context, c *cli.Command, o *options) error {
o.toolkitOptions.ContainerRuntimeRuntimes = lowlevelRuntimePaths
}

err = a.toolkit.Install(c, &o.toolkitOptions, o.runtime)
if err != nil {
return fmt.Errorf("unable to install toolkit: %v", err)
// Skip installing toolkit artifacts if NRI Plugin is enabled. This allows for the switch to transition to NRI plugin
// mode in an already running cluster, as the previous toolkit config toml can continue to be used. This is required
// when deleting pods that reference the runtime classes made stale since the switch to NRI Plugin mode.
if !o.enableNRIPlugin {
err = a.toolkit.Install(c, &o.toolkitOptions, o.runtime)
if err != nil {
return fmt.Errorf("unable to install toolkit: %w", err)
}
}

err = runtimeConfigurer.Setup(c, &o.runtimeOptions)
Expand Down
Loading