diff --git a/packages/core/platform/images/migrations/migrations/45 b/packages/core/platform/images/migrations/migrations/45 index 8081c8f2d..8b06dd2c4 100755 --- a/packages/core/platform/images/migrations/migrations/45 +++ b/packages/core/platform/images/migrations/migrations/45 @@ -39,6 +39,9 @@ set -euo pipefail +# shellcheck source=lib/cozystack-version.sh +. "$(dirname "$0")/lib/cozystack-version.sh" + DRY_RUN="${MIGRATION_DRY_RUN:-0}" FAILURES=0 PATCHED=0 @@ -118,21 +121,9 @@ if [ "$FAILURES" -gt 0 ]; then exit 1 fi -# Stamp version=46. Mirror migration 43's labeled heredoc — a label-less -# apply by the same field manager (kubectl create cm | kubectl apply) -# would strip the platform.cozystack.io/no-delete label migration 42 -# added, dropping cozystack-version out of the -# cozystack-no-delete-guardrail ValidatingAdmissionPolicy. -# templates/cozystack-version.yaml only re-renders the labeled ConfigMap -# on first install, so the label must be carried inline here. -kubectl apply --filename - </dev/null 2>&1 || true -# Stamp version=47. Mirror migration 43's labeled heredoc — a label-less -# apply by the same field manager (kubectl create cm | kubectl apply) -# would strip the platform.cozystack.io/no-delete label migration 42 -# added, dropping cozystack-version out of the -# cozystack-no-delete-guardrail ValidatingAdmissionPolicy. -# templates/cozystack-version.yaml only re-renders the labeled ConfigMap -# on first install, so the label must be carried inline here. -kubectl apply --filename - <