Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for PreFilter (0.14 sec)

  1. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go

    			cycleState := framework.NewCycleState()
    			_, preFilterGotStatus := p.(framework.PreFilterPlugin).PreFilter(ctx, cycleState, test.pod)
    			if diff := cmp.Diff(test.preFilterWantStatus, preFilterGotStatus); diff != "" {
    				t.Errorf("Unexpected PreFilter status (-want, +got): %s", diff)
    			}
    			// If PreFilter fails, then Filter will not run.
    			if test.preFilterWantStatus.IsSuccess() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    )
    
    const preFilterStateKey = "PreFilter" + Name
    
    // preFilterState computed at PreFilter and used at Filter.
    // It combines TpKeyToCriticalPaths and TpPairToMatchNum to represent:
    // (1) critical paths where the least pods are matched on each spread constraint.
    // (2) number of pods matched on each spread constraint.
    // A nil preFilterState denotes it's not set at all (in PreFilter phase);
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go

    		Pod       *v1.Pod
    		NumPV     int
    		NumPVC    int
    		NumNodes  int
    		PreFilter bool
    	}{
    		{
    			Name:      "with prefilter",
    			Pod:       createPodWithVolume("pod_0", "PVC_Stable_0"),
    			NumPV:     1000,
    			NumPVC:    1000,
    			NumNodes:  1000,
    			PreFilter: true,
    		},
    		{
    			Name:      "without prefilter",
    			Pod:       createPodWithVolume("pod_0", "PVC_Stable_0"),
    			NumPV:     1000,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 05:17:04 UTC 2023
    - 20K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodeports/node_ports.go

    				if container.Ports[k].HostPort <= 0 {
    					continue
    				}
    				ports = append(ports, &container.Ports[k])
    			}
    		}
    	}
    	return ports
    }
    
    // PreFilter invoked at the prefilter extension point.
    func (pl *NodePorts) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) {
    	s := getContainerPorts(pod)
    	// Skip if a pod has no ports.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 10:53:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/volumezone/volume_zone.go

    func (pl *VolumeZone) Name() string {
    	return Name
    }
    
    // PreFilter invoked at the prefilter extension point
    //
    // # It finds the topology of the PersistentVolumes corresponding to the volumes a pod requests
    //
    // Currently, this is only supported with PersistentVolumeClaims,
    // and only looks for the bound PersistentVolume.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. cmd/kube-scheduler/app/server_test.go

    			wantPlugins: map[string]*config.Plugins{
    				"default-scheduler": func() *config.Plugins {
    					plugins := defaults.ExpandedPluginsV1.DeepCopy()
    					plugins.PreFilter.Enabled = append(plugins.PreFilter.Enabled, config.Plugin{Name: "Foo"})
    					plugins.Filter.Enabled = append(plugins.Filter.Enabled, config.Plugin{Name: "Foo"})
    					return plugins
    				}(),
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. pkg/scheduler/testing/framework/framework_helpers.go

    }
    
    // RegisterPreFilterPlugin returns a function to register a PreFilter Plugin to a given registry.
    func RegisterPreFilterPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc {
    	return RegisterPluginAsExtensions(pluginName, pluginNewFunc, "PreFilter")
    }
    
    // RegisterFilterPlugin returns a function to register a Filter Plugin to a given registry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    		affinityCounts.append(affinityCountsList[i])
    		antiAffinityCounts.append(antiAffinityCountsList[i])
    	}
    
    	return affinityCounts, antiAffinityCounts
    }
    
    // PreFilter invoked at the prefilter extension point.
    func (pl *InterPodAffinity) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) {
    	var allNodes []*framework.NodeInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    func needsRestrictionsCheck(v v1.Volume) bool {
    	return v.GCEPersistentDisk != nil || v.AWSElasticBlockStore != nil || v.RBD != nil || v.ISCSI != nil
    }
    
    // PreFilter computes and stores cycleState containing details for enforcing ReadWriteOncePod.
    func (pl *VolumeRestrictions) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) {
    	needsCheck := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/interface.go

    }
    
    // PreFilterPlugin is an interface that must be implemented by "PreFilter" plugins.
    // These plugins are called at the beginning of the scheduling cycle.
    type PreFilterPlugin interface {
    	Plugin
    	// PreFilter is called at the beginning of the scheduling cycle. All PreFilter
    	// plugins must return success or the pod will be rejected. PreFilter could optionally
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top