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

[Bugfix] Versioning Alignment (#1722)

This commit is contained in:
Adam Janikowski 2024-09-11 10:12:52 +02:00 committed by GitHub
parent 9e7ed8dbad
commit 750d63213f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 12 deletions

View file

@ -29,6 +29,7 @@
- (Feature) (Gateway) Dynamic Configuration
- (Feature) DebugPackage ArangoRoutes
- (Feature) (Scheduler) Add Status Conditions
- (Bugfix) Versioning Alignment
## [1.2.42](https://github.com/arangodb/kube-arangodb/tree/1.2.42) (2024-07-23)
- (Maintenance) Go 1.22.4 & Kubernetes 1.29.6 libraries

View file

@ -747,7 +747,10 @@ patch-release: patch-readme patch-examples patch-chart
.PHONY: patch-chart
patch-chart:
$(ROOTDIR)/scripts/patch_chart.sh "$(VERSION_MAJOR_MINOR_PATCH)" "$(OPERATORIMAGE)"
$(ROOTDIR)/scripts/patch_chart.sh $(VERSION_MAJOR_MINOR_PATCH)
.PHONY: patch
patch: patch-chart patch-release patch-examples patch-readme
.PHONY: tidy
tidy:

View file

@ -325,9 +325,9 @@ helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/
##### Enterprise Edition
```bash
# The following will install the operator and basic CRDs resources.
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.41/kube-arangodb-enterprise-1.2.41.tgz
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.42/kube-arangodb-enterprise-1.2.42.tgz
# To use `ArangoLocalStorage`, set field `operator.features.storage` to true
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.41/kube-arangodb-enterprise-1.2.41.tgz --set "operator.features.storage=true"
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.42/kube-arangodb-enterprise-1.2.42.tgz --set "operator.features.storage=true"
```
### Upgrading the operator using Helm
@ -364,9 +364,9 @@ helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/
##### Enterprise Edition
```bash
# The following will install the operator and basic CRDs resources.
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.41/kube-arangodb-enterprise-1.2.41.tgz
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.42/kube-arangodb-enterprise-1.2.42.tgz
# To use `ArangoLocalStorage`, set field `operator.features.storage` to true
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.41/kube-arangodb-enterprise-1.2.41.tgz --set "operator.features.storage=true"
helm install --generate-name https://github.com/arangodb/kube-arangodb/releases/download/1.2.42/kube-arangodb-enterprise-1.2.42.tgz --set "operator.features.storage=true"
```
## Building

View file

@ -1,10 +1,10 @@
operator:
image: arangodb/kube-arangodb:1.2.42
image: arangodb/kube-arangodb-enterprise:1.2.42
imagePullPolicy: IfNotPresent
imagePullSecrets: []
scope: legacy
architectures:
- amd64
- arm64
debug: false
args: []
service:

View file

@ -1,10 +1,10 @@
operator:
image: arangodb/kube-arangodb:1.2.42
image: arangodb/kube-arangodb-enterprise:1.2.42
imagePullPolicy: IfNotPresent
imagePullSecrets: []
scope: legacy
architectures:
- arm64
- amd64
debug: false
args: []
service:

View file

@ -4,7 +4,6 @@
# version.
VERSION=$1
IMAGE=$2
if [ -z $VERSION ]; then
echo "Specify a version argument"
@ -20,6 +19,7 @@ function replaceInFile {
for f in kube-arangodb kube-arangodb-enterprise kube-arangodb-arm64 kube-arangodb-enterprise-arm64 kube-arangodb-crd; do
replaceInFile "s@^version: .*\$@version: ${VERSION}@g" "chart/${f}/Chart.yaml"
if [[ -f "chart/${f}/values.yaml" ]]; then
replaceInFile "s@^ image: .*\$@ image: ${IMAGE}@g" "chart/${f}/values.yaml"
replaceInFile "s@^ image: arangodb/kube-arangodb:[[:digit:]].*\$@ image: arangodb/kube-arangodb:${VERSION}@g" "chart/${f}/values.yaml"
replaceInFile "s@^ image: arangodb/kube-arangodb-enterprise:[[:digit:]].*\$@ image: arangodb/kube-arangodb-enterprise:${VERSION}@g" "chart/${f}/values.yaml"
fi
done

View file

@ -9,7 +9,7 @@ if [ -z $VERSION ]; then
exit 1
fi
ARANGODB_VERSION=3.10.8
ARANGODB_VERSION=3.12.2
function replaceInFile {
local EXPR=$1

View file

@ -35,3 +35,4 @@ replaceInFile "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/ku
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-enterprise-[[:digit:]].*\.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-enterprise-${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}
replaceInFile "s@https://github\.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-enterprise-[[:digit:]].*\.tgz@https://github.com/arangodb/kube-arangodb/releases/download/${VERSION}/kube-arangodb-enterprise-${VERSION}.tgz@g" ${f}