Skip to content

Commit

Permalink
Set containerd as default runtime when not specified
Browse files Browse the repository at this point in the history
Signed-off-by: Baalekshan <baalekshan@gmail.com>
  • Loading branch information
Baalekshan committed Oct 22, 2024
1 parent 2763dad commit 5d60669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/provisioner/templates/container-toolkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ type ContainerToolkit struct {
}

func NewContainerToolkit(env v1alpha1.Environment) *ContainerToolkit {
runtime := string(env.Spec.ContainerRuntime.Name)
if runtime == "" {
runtime = "containerd"
}
return &ContainerToolkit{
ContainerRuntime: string(env.Spec.ContainerRuntime.Name),
ContainerRuntime: runtime,
}
}

Expand Down

0 comments on commit 5d60669

Please sign in to comment.