Generate openshift imagestream when build is absent.

This commit is contained in:
Ratnadeep Debnath 2016-12-06 02:59:33 +05:30
parent c8d8cbbba9
commit ec09ca428b

View File

@ -140,9 +140,7 @@ func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig)
tag := getImageTag(service.Image)
var tags map[string]imageapi.TagReference
if service.Build != "" {
tags = map[string]imageapi.TagReference{}
} else {
if service.Build == "" {
tags = map[string]imageapi.TagReference{
tag: imageapi.TagReference{
From: &api.ObjectReference{