-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate Helm chart as a release artifact
This helps with several things: it's no longer necessary to download an archive of the entire repo, and it's impossible to have a mismatch between the version of the chart being used, the release version, and the links the documentation.
- Loading branch information
1 parent
fe75253
commit 9c7f1fc
Showing
6 changed files
with
43 additions
and
13 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v2 | ||
appVersion: "0.1.3" | ||
appVersion: "PLACEHOLDER_VERSION" | ||
description: Datadog Operator | ||
name: datadog-operator | ||
version: 0.2.1 | ||
version: "PLACEHOLDER_VERSION" |
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
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,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
source "$(dirname $0)/../os-env.sh" | ||
|
||
TAG="" | ||
if [ $# -gt 0 ]; then | ||
TAG=$1 | ||
echo "TAG=$TAG" | ||
else | ||
echo "First parameter should be the new TAG" | ||
exit 1 | ||
fi | ||
VERSION=${TAG:1} | ||
|
||
GIT_ROOT=$(git rev-parse --show-toplevel) | ||
PLUGIN_NAME=kubectl-datadog | ||
OUTPUT_FOLDER=$GIT_ROOT/dist | ||
TARBALL_NAME="$PLUGIN_NAME_$VERSION.tar.gz" | ||
|
||
cp -Lr $GIT_ROOT/chart/* $OUTPUT_FOLDER/ | ||
|
||
for CHART in datadog-operator datadog-agent-with-operator | ||
do | ||
$SED "s/PLACEHOLDER_VERSION/$VERSION/g" $OUTPUT_FOLDER/$CHART/Chart.yaml | ||
$SED "s/PLACEHOLDER_VERSION/$VERSION/g" $OUTPUT_FOLDER/$CHART/values.yaml | ||
tar -zcvf $OUTPUT_FOLDER/$CHART.tar.gz -C $OUTPUT_FOLDER $CHART | ||
done |