From 679c07de78da30fca9d9f237ba0397fd5019bacb Mon Sep 17 00:00:00 2001
From: Allen Zhong <zhongbenli@pingcap.com>
Date: Wed, 29 Dec 2021 12:49:07 +0800
Subject: [PATCH] fix version check

---
 pkg/cluster/spec/tidb.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cluster/spec/tidb.go b/pkg/cluster/spec/tidb.go
index 23ee5d07a2..753bb7a444 100644
--- a/pkg/cluster/spec/tidb.go
+++ b/pkg/cluster/spec/tidb.go
@@ -140,7 +140,7 @@ func (i *TiDBInstance) InitConfig(
 	spec := i.InstanceSpec.(*TiDBSpec)
 	// check if the tidb version has --initialize-insecure support
 	hasSecbootSupport := false
-	if vc := semver.Compare(clusterVersion, "5.3.0"); vc >= 0 {
+	if vc := semver.Compare(clusterVersion, "v5.3.0"); vc >= 0 {
 		hasSecbootSupport = true
 	}
 	cfg := scripts.