From d81f0a15f9cd9ae89c9941cbf1ba8200beb8c3d7 Mon Sep 17 00:00:00 2001 From: Nikita Vaniasin Date: Tue, 26 Sep 2023 09:16:22 +0200 Subject: [PATCH] [Bugfix] Use nil by default for PVC template --- pkg/apis/deployment/v1/arango_member_spec_overrides.go | 2 +- pkg/apis/deployment/v2alpha1/arango_member_spec_overrides.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/deployment/v1/arango_member_spec_overrides.go b/pkg/apis/deployment/v1/arango_member_spec_overrides.go index 0e792b5be..510af5403 100644 --- a/pkg/apis/deployment/v1/arango_member_spec_overrides.go +++ b/pkg/apis/deployment/v1/arango_member_spec_overrides.go @@ -65,7 +65,7 @@ func (a *ArangoMemberSpecOverrides) GetVolumeClaimTemplate(g *ServerGroupSpec) * } } - return &core.PersistentVolumeClaim{} + return nil } func (a *ArangoMemberSpecOverrides) GetResources(g *ServerGroupSpec) core.ResourceRequirements { diff --git a/pkg/apis/deployment/v2alpha1/arango_member_spec_overrides.go b/pkg/apis/deployment/v2alpha1/arango_member_spec_overrides.go index b43ed33d9..448ab377f 100644 --- a/pkg/apis/deployment/v2alpha1/arango_member_spec_overrides.go +++ b/pkg/apis/deployment/v2alpha1/arango_member_spec_overrides.go @@ -65,7 +65,7 @@ func (a *ArangoMemberSpecOverrides) GetVolumeClaimTemplate(g *ServerGroupSpec) * } } - return &core.PersistentVolumeClaim{} + return nil } func (a *ArangoMemberSpecOverrides) GetResources(g *ServerGroupSpec) core.ResourceRequirements {