From 936bcbafd0d3fd7a6a02a4ae1b7f8292fe4ede2f Mon Sep 17 00:00:00 2001 From: Patryk Matuszak Date: Thu, 10 Jul 2025 17:39:19 +0200 Subject: [PATCH] Fix initial bool value to avoid sending update to kubelet every 5 seconds --- deviceplugin/generic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deviceplugin/generic.go b/deviceplugin/generic.go index 7b427d93..37470891 100644 --- a/deviceplugin/generic.go +++ b/deviceplugin/generic.go @@ -168,7 +168,7 @@ func (gp *GenericPlugin) refreshDevices() (bool, error) { old := gp.devices gp.devices = make(map[string]device) - var equal bool + equal := true // Add the new devices to the map and check // if they were in the old map. for _, d := range devices {