From 7e7564495f3931108598d5ac8e4449c9d089418e Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Mon, 17 Jun 2024 05:27:32 +0000 Subject: [PATCH] fix version comparison Signed-off-by: zhangzujian --- charts/kube-ovn/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kube-ovn/templates/_helpers.tpl b/charts/kube-ovn/templates/_helpers.tpl index 2cdaf254d656..abc2e5025a46 100644 --- a/charts/kube-ovn/templates/_helpers.tpl +++ b/charts/kube-ovn/templates/_helpers.tpl @@ -67,7 +67,7 @@ Number of master nodes 22.12 {{- else if and (regexFind $versionRegex $imageVersion | semverCompare ">= 1.11.0") (regexFind $versionRegex $imageVersion | semverCompare "<= 1.11.18") -}} 22.03 - {{- else -}} + {{- else if regexFind $versionRegex $imageVersion | semverCompare "< 1.11.0" -}} 21.06 {{- end -}} {{- end -}}