From af8fbc327da9b6c018775c904753ac73f181dde1 Mon Sep 17 00:00:00 2001 From: ymqytw Date: Fri, 11 Nov 2016 15:20:15 -0800 Subject: [PATCH] fix bug when compare version --- pkg/util/strategicpatch/patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/strategicpatch/patch.go b/pkg/util/strategicpatch/patch.go index 601594ae4e9..f6c5e699eb8 100644 --- a/pkg/util/strategicpatch/patch.go +++ b/pkg/util/strategicpatch/patch.go @@ -1442,7 +1442,7 @@ func GetServerSupportedSMPatchVersion(discoveryClient discovery.DiscoveryInterfa if serverGitVersion >= string(SMPatchVersion_1_5) { return SMPatchVersion_1_5, nil } - if serverGitVersion >= string(SMPatchVersion_1_5) { + if serverGitVersion >= string(SMPatchVersion_1_0) { return SMPatchVersion_1_0, nil } return Unknown, fmt.Errorf("The version is too old: %v\n", serverVersion)