Fork API types.

This commit is contained in:
Brendan Burns
2014-07-16 14:30:28 -07:00
parent cb28f25b1b
commit bf5ae4bb9d
15 changed files with 1251 additions and 76 deletions

View File

@@ -32,7 +32,8 @@ func makePodList(count int) api.PodList {
for i := 0; i < count; i++ {
pods = append(pods, api.Pod{
JSONBase: api.JSONBase{
ID: fmt.Sprintf("pod%d", i),
ID: fmt.Sprintf("pod%d", i),
APIVersion: "v1beta1",
},
DesiredState: api.PodState{
Manifest: api.ContainerManifest{
@@ -53,7 +54,8 @@ func makePodList(count int) api.PodList {
})
}
return api.PodList{
Items: pods,
JSONBase: api.JSONBase{APIVersion: "v1beta1", Kind: "PodList"},
Items: pods,
}
}