forked from LaconicNetwork/kompose
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user