type NodeAffinity …
var _ …
var _ …
var _ …
var _ …
var _ …
const Name …
const preScoreStateKey …
const preFilterStateKey …
const ErrReasonPod …
const errReasonEnforced …
const errReasonConflict …
func (pl *NodeAffinity) Name() string { … }
type preFilterState …
func (s *preFilterState) Clone() framework.StateData { … }
func (pl *NodeAffinity) EventsToRegister(_ context.Context) ([]framework.ClusterEventWithHint, error) { … }
func (pl *NodeAffinity) isSchedulableAfterNodeChange(logger klog.Logger, pod *v1.Pod, oldObj, newObj interface{ … }
func (pl *NodeAffinity) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) { … }
func (pl *NodeAffinity) PreFilterExtensions() framework.PreFilterExtensions { … }
func (pl *NodeAffinity) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status { … }
type preScoreState …
func (s *preScoreState) Clone() framework.StateData { … }
func (pl *NodeAffinity) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status { … }
func (pl *NodeAffinity) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status) { … }
func (pl *NodeAffinity) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status { … }
func (pl *NodeAffinity) ScoreExtensions() framework.ScoreExtensions { … }
func New(_ context.Context, plArgs runtime.Object, h framework.Handle, fts feature.Features) (framework.Plugin, error) { … }
func getArgs(obj runtime.Object) (config.NodeAffinityArgs, error) { … }
func getPodPreferredNodeAffinity(pod *v1.Pod) (*nodeaffinity.PreferredSchedulingTerms, error) { … }
func getPreScoreState(cycleState *framework.CycleState) (*preScoreState, error) { … }
func getPreFilterState(cycleState *framework.CycleState) (*preFilterState, error) { … }