Skip to content

Commit

Permalink
score/probes: set score.Skipped if pod not targeted by service
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Jan 5, 2024
1 parent b6269be commit f556c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions score/probes/probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f556c57

Please sign in to comment.