Merge pull request #12381 from jayesh-srivastava/master

Updated version.go with crun version
pull/12446/head
Steven Powell 2021-09-09 10:51:33 -07:00 committed by GitHub
commit 3e25ee3dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ var versionCmd = &cobra.Command{
"buildctl": exec.Command("buildctl", "--version"),
"ctr": exec.Command("ctr", "--version"),
"runc": exec.Command("runc", "--version"),
"crun": exec.Command("crun", "--version"),
}
for k, v := range versionCMDS {
rr, err := runner.RunCmd(v)

View File

@ -2137,7 +2137,7 @@ func validateVersionCmd(ctx context.Context, t *testing.T, profile string) {
t.Errorf("error version: %v", err)
}
got := rr.Stdout.String()
for _, c := range []string{"buildctl", "commit", "containerd", "crictl", "crio", "ctr", "docker", "minikubeVersion", "podman", "run"} {
for _, c := range []string{"buildctl", "commit", "containerd", "crictl", "crio", "ctr", "docker", "minikubeVersion", "podman", "run", "crun"} {
if !strings.Contains(got, c) {
t.Errorf("expected to see %q in the minikube version --components but got:\n%s", c, got)
}