forked from LaconicNetwork/kompose
cli: add --emptyvols option
This commit is contained in:
@@ -113,6 +113,7 @@ type ConvertOptions struct {
|
||||
CreateDeploymentConfig bool
|
||||
CreateChart bool
|
||||
GenerateYaml bool
|
||||
EmptyVols bool
|
||||
Replicas int
|
||||
InputFile string
|
||||
OutFile string
|
||||
|
||||
@@ -223,7 +223,9 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
|
||||
volumes := []api.Volume{}
|
||||
var PVCs []*api.PersistentVolumeClaim
|
||||
|
||||
useEmptyVolumes := true
|
||||
// Set a var based on if the user wants to use emtpy volumes
|
||||
// as opposed to persistent volumes and volume claims
|
||||
useEmptyVolumes := k.Opt.EmptyVols
|
||||
|
||||
var count int
|
||||
for _, volume := range service.Volumes {
|
||||
|
||||
Reference in New Issue
Block a user