From ffef4d7dad0dd1edab2d5defef750f73e4eb7384 Mon Sep 17 00:00:00 2001 From: Nicholas openSUSE Software Engineer Date: Wed, 26 Jun 2024 14:11:28 -0300 Subject: [PATCH] [dev-v2.9] updating charts-build-scripts to 0.9.2 (#4126) --- Makefile | 6 +++--- docs/makefile.md | 5 ++++- scripts/version | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0fa95f3fa..ac00299b4 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,11 @@ forward-port: check-release-yaml: ./scripts/check-release-yaml -lifecycle-assets: +validate: @./scripts/pull-scripts - @./bin/charts-build-scripts lifecycle-assets --branch-version=$(BRANCH_VERSION) --debugFlag=$(DEBUG) --chart=$(CHART) + @./bin/charts-build-scripts validate $(if $(filter true,$(remote)),--remote) $(if $(filter true,$(local)),--local) -TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize validate template regsync check-images check-rc +TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize template regsync check-images check-rc enforce-lifecycle lifecycle-status $(TARGETS): @./scripts/pull-scripts diff --git a/docs/makefile.md b/docs/makefile.md index 58a6e17ba..484d8faf9 100755 --- a/docs/makefile.md +++ b/docs/makefile.md @@ -53,4 +53,7 @@ Please see [`docs/validation.md`](validation.md) for more information on how CI `make clean-cache`: Deletes `.charts-build-scripts/.cache`. Only used if `export USE_CACHE=1` is set, which indicates that you are using the experimental caching feature introduced in v0.3.0 of the scripts. Please see [`docs/experimental.md`](experimental.md) for more information. -`make lifecycle-assets BRANCH_VERSION=<2.X> DEBUG=""`: Lists all assets versions and then starts to remove older versions with `make remove` enforcing the rules defined at: [New Assets Lifecycle](../README.md#new-assets-lifecycle). \ No newline at end of file +`BRANCH_VERSION="<2.X>" CHART="" DEBUG="" make enforce-lifecycle`: Lists all assets versions and then starts to remove older versions with `make remove` enforcing the rules defined at: [New Assets Lifecycle](../README.md#new-assets-lifecycle). +If run without specifying `CHART=`, will enforce lifecycle rules in all charts. + +`BRANCH_VERSION="<2.x>" CHART="" make lifecycle-status`: Analyzes the state of the current branch, analyzes the state of the official development and production branches for the given branch version, saves everything to logs on `logs/` folder. \ No newline at end of file diff --git a/scripts/version b/scripts/version index a718c9648..f2104abdd 100755 --- a/scripts/version +++ b/scripts/version @@ -2,4 +2,4 @@ set -e CHARTS_BUILD_SCRIPTS_REPO=https://github.com/rancher/charts-build-scripts.git -CHARTS_BUILD_SCRIPT_VERSION="${CHARTS_BUILD_SCRIPT_VERSION:-v0.8.1}" +CHARTS_BUILD_SCRIPT_VERSION="${CHARTS_BUILD_SCRIPT_VERSION:-v0.9.2}"