Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for buildDefaultConstraints (0.36 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/common.go

    			return false
    		}
    	}
    	return true
    }
    
    // buildDefaultConstraints builds the constraints for a pod using
    // .DefaultConstraints and the selectors from the services, replication
    // controllers, replica sets and stateful sets that match the pod.
    func (pl *PodTopologySpread) buildDefaultConstraints(p *v1.Pod, action v1.UnsatisfiableConstraintAction) ([]topologySpreadConstraint, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    			pod.Labels,
    			v1.ScheduleAnyway,
    		)
    		if err != nil {
    			return fmt.Errorf("obtaining pod's soft topology spread constraints: %w", err)
    		}
    	} else {
    		s.Constraints, err = pl.buildDefaultConstraints(pod, v1.ScheduleAnyway)
    		if err != nil {
    			return fmt.Errorf("setting default soft topology spread constraints: %w", err)
    		}
    	}
    	if len(s.Constraints) == 0 {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    			pod.Labels,
    			v1.DoNotSchedule,
    		)
    		if err != nil {
    			return nil, fmt.Errorf("obtaining pod's hard topology spread constraints: %w", err)
    		}
    	} else {
    		constraints, err = pl.buildDefaultConstraints(pod, v1.DoNotSchedule)
    		if err != nil {
    			return nil, fmt.Errorf("setting default hard topology spread constraints: %w", err)
    		}
    	}
    	return constraints, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top