diff --git a/cmd/embedded-cluster/join.go b/cmd/embedded-cluster/join.go index f7e135729..03c9800a7 100644 --- a/cmd/embedded-cluster/join.go +++ b/cmd/embedded-cluster/join.go @@ -194,7 +194,7 @@ var joinCommand = &cli.Command{ } // check to make sure the version returned by the join token is the same as the one we are running - if jcmd.EmbeddedClusterVersion != versions.Version { + if strings.TrimPrefix(jcmd.EmbeddedClusterVersion, "v") != strings.TrimPrefix(versions.Version, "v") { return fmt.Errorf("embedded cluster version mismatch - this binary is version %q, but the cluster is running version %q", versions.Version, jcmd.EmbeddedClusterVersion) } diff --git a/cmd/embedded-cluster/preflights.go b/cmd/embedded-cluster/preflights.go index 7313fe4cb..2e2e3e137 100644 --- a/cmd/embedded-cluster/preflights.go +++ b/cmd/embedded-cluster/preflights.go @@ -142,7 +142,7 @@ var joinRunPreflightsCommand = &cli.Command{ } // check to make sure the version returned by the join token is the same as the one we are running - if jcmd.EmbeddedClusterVersion != versions.Version { + if strings.TrimPrefix(jcmd.EmbeddedClusterVersion, "v") != strings.TrimPrefix(versions.Version, "v") { return fmt.Errorf("embedded cluster version mismatch - this binary is version %q, but the cluster is running version %q", versions.Version, jcmd.EmbeddedClusterVersion) }