- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewRegistrationHandler (0.14 sec)
-
pkg/kubelet/cm/dra/plugin/plugin_test.go
) func getFakeNode() (*v1.Node, error) { return &v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "worker"}}, nil } func TestRegistrationHandler_ValidatePlugin(t *testing.T) { newRegistrationHandler := func() *RegistrationHandler { return NewRegistrationHandler(nil, getFakeNode) } for _, test := range []struct { description string handler func() *RegistrationHandler pluginName string endpoint string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:21:15 UTC 2024 - 2.6K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/plugin.go
// // Must only be called once per process because it manages global state. // If a kubeClient is provided, then it synchronizes ResourceSlices // with the resource information provided by plugins. func NewRegistrationHandler(kubeClient kubernetes.Interface, getNode func() (*v1.Node, error)) *RegistrationHandler { handler := &RegistrationHandler{} // If kubelet ever gets an API for stopping registration handlers, then
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 16:27:05 UTC 2024 - 6.2K bytes - Viewed (0)