Skip to content

Commit

Permalink
fix app version in charts (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoipm authored Oct 3, 2024
1 parent b3b4f63 commit 7ab3b49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/scripts/upgrade-chart-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 2 additions & 6 deletions charts/warden/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion charts/warden/charts/warden-admission/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion charts/warden/charts/warden-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7ab3b49

Please sign in to comment.