ConfigVolumes: rename pvc var to PVCs

It is a list of persistent volume claims.
This commit is contained in:
Dusty Mabe 2016-10-25 22:26:04 -04:00
parent f290cd6541
commit 30752b7b93
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -221,7 +221,7 @@ func (k *Kubernetes) ConfigServicePorts(name string, service kobject.ServiceConf
func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) ([]api.VolumeMount, []api.Volume, []*api.PersistentVolumeClaim) {
volumeMounts := []api.VolumeMount{}
volumes := []api.Volume{}
var pvc []*api.PersistentVolumeClaim
var PVCs []*api.PersistentVolumeClaim
var count int
for _, volume := range service.Volumes {
@ -258,9 +258,9 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
if len(host) > 0 {
logrus.Warningf("Volume mount on the host %q isn't supported - ignoring path on the host", host)
}
pvc = append(pvc, k.CreatePVC(volumeName, mode))
PVCs = append(PVCs, k.CreatePVC(volumeName, mode))
}
return volumeMounts, volumes, pvc
return volumeMounts, volumes, PVCs
}
// Configure the environment variables.