diff --git a/provider/cluster/kube/builder/statefulset.go b/provider/cluster/kube/builder/statefulset.go index 0817353901..3587d99db7 100644 --- a/provider/cluster/kube/builder/statefulset.go +++ b/provider/cluster/kube/builder/statefulset.go @@ -76,7 +76,7 @@ func (b *statefulSet) Update(obj *appsv1.StatefulSet) (*appsv1.StatefulSet, erro obj.Spec.Template.Labels = b.labels() obj.Spec.Template.Spec.Containers = []corev1.Container{b.container()} obj.Spec.Template.Spec.ImagePullSecrets = b.imagePullSecrets() - obj.Spec.VolumeClaimTemplates = []corev1.PersistentVolumeClaim{} + obj.Spec.VolumeClaimTemplates = b.persistentVolumeClaims() return obj, nil }