Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

update version check (#1050) #1056

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
fail:
msg: "Rolling update from {{ current_version.stdout_lines[0].replace(' ','').split(':')[1] }} to {{ tidb_version }} is forbidden"
when:
- current_version.stdout_lines[0].replace(' ','').split(':')[1] < "v2.0.1"
- tidb_version >= "v2.1.0" or tidb_version == "latest"
- current_version.stdout_lines[0].replace(' ','').split(':')[1].strip('v') < "2.0.1"
- tidb_version == "latest" or tidb_version >= "v2.1.0"

- name: Pre-check PD configuration
hosts: pd_servers[0]
Expand Down