зеркало из https://github.com/github/vitess-gh.git
Added arguments to updateVitessOperatorExample for consistency
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
This commit is contained in:
Родитель
03c96d7c91
Коммит
5a89899a6a
|
@ -52,12 +52,14 @@ function updateJava () {
|
||||||
mvn versions:set -DnewVersion=$1
|
mvn versions:set -DnewVersion=$1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# First argument is the Release Version (for instance: v12.0.0)
|
||||||
|
# Second argument is the Vitess Operator version
|
||||||
function updateVitessOperatorExample () {
|
function updateVitessOperatorExample () {
|
||||||
vtop_example_files=$(find -E $ROOT/examples/operator -name "*.yaml")
|
vtop_example_files=$(find -E $ROOT/examples/operator -name "*.yaml")
|
||||||
sed -i.bak -E "s/vitess\/lite:(.*)/vitess\/lite:$RELEASE_VERSION/g" $vtop_example_files
|
sed -i.bak -E "s/vitess\/lite:(.*)/vitess\/lite:$1/g" $vtop_example_files
|
||||||
sed -i.bak -E "s/vitess\/lite:(.*)-mysql80/vitess\/lite:$RELEASE_VERSION-mysql80/g" $(find -E $ROOT/examples/operator -name "*.md")
|
sed -i.bak -E "s/vitess\/lite:(.*)-mysql80/vitess\/lite:$1-mysql80/g" $(find -E $ROOT/examples/operator -name "*.md")
|
||||||
if [ "$VTOP_VERSION" != "" ]; then
|
if [ "$2" != "" ]; then
|
||||||
sed -i.bak -E "s/planetscale\/vitess-operator:(.*)/planetscale\/vitess-operator:$VTOP_VERSION/g" $vtop_example_files
|
sed -i.bak -E "s/planetscale\/vitess-operator:(.*)/planetscale\/vitess-operator:$2/g" $vtop_example_files
|
||||||
fi
|
fi
|
||||||
rm -f $(find -E $ROOT/examples/operator -regex ".*.(md|yaml).bak")
|
rm -f $(find -E $ROOT/examples/operator -regex ".*.(md|yaml).bak")
|
||||||
}
|
}
|
||||||
|
@ -71,7 +73,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Preparing the release commit
|
# Preparing the release commit
|
||||||
updateVitessOperatorExample
|
updateVitessOperatorExample $RELEASE_VERSION $VTOP_VERSION
|
||||||
updateJava $RELEASE_VERSION
|
updateJava $RELEASE_VERSION
|
||||||
updateVersionGo $RELEASE_VERSION
|
updateVersionGo $RELEASE_VERSION
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче