A helper to create a basic config.
( sConfig *runtimeapi.PodSandboxConfig, name, image string, attempt uint32, labels, annotations map[string]string, )
| 40 | |
| 41 | // A helper to create a basic config. |
| 42 | func makeContainerConfig( |
| 43 | sConfig *runtimeapi.PodSandboxConfig, |
| 44 | name, image string, |
| 45 | attempt uint32, |
| 46 | labels, annotations map[string]string, |
| 47 | ) *runtimeapi.ContainerConfig { |
| 48 | return &runtimeapi.ContainerConfig{ |
| 49 | Metadata: &runtimeapi.ContainerMetadata{ |
| 50 | Name: name, |
| 51 | Attempt: attempt, |
| 52 | }, |
| 53 | Image: &runtimeapi.ImageSpec{Image: image}, |
| 54 | Labels: labels, |
| 55 | Annotations: annotations, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func getTestCTX() context.Context { |
| 60 | return context.Background() |
no outgoing calls
no test coverage detected
searching dependent graphs…