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

Method WithHostPathVolume

controllers/transforms_test.go:91–103  ·  view source on GitHub ↗
(name string, path string, hostPathType *corev1.HostPathType)

Source from the content-addressed store, hash-verified

89}
90
91func (d Daemonset) WithHostPathVolume(name string, path string, hostPathType *corev1.HostPathType) Daemonset {
92 volume := corev1.Volume{
93 Name: name,
94 VolumeSource: corev1.VolumeSource{
95 HostPath: &corev1.HostPathVolumeSource{
96 Path: path,
97 Type: hostPathType,
98 },
99 },
100 }
101 d.Spec.Template.Spec.Volumes = append(d.Spec.Template.Spec.Volumes, volume)
102 return d
103}
104
105func (d Daemonset) WithConfigMapVolume(name string, configMapName string, defaultMode int32) Daemonset {
106 volume := corev1.Volume{

Callers 7

TestTransformForHostRootFunction · 0.80
TestTransformForRuntimeFunction · 0.80
TestTransformToolkitFunction · 0.80
TestTransformKataManagerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected