MCPcopy
hub / github.com/redspread/spread / testCreateKubePodSourcegraph

Function testCreateKubePodSourcegraph

pkg/entity/pod_test.go:220–246  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

218}
219
220func 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}

Callers 5

TestRCValidPodImagesFunction · 0.85
TestRCValidPodDeploymentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected