cli: add --emptyvols option

This commit is contained in:
Dusty Mabe
2016-10-28 16:05:59 -04:00
parent df09fd5193
commit 9ce3f0cf15
4 changed files with 13 additions and 1 deletions
+1
View File
@@ -113,6 +113,7 @@ type ConvertOptions struct {
CreateDeploymentConfig bool
CreateChart bool
GenerateYaml bool
EmptyVols bool
Replicas int
InputFile string
OutFile string
+3 -1
View File
@@ -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 {