INNER CODE UNIT · Go

startDaemons

NVIDIA/k8s-device-plugin · cmd/mps-control-daemon/main.go:164

func startDaemons(c *cli.Context, cfg *Config) ([]*mps.Daemon, bool, error) {
	// Load the configuration file
	klog.Info("Loading configuration.")
	config, err := cfg.loadConfig(c)
	if err != nil {
		return nil, false, fmt.Errorf("unable to load config: %v", err)
	}
	spec.DisableResourceNamingInConfig(config)

	nvmllib := nvml.New()
	devicelib := device.New(nvmllib)
	infolib := nvinfo.New(
		nvinfo.WithNvmlLib(nvmllib),
		nvinfo.WithDeviceLib(devicelib),
	)

	// Update the configuration file with default resources.
	klog.Info("Updating config with default resource matching patterns.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…