mirror of
https://github.com/pgsty/minio.git
synced 2026-11-10 17:45:32 +03:00
chore(helm): deploy SILO and mcli 20261109 by default
The 20261026 release moved mcImage.tag but left image.tag, which the templates deploy, at 20260916 (#296). Point the server and mcli images and appVersion at RELEASE.2026-11-09T00-00-00Z and bump the chart to 7.0.4. The Helm check now reads the chart version instead of a fixed file name, and fails when image.tag differs from appVersion, so a release cannot move one without the other again. Upgrades that pass --reuse-values keep the old image.tag; set image.tag explicitly when upgrading such a release. Fixes #296 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -112,8 +112,17 @@ helm_run template my-release "${new_chart}" \
|
|||||||
|
|
||||||
go run ./buildscripts/helm-migration-guard "${old_render}" "${new_render}"
|
go run ./buildscripts/helm-migration-guard "${old_render}" "${new_render}"
|
||||||
|
|
||||||
|
# The templates deploy values.image.tag, not appVersion; a release must move both.
|
||||||
|
chart_version="$(sed -n 's/^version: *//p' helm/silo/Chart.yaml)"
|
||||||
|
app_version="$(sed -n 's/^appVersion: *//p' helm/silo/Chart.yaml)"
|
||||||
|
image_tag="$(sed -n '/^image:/,/^[^ ]/s/^ tag: *//p' helm/silo/values.yaml)"
|
||||||
|
if [ -z "${app_version}" ] || [ "${image_tag}" != "${app_version}" ]; then
|
||||||
|
echo "helm/silo: image.tag '${image_tag}' must equal appVersion '${app_version}'" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
helm_run package "${new_chart}" --destination "${output_dir}" >/dev/null
|
helm_run package "${new_chart}" --destination "${output_dir}" >/dev/null
|
||||||
test -s "${work_dir}/silo-7.0.3.tgz"
|
test -s "${work_dir}/silo-${chart_version}.tgz"
|
||||||
if find "${work_dir}" -maxdepth 1 -type f -name 'minio-*.tgz' | grep -q .; then
|
if find "${work_dir}" -maxdepth 1 -type f -name 'minio-*.tgz' | grep -q .; then
|
||||||
echo "Helm packaging emitted a legacy MinIO chart name" >&2
|
echo "Helm packaging emitted a legacy MinIO chart name" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: S3-Interface Libre Object Storage
|
description: S3-Interface Libre Object Storage
|
||||||
name: silo
|
name: silo
|
||||||
version: 7.0.3
|
version: 7.0.4
|
||||||
appVersion: RELEASE.2026-09-16T00-00-00Z
|
appVersion: RELEASE.2026-11-09T00-00-00Z
|
||||||
keywords:
|
keywords:
|
||||||
- silo
|
- silo
|
||||||
- storage
|
- storage
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ clusterDomain: cluster.local
|
|||||||
##
|
##
|
||||||
image:
|
image:
|
||||||
repository: pgsty/silo
|
repository: pgsty/silo
|
||||||
tag: RELEASE.2026-09-16T00-00-00Z
|
tag: RELEASE.2026-11-09T00-00-00Z
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
@@ -25,7 +25,7 @@ imagePullSecrets: []
|
|||||||
##
|
##
|
||||||
mcImage:
|
mcImage:
|
||||||
repository: pgsty/mc
|
repository: pgsty/mc
|
||||||
tag: RELEASE.2026-10-26T00-00-00Z
|
tag: RELEASE.2026-11-09T00-00-00Z
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
## Silo mode, i.e. standalone or distributed.
|
## Silo mode, i.e. standalone or distributed.
|
||||||
|
|||||||
Reference in New Issue
Block a user