Skip to content

Commit

Permalink
Enable resource naming in config
Browse files Browse the repository at this point in the history
  • Loading branch information
MondayCha committed Jul 31, 2024
1 parent cb6e45e commit 68ff6f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/nvidia-device-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (

spec "github.com/NVIDIA/k8s-device-plugin/api/config/v1"
"github.com/NVIDIA/k8s-device-plugin/internal/info"
"github.com/NVIDIA/k8s-device-plugin/internal/logger"
"github.com/NVIDIA/k8s-device-plugin/internal/plugin"
"github.com/NVIDIA/k8s-device-plugin/internal/rm"
"github.com/NVIDIA/k8s-device-plugin/internal/watch"
Expand Down Expand Up @@ -280,7 +279,7 @@ func startPlugins(c *cli.Context, flags []cli.Flag) ([]plugin.Interface, bool, e
if err != nil {
return nil, false, fmt.Errorf("unable to load config: %v", err)
}
spec.DisableResourceNamingInConfig(logger.ToKlog, config)
// spec.DisableResourceNamingInConfig(logger.ToKlog, config)

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

0 comments on commit 68ff6f8

Please sign in to comment.