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

Function transformForHostRoot

controllers/object_controls.go:837–844  ·  view source on GitHub ↗

apply necessary transforms if a custom host root path is configured

(obj *appsv1.DaemonSet, hostRoot string)

Source from the content-addressed store, hash-verified

835
836// apply necessary transforms if a custom host root path is configured
837func transformForHostRoot(obj *appsv1.DaemonSet, hostRoot string) {
838 if hostRoot == "" || hostRoot == "/" {
839 return
840 }
841
842 transformHostRootVolume(obj, hostRoot)
843 transformHostDevCharVolume(obj, hostRoot)
844}
845
846func transformHostRootVolume(obj *appsv1.DaemonSet, hostRoot string) {
847 containsHostRootVolume := false

Callers 2

preProcessDaemonSetFunction · 0.85
TestTransformForHostRootFunction · 0.85

Calls 2

transformHostRootVolumeFunction · 0.85

Tested by 1

TestTransformForHostRootFunction · 0.68