From 753bd4e3c4f7787c0bb4a0ef3a8ac777c3162e11 Mon Sep 17 00:00:00 2001 From: Daishan Date: Mon, 18 Nov 2019 11:48:25 -0700 Subject: [PATCH] Fix volume mapper --- pkg/riofile/stringers/volume.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/riofile/stringers/volume.go b/pkg/riofile/stringers/volume.go index 7a3a51f7b..60d13da31 100644 --- a/pkg/riofile/stringers/volume.go +++ b/pkg/riofile/stringers/volume.go @@ -2,6 +2,7 @@ package stringers import ( "fmt" + "strconv" "strings" corev1 "k8s.io/api/core/v1" @@ -51,7 +52,8 @@ func ParseVolume(v string) (volume v1.Volume, err error) { k = strings.ToLower(k) switch k { case "persistent": - volume.Persistent = true + value, _ := strconv.ParseBool(v) + volume.Persistent = value case "hosttype": if volume.HostPath == "" && volume.Name != "" { volume.HostPath = volume.Name