Commit graph

153 commits

Author SHA1 Message Date
Marcel Humburg
8f554be39f Update get-helm-3
add quite switch to prevent output  like progress information in downloaded data

Signed-off-by: Marcel Humburg <Marcel.Humburg@protonmail.ch>
(cherry picked from commit 81362d9813)
2023-11-08 06:57:28 -06:00
Ian Zink
28f208c3da
Update get-helm-3 to get version through get.helm.sh
Updates the script to use the new method of getting
the latest version that avoids the github API and
the associated rate limits. See the matching PR
at https://github.com/helm/helm/pull/12396 for
the server side change.

Signed-off-by: Ian Zink <zforce@gmail.com>
(cherry picked from commit f94e5db650)
2023-10-18 08:55:11 -07:00
Joe Julian
c4fbcb214a
Merge pull request #11651 from Callek/better-get-version
Avoid confusing error when passing in '--version X.Y.Z' to get-helm
2023-08-28 12:10:59 -07:00
shoce
9d038a223f use json api url + report curl/wget error on fail
Signed-off-by: shoce <yogze@icloud.com>
2023-07-26 01:13:55 +05:30
Andrew Block
07821c8037
Removed remaining CircleCI artifacts
Signed-off-by: Andrew Block <andy.block@gmail.com>
2023-02-25 15:57:18 -06: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
Wonyeong Choi
0ebd6202d8
Update logic of non-git situation just to print warning logs
Signed-off-by: Wonyeong Choi <ciwnyg0815@gmail.com>
2022-11-06 11:31:33 +09:00
Wonyeong Choi
c027014019
Add a flag var to check git is installed or not
Signed-off-by: Wonyeong Choi <ciwnyg0815@gmail.com>
2022-11-02 22:04:33 +09:00
yxxhero
39b0a82365 bump Go 1.18
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-03 10:19:15 +08:00
Ioan Indreias
799339316f Add support for installing on Windows via Cygwin
Signed-off-by: Ioan Indreias <indreias@gmail.com>
2021-11-25 00:25:50 +02: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
Dan Russell
f0f55faac8 Add missing pipe to wget variant
Signed-off-by: Dan Russell <dpr@aol.com>
2021-10-22 15:37:45 -04:00
Dan Russell
2cf7e1fec4 Update installer to reflect new GitHub HTML
Fixes helm/helm#10266

Signed-off-by: Dan Russell <dpr@aol.com>
2021-10-22 14:50:27 -04: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
Martin Hickey
734f93b245 Update references to default branch name as it has changed to main
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2021-03-30 17:59:43 +01:00
Matt Farina
bfb6bb7af9
Merge pull request #9381 from joelanford/darwin-arm64
Add darwin/arm64 (Apple Silicon) support
2021-03-12 11:56:53 -05: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
Joe Lanford
ecdc34c5ab
Add darwin/arm64 (Apple Silicon) support
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2021-02-18 10:17:53 -05: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
houfangdong
24925c4ca3 fix release sha256
Signed-off-by: houfangdong <xianhfd@gmail.com>
2021-02-09 09:52:02 +08:00
Matthew Fisher
037a43c98b
Merge pull request #9254 from MaXinjian/gpg
Correct pubring name
2021-02-08 11:59:14 -08:00
Jack Whitter-Jones
64e2d596cf
Fix-9253: Change the deprecated charts repo URL in release notes
What this PR does / why we need it:
fix for issue #9253. The link taken from the projects GitHub page has been used for consistency across the documentation.

Signed-off-by: Jack Whitter-Jones <jackwhitterjones@gmail.com>
2021-02-01 11:30:00 +00:00
Ma Xinjian
03d1f3d9d9 Define GPG_PUBRING to make pubring configurable
On new Ubuntu, public keyring name is pubring.kbx. However
on Centos it is pubring.gpg

Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2021-01-28 09:26:52 +08: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
Scott Rigby
3eeeb0345d
Update docs links in release notes script
Signed-off-by: Scott Rigby <scott@r6by.com>
2020-09-17 21:37:31 -04: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
8a545d6ca7 Correct checksum file links
Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2020-08-21 14:47:29 +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
Matthew Fisher
dbba7380d8
Merge pull request #8177 from linux-on-ibm-z/s390x_support
feature(script): Add s390x support
2020-06-22 08:51:31 -07: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
Matt Farina
c56778a8d8
Removing legacy completions.bash file
This file was previously used for shell completions but is
no longer in use as there is a new completions system in place
and there has been for some time.

The contents of this file were out of date and reflect Helm v2.

Closes #8186

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-05-22 11:43:32 -04:00
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
Bridget Kromhout
4feed2de1b
Correcting links for release notes
Signed-off-by: Bridget Kromhout <bridget@kromhout.org>
2020-03-12 14:15:05 -05:00
Paul Czarkowski
239a5e0930 add license headers to release-notes.sh script
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
2020-02-19 14:27:03 -06:00
Paul Czarkowski
f1416a6979 Adds script to help craft release notes
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
2020-02-19 14:20:50 -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
Marc Khouzam
cc33e394c7 fix(tests): mapfile is not available on MacOS
The mapfile command is not available on a standard MacOS install.
To faciliate doing `make test` which runs validate-license.sh,
let's use an array instead of mapfile.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-12-03 13:15:19 -05: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
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
630134a904
fix(coverage): use go list instead of godir
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-22 13:55:14 -07:00
Matthew Fisher
b048f8914b
fix(coverage): cd to root dir to avoid adding godir to go modules
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-22 13:52:30 -07: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
John Howard
7a22cb88d9 Drop dependency on k8s.io/kubernetes (#6609)
* Drop dependency on k8s.io/kubernetes

https://github.com/helm/helm/issues/6606

Depending on k8s.io/kubernetes is not recommended by Kubernetes, and
forces dependencies of Helm to also depend on them. We are only using
this dependency in one relatively isolated occurance, which can be
easily copied over rather than depending on the entire Kubernetes.

Copying this code is not very desirable, so if we don't want to have
this duplication we can at least use this PR as a PoC and see if we can
get Kubernetes to publish the controller package as a separate Go module
(see
https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-538740756)

Signed-off-by: John Howard <howardjohn@google.com>

* Move to internal

Signed-off-by: John Howard <howardjohn@google.com>

* Exclude third_party from validate-license.sh

Signed-off-by: John Howard <howardjohn@google.com>
2019-10-11 14:13:25 +01:00
Matthew Fisher
c728611e5a
feat(cli): support XDG base directory specification
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:15:03 -07:00
Matt Farina
670968fb19
Removing the stable repository
The stable repository provides a quick onboarding with a set of
community curated charts. Two problems with the community stable
repository has lead to its need to be removed.

1. The URL is hard coded to a Google Cloud bucket under Google's
   control. This was setup when Helm was part of Kubernetes and
   Kubernetes was a Google project. The bucket cannot be
   transfered to another non-Google controlled project. And,
   the bucket is not accessible in some parts of the world
   (e.g., China).
2. The number of charts in the stable repository has grown
   generally unmaintainable. The repository maintainers cannot
   manage the number of PRs coming it cauing delays in response
   or no response and PRs are automatically closed. This is
   a poor experience.

The alternatice is the Helm Hub that provides a central point of
search for many Helm repositories. Different people and organizations
can maintain their own charts. A central server is not needed as
Helm is setup to be distributed.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-07-26 12:27:18 -04:00