Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion controllers/object_controls.go
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,11 @@ func TransformDCGMExporter(obj *appsv1.DaemonSet, config *gpuv1.ClusterPolicySpe
if len(config.DCGMExporter.Args) > 0 {
obj.Spec.Template.Spec.Containers[0].Args = config.DCGMExporter.Args
}

// set kubeletPath if specified for exporter container
if len(config.DCGMExporter.kubeletPath) > 0 {
obj.Spec.Template.Spec.volumes[0].path = config.DCGMExporter.kubeletPath
}

// check if DCGM hostengine is enabled as a separate Pod and setup env accordingly
if config.DCGM.IsEnabled() {
setContainerEnv(&(obj.Spec.Template.Spec.Containers[0]), DCGMRemoteEngineEnvName, fmt.Sprintf("nvidia-dcgm:%d", DCGMDefaultPort))
Expand Down