Skip to content

Commit 1b25470

Browse files
authored
[Bugfix] Fix deployment creation on ARM64 (#1224)
1 parent 349f52c commit 1b25470

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Change Log
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
4+
- (Bugfix) Fix deployment creation on ARM64
45

56
## [1.2.23](https://github.com/arangodb/kube-arangodb/tree/1.2.23) (2023-01-12)
67
- (Bugfix) Remove PDBs if group count is 0

pkg/deployment/members.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ func (d *Deployment) renderMember(spec api.DeploymentSpec, status *api.Deploymen
130130
role := group.AsRole()
131131

132132
arch := apiObject.GetAcceptedSpec().Architecture.GetDefault()
133-
if arch != api.ArangoDeploymentArchitectureAMD64 && apiObject.Status.CurrentImage.ArangoDBVersion.CompareTo("3.10.0") < 0 {
133+
if arch != api.ArangoDeploymentArchitectureAMD64 && apiObject.Status.CurrentImage != nil &&
134+
apiObject.Status.CurrentImage.ArangoDBVersion.CompareTo("3.10.0") < 0 {
134135
arch = api.ArangoDeploymentArchitectureAMD64
135136
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")
136137
d.CreateEvent(k8sutil.NewCannotSetArchitectureEvent(d.GetAPIObject(), string(arch), id))

0 commit comments

Comments
 (0)