From 2c02b371e2e868af27bf5920c7388604f92c8ab4 Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Tue, 14 May 2019 11:15:47 +0200 Subject: [PATCH] fix statefulset sync (#563) --- pkg/cluster/k8sres.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/k8sres.go b/pkg/cluster/k8sres.go index 436ae51d1..dbc884657 100644 --- a/pkg/cluster/k8sres.go +++ b/pkg/cluster/k8sres.go @@ -8,7 +8,7 @@ import ( "github.com/sirupsen/logrus" "k8s.io/api/apps/v1beta1" - "k8s.io/api/core/v1" + v1 "k8s.io/api/core/v1" policybeta1 "k8s.io/api/policy/v1beta1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -1014,6 +1014,7 @@ func generatePersistentVolumeClaimTemplate(volumeSize, volumeStorageClass string return nil, fmt.Errorf("could not parse volume size: %v", err) } + volumeMode := v1.PersistentVolumeFilesystem volumeClaim := &v1.PersistentVolumeClaim{ ObjectMeta: metadata, Spec: v1.PersistentVolumeClaimSpec{ @@ -1024,6 +1025,7 @@ func generatePersistentVolumeClaimTemplate(volumeSize, volumeStorageClass string }, }, StorageClassName: storageClassName, + VolumeMode: &volumeMode, }, }