forked from longhorn/longhorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 91bb47d8095238efc1249153341f8a57a4fd8f92 Author: Sheng Yang <sheng.yang@rancher.com> Date: Fri Apr 24 13:35:53 2020 -0700 Longhorn v0.8.1-rc3 release Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
- v1.4.0
- v1.4.0-rc3
- v1.4.0-rc2
- v1.4.0-rc1
- v1.3.2
- v1.3.2-rc2
- v1.3.2-rc1
- v1.3.1
- v1.3.1-rc2
- v1.3.1-rc1
- v1.3.0
- v1.3.0-rc3
- v1.3.0-rc2
- v1.3.0-rc1
- v1.3.0-preview1
- v1.2.6
- v1.2.6-rc1
- v1.2.5
- v1.2.5-rc2
- v1.2.5-rc1
- v1.2.4
- v1.2.4-rc1
- v1.2.3
- v1.2.3-rc2
- v1.2.3-rc1
- v1.2.2
- v1.2.1
- v1.2.1-rc2
- v1.2.1-rc1
- v1.2.0
- v1.2.0-rc2
- v1.2.0-rc1
- v1.2.0-preview1
- v1.1.3
- v1.1.3-rc3
- v1.1.3-rc2
- v1.1.3-rc1
- v1.1.2
- v1.1.2-rc1
- v1.1.1
- v1.1.1-rc2
- v1.1.1-rc1
- v1.1.1-preview1
- v1.1.0
- v1.1.0-rc3
- v1.1.0-rc2
- v1.1.0-rc1
- v1.0.2
- v1.0.2-rc2
- v1.0.2-rc1
- v1.0.1
- v1.0.1-rc3
- v1.0.1-rc2
- v1.0.1-rc1
- v1.0.0
- v1.0.0-rc3
- v1.0.0-rc2
- v1.0.0-rc1
- v0.8.1
- v0.8.1-rc3
Showing
4 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
NS="longhorn-system" | ||
|
||
print_usage() { | ||
echo "Usage: ${0} [ |-h|--help] [volume_name|--all]" | ||
echo "" | ||
echo "Examples:" | ||
echo " ${0} test-vol" | ||
echo " ${0} --all" | ||
echo "" | ||
echo "Note: Must have Longhorn installed in "longhorn-system" namespace" | ||
echo "" | ||
exit 0 | ||
} | ||
|
||
exec_command() { | ||
COMMAND_ARG="${@}" | ||
LONGHORN_MANAGER=$(kubectl -n ${NS} get po -l "app=longhorn-manager" | tr '\000' '\n' | sed -n '2p' | awk '{print $1}') | ||
kubectl -n ${NS} exec -it ${LONGHORN_MANAGER} -- bash -c "longhorn-manager migrate-for-pre-070-volumes ${COMMAND_ARG}" | ||
} | ||
|
||
|
||
ARG=$1 | ||
case $ARG in | ||
"" | "-h" | "--help") | ||
print_usage | ||
;; | ||
*) | ||
if [[ $# -ne 1 ]]; then | ||
echo "Command args number shouldn't be greater than 1" | ||
fi | ||
exec_command ${@} | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters