Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for hasStatus (0.15 sec)

  1. src/net/http/httptest/recorder_test.go

    	}{
    		{
    			"200 default",
    			func(w http.ResponseWriter, r *http.Request) {},
    			check(hasStatus(200), hasContents("")),
    		},
    		{
    			"first code only",
    			func(w http.ResponseWriter, r *http.Request) {
    				w.WriteHeader(201)
    				w.WriteHeader(202)
    				w.Write([]byte("hi"))
    			},
    			check(hasStatus(201), hasContents("hi")),
    		},
    		{
    			"write sends 200",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/ProgressLogEventGenerator.java

                }
                state = State.HeaderCompleted;
            }
    
            public void complete() {
                boolean hasStatus = GUtil.isTrue(status);
                switch (state) {
                    case None:
                        if (hasLoggingHeader && hasStatus) {
                            doOutput(styledTextEvent(completeTime,
                                new StyledTextOutputEvent.Span(loggingHeader + ' '),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go

    		return errs
    	}
    
    	var allErrs field.ErrorList
    
    	allErrs = append(allErrs, validation.ValidateObjectMetaAccessorUpdate(obj, old, field.NewPath("metadata"))...)
    	if status, hasStatus := obj.UnstructuredContent()["status"]; hasStatus {
    		allErrs = append(allErrs, apiextensionsvalidation.ValidateCustomResourceUpdate(field.NewPath("status"), status, old.UnstructuredContent()["status"], a.statusSchemaValidator)...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:00:05 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/volume_binding.go

    	logger := klog.FromContext(ctx)
    	node := nodeInfo.Node()
    
    	state, err := getStateData(cs)
    	if err != nil {
    		return framework.AsStatus(err)
    	}
    
    	podVolumes, reasons, err := pl.Binder.FindPodVolumes(logger, pod, state.podVolumeClaims, node)
    
    	if err != nil {
    		return framework.AsStatus(err)
    	}
    
    	if len(reasons) > 0 {
    		status := framework.NewStatus(framework.UnschedulableAndUnresolvable)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	if hasConstraints {
    		allNodes, err = pl.sharedLister.NodeInfos().List()
    		if err != nil {
    			return framework.AsStatus(fmt.Errorf("failed to get all nodes from shared lister: %w", err))
    		}
    	} else {
    		allNodes, err = pl.sharedLister.NodeInfos().HavePodsWithAffinityList()
    		if err != nil {
    			return framework.AsStatus(fmt.Errorf("failed to get pods with affinity list: %w", err))
    		}
    	}
    
    	state := &preScoreState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    	var err error
    	if allNodes, err = pl.sharedLister.NodeInfos().List(); err != nil {
    		return nil, framework.AsStatus(fmt.Errorf("failed to list NodeInfos: %w", err))
    	}
    	if nodesWithRequiredAntiAffinityPods, err = pl.sharedLister.NodeInfos().HavePodsWithRequiredAntiAffinityList(); err != nil {
    		return nil, framework.AsStatus(fmt.Errorf("failed to list NodeInfos with pods with affinity: %w", err))
    	}
    
    	s := &preFilterState{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/interface_test.go

    		{
    			name: "wrap error status should be equal with original one",
    			x:    statusWithErr,
    			y:    AsStatus(fmt.Errorf("error: %w", statusWithErr.AsError())),
    			want: true,
    		},
    		{
    			name: "statues with different errors that have the same message shouldn't be equal",
    			x:    AsStatus(errors.New("error")),
    			y:    AsStatus(errors.New("error")),
    			want: false,
    		},
    	}
    	for _, tt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    		if apierrors.IsNotFound(err) {
    			return nil, framework.NewStatus(framework.UnschedulableAndUnresolvable, err.Error())
    		}
    		return nil, framework.AsStatus(err)
    	}
    
    	s, err := pl.calPreFilterState(ctx, pod, pvcs)
    	if err != nil {
    		return nil, framework.AsStatus(err)
    	}
    
    	if !needsCheck && s.conflictingPVCRefCount == 0 {
    		return nil, framework.NewStatus(framework.Skip)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    	nodeInfo, err := pl.sharedLister.NodeInfos().Get(nodeName)
    	if err != nil {
    		return 0, framework.AsStatus(fmt.Errorf("getting node %q from Snapshot: %w", nodeName, err))
    	}
    
    	node := nodeInfo.Node()
    	s, err := getPreScoreState(cycleState)
    	if err != nil {
    		return 0, framework.AsStatus(err)
    	}
    
    	// Return if the node is not qualified.
    	if s.IgnoredNodes.Has(node.Name) {
    		return 0, 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)
  10. pkg/scheduler/framework/runtime/framework.go

    				// So we need to execute all PreFilter.
    				// https://github.com/kubernetes/kubernetes/issues/119770
    				returnStatus = s
    				continue
    			}
    			return nil, framework.AsStatus(fmt.Errorf("running PreFilter plugin %q: %w", pl.Name(), s.AsError())).WithPlugin(pl.Name())
    		}
    		if !r.AllNodes() {
    			pluginsWithNodes = append(pluginsWithNodes, pl.Name())
    		}
    		result = result.Merge(r)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
Back to top