mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #136050 from ShaanveerS/fix-selinuxwarning-verbosity
fix(controller/volume): convert V().Error() to V().Info()
This commit is contained in:
commit
250e18904e
1 changed files with 2 additions and 2 deletions
|
|
@ -472,7 +472,7 @@ func (c *Controller) syncPod(ctx context.Context, pod *v1.Pod) error {
|
|||
if volumeutil.IsMultipleSELinuxLabelsError(err) {
|
||||
c.eventRecorder.Eventf(pod, v1.EventTypeWarning, "MultipleSELinuxLabels", "Volume %q is mounted twice with different SELinux labels inside this pod", mount)
|
||||
}
|
||||
logger.V(4).Error(err, "failed to get SELinux label", "pod", klog.KObj(pod), "volume", mount)
|
||||
logger.V(4).Info("failed to get SELinux label", "pod", klog.KObj(pod), "volume", mount, "err", err)
|
||||
errs = append(errs, err)
|
||||
continue
|
||||
}
|
||||
|
|
@ -535,7 +535,7 @@ func (c *Controller) reportConflictEvents(logger klog.Logger, conflicts []volume
|
|||
for _, conflict := range conflicts {
|
||||
pod, err := c.podLister.Pods(conflict.Pod.Namespace).Get(conflict.Pod.Name)
|
||||
if err != nil {
|
||||
logger.V(2).Error(err, "failed to get first pod for event", "pod", conflict.Pod)
|
||||
logger.V(2).Info("failed to get first pod for event", "pod", conflict.Pod, "err", err)
|
||||
// It does not make sense to report a conflict that has been resolved by deleting one of the pods.
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue