Skip to content

Commit

Permalink
fix: remove checkReferences
Browse files Browse the repository at this point in the history
- not needed anymore
Signed-off-by: vadasambar <[email protected]>
  • Loading branch information
vadasambar committed Jan 16, 2023
1 parent f8f4582 commit 5df6e31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cluster-autoscaler/utils/drain/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5df6e31

Please sign in to comment.