Commit Graph

11 Commits

Author SHA1 Message Date
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
Josh Dolitsky 6898ad1457
Add GPG signature verification to install script (#7944)
* Add GPG signature verification to install script

The script fetches the KEYS file from GitHub, as well
as the .asc files on the release and verifies the
release artifacts are signed by a valid key.

Added new boolean config options in the install script
which allow for fine-grained control over verification
and output:

- DEBUG: sets -x in the bash script (default: false)
- VERIFY_CHECKSUM: verifies checksum (default: true)
- VERIFY_SIGNATURE: verifies signature (default: true)

Also reduced check for curl/wget to only one time.

Resolves #7943.
Resolves #7838.

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* disable signature verification by default

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* remove repeated line

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* fix typo

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* do not auto-import GPG keys

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* silence errors about missing commands

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* use a temporary gpg keyring

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* Fix wget commands for VERIFY_SIGNATURES=true

Signed-off-by: jdolitsky <393494+jdolitsky@users.noreply.github.com>
2020-09-08 08:48:22 -05: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
vitt-bagal 569ad27f2b remove s390x arch check
Signed-off-by: vitthalb@us.ibm.com <vitthalb@us.ibm.com>
2020-06-22 21:11:09 +05:30
vitt-bagal 6d49f562bc Added s390x support
Signed-off-by: vitthalb@us.ibm.com <vitthalb@us.ibm.com>
2020-05-21 20:44:00 +05:30
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
Scott Rigby 4276acdf4b
Make get script eaiser for helm versions to live side by side (helm3 etc) (#7752)
* Make get script eaiser for helm versions to live side by side (helm3 etc)

Signed-off-by: Scott Rigby <scott@r6by.com>

* Change PROJECT_NAME to BINARY_NAME for purpose clarity

Signed-off-by: Scott Rigby <scott@r6by.com>
2020-04-15 16:10:16 -06: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 c9da1eaae7
fix(get-helm-3): remove tiller checks, fixup version check
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 20:08:46 -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