From 7ab3b495203775940caeb768593cbb2521134729 Mon Sep 17 00:00:00 2001 From: Marcin Dobrochowski <39153236+anoipm@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:56:28 +0200 Subject: [PATCH] fix app version in charts (#285) --- .github/scripts/upgrade-chart-version.sh | 7 +++++-- charts/warden/Chart.yaml | 8 ++------ charts/warden/charts/warden-admission/Chart.yaml | 3 ++- charts/warden/charts/warden-operator/Chart.yaml | 3 ++- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/scripts/upgrade-chart-version.sh b/.github/scripts/upgrade-chart-version.sh index 7d82202c..c1ab0dd9 100755 --- a/.github/scripts/upgrade-chart-version.sh +++ b/.github/scripts/upgrade-chart-version.sh @@ -2,5 +2,8 @@ CHART_VERSION=${CHART_VERSION?"Define CHART_VERSION env"} -yq -i ".appVersion = \"${CHART_VERSION}\"" charts/warden/Chart.yaml -yq -i ".version = \"${CHART_VERSION}\"" charts/warden/Chart.yaml +for c in $(find charts/warden -name Chart.yaml); +do + yq -i ".appVersion = \"${CHART_VERSION}\"" $c + yq -i ".version = \"${CHART_VERSION}\"" $c +done diff --git a/charts/warden/Chart.yaml b/charts/warden/Chart.yaml index c690f6fc..4cb0655f 100644 --- a/charts/warden/Chart.yaml +++ b/charts/warden/Chart.yaml @@ -1,7 +1,6 @@ apiVersion: v2 name: warden description: A Helm chart for Kubernetes - # A chart can be either an 'application' or a 'library' chart. # # Application charts are a collection of templates that can be packaged into versioned archives @@ -11,18 +10,15 @@ description: A Helm chart for Kubernetes # a dependency of application charts to inject those utilities and functions into the rendering # pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application - # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.12.0 - +version: 0.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.12.0" - +appVersion: "0.0.0" dependencies: - name: warden-admission condition: admission.enabled diff --git a/charts/warden/charts/warden-admission/Chart.yaml b/charts/warden/charts/warden-admission/Chart.yaml index 738746ee..9a0634bc 100644 --- a/charts/warden/charts/warden-admission/Chart.yaml +++ b/charts/warden/charts/warden-admission/Chart.yaml @@ -1,4 +1,5 @@ apiVersion: v1 description: A Helm subchart for warden admission name: warden-admission -version: 0.0.1 +version: 0.0.0 +appVersion: 0.0.0 diff --git a/charts/warden/charts/warden-operator/Chart.yaml b/charts/warden/charts/warden-operator/Chart.yaml index 096f6c6d..dc51242c 100644 --- a/charts/warden/charts/warden-operator/Chart.yaml +++ b/charts/warden/charts/warden-operator/Chart.yaml @@ -1,4 +1,5 @@ apiVersion: v1 description: A Helm subchart for warden webhook name: warden-operator -version: 0.0.1 +version: 0.0.0 +appVersion: 0.0.0