Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for is_zero (0.2 sec)

  1. pkg/controlplane/controller/defaultservicecidr/default_servicecidr_controller.go

    	// don't sync the status of the ServiceCIDR if is being deleted,
    	// deletion must be handled by the controller-manager
    	if !serviceCIDR.GetDeletionTimestamp().IsZero() {
    		return
    	}
    
    	// This controller will set the Ready condition to true if the Ready condition
    	// does not exist and the CIDR values match this controller CIDR values.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/crypto/x509/platform_test.go

    			if err != nil {
    				t.Fatalf("ParseCertificate failed: %s", err)
    			}
    
    			var opts VerifyOptions
    			if tc.dnsName != "" {
    				opts.DNSName = tc.dnsName
    			}
    			if !tc.time.IsZero() {
    				opts.CurrentTime = tc.time
    			}
    			if len(tc.eku) > 0 {
    				opts.KeyUsages = tc.eku
    			}
    
    			expectedErr := tc.expectedErr
    			if runtime.GOOS == "darwin" && tc.macosErr != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 17:18:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    	resources := runtimeapi.WindowsContainerResources{}
    
    	memLimit := memoryLimit.Value()
    
    	if !cpuLimit.IsZero() {
    		// Since Kubernetes doesn't have any notion of weight in the Pod/Container API, only limits/reserves, then applying CpuMaximum only
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. cmd/event-notification.go

    }
    
    // ToEvent - converts to notification event.
    func (args eventArgs) ToEvent(escape bool) event.Event {
    	eventTime := UTCNow()
    	uniqueID := fmt.Sprintf("%X", eventTime.UnixNano())
    	if !args.Object.ModTime.IsZero() {
    		uniqueID = fmt.Sprintf("%X", args.Object.ModTime.UnixNano())
    	}
    
    	respElements := map[string]string{
    		"x-amz-request-id": args.RespElements["requestId"],
    		"x-amz-id-2":       args.RespElements["nodeId"],
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. cmd/api-headers.go

    		w.Header().Set(xhttp.ContentType, objInfo.ContentType)
    	}
    
    	if objInfo.ContentEncoding != "" {
    		w.Header().Set(xhttp.ContentEncoding, objInfo.ContentEncoding)
    	}
    
    	if !objInfo.Expires.IsZero() {
    		w.Header().Set(xhttp.Expires, objInfo.Expires.UTC().Format(http.TimeFormat))
    	}
    
    	// Set tag count if object has tags
    	if len(objInfo.UserTags) > 0 {
    		tags, _ := tags.ParseObjectTags(objInfo.UserTags)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 04:44:00 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. pkg/controller/namespace/namespace_controller.go

    		return
    	}
    
    	namespace := obj.(*v1.Namespace)
    	// don't queue if we aren't deleted
    	if namespace.DeletionTimestamp == nil || namespace.DeletionTimestamp.IsZero() {
    		return
    	}
    
    	// delay processing namespace events to allow HA api servers to observe namespace deletion,
    	// and HA etcd servers to observe last minute object creations inside the namespace
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. pkg/apis/storagemigration/validation/validation.go

    	if !validConditionStatuses.Has(string(condition.Status)) {
    		allErrs = append(allErrs, field.NotSupported(fldPath.Child("status"), condition.Status, validConditionStatuses.List()))
    	}
    
    	if condition.LastUpdateTime.IsZero() {
    		allErrs = append(allErrs, field.Required(fldPath.Child("lastTransitionTime"), "must be set"))
    	}
    
    	if len(condition.Reason) == 0 {
    		allErrs = append(allErrs, field.Required(fldPath.Child("reason"), "must be set"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/os/file_posix.go

    // If there is an error, it will be of type [*PathError].
    func Chtimes(name string, atime time.Time, mtime time.Time) error {
    	var utimes [2]syscall.Timespec
    	set := func(i int, t time.Time) {
    		if t.IsZero() {
    			utimes[i] = syscall.Timespec{Sec: _UTIME_OMIT, Nsec: _UTIME_OMIT}
    		} else {
    			utimes[i] = syscall.NsecToTimespec(t.UnixNano())
    		}
    	}
    	set(0, atime)
    	set(1, mtime)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. src/syscall/syscall.go

    	a, err := ByteSliceFromString(s)
    	if err != nil {
    		return nil, err
    	}
    	return &a[0], nil
    }
    
    // Single-word zero for use when we need a valid pointer to 0 bytes.
    // See mksyscall.pl.
    var _zero uintptr
    
    // Unix returns the time stored in ts as seconds plus nanoseconds.
    func (ts *Timespec) Unix() (sec int64, nsec int64) {
    	return int64(ts.Sec), int64(ts.Nsec)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		name   string
    		x      *Time
    		result bool
    	}{
    		{"nil =? 0", nil, true},
    		{"!nil =? 0", &t1, false},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			result := c.x.IsZero()
    			if result != c.result {
    				t.Errorf("Failed equality test for '%v': expected %+v, got %+v", c.x, c.result, result)
    			}
    		})
    	}
    }
    
    func TestTimeRoundtripCBOR(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top