Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions modules/k3s/flux/vendor/scripts/get-helm-4
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@ verifySupported() {
checkDesiredVersion() {
if [ "x$DESIRED_VERSION" == "x" ]; then
# Get tag from release URL
local latest_release_url="https://get.helm.sh/helm4-latest-version"
# Cache behavior is provider-specific, so this mitigation is best effort.
# The current CDN does not revalidate on the request no-cache directive,
# so use a unique query while retaining no-cache for compliant intermediaries.
local latest_release_url="https://get.helm.sh/helm4-latest-version?ts=$(date +%s)"
local latest_release_response=""
if [ "${HAS_CURL}" == "true" ]; then
latest_release_response=$( curl -L --silent --show-error --fail "$latest_release_url" 2>&1 || true )
latest_release_response=$( curl -L --silent --show-error --fail --header "Cache-Control: no-cache" "$latest_release_url" 2>&1 || true )
elif [ "${HAS_WGET}" == "true" ]; then
latest_release_response=$( wget "$latest_release_url" -q -O - 2>&1 || true )
latest_release_response=$( wget "$latest_release_url" --header="Cache-Control: no-cache" -q -O - 2>&1 || true )
fi
TAG=$( echo "$latest_release_response" | grep '^v[0-9]' )
if [ "x$TAG" == "x" ]; then
Expand Down
6 changes: 3 additions & 3 deletions vendir.lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ directories:
path: modules/k3s/server_node/vendor
- contents:
- git:
commitTitle: 'Minimal fix to build failure from #31211....'
sha: 3900f434fd3ef2b84065dc04508df48f288dba00
commitTitle: 'chore(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.1...'
sha: bec5b06ed841fe5269972d864d5177944fd5970f
tags:
- v4.2.4
- v4.3.0
path: .
path: modules/k3s/flux/vendor
kind: LockConfig
2 changes: 1 addition & 1 deletion vendir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ directories:
- path: .
git:
url: https://github.com/helm/helm
ref: v4.2.4
ref: v4.3.0
depth: 1
includePaths:
- scripts/get-helm-4
Loading