forked from LaconicNetwork/kompose
Add "--pvc-request-size" new command line parameter (#1406)
This commit is contained in:
@@ -58,6 +58,7 @@ type ConvertOptions struct {
|
||||
StoreManifest bool
|
||||
EmptyVols bool
|
||||
Volumes string
|
||||
PVCRequestSize string
|
||||
InsecureRepository bool
|
||||
Replicas int
|
||||
InputFiles []string
|
||||
|
||||
@@ -845,7 +845,9 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
|
||||
volsource = k.ConfigPVCVolumeSource(volumeName, readonly)
|
||||
if volume.VFrom == "" {
|
||||
defaultSize := PVCRequestSize
|
||||
|
||||
if k.Opt.PVCRequestSize != "" {
|
||||
defaultSize = k.Opt.PVCRequestSize
|
||||
}
|
||||
if len(volume.PVCSize) > 0 {
|
||||
defaultSize = volume.PVCSize
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user