When piping the script to bash (cat ./environment_check.sh | bash), the
part after `kubectl exec -i` will be interpreted as the input for the
command inside kubectl exec command. As the result, the env check script
doesn't perform the steps after that kubectl exec command. Removing the
`-i` flag fixed the issue.
Also, replacing `kubectl exec -t` by `kubectl exec` because the input of
kubectl exec command is not a terminal device
longhorn-5653
Signed-off-by: Phan Le <phan.le@suse.com>
* Fix for bug #5304.
It uses the same technologie to get the kernel release as it was used
before to get the os of the node
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
* used a lower case variable name as suggested by innobead
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
---------
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
Co-authored-by: David Ko <dko@suse.com>
(cherry picked from commit 94a23e5b05)
Made environment_check.sh POSIX compliant
Signed-off-by: Harold Holsappel <h.holsappel@iwink.nl>
Co-authored-by: Harold Holsappel <h.holsappel@iwink.nl>
(cherry picked from commit 5a071e502c)
This addition will allow Gentoo users to run this script and get sensible error messages in case they forgot to install required packages.
Signed-off-by: Serge Tkatchouk <sp1j3t@gmail.com>
The script helps to migrate Longhorn installed in the old Rancher
catalog UI to the new chart in Rancher app&marketplace UI
Longhorn-3714
Signed-off-by: Phan Le <phan.le@suse.com>
When user provides an invalid flag, print out error message and
help menu instead of looping forever
Longhorn #1419
Signed-off-by: Phan Le <phan.le@rancher.com>
This help to remove the extra dependency on different container image
registry. Docker Hub now holds all Longhorn components' images.
Also, users can easily pull all the necessary images to their
air-gap environment
Longhorn #1419
Signed-off-by: Phan Le <phan.le@rancher.com>
commit 8e060dce288c4dfa054a4b0a188559e624aeb3c8
Author: James Oliver <joliver@rancher.com>
Date: Fri Aug 31 16:09:06 2018 -0700
Add script to tear down Longhorn system