Skip to content

Commit

Permalink
Merge pull request #214 from arangodb/bugfix/image-id-initcontainer
Browse files Browse the repository at this point in the history
Do not build initcontainer for imageid pod
  • Loading branch information
ewoutp authored Jul 10, 2018
2 parents e273d1f + 101982f commit 4648865
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/templates/deployment/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ""
apiVersion: v1
kind: Service
metadata:
name: {{ .Deployment.OperatorDeploymentName }}
Expand Down
4 changes: 3 additions & 1 deletion pkg/util/k8sutil/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ func CreateArangodPod(kubecli kubernetes.Interface, developmentMode bool, deploy
p.Spec.Containers = append(p.Spec.Containers, c)

// Add UUID init container
p.Spec.InitContainers = append(p.Spec.InitContainers, arangodInitContainer("uuid", id, engine, alpineImage, requireUUID))
if alpineImage != "" {
p.Spec.InitContainers = append(p.Spec.InitContainers, arangodInitContainer("uuid", id, engine, alpineImage, requireUUID))
}

// Add volume
if pvcName != "" {
Expand Down
2 changes: 2 additions & 0 deletions tests/change_args_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
// TestChangeArgsAgents tests the creating of an active failover deployment
// with default settings and once ready changes the arguments of the agents.
func TestChangeArgsAgents(t *testing.T) {
longOrSkip(t)
c := client.MustNewInCluster()
kubecli := mustNewKubeClient(t)
ns := getNamespace(t)
Expand Down Expand Up @@ -119,6 +120,7 @@ func TestChangeArgsAgents(t *testing.T) {
// TestChangeArgsDBServer tests the creating of a cluster deployment
// with default settings and once ready changes the arguments of the dbservers.
func TestChangeArgsDBServer(t *testing.T) {
longOrSkip(t)
c := client.MustNewInCluster()
kubecli := mustNewKubeClient(t)
ns := getNamespace(t)
Expand Down

0 comments on commit 4648865

Please sign in to comment.