Skip to content

Commit

Permalink
show pods in pdb coverage table even tho the namespace doesn't have a…
Browse files Browse the repository at this point in the history
…ny pdbs
  • Loading branch information
dhenkel92 committed Dec 2, 2022
1 parent b634dd5 commit 1eed3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/pdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ func (o *PDBOptions) Run() error {
for ns, podLst := range pods {
podPDBs, ok := pdbs[ns]
if !ok {
continue
// In case there are no PDBs in a namespace, we still want to print the information for the pods
podPDBs = []policyv1.PodDisruptionBudget{}
}

for _, pod := range podLst {
Expand Down

0 comments on commit 1eed3a4

Please sign in to comment.