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

[Bugfix] Fix deployment creation on ARM64 (#1224)

This commit is contained in:
jwierzbo 2023-01-16 16:51:32 +01:00 committed by GitHub
parent 349f52cd84
commit 1b25470b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
# Change Log # Change Log
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A) ## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- (Bugfix) Fix deployment creation on ARM64
## [1.2.23](https://github.com/arangodb/kube-arangodb/tree/1.2.23) (2023-01-12) ## [1.2.23](https://github.com/arangodb/kube-arangodb/tree/1.2.23) (2023-01-12)
- (Bugfix) Remove PDBs if group count is 0 - (Bugfix) Remove PDBs if group count is 0

View file

@ -130,7 +130,8 @@ func (d *Deployment) renderMember(spec api.DeploymentSpec, status *api.Deploymen
role := group.AsRole() role := group.AsRole()
arch := apiObject.GetAcceptedSpec().Architecture.GetDefault() arch := apiObject.GetAcceptedSpec().Architecture.GetDefault()
if arch != api.ArangoDeploymentArchitectureAMD64 && apiObject.Status.CurrentImage.ArangoDBVersion.CompareTo("3.10.0") < 0 { if arch != api.ArangoDeploymentArchitectureAMD64 && apiObject.Status.CurrentImage != nil &&
apiObject.Status.CurrentImage.ArangoDBVersion.CompareTo("3.10.0") < 0 {
arch = api.ArangoDeploymentArchitectureAMD64 arch = api.ArangoDeploymentArchitectureAMD64
d.log.Str("arch", string(arch)).Warn("Cannot render pod with requested arch. It's not supported in ArangoDB < 3.10.0. Defaulting architecture to AMD64") d.log.Str("arch", string(arch)).Warn("Cannot render pod with requested arch. It's not supported in ArangoDB < 3.10.0. Defaulting architecture to AMD64")
d.CreateEvent(k8sutil.NewCannotSetArchitectureEvent(d.GetAPIObject(), string(arch), id)) d.CreateEvent(k8sutil.NewCannotSetArchitectureEvent(d.GetAPIObject(), string(arch), id))