Skip to content

Commit

Permalink
fix(provider): apply missing volume templates on deployment update
Browse files Browse the repository at this point in the history
if deployment with persistent storage is being updated it should
reuse existing persistent volume templates

ref #286

Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Jul 1, 2022
1 parent 20a3b6b commit ae8feb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/cluster/kube/builder/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ae8feb0

Please sign in to comment.