diff --git a/manifests/templates/deployment/service.yaml b/manifests/templates/deployment/service.yaml index 25dd0b1f2..e7cc83a68 100644 --- a/manifests/templates/deployment/service.yaml +++ b/manifests/templates/deployment/service.yaml @@ -1,4 +1,4 @@ -apiVersion: "" +apiVersion: v1 kind: Service metadata: name: {{ .Deployment.OperatorDeploymentName }} diff --git a/pkg/util/k8sutil/pods.go b/pkg/util/k8sutil/pods.go index aa7779098..46a5f8550 100644 --- a/pkg/util/k8sutil/pods.go +++ b/pkg/util/k8sutil/pods.go @@ -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 != "" { diff --git a/tests/change_args_test.go b/tests/change_args_test.go index 05855c3a0..96dfd6dd0 100644 --- a/tests/change_args_test.go +++ b/tests/change_args_test.go @@ -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) @@ -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)