change volume name with generated deployment file

if volumes in docker file is defined as
      volumes:
        - .:/code
    Then the PVC created by kompose will containes .(dot) in it.
       .-persistentvolumeclaim.yaml
This commit is contained in:
Abhishek
2017-06-14 14:31:07 +05:30
parent bf20029009
commit c40bb4bb3a
5 changed files with 474 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func ParseVolume(volume string) (name, host, container, mode string, err error)
}
func isPath(substring string) bool {
return strings.Contains(substring, "/")
return strings.Contains(substring, "/") || substring == "."
}
// ConfigLabels configures label