Commit graph

48 commits

Author SHA1 Message Date
yzewei
fd3ef2e000 Add loongarch64 support
Signed-off-by: yzewei <yangzewei@loongson.cn>
2025-10-09 09:07:39 +08:00
Asmit De
f615c1ad71
[scripts] Add windows arm64 entries in install and release notes scripts
Signed-off-by: Asmit De <asmit.de@outlook.com>
2024-05-12 01:54:57 -07:00
Joe Julian
6d96283c0b
Merge pull request #12204 from CARV-ICS-FORTH/riscv64
Add support for RISC-V
2024-01-05 16:30:18 -08:00
Antony Chazapis
786707c065 Add support for RISC-V
Signed-off-by: Antony Chazapis <chazapis@ics.forth.gr>
2023-07-13 11:56:56 +03:00
Justin Wood
0d9eb1341b
Avoid confusing error when passing in '--version X.Y.Z'
fixes #11578

Signed-off-by: Justin Wood <jwood@starry.com>
2022-12-16 16:11:33 -05:00
Dominik Stadler
e3e563a318 Fail if target-directory does not exist
By specify the binary-name in the copy-operation the
script will fail if the directory does not exist instead
of silently installing the binary with the name of
the directory (e.g. /usr/local/bin)

Closes #10298

Signed-off-by: Dominik Stadler <dominik.stadler@gmx.at>
2021-11-01 11:10:24 +01:00
Cameron Motevasselani
74c4117975 fix v2 install script, hardcode to v2.17.0
Signed-off-by: Cameron Motevasselani <cameron@armory.io>
2021-04-19 23:51:14 -07:00
Ajay Victor
1fc6f650cb Added s390x support to get script
Signed-off-by: Ajay Victor <ajvictor@in.ibm.com>
2021-02-24 20:52:49 -08:00
Michael Musenbrock
784782013a fix(helm): get/get-helm-3 whitespace support in runAsRoot
When `get`/`get-helm-3` is run with a HELM_INSTALL_DIR containing spaces, the installation fails.

Closes #9346

Signed-off-by: Michael Musenbrock <michael.musenbrock@gmail.com>
2021-02-09 17:23:11 +01:00
Matthew Fisher
0fe547c8e7
Revert "Add support to judge whether desired version is available or not"
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-11-23 23:04:37 -08:00
Ma Xinjian
24107e6afe Add support to judge whether desired version is available or not
Now no matter what desired version provides, always give info "Helm ${TAG} is available.
Changing from version ${version}". It's obviously wrong.
  This patch check whether desired version is actually available or not
by compare desired vesion with all available version in
https://github.com/helm/helm/releases

Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2020-10-30 14:33:56 +08:00
Ma Xinjian
8bb0413552 darwin-386 and windows-386 are not supported now
$ curl https://get.helm.sh/helm-v3.2.4-windows-386.tar.gz
<?xml version="1.0"
ding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified
 does not exist.
RequestId:6d53f961-d01e-0032-025f-5e4d79000000

$ curl https://get.helm.sh/helm-v2.16.9-darwin-386.tar.gz
<?xml version="1.0"
ding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified
 does not exist.
RequestId:81020fad-c01e-0001-0e60-5e12d2000000

Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2020-07-31 14:15:21 +08:00
Niels de Vos
bf12ae3934
scripts: do not use optional 'which' command in get-helm installation (#8048)
When installing Helm, the following warning gets printed on the console:

    Downloading https://get.helm.sh/helm-v2.16.6-linux-amd64.tar.gz
    Preparing to install helm and tiller into /usr/local/bin
    helm installed into /usr/local/bin/helm
    tiller installed into /usr/local/bin/tiller
    main: line 178: which: command not found
    Run 'helm init' to configure helm.

The 'which' command is optional, and not always installed on all
environments (like a Fedora container). Instead, use 'command -v' to
detect if the executable is in the $PATH.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-05-12 17:08:53 -06:00
Matt Farina
8e1c34ef04
Updating get stripts to skip pre-releases
A recent change to the get scripts causes them to pickup
pre-releases in addition to stable releases. This update causes
only stable releases to be fetched by the get scripts.

Fixed #7941

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-17 10:42:52 -04:00
Matthew Fisher
0087d83807
fix(scripts): scrape for the latest v2/v3 release from the releases page
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-02-13 16:20:15 -08:00
Matthew Fisher
3e77ca22c7
fix(get): hard code DESIRED_VERSION when unset
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 19:56:34 -08:00
Matthew Fisher
06a5eb2272
fix(get): install Helm v2.16.1
This is a temporary fix. This prevents the get script from installing Helm 3 as soon as it's released, potentially causing disruption to users that were expecting a Helm 2 release.

A `get-helm-3` script is also supplied, which is identical to the previous `get` script. That way, Helm 3 users also have an equivalent way to install Helm 3.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 18:19:37 -08:00
Matthew Fisher
af498be38b
fix(scripts): update get script
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-21 10:54:17 -07:00
Matthew Fisher
eb1ba03e24
update links to get.helm.sh
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-05-14 08:23:03 -07:00
roc
79f88dfc5e ref(url) update helm's github url (#4962)
https://github.com/kubernetes/helm -> https://github.com/helm/helm
https://github.com/kubernetes/charts -> https://github.com/helm/charts

Signed-off-by: Roc Chan <roc@imroc.io>
2018-11-28 10:08:38 -08:00
ReSearchITEng
09e0ab1809
closes #3795
closes #3795
2018-03-30 09:59:06 +03:00
Ferenc-
908addd6fc
Fix HTML parsing when setting TAG with wget
Now the parsing part is the same as in the curl scenario
2018-03-22 14:51:45 +01:00
Michal Zerola
08a92b23d1 Fixed referencing the wrong env variable if SHA sum doesn't match. 2018-03-15 09:05:13 +01:00
Matthew Fisher
0935384bd5
remove "This Repository" link from releases page 2018-03-13 09:52:49 -07:00
Matthew Fisher
5cb0eb5e3b add amd, ppc64le, and windows OS/architectures 2017-12-29 14:42:31 -08:00
Matthew Fisher
55ab4b8664
Merge pull request #2986 from goostleek/bug/installation-script-fix
Installation shell script fix
2017-12-28 15:22:41 -08:00
Tim H
0645433048
Increase script portability
Instead of presuming that bash is installed at /bin/bash, use `$PATH`.  Official [bash docker container](https://hub.docker.com/_/bash/) installs bash at `/usr/local/bin` and recommends the use of `env`
2017-11-20 12:15:20 +01:00
Marcin Kłopotek
9a42d71898 Review fixes applied 2017-10-03 10:54:41 +02:00
Marcin Kłopotek
b9e542666a Installation script was not compatible with Alpine Linux 2017-10-03 10:41:34 +02:00
Marcin Kłopotek
c34ec82c36 HELM_TMP_ROOT directory is now uniquely generated to avoid potential clashes with old installation instances or other processes using the same /tmp subdirectory 2017-10-02 09:12:58 +02:00
Marcin Kłopotek
42bc36d240 Fixes shell installation script #2977 2017-09-29 16:39:42 +02:00
Hui Chen
895e8d086f fix unbound variable issue when get version 2017-09-12 09:34:53 +08:00
Justin Scott
46ce97c1b0 feat(helm): use openssl sha1 command
Currently the bash script that installs Helm is hard-coded to use
openssl sha command but some distros like Debian 9 only have sha1.
Since the popular current distros have sha1 we can switch to that.

Closes(#2859)
2017-08-28 23:23:18 -07:00
Tim H
b914958b96 Fix curl error Failed writing body
Do not close the pipe early, output only the first version found.  wget command changed for consistency.
Fixes #2802
2017-08-14 13:54:43 +02:00
Tony Fahrion
8eace382f9 improve check if we are root already - in scripts/get
$EUID is readonly, so it should be save to test against it.

Thanks for the tip @thomastaylor312 !
2017-06-29 13:22:08 +02:00
Tony Fahrion
974c4b67c7 fix scripts/get runAsRoot CMD var building
Avoid using $* multiple times
2017-06-28 10:21:08 +02:00
Tony Fahrion
f43da7fcfb makes sudo an optional dependency in scripts/get
If the execution user is already the root user, this avoids requireing
sudo to be installed within the environment. Which might helo in CI
environments.
2017-06-28 09:41:23 +02:00
ReSearchITEng
f85118d1ec added possibility to set desired install version. See issue #2380 2017-05-03 09:36:09 +00:00
Jorge Marin
18fc8a8539 Update comment in function 2017-04-25 08:26:22 +00:00
Jorge Marin
6adf7d59de Print escaped chars 2017-04-24 10:30:35 +00:00
Jorge Marin
e114807c45 Use '-SsL' for all 'curl' calls to get response using SSL, silently and following reedirections 2017-04-24 10:29:59 +00:00
Jorge Marin
037ff5b51c Replace call to Github HTTP API with normal Github URL 2017-04-24 10:29:01 +00:00
Leszek Charkiewicz
0d399baec2 Add checking installed helm version before downloading latest release
This change prevents downloading the same version as already installed.
2017-03-19 23:11:28 +01:00
Matt Butcher
48c1ba5355 Merge pull request #1545 from mattfarina/feat/1543-charts-domain-change
feat(charts): Move bucket to domain from path
2016-11-15 11:06:10 -07:00
Wayne Brantley
1f17788d8e use openssl instead of shasum
shasum is not on many platforms (like centos), use openssl instead.
2016-11-15 11:00:25 -05:00
Matt Farina
da73150ce9
fix(tls): download helm and charts over https
Downloading of charts and helm itself happened over http. This
change moves to use https as that is available with valid certs.
2016-11-14 19:06:53 -05:00
Matt Farina
7a79661f0e
feat(charts): Move bucket to domain from path
A bucket name in the path can be migrated to a custom k8s domain
name. This is in preperation for that.
2016-11-14 13:55:33 -05:00
Matt Butcher
8934eb5dc6
feat(scripts): add 'get' script to download and install
This adds 'scripts/get`, which is a bash script for fetching and
installing the Helm client. It has the following features:

- It uses the GitHub API to discover the latest release
- It downloads the SHA256 checksum and verifies the binary using it
- It does basic tests on the installation
2016-10-24 17:35:35 -06:00