Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,664 for IsSkip (0.68 sec)

  1. pkg/scheduler/framework/runtime/instrumented_plugins.go

    func (p *instrumentedPreFilterPlugin) PreFilter(ctx context.Context, state *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) {
    	result, status := p.PreFilterPlugin.PreFilter(ctx, state, pod)
    	if !status.IsSkip() {
    		p.metric.Inc()
    	}
    	return result, status
    }
    
    type instrumentedPreScorePlugin struct {
    	framework.PreScorePlugin
    
    	metric compbasemetrics.CounterMetric
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/interface_test.go

    				t.Errorf("status.IsWait() returns %v, but want %v", test.status.IsWait(), test.expectedIsWait)
    			}
    
    			if test.status.IsSkip() != test.expectedIsSkip {
    				t.Errorf("status.IsSkip() returns %v, but want %v", test.status.IsSkip(), test.expectedIsSkip)
    			}
    
    			if test.status.AsError() == test.expectedAsError {
    				return
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			expectedErr:  true,
    		},
    		"skip-queue-on-unscheduled": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-non-hostport": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Node("fake-node").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-unrelated-hostport": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface.go

    	Wait
    	// Skip is used in the following scenarios:
    	// - when a Bind plugin chooses to skip binding.
    	// - when a PreFilter plugin returns Skip so that coupled Filter plugin/PreFilterExtensions() will be skipped.
    	// - when a PreScore plugin returns Skip so that coupled Score plugin will be skipped.
    	Skip
    	// Pending means that the scheduling process is finished successfully,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/framework.go

    }
    
    // RunPreFilterPlugins runs the set of configured PreFilter plugins. It returns
    // *Status and its code is set to non-success if any of the plugins returns
    // anything but Success/Skip.
    // When it returns Skip status, returned PreFilterResult and other fields in status are just ignored,
    // and coupled Filter plugin/PreFilterExtensions() will be skipped in this scheduling cycle.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    		expectedErr    bool
    	}{
    		"skip-deletes": {
    			pod:          podWithClaimTemplate,
    			oldObj:       allocatedClaim,
    			newObj:       nil,
    			expectedHint: framework.QueueSkip,
    		},
    		"backoff-wrong-new-object": {
    			pod:         podWithClaimTemplate,
    			newObj:      "not-a-claim",
    			expectedErr: true,
    		},
    		"skip-wrong-claim": {
    			pod: podWithClaimTemplate,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go

    			if diff := cmp.Diff(preFilterStatus, test.wantPreFilterStatus); diff != "" {
    				t.Errorf("PreFilter: status does not match (-want,+got):\n%s", diff)
    			}
    			if preFilterStatus.IsSkip() {
    				return
    			}
    			for indexNode, node := range test.nodes {
    				nodeInfo := mustGetNodeInfo(t, snapshot, node.Name)
    				gotStatus := p.(framework.FilterPlugin).Filter(ctx, state, test.pod, nodeInfo)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 58.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    			informerFactory.WaitForCacheSync(ctx.Done())
    			p := pl.(*PodTopologySpread)
    			cs := framework.NewCycleState()
    			if s := p.PreScore(ctx, cs, tt.pod, tf.BuildNodeInfos(tt.nodes)); !s.IsSkip() {
    				t.Fatalf("Expected skip but got %v", s.AsError())
    			}
    		})
    	}
    }
    
    func TestPreScoreStateEmptyNodes(t *testing.T) {
    	tests := []struct {
    		name                      string
    		pod                       *v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  9. cni/pkg/install/testdata/kubeconfig-skip-tls

    apiVersion: v1
    clusters:
    - cluster:
        insecure-skip-tls-verify: true
        server: https://10.96.0.1:443
      name: local
    contexts:
    - context:
        cluster: local
        user: istio-cni
      name: istio-cni-context
    current-context: istio-cni-context
    kind: Config
    preferences: {}
    users:
    - name: istio-cni
      user:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 17 02:22:22 UTC 2023
    - 342 bytes
    - Viewed (0)
  10. tools/skip-image.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    set -eu
    
    # This is a dedicated script to allow reference from script and makefile
    
    # Determine if we should skip an image
    # $1 = docker target
    # $2 = variant
    # We will filter out test image distroless variant; they do not need to support distroless
    if [[ $2 == "distroless" ]]; then
      if [[ $1 =~ docker.app ]]; then
        exit 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 02 18:51:04 UTC 2020
    - 933 bytes
    - Viewed (0)
Back to top