mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +00:00
nfd-master: log if node was modified (or not)
Be a bit more verbose what is happning.
This commit is contained in:
parent
0abae922fa
commit
8b652ab8ec
1 changed files with 8 additions and 2 deletions
|
@ -587,12 +587,18 @@ func (m *nfdMaster) updateNodeFeatures(nodeName string, labels Labels, annotatio
|
|||
}
|
||||
|
||||
// patch node status with extended resource changes
|
||||
patches = m.createExtendedResourcePatches(node, extendedResources)
|
||||
err = m.apihelper.PatchNodeStatus(cli, node.Name, patches)
|
||||
statusPatches := m.createExtendedResourcePatches(node, extendedResources)
|
||||
err = m.apihelper.PatchNodeStatus(cli, node.Name, statusPatches)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error while patching extended resources: %v", err)
|
||||
}
|
||||
|
||||
if len(patches) > 0 || len(statusPatches) > 0 {
|
||||
klog.Infof("node %q updated", nodeName)
|
||||
} else {
|
||||
klog.V(1).Infof("no updates to node %q", nodeName)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue