Skip to content

Commit

Permalink
node-installer: allow setting contianerd config path via env
Browse files Browse the repository at this point in the history
For bare-metal use case, the containerd path will often be the only
difference between different distributions we support. Making this
configurable hopefully enables users to use the node-installer on
platforms with little tweaks and without us having to explicitly add
every setup out there.

Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Nov 5, 2024
1 parent 4a6dd20 commit 0fccb31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodeinstaller/node-installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func run(ctx context.Context, fetcher assetFetcher, platform platforms.Platform,
default:
return fmt.Errorf("unsupported platform %q", platform)
}
if containerdConfigOverridePath := os.Getenv("CONTAINERD_CONFIG_PATH"); containerdConfigOverridePath != "" {
containerdConfigPath = containerdConfigOverridePath
}

if err := containerdRuntimeConfig(runtimeBase, kataConfigPath, platform, config.QemuExtraKernelParams, config.DebugRuntime); err != nil {
return fmt.Errorf("generating kata runtime configuration: %w", err)
Expand Down

0 comments on commit 0fccb31

Please sign in to comment.