Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for expectAction (0.18 sec)

  1. pkg/controller/job/job_controller.go

    	// and update the expectations after we've retrieved active pods from the store. If a new pod enters
    	// the store after we've checked the expectation, the job sync is just deferred till the next relist.
    	satisfiedExpectations := jm.expectations.SatisfiedExpectations(logger, key)
    
    	pods, err := jm.getPodsForJob(ctx, &job)
    	if err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  2. pkg/controller/resourceclaim/controller.go

    	// know some future addition to the API. Therefore it gets called here
    	// even if there is no template to work on, because if some new field
    	// gets added, the expectation might be that the controller does
    	// something for it.
    	claimName, mustCheckOwner, err := resourceclaim.Name(pod, &podClaim)
    	switch {
    	case errors.Is(err, resourceclaim.ErrClaimNotFound):
    		// Continue below.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one.go

    			return ScheduleResult{nominatingInfo: clearNominatedNode}, podInfo, framework.AsStatus(err)
    		}
    
    		// SchedulePod() may have failed because the pod would not fit on any host, so we try to
    		// preempt, with the expectation that the next time the pod is tried for scheduling it
    		// will fit due to the preemption. It is also possible that a different pod will schedule
    		// into the resources that were preempted, but this is harmless.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. src/net/http/server.go

    	// "A server that receives an Expect field-value other
    	// than 100-continue MAY respond with a 417 (Expectation
    	// Failed) status code to indicate that the unexpected
    	// expectation cannot be met."
    	w.Header().Set("Connection", "close")
    	w.WriteHeader(StatusExpectationFailed)
    	w.finishRequest()
    }
    
    // Hijack implements the [Hijacker.Hijack] method. Our response is both a [ResponseWriter]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !exists {
    		t.Fatalf("No expectations found for DaemonSet %q", oldDSKey)
    	}
    	if dsExp.Fulfilled() {
    		t.Errorf("There should be unfulfilled expectation for creating new pods for DaemonSet %q", oldDSKey)
    	}
    
    	// process updates DS, update adds to queue
    	waitForQueueLength(1, "updated DS")
    	ok = dsc.processNextWorkItem(context.TODO())
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  6. src/math/big/int_test.go

    	} {
    		i, ok := new(Int).SetString(test.istr, 0)
    		if !ok {
    			t.Errorf("SetString(%s) failed", test.istr)
    			continue
    		}
    
    		// Test against expectation.
    		f, acc := i.Float64()
    		if f != test.f || acc != test.acc {
    			t.Errorf("%s: got %f (%s); want %f (%s)", test.istr, f, acc, test.f, test.acc)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  7. src/net/dnsclient_unix_test.go

    		if len(addrs) != 1 {
    			t.Errorf("%s: expected exactly one result, but got %v", name, addrs)
    			continue
    		}
    		if got, want := addrs[0].String(), "127.1.1.1"; got != want {
    			t.Errorf("%s: address doesn't match expectation. got %v, want %v", name, got, want)
    		}
    	}
    }
    
    // Issue 12712.
    // When using search domains, return the error encountered
    // querying the original name instead of an error encountered
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_test.go

    			addTelemetryMetadata(tt.cluster, opt.port, tt.service, tt.direction, tt.svcInsts)
    			if opt.mutable.cluster != nil && !reflect.DeepEqual(opt.mutable.cluster.Metadata, tt.want) {
    				t.Errorf("cluster metadata does not match expectation want %+v, got %+v", tt.want, opt.mutable.cluster.Metadata)
    			}
    		})
    	}
    }
    
    func TestVerifyCertAtClient(t *testing.T) {
    	testCases := []struct {
    		name               string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

          // maximized at n = floor((2^32-1)^(1/2)) = 65535 where the expectation is
          // about 1/2.
    
          // For Exponent = 3, the expected number of collisions per shuffle is
          // maximized at n = floor((2^32-1)^(1/3)) = 1625 where the expectation is
          // about 1/3255.
    
          // For Exponent = 4, the expected number of collisions per shuffle is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  10. pkg/controller/podautoscaler/horizontal_test.go

    	finalCPUPercentTarget := int32(target * 100)
    	resourcesUsedRatio := float64(totalUsedCPUOfAllPods) / float64(float64(totalRequestedCPUOfAllPods)*target)
    
    	// i.e. .60 * 20 -> scaled down expectation.
    	finalPods := int32(math.Ceil(resourcesUsedRatio * float64(startPods)))
    
    	// To breach tolerance we will create a utilization ratio difference of tolerance to usageRatioToleranceValue)
    	tc1 := testCase{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
Back to top