fix: remove `checkReferences`

- not needed anymore
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
This commit is contained in:
vadasambar 2023-01-13 11:13:53 +05:30
parent f8f458295d
commit 5df6e31f8b
1 changed files with 0 additions and 1 deletions

View File

@ -83,7 +83,6 @@ func GetPodsForDeletionOnNodeDrain(
pods = []*apiv1.Pod{}
daemonSetPods = []*apiv1.Pod{}
checkReferences := listers != nil
// filter kube-system PDBs to avoid doing it for every kube-system pod
kubeSystemPDBs := make([]*policyv1.PodDisruptionBudget, 0)
for _, pdb := range pdbs {