From bc90d4047f1110860a7708b2622825d8d3efbea7 Mon Sep 17 00:00:00 2001 From: Abdelrahman Ahmed Date: Fri, 21 Jun 2024 04:19:43 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20update=20log=20message=20in=20ha?= =?UTF-8?q?nding=20pod=20reason?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filter/podStatusFilter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/podStatusFilter.go b/filter/podStatusFilter.go index 628e6801..10d782c8 100644 --- a/filter/podStatusFilter.go +++ b/filter/podStatusFilter.go @@ -55,7 +55,7 @@ func (f PodStatusFilter) Execute(ctx *Context) bool { !slices.Contains(ctx.Config.AllowedReasons, ctx.PodReason) { logrus.Infof( "skipping reason %s for pod %s as it is not in the reason allow list", - ctx.Container.Reason, + ctx.PodReason, ctx.Pod.Name) return true } @@ -65,7 +65,7 @@ func (f PodStatusFilter) Execute(ctx *Context) bool { slices.Contains(ctx.Config.ForbiddenReasons, ctx.PodReason) { logrus.Infof( "skipping reason %s for pod %s as it is in the reason forbid list", - ctx.Container.Reason, + ctx.PodReason, ctx.Pod.Name) return true }