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

Function transformHostDevCharVolume

controllers/object_controls.go:869–876  ·  view source on GitHub ↗
(obj *appsv1.DaemonSet, hostRoot string)

Source from the content-addressed store, hash-verified

867}
868
869func transformHostDevCharVolume(obj *appsv1.DaemonSet, hostRoot string) {
870 for _, volume := range obj.Spec.Template.Spec.Volumes {
871 if volume.Name == "host-dev-char" {
872 volume.HostPath.Path = filepath.Join(hostRoot, "/dev/char")
873 break
874 }
875 }
876}
877
878// apply necessary transforms if a custom driver install directory is configured
879func transformForDriverInstallDir(obj *appsv1.DaemonSet, driverInstallDir string) {

Callers 1

transformForHostRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected