support for volumes_from docker-compose construct

Now a user can provide volumes_from to share volumes
from other service so here the PVC created for that
service will be shared by service calling volumes_from
This commit is contained in:
Suraj Deshmukh
2016-10-19 09:15:47 +05:30
parent d9899b788d
commit fd09efed43
9 changed files with 622 additions and 2 deletions
+2
View File
@@ -160,6 +160,8 @@ func (k *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.C
allobjects = append(allobjects, objects...)
}
// If docker-compose has a volumes_from directive it will be handled here
kubernetes.VolumesFrom(&allobjects, komposeObject)
// sort all object so Services are first
kubernetes.SortServicesFirst(&allobjects)
return allobjects