1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Fix changing version in README during release (#493)

This commit is contained in:
informalict 2019-10-31 10:52:45 +01:00 committed by Adam Janikowski
parent 0bf7b6cc36
commit a9ab51767e
2 changed files with 8 additions and 8 deletions

View file

@ -100,12 +100,12 @@ upgrades.
```bash ```bash
# The following will install the custom resources required by the operators. # 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` & # The following will install the operator for `ArangoDeployment` &
# `ArangoDeploymentReplication` resources. # `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 # 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 ## Upgrading the operator using Helm
@ -140,9 +140,9 @@ with `helm install` as normal:
```bash ```bash
# The following will install the operator for `ArangoDeployment` & # The following will install the operator for `ArangoDeployment` &
# `ArangoDeploymentReplication` resources. # `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 # 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 ## Building

View file

@ -18,7 +18,7 @@ function replaceInFile {
sed -e "${EXPR}" -i "" ${FILE} sed -e "${EXPR}" -i "" ${FILE}
;; ;;
*) *)
sed -i --expression "${EXPR}" ${FILE} sed -E -i --expression "${EXPR}" ${FILE}
;; ;;
esac 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-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@^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-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\(-[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-[[:digit:]].*\.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-${VERSION}.tgz@g" ${f}