-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tetragon Helm chart was moved from install/kubernetes directory to install/kubernetes/tetragon in cilium/tetragon#1830. This commit updates the scripts to use the correct path, depending on Tetragon version. Signed-off-by: Anna Kapuscinska <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 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 |
---|---|---|
|
@@ -19,11 +19,19 @@ if [ -f "tetragon-${VERSION}.tgz" ]; then | |
exit 0 | ||
fi | ||
|
||
# Tetragon chart was moved in 1.1 release | ||
TETRAGON_CHART_DIR="install/kubernetes/tetragon" | ||
MAJOR=$(echo "$VERSION" | cut -d. -f1) | ||
MINOR=$(echo "$VERSION" | cut -d. -f2) | ||
if [ "$MAJOR" -lt 1 ] || ([ "$MAJOR" -eq 1 ] && [ "$MINOR" -lt 1 ]); then | ||
TETRAGON_CHART_DIR="install/kubernetes" | ||
fi | ||
|
||
echo "Generating tetragon package from tag: $TAG" | ||
rm -rf tetragon | ||
git clone [email protected]:cilium/tetragon.git | ||
git_checkout_ref "$(pwd)/tetragon" "$TAG" | ||
helm package -d . tetragon/install/kubernetes --version="${VERSION}" --app-version="${VERSION}" | ||
helm package -d . "tetragon/$TETRAGON_CHART_DIR" --version="${VERSION}" --app-version="${VERSION}" | ||
helm repo index . --merge index.yaml | ||
./generate_readme.sh > README.md | ||
git add README.md index.yaml tetragon-"$VERSION".tgz | ||
|