Skip to content

Commit dfec6a6

Browse files
committed
score/probes: set score.Skipped if pod not targeted by service
1 parent b6269be commit dfec6a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

score/probes/probes.go

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func containerProbes(allServices []ks.Service) func(ks.PodSpecer) (scorecard.Tes
9999

100100
if !isTargetedByService {
101101
score.Grade = scorecard.GradeAllOK
102+
score.Skipped = true
102103
score.AddComment("", "The pod is not targeted by a service, skipping probe checks.", "")
103104
return score, nil
104105
}

0 commit comments

Comments
 (0)