Skip to content

Commit

Permalink
Merge pull request #861 from marquiz/fixes/log-msg
Browse files Browse the repository at this point in the history
nfd-master: more fixes to log messages
  • Loading branch information
k8s-ci-robot authored Aug 17, 2022
2 parents 1ab4bc4 + 889e4c1 commit da3eed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/nfd-master/nfd-master.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (m *nfdMaster) Run() error {
if err != nil {
return err
}
klog.Info("starting nfd LabelRule controller")
klog.Info("starting nfd api controller")
m.nfdController = newNfdController(kubeconfig)
}

Expand Down Expand Up @@ -509,18 +509,18 @@ func (m *nfdMaster) crLabels(r *pb.SetLabelsRequest) map[string]string {
})

if err != nil {
klog.Errorf("failed to list LabelRule resources: %w", err)
klog.Errorf("failed to list NodeFeatureRule resources: %w", err)
return nil
}

// Process all rule CRs
for _, spec := range ruleSpecs {
switch {
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)
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 {
ruleOut, err := rule.Execute(r.Features)
Expand Down

0 comments on commit da3eed5

Please sign in to comment.