Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit d91e6f2

Browse files
committed
Add more cases for API versions
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
1 parent 8adba23 commit d91e6f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cluster/engine.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,14 @@ func (e *Engine) updateClientVersionFromServer(serverVersion string) {
470470
e.apiClient.UpdateClientVersion("1.23")
471471
case versions.LessThan(serverVersion, "1.13"):
472472
e.apiClient.UpdateClientVersion("1.24")
473-
default:
473+
case versions.LessThan(serverVersion, "1.13.1"):
474474
e.apiClient.UpdateClientVersion("1.25")
475+
case versions.LessThan(serverVersion, "17.03.1"):
476+
e.apiClient.UpdateClientVersion("1.26")
477+
case versions.LessThan(serverVersion, "17.04"):
478+
e.apiClient.UpdateClientVersion("1.27")
479+
default:
480+
e.apiClient.UpdateClientVersion("1.28")
475481
}
476482
}
477483

0 commit comments

Comments
 (0)