-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that appVersion always matches .image.tag
- Loading branch information
Arvind Iyengar
committed
Jan 30, 2023
1 parent
edc2b6b
commit 257d57e
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ cd $(dirname $0) | |
./test | ||
./validate | ||
./validate-ci | ||
./validate-chart | ||
./package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $(dirname $0)/.. | ||
|
||
app_version=$(yq e '.appVersion' charts/helm-project-operator/Chart.yaml) | ||
image_tag=$(yq e '.image.tag' charts/helm-project-operator/values.yaml) | ||
|
||
if [[ "${image_tag}" != "v${app_version}" ]]; then | ||
echo "ERROR: .image.tag in charts/helm-project-operator/values.yaml (found: ${image_tag}) must match appVersion in charts/helm-project-operator/Chart.yaml (found ${app_version})" | ||
exit 1 | ||
fi |