From dfec6a68c415f43d4c84cc21d772b91b48c60f36 Mon Sep 17 00:00:00 2001 From: Gustav Westling Date: Fri, 5 Jan 2024 09:11:26 +0100 Subject: [PATCH] score/probes: set score.Skipped if pod not targeted by service --- score/probes/probes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/score/probes/probes.go b/score/probes/probes.go index f5ede4c..f19927a 100644 --- a/score/probes/probes.go +++ b/score/probes/probes.go @@ -99,6 +99,7 @@ func containerProbes(allServices []ks.Service) func(ks.PodSpecer) (scorecard.Tes if !isTargetedByService { score.Grade = scorecard.GradeAllOK + score.Skipped = true score.AddComment("", "The pod is not targeted by a service, skipping probe checks.", "") return score, nil }