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:
parent
349f52cd84
commit
1b25470b92
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# Change Log
|
||||
|
||||
## [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)
|
||||
- (Bugfix) Remove PDBs if group count is 0
|
||||
|
|
|
@ -130,7 +130,8 @@ func (d *Deployment) renderMember(spec api.DeploymentSpec, status *api.Deploymen
|
|||
role := group.AsRole()
|
||||
|
||||
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
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue