Merge pull request #434 from procrypt/abstract_out_api.PodSpec

Abstract out api.pod spec
This commit is contained in:
Charlie Drage
2017-02-22 10:47:30 -05:00
committed by GitHub
3 changed files with 27 additions and 41 deletions
+1 -9
View File
@@ -240,15 +240,7 @@ func (o *OpenShift) initDeploymentConfig(name string, service kobject.ServiceCon
ObjectMeta: api.ObjectMeta{
Labels: map[string]string{"service": name},
},
Spec: api.PodSpec{
Containers: []api.Container{
{
Name: name,
// Image will be set to ImageStream image by ImageChange trigger.
Image: " ",
},
},
},
Spec: o.InitPodSpec(name, " "),
},
Triggers: []deployapi.DeploymentTriggerPolicy{
// Trigger new deploy when DeploymentConfig is created (config change)