Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #825 from StrongMonkey/fix-persistent
Browse files Browse the repository at this point in the history
Fix volume mapper
  • Loading branch information
StrongMonkey authored Nov 18, 2019
2 parents 27d09b5 + 753bd4e commit feab3d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/riofile/stringers/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package stringers

import (
"fmt"
"strconv"
"strings"

corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit feab3d1

Please sign in to comment.