Skip to content

Commit

Permalink
Merge pull request #204 from Baalekshan/main
Browse files Browse the repository at this point in the history
Set containerd as default runtime when not specified
  • Loading branch information
ArangoGutierrez authored Oct 22, 2024
2 parents 2763dad + 5d60669 commit affd025
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 affd025

Please sign in to comment.