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

Function createConfigMapVolume

controllers/object_controls.go:3491–3501  ·  view source on GitHub ↗
(configMapName string, itemsToInclude []corev1.KeyToPath)

Source from the content-addressed store, hash-verified

3489}
3490
3491func createConfigMapVolume(configMapName string, itemsToInclude []corev1.KeyToPath) corev1.Volume {
3492 volumeSource := corev1.VolumeSource{
3493 ConfigMap: &corev1.ConfigMapVolumeSource{
3494 LocalObjectReference: corev1.LocalObjectReference{
3495 Name: configMapName,
3496 },
3497 Items: itemsToInclude,
3498 },
3499 }
3500 return corev1.Volume{Name: configMapName, VolumeSource: volumeSource}
3501}
3502
3503func createEmptyDirVolume(volumeName string) corev1.Volume {
3504 return corev1.Volume{

Callers 3

handleDevicePluginConfigFunction · 0.70
transformDriverContainerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected