Skip to content

Commit d36e9d3

Browse files
committed
Do not build initcontainer for imageid pod
1 parent e273d1f commit d36e9d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/util/k8sutil/pods.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ func CreateArangodPod(kubecli kubernetes.Interface, developmentMode bool, deploy
449449
p.Spec.Containers = append(p.Spec.Containers, c)
450450

451451
// Add UUID init container
452-
p.Spec.InitContainers = append(p.Spec.InitContainers, arangodInitContainer("uuid", id, engine, alpineImage, requireUUID))
452+
if alpineImage != "" {
453+
p.Spec.InitContainers = append(p.Spec.InitContainers, arangodInitContainer("uuid", id, engine, alpineImage, requireUUID))
454+
}
453455

454456
// Add volume
455457
if pvcName != "" {

0 commit comments

Comments
 (0)