Merge pull request #190 from surajssd/support-volumes-from

support for volumes_from docker-compose construct
This commit is contained in:
Suraj Deshmukh
2016-10-23 21:40:14 +05:30
committed by GitHub
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