Skip to content

Commit

Permalink
Handled nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekdwivedi3060 committed Nov 29, 2023
1 parent 596089e commit 399bc22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,12 +673,9 @@ func (r *SingleClusterReconciler) getIgnorablePods(racksToDelete []asdbv1.Rack,
for idx := range configureRacks {
rack := &configureRacks[idx]

failedAllowed, err := intstr.GetScaledValueFromIntOrPercent(
failedAllowed, _ := intstr.GetScaledValueFromIntOrPercent(
r.aeroCluster.Spec.RackConfig.MaxIgnorableFailedPods, rack.Size, false,
)
if err != nil {
return nil, err
}

podList, err := r.getRackPodList(rack.Rack.ID)
if err != nil {
Expand Down

0 comments on commit 399bc22

Please sign in to comment.