From 18f4395f80baed0a84c95065fd27e8f1713b17fd Mon Sep 17 00:00:00 2001 From: ymqytw Date: Tue, 22 Nov 2016 21:02:44 -0800 Subject: [PATCH] Revert "fix bug when compare version" This reverts commit af8fbc327da9b6c018775c904753ac73f181dde1. --- 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 f6c5e699eb8..601594ae4e9 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_0) { + if serverGitVersion >= string(SMPatchVersion_1_5) { return SMPatchVersion_1_0, nil } return Unknown, fmt.Errorf("The version is too old: %v\n", serverVersion)