FairwindsOps / polaris

Validation of best practices in your Kubernetes clusters
https://www.fairwinds.com/polaris
Apache License 2.0
3.14k stars 210 forks source link

fix missing PDB check #1027

Closed rbren closed 5 months ago

rbren commented 5 months ago

Checklist

Description

What's the goal of this PR?

The PDB's matchLabels should match the labels on the pod, not the deployment. Looks like we were checking the latter. This fixes it.

What changes did you make?

Small tweak to the schema, added tests

fairwinds-insights[bot] commented 5 months ago

Fairwinds Insights Scan Results

View the full report at insights.fairwinds.com.

:white_check_mark: No new Action Items detected!