Skip to content

Commit 68ff6f8

Browse files
committed
Enable resource naming in config
1 parent cb6e45e commit 68ff6f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/nvidia-device-plugin/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434

3535
spec "github.com/NVIDIA/k8s-device-plugin/api/config/v1"
3636
"github.com/NVIDIA/k8s-device-plugin/internal/info"
37-
"github.com/NVIDIA/k8s-device-plugin/internal/logger"
3837
"github.com/NVIDIA/k8s-device-plugin/internal/plugin"
3938
"github.com/NVIDIA/k8s-device-plugin/internal/rm"
4039
"github.com/NVIDIA/k8s-device-plugin/internal/watch"
@@ -280,7 +279,7 @@ func startPlugins(c *cli.Context, flags []cli.Flag) ([]plugin.Interface, bool, e
280279
if err != nil {
281280
return nil, false, fmt.Errorf("unable to load config: %v", err)
282281
}
283-
spec.DisableResourceNamingInConfig(logger.ToKlog, config)
282+
// spec.DisableResourceNamingInConfig(logger.ToKlog, config)
284283

285284
driverRoot := root(*config.Flags.Plugin.ContainerDriverRoot)
286285
// We construct an NVML library specifying the path to libnvidia-ml.so.1

0 commit comments

Comments
 (0)