INNER CODE UNIT · Go

newLabel

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

					newLabel := newObj.(*v1.Node).Labels[f.NodeLabel]
					if oldLabel != newLabel {
						config.Set(newLabel)
					}
				},
				DeleteFunc: func(obj any) {
					oldLabel := obj.(*v1.Node).Labels[f.NodeLabel]
					if oldLabel != "" {
						config.Set("")
					}
				},
			},
			ResyncPeriod: 0,
		},
	)

	stop := make(chan struct{})
	go controller.Run(stop)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…