Skip to content

Commit

Permalink
Raise loglevel when reporting perftune job completion
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Nov 29, 2024
1 parent d8f6e9d commit d98bd00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/nodetune/sync_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (ncdc *Controller) syncJobs(ctx context.Context, nc *scyllav1alpha1.NodeCon
finished = false
break
}
klog.V(4).InfoS("Job is completed", "Job", klog.KObj(fresh))
klog.V(2).InfoS("Job is completed", "Job", klog.KObj(fresh))

case naming.NodeConfigJobTypeContainerPerftune, naming.NodeConfigJobTypeContainerResourceLimits:
// We have successfully applied the job definition so the data should always be present at this point.
Expand Down Expand Up @@ -339,6 +339,8 @@ func (ncdc *Controller) syncJobs(ctx context.Context, nc *scyllav1alpha1.NodeCon
})
break
}
klog.V(2).InfoS("Job is completed", "Job", klog.KObj(fresh))

default:
return progressingConditions, fmt.Errorf("job %q has an unkown type %q", naming.ObjRef(j), t)
}
Expand Down

0 comments on commit d98bd00

Please sign in to comment.