forked from LaconicNetwork/kompose
ConfigVolumes: rename volumesMount to volumeMounts
This commit is contained in:
parent
9c38e88a7b
commit
f290cd6541
@ -219,7 +219,7 @@ func (k *Kubernetes) ConfigServicePorts(name string, service kobject.ServiceConf
|
|||||||
|
|
||||||
// Configure the container volumes.
|
// Configure the container volumes.
|
||||||
func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) ([]api.VolumeMount, []api.Volume, []*api.PersistentVolumeClaim) {
|
func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) ([]api.VolumeMount, []api.Volume, []*api.PersistentVolumeClaim) {
|
||||||
volumesMount := []api.VolumeMount{}
|
volumeMounts := []api.VolumeMount{}
|
||||||
volumes := []api.Volume{}
|
volumes := []api.Volume{}
|
||||||
var pvc []*api.PersistentVolumeClaim
|
var pvc []*api.PersistentVolumeClaim
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
|
|||||||
ReadOnly: readonly,
|
ReadOnly: readonly,
|
||||||
MountPath: container,
|
MountPath: container,
|
||||||
}
|
}
|
||||||
volumesMount = append(volumesMount, volmount)
|
volumeMounts = append(volumeMounts, volmount)
|
||||||
|
|
||||||
vol := api.Volume{
|
vol := api.Volume{
|
||||||
Name: volumeName,
|
Name: volumeName,
|
||||||
@ -260,7 +260,7 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
|
|||||||
}
|
}
|
||||||
pvc = append(pvc, k.CreatePVC(volumeName, mode))
|
pvc = append(pvc, k.CreatePVC(volumeName, mode))
|
||||||
}
|
}
|
||||||
return volumesMount, volumes, pvc
|
return volumeMounts, volumes, pvc
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure the environment variables.
|
// Configure the environment variables.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user