INNER CODE UNIT · Go

oldLabel

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

					oldLabel := oldObj.(*v1.Node).Labels[f.NodeLabel]
					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{})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…