mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
Merge pull request #136050 from ShaanveerS/fix-selinuxwarning-verbosity
fix(controller/volume): convert V().Error() to V().Info()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user