From fa93c5a2c64d91419c99d1988e20ae5d16b1f7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=8C=A6=E5=8D=97=E8=B7=AF=E4=B9=8B=E8=8A=B1?= <46831212+ComradeProgrammer@users.noreply.github.com> Date: Mon, 26 Aug 2024 20:10:46 +0200 Subject: [PATCH] Update pkg/minikube/cruntime/cri.go Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com> --- pkg/minikube/cruntime/cri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/minikube/cruntime/cri.go b/pkg/minikube/cruntime/cri.go index 535a3634a375..fc2e1b33e1b6 100644 --- a/pkg/minikube/cruntime/cri.go +++ b/pkg/minikube/cruntime/cri.go @@ -57,7 +57,7 @@ func CrictlVersion(c CommandRunner) (*semver.Version, error) { return nil, err } stdout := rr.Stdout.String() - reg := regexp.MustCompile(`crictl\s*version\s*(v\d*\.\d*.\d*)`) + reg := regexp.MustCompile(`crictl\s*version\s*(v\d+\.\d+.\d+)`) subMatches := reg.FindStringSubmatch(stdout) if len(subMatches) < 2 { return nil, fmt.Errorf("failed to find the crictl version")