From a9ab51767e1c8692c88dea7f416ff93c6b6e18c4 Mon Sep 17 00:00:00 2001 From: informalict Date: Thu, 31 Oct 2019 10:52:45 +0100 Subject: [PATCH] Fix changing version in README during release (#493) --- README.md | 10 +++++----- scripts/patch_readme.sh | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8d48a8556..1d9df5649 100644 --- a/README.md +++ b/README.md @@ -100,12 +100,12 @@ upgrades. ```bash # The following will install the custom resources required by the operators. -helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.16/kube-arangodb-crd-0.3.16.tgz +helm install https://github.com/arangodb/kube-arangodb/releases/download/0.4.1/kube-arangodb-crd-0.4.1.tgz # The following will install the operator for `ArangoDeployment` & # `ArangoDeploymentReplication` resources. -helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.16/kube-arangodb-0.3.16.tgz +helm install https://github.com/arangodb/kube-arangodb/releases/download/0.4.1/kube-arangodb-0.4.1.tgz # To use `ArangoLocalStorage`, set field `operator.features.storage` to true -helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.16/kube-arangodb-0.3.16.tgz --set "operator.features.storage=true" +helm install https://github.com/arangodb/kube-arangodb/releases/download/0.4.1/kube-arangodb-0.4.1.tgz --set "operator.features.storage=true" ``` ## Upgrading the operator using Helm @@ -140,9 +140,9 @@ with `helm install` as normal: ```bash # The following will install the operator for `ArangoDeployment` & # `ArangoDeploymentReplication` resources. -helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.16/kube-arangodb-0.3.16.tgz +helm install https://github.com/arangodb/kube-arangodb/releases/download/0.4.1/kube-arangodb-0.4.1.tgz # To use `ArangoLocalStorage`, set field `operator.features.storage` to true -helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.16/kube-arangodb-0.3.16.tgz --set "operator.features.storage=true" +helm install https://github.com/arangodb/kube-arangodb/releases/download/0.4.1/kube-arangodb-0.4.1.tgz --set "operator.features.storage=true" ``` ## Building diff --git a/scripts/patch_readme.sh b/scripts/patch_readme.sh index 43a6fc935..76aa6c7c7 100755 --- a/scripts/patch_readme.sh +++ b/scripts/patch_readme.sh @@ -18,7 +18,7 @@ function replaceInFile { sed -e "${EXPR}" -i "" ${FILE} ;; *) - sed -i --expression "${EXPR}" ${FILE} + sed -E -i --expression "${EXPR}" ${FILE} ;; esac } @@ -30,5 +30,5 @@ replaceInFile "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/ku replaceInFile "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment-replication.yaml\$@kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION}/manifests/arango-deployment-replication.yaml@g" ${f} replaceInFile "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-storage.yaml\$@kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION}/manifests/arango-storage.yaml@g" ${f} -replaceInFile "s@https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-crd\(-[0-9]+\.[0-9]+\.[0-9]+\)\?.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-crd-${VERSION}.tgz@g" ${f} -replaceInFile "s@https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb\(-[0-9]+\.[0-9]+\.[0-9]+\)\?.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-${VERSION}.tgz@g" ${f} +replaceInFile "s@https://github\.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-crd-[[:digit:]].*\.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-crd-${VERSION}.tgz@g" ${f} +replaceInFile "s@https://github\.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-[[:digit:]].*\.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-${VERSION}.tgz@g" ${f}