-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: introduce script to re-generate helm results (#3297)
Signed-off-by: odubajDT <[email protected]> Signed-off-by: odubajDT <[email protected]>
- Loading branch information
Showing
5 changed files
with
47 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
echo "re-generating Helm test results" | ||
tests=$(find ./.github/scripts/.helm-tests -maxdepth 1 -mindepth 1 -type d ) | ||
|
||
# shellcheck source=.github/scripts/helm-utils.sh | ||
source .github/scripts/helm-utils.sh | ||
|
||
performHelmRepoUpdate | ||
|
||
for test in $tests | ||
do | ||
echo "Re-generating $test" | ||
helm template keptn-test --namespace helmtests -f $test/values.yaml ./chart > $test/result.yaml | ||
done |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
performHelmRepoUpdate () { | ||
helm repo add keptn "https://charts.lifecycle.keptn.sh" | ||
helm repo update | ||
|
||
for chart_dir in ./lifecycle-operator/chart \ | ||
./metrics-operator/chart \ | ||
./keptn-cert-manager/chart \ | ||
./chart; do | ||
# shellcheck disable=SC2164 | ||
cd "$chart_dir" | ||
echo "updating charts for" $chart_dir | ||
helm dependency update | ||
helm dependency build | ||
# shellcheck disable=SC2164 | ||
cd - # Return to the previous directory | ||
done | ||
} |
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