Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Sep 19, 2024

This change switches from invoking the toolkit install command when installing the NVIDIA Container Toolkit from the toolkit container to invoking the GO API directly.

This is also done for the {{ .Runtime }} setup and {{ .Runtime }} cleanup commands.

This allows for a clearer dependence between the runtime installation and configuration and the toolkit installation.

Note that this assumes that the generic envvars are used instead of DOCKER_, CONTAINERD_, CRIO_ envvars where applicable and also drops support for the RUNTIME_ARGS envvar. This should be validated with the GPU Operator versions that we expect to consume this.

@elezar elezar self-assigned this Sep 19, 2024
@elezar elezar force-pushed the use-go-api-for-toolkit-installation branch 2 times, most recently from 31ca649 to 43f3ad5 Compare September 27, 2024 14:06
@elezar elezar marked this pull request as ready for review September 27, 2024 14:06
@tariq1890
Copy link
Contributor

I was able to validate these changes in gpu-operator after setting the RUNTIME_SOCKET environment variable.

I've filed a PR in gpu-operator to consume this change: NVIDIA/gpu-operator#1019


options := options{}
options := options{
toolkitOptions: toolkit.Options{},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also need this?

Suggested change
toolkitOptions: toolkit.Options{},
toolkitOptions: toolkit.Options{},
runtimeOptions: runtime.Options{},

This change converts the toolkit installation logic to a go package
and invokes this installation over the go API instead of starting
this executable.

Signed-off-by: Evan Lezar <[email protected]>
@elezar elezar force-pushed the use-go-api-for-toolkit-installation branch from 43f3ad5 to fd708cd Compare September 30, 2024 12:50
@tariq1890
Copy link
Contributor

Opened a rebased version of this from my fork #722

@tariq1890
Copy link
Contributor

Closing as this is superseded by #722

@tariq1890 tariq1890 closed this Sep 30, 2024
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