mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
Merge pull request #861 from marquiz/fixes/log-msg
nfd-master: more fixes to log messages
This commit is contained in:
commit
da3eed5101
1 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@ func (m *nfdMaster) Run() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
klog.Info("starting nfd LabelRule controller")
|
klog.Info("starting nfd api controller")
|
||||||
m.nfdController = newNfdController(kubeconfig)
|
m.nfdController = newNfdController(kubeconfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -509,7 +509,7 @@ func (m *nfdMaster) crLabels(r *pb.SetLabelsRequest) map[string]string {
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("failed to list LabelRule resources: %w", err)
|
klog.Errorf("failed to list NodeFeatureRule resources: %w", err)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,10 +517,10 @@ func (m *nfdMaster) crLabels(r *pb.SetLabelsRequest) map[string]string {
|
||||||
for _, spec := range ruleSpecs {
|
for _, spec := range ruleSpecs {
|
||||||
switch {
|
switch {
|
||||||
case klog.V(3).Enabled():
|
case klog.V(3).Enabled():
|
||||||
h := fmt.Sprintf("executing LabelRule \"%s/%s\":", spec.ObjectMeta.Namespace, spec.ObjectMeta.Name)
|
h := fmt.Sprintf("executing NodeFeatureRule %q:", spec.ObjectMeta.Name)
|
||||||
utils.KlogDump(3, h, " ", spec.Spec)
|
utils.KlogDump(3, h, " ", spec.Spec)
|
||||||
case klog.V(1).Enabled():
|
case klog.V(1).Enabled():
|
||||||
klog.Infof("executing LabelRule \"%s/%s\"", spec.ObjectMeta.Namespace, spec.ObjectMeta.Name)
|
klog.Infof("executing NodeFeatureRule %q", spec.ObjectMeta.Name)
|
||||||
}
|
}
|
||||||
for _, rule := range spec.Spec.Rules {
|
for _, rule := range spec.Spec.Rules {
|
||||||
ruleOut, err := rule.Execute(r.Features)
|
ruleOut, err := rule.Execute(r.Features)
|
||||||
|
|
Loading…
Add table
Reference in a new issue