(name string)
| 218 | } |
| 219 | |
| 220 | func testCreateKubePodSourcegraph(name string) *kube.Pod { |
| 221 | return &kube.Pod{ |
| 222 | ObjectMeta: kube.ObjectMeta{Name: name}, |
| 223 | Spec: kube.PodSpec{ |
| 224 | RestartPolicy: kube.RestartPolicyAlways, |
| 225 | DNSPolicy: kube.DNSDefault, |
| 226 | Volumes: []kube.Volume{ |
| 227 | { |
| 228 | Name: "config", |
| 229 | VolumeSource: kube.VolumeSource{ |
| 230 | EmptyDir: &kube.EmptyDirVolumeSource{}, |
| 231 | }, |
| 232 | }, |
| 233 | { |
| 234 | Name: "db", |
| 235 | VolumeSource: kube.VolumeSource{ |
| 236 | EmptyDir: &kube.EmptyDirVolumeSource{}, |
| 237 | }, |
| 238 | }, |
| 239 | }, |
| 240 | Containers: []kube.Container{ |
| 241 | testKubeContainerPostgres, |
| 242 | testKubeContainerSourcegraph, |
| 243 | }, |
| 244 | }, |
| 245 | } |
| 246 | } |
no outgoing calls
no test coverage detected