INNER CODE UNIT · Go

updateConfig

NVIDIA/k8s-device-plugin · cmd/config-manager/main.go:297

func updateConfig(config string, f *Flags) error {
	config, err := updateConfigName(config, f)
	if err != nil {
		return err
	}

	if config == "" {
		klog.Infof("Updating to empty config")
	} else {
		klog.Infof("Updating to config: %s", config)
	}

	updated, err := updateSymlink(config, f)
	if err != nil {
		return err
	}
	if !updated {
		klog.Infof("Already configured. Skipping update...")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…