forked from LaconicNetwork/kompose
In buildconfig, only set strategy type as Docker
and do not set other details like imagestream to build from, etc.
This commit is contained in:
parent
a2a731f30c
commit
6d8a6a3fc8
@ -153,7 +153,7 @@ func initBuildConfig(name string, service kobject.ServiceConfig) *buildapi.Build
|
||||
{Type: "ImageChange"},
|
||||
},
|
||||
// RunPolicy
|
||||
"serial",
|
||||
"Serial",
|
||||
buildapi.CommonSpec{
|
||||
Source: buildapi.BuildSource{
|
||||
Git: &buildapi.GitBuildSource{
|
||||
@ -163,12 +163,7 @@ func initBuildConfig(name string, service kobject.ServiceConfig) *buildapi.Build
|
||||
ContextDir: getAbsBuildContext(service.Build),
|
||||
},
|
||||
Strategy: buildapi.BuildStrategy{
|
||||
DockerStrategy: &buildapi.DockerBuildStrategy{
|
||||
From: &kapi.ObjectReference{
|
||||
Kind: "ImageStreamTag",
|
||||
Name: name + ":from",
|
||||
},
|
||||
},
|
||||
DockerStrategy: &buildapi.DockerBuildStrategy{},
|
||||
},
|
||||
Output: buildapi.BuildOutput{
|
||||
To: &kapi.ObjectReference{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user