175 Commits

Author SHA1 Message Date
Solomon Wakhungu
bc0114c708 fix(scripts): clarify cache-busting behavior
Signed-off-by: Solomon Wakhungu <65043605+1solomonwakhungu@users.noreply.github.com>
2026-07-27 13:55:05 -05:00
Solomon Wakhungu
bbaf420a10 fix(scripts): address cache-busting review feedback
Signed-off-by: Solomon Wakhungu <65043605+1solomonwakhungu@users.noreply.github.com>
2026-07-27 10:42:43 -05:00
Solomon Wakhungu
5a30c7ae85 fix(scripts): add cache-busting to get-helm-3 version check
The get-helm-3 script queries get.helm.sh/helm3-latest-version to
determine the latest release. The CDN serving this file has no
Cache-Control header, so edge servers can serve stale cached
responses for hours after a new release.

This causes non-deterministic behavior: machines running get-helm-3
at the same time can install different versions depending on which
CDN edge node they hit.

Fix: Append a timestamp query string (?ts=1783837438) to bust CDN
caches, and add Cache-Control: no-cache header to both curl and wget
requests.

Fixes #32329

Signed-off-by: Solomon Wakhungu <65043605+1solomonwakhungu@users.noreply.github.com>
2026-07-17 19:48:32 -05:00
George Jenkins
8a95461925 chore: Update release notes script for Helm v4
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-04-09 13:54:24 -07:00
Jeevan Yewale
97fd00786f Remove legacy sync-repo.sh script
Signed-off-by: Jeevan Yewale <jeevanyewale4@gmial.com>
2026-01-20 12:47:31 +05:30
Sarfraj Khan
9125b84f45 Suppress SC2154 without changing behavior
Signed-off-by: Sarfraj Khan <try.sarfraj@gmail.com>
2026-01-08 17:15:00 +05:30
sarfraj89
d4a2787fca Lint sync-repo.sh with ShellCheck
Signed-off-by: sarfraj89 <try.sarfraj@gmail.com>
2026-01-06 23:46:32 +05:30
Matt Farina
5ae85868d4 Adding script to download Helm v4
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-11-12 08:33:39 -05:00
Matt Farina
76d772af6e Merge pull request #31318 from helm/gjenkins/fix_helm4_release
fix: Helm v4 release distribution & `get-helm-3` script
2025-11-12 07:59:13 -05:00
Robert Sirchia
f0386b1daa Merge pull request #31338 from yzewei/add-loong64-support
Add loongarch64 support
2025-10-21 15:51:31 -04:00
Terry Howe
235988c906 fix: clean up coverage script temp file
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-10 09:33:13 -06:00
yzewei
fd3ef2e000 Add loongarch64 support
Signed-off-by: yzewei <yangzewei@loongson.cn>
2025-10-09 09:07:39 +08:00
Terry Howe
a9a657434a fix: broken --html flag to coverage script
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-24 15:33:15 -06:00
George Jenkins
d5d1ea3f55 fix: Fix Helm v4 release distribtion/get-helm-3 script
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-22 17:26:57 -07:00
Stephanie Hohenberg
1904ef6ad8 Adapt test-coverage command to be able to run for a certain package
Signed-off-by: Stephanie Hohenberg <stephanie.hohenberg@gmail.com>
2025-09-07 11:01:16 -04:00
George Jenkins
b298910e07 Remove 'coveralls'
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-03-01 16:48:21 -08:00
Eimhin Laverty
8eb615d376 Update version option description with more accurate info
Signed-off-by: Eimhin Laverty <eimhin.laverty@rover.com>
2025-02-13 17:23:43 +01:00
Matt Farina
5727f56a96 Update to Go 1.23
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.

To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.

There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.

The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-12-19 10:27:38 -05:00
Evans Mungai
3a5805ea7e chore: Check tar is installed install script
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-10-22 16:50:58 +01: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
Marcel Humburg
81362d9813 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>
2023-10-23 22:45:15 +02:00
Ian Zink
f94e5db650 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>
2023-10-13 12:35:44 -05: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
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
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