mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 09:59:57 +00:00
chore(repo): pre-commit fixes (#1431)
* chore: add golint to pre-commit Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: move legacy docs Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: ran pre-commit Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: fix goreleaser regexps Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
@@ -46,13 +46,13 @@ echo `date`": INFO: Wait then Kind cluster be ready. Wait only 30 seconds"
|
||||
counter=0
|
||||
while true
|
||||
do
|
||||
if [ $counter == 30 ]; then
|
||||
if [ $counter == 30 ]; then
|
||||
echo `date`": ERROR: Kind cluster not ready for too long"
|
||||
error_action
|
||||
fi
|
||||
|
||||
kubectl get nodes | grep " Ready " &>/dev/null
|
||||
if [ $? == 0 ]; then
|
||||
if [ $? == 0 ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
@@ -75,13 +75,13 @@ echo `date`": INFO: Wait then capsule POD be ready. Wait only 30 seconds"
|
||||
counter=0
|
||||
while true
|
||||
do
|
||||
if [ $counter == 30 ]; then
|
||||
if [ $counter == 30 ]; then
|
||||
echo `date`": ERROR: Kind cluster not ready for too long"
|
||||
error_action
|
||||
fi
|
||||
|
||||
kubectl get pod -n capsule-system | grep " Running " &>/dev/null
|
||||
if [ $? == 0 ]; then
|
||||
if [ $? == 0 ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
@@ -142,4 +142,4 @@ fi
|
||||
|
||||
echo `date`": INFO: All ok"
|
||||
|
||||
cleanup_action
|
||||
cleanup_action
|
||||
|
||||
@@ -21,12 +21,12 @@ TENANTS=""
|
||||
# Outputs:
|
||||
# print usage with examples.
|
||||
usage () {
|
||||
printf "Usage: $0 [flags] commands\n"
|
||||
printf "Flags:\n"
|
||||
printf "\t-c, --kubeconfig /path/to/config\tPath to the kubeconfig file to use for CLI requests.\n"
|
||||
printf "\t-t, --tenant \"gas oil\"\t\tSpecify one or more tenants to be restored.\n"
|
||||
printf "Commands:\n"
|
||||
printf "\trestore\t\t\tPerform the restore on the cluster, patching the right object fields.\n"
|
||||
printf "Usage: $0 [flags] commands\n"
|
||||
printf "Flags:\n"
|
||||
printf "\t-c, --kubeconfig /path/to/config\tPath to the kubeconfig file to use for CLI requests.\n"
|
||||
printf "\t-t, --tenant \"gas oil\"\t\tSpecify one or more tenants to be restored.\n"
|
||||
printf "Commands:\n"
|
||||
printf "\trestore\t\t\tPerform the restore on the cluster, patching the right object fields.\n"
|
||||
printf "\n"
|
||||
printf "E.g. [restore]:\t$0 -c /path/to/kubeconfig restore\n"
|
||||
printf "E.g. [restore]:\t$0 -t \"oil\" restore\n"
|
||||
@@ -197,4 +197,3 @@ case "${@: -1}" in
|
||||
*)
|
||||
break
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user