forked from LaconicNetwork/kompose
Fix govet warning for openshift buildconfig.
Go vet warning was 'composite liternal uses unkeyed fields'.
This commit is contained in:
parent
d8ec3db673
commit
3b13dae515
@ -173,14 +173,12 @@ func initBuildConfig(name string, service kobject.ServiceConfig, composeFileDir
|
|||||||
Name: name,
|
Name: name,
|
||||||
},
|
},
|
||||||
Spec: buildapi.BuildConfigSpec{
|
Spec: buildapi.BuildConfigSpec{
|
||||||
// Triggers
|
Triggers: []buildapi.BuildTriggerPolicy{
|
||||||
[]buildapi.BuildTriggerPolicy{
|
|
||||||
{Type: "ConfigChange"},
|
{Type: "ConfigChange"},
|
||||||
{Type: "ImageChange"},
|
{Type: "ImageChange"},
|
||||||
},
|
},
|
||||||
// RunPolicy
|
RunPolicy: "Serial",
|
||||||
"Serial",
|
CommonSpec: buildapi.CommonSpec{
|
||||||
buildapi.CommonSpec{
|
|
||||||
Source: buildapi.BuildSource{
|
Source: buildapi.BuildSource{
|
||||||
Git: &buildapi.GitBuildSource{
|
Git: &buildapi.GitBuildSource{
|
||||||
Ref: branch,
|
Ref: branch,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user