Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newSpec (3.53 sec)

  1. src/time/time_test.go

    	for i := int64(0); i < 100; i++ {
    		sec := notMonoTime.Unix()
    		notMonoTime = notMonoTime.Add(Duration(i * 1e9))
    		if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 {
    			t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64)
    		}
    	}
    
    	// Test it with negative delta.
    	maxInt64 = -maxInt64
    	notMonoTime = NotMonoNegativeTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    	newPVC := pvc.DeepCopy()
    	metav1.SetMetaDataAnnotation(&newPVC.ObjectMeta, volume.AnnSelectedNode, node)
    	return newPVC
    }
    
    func pvcSetEmptyAnnotations(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim {
    	newPVC := pvc.DeepCopy()
    	newPVC.Annotations = map[string]string{}
    	return newPVC
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. plugin/pkg/admission/resourcequota/admission_test.go

    	// verify quota rejects negative pvc storage requests
    	newPvc := validPersistentVolumeClaim("not-allowed-pvc", getVolumeResourceRequirements(api.ResourceList{api.ResourceStorage: resource.MustParse("-1Gi")}, api.ResourceList{}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_utils_test.go

    	// nil inherits statefulset labels
    	pod := newPod()
    	statefulSet := newStatefulSet(1)
    	statefulSet.Spec.Selector.MatchLabels = nil
    	claims := getPersistentVolumeClaims(statefulSet, pod)
    	pvc := newPVC("datadir-foo-0")
    	resultClaims := map[string]v1.PersistentVolumeClaim{"datadir": pvc}
    
    	if !reflect.DeepEqual(claims, resultClaims) {
    		t.Fatalf("Unexpected pvc:\n %+v\n, desired pvc:\n %+v", claims, resultClaims)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	bigMostNegative = big.NewInt(mostNegative)
    )
    
    func dec(i int64, exponent int) infDecAmount {
    	// See the below test-- scale is the negative of an exponent.
    	return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))}
    }
    
    func bigDec(i *big.Int, exponent int) infDecAmount {
    	// See the below test-- scale is the negative of an exponent.
    	return infDecAmount{inf.NewDecBig(i, inf.Scale(-exponent))}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/proxier.go

    		syncPeriod:          syncPeriod,
    		nftables:            nft,
    		masqueradeAll:       masqueradeAll,
    		masqueradeMark:      masqueradeMark,
    		conntrack:           conntrack.NewExec(utilexec.New()),
    		localDetector:       localDetector,
    		hostname:            hostname,
    		nodeIP:              nodeIP,
    		recorder:            recorder,
    		serviceHealthServer: serviceHealthServer,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  7. pkg/proxy/iptables/proxier.go

    		syncPeriod:               syncPeriod,
    		iptables:                 ipt,
    		masqueradeAll:            masqueradeAll,
    		masqueradeMark:           masqueradeMark,
    		conntrack:                conntrack.NewExec(exec),
    		nfacct:                   nfacctRunner,
    		localDetector:            localDetector,
    		hostname:                 hostname,
    		nodeIP:                   nodeIP,
    		recorder:                 recorder,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/proxier.go

    		excludeCIDRs:          parsedExcludeCIDRs,
    		iptables:              ipt,
    		masqueradeAll:         masqueradeAll,
    		masqueradeMark:        masqueradeMark,
    		conntrack:             conntrack.NewExec(exec),
    		localDetector:         localDetector,
    		hostname:              hostname,
    		nodeIP:                nodeIP,
    		recorder:              recorder,
    		serviceHealthServer:   serviceHealthServer,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
Back to top