MCPcopy Index your code
hub / github.com/NVIDIA/gpu-operator / WithInitContainer

Method WithInitContainer

controllers/transforms_test.go:213–216  ·  view source on GitHub ↗
(container corev1.Container)

Source from the content-addressed store, hash-verified

211}
212
213func (p Pod) WithInitContainer(container corev1.Container) Pod {
214 p.Spec.InitContainers = append(p.Spec.InitContainers, container)
215 return p
216}
217
218func (p Pod) WithRuntimeClassName(name string) Pod {
219 p.Spec.RuntimeClassName = &name

Calls

no outgoing calls

Tested by

no test coverage detected