Validate that there is at least one container in the pod

This commit is contained in:
Filip Grzadkowski
2015-03-18 16:00:18 +01:00
parent cbf57ee324
commit f89f91b7bd
4 changed files with 30 additions and 3 deletions

View File

@@ -62,6 +62,7 @@ func CreateValidPod(name, namespace, source string) api.Pod {
Spec: api.PodSpec{
RestartPolicy: api.RestartPolicyAlways,
DNSPolicy: api.DNSClusterFirst,
Containers: []api.Container{{Name: "ctr", Image: "image", ImagePullPolicy: "IfNotPresent"}},
},
}
}