MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / NewPod

Function NewPod

controllers/transforms_test.go:206–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206func NewPod() Pod {
207 pod := &corev1.Pod{
208 Spec: corev1.PodSpec{},
209 }
210 return Pod{pod}
211}
212
213func (p Pod) WithInitContainer(container corev1.Container) Pod {
214 p.Spec.InitContainers = append(p.Spec.InitContainers, container)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected