-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix registry prefixer in bundle creation, only set docker.io/ to the …
…community bundles
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 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
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/sh | ||
|
||
# This script assumes k8ssandra is checked out at ../k8ssandra and is checked out at main | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: scripts/release-helm-chart.sh version" | ||
echo "Script assumes you are in the correct branch / tag and that k8ssandra repository" | ||
echo "has been checked out to ../k8ssandra/" | ||
exit | ||
fi | ||
|
||
VERSION=$1 | ||
CHART_HOME=../k8ssandra/charts/cass-operator | ||
CRD_TARGET_PATH=$CHART_HOME/crds | ||
TEMPLATE_HOME=$CHART_HOME/templates | ||
|
||
# Checkout tag | ||
git checkout v$VERSION | ||
|
||
# Create CRDs | ||
kustomize build config/crd --output $CRD_TARGET_PATH | ||
|
||
# Rename generated CRDs to shorter format | ||
for f in $CRD_TARGET_PATH/*; do | ||
TARGET_FILENAME=$(yq '.spec.names.plural' $f).yaml | ||
mv $f $CRD_TARGET_PATH/$TARGET_FILENAME | ||
done | ||
|
||
# TODO Update all the necessary fields also (Chart.yaml, values.yaml, configmap.yaml) |