checks if custom plugin config is provided through a ConfigMap
(pluginConfig *gpuv1.DevicePluginConfig)
| 2807 | |
| 2808 | // checks if custom plugin config is provided through a ConfigMap |
| 2809 | func isCustomPluginConfigSet(pluginConfig *gpuv1.DevicePluginConfig) bool { |
| 2810 | if pluginConfig != nil && pluginConfig.Name != "" { |
| 2811 | return true |
| 2812 | } |
| 2813 | return false |
| 2814 | } |
| 2815 | |
| 2816 | // adds shared volume mounts required for custom plugin config provided via a ConfigMap |
| 2817 | func addSharedMountsForPluginConfig(container *corev1.Container, config *gpuv1.DevicePluginConfig) { |
no outgoing calls
no test coverage detected