Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,920 for Hour (0.05 sec)

  1. pkg/registry/core/persistentvolume/strategy_test.go

    		map[string]string{"name": "metadata.name"},
    	)
    }
    
    func TestStatusUpdate(t *testing.T) {
    	now := metav1.Now()
    	origin := metav1.NewTime(now.Add(time.Hour))
    	later := metav1.NewTime(now.Add(time.Hour * 2))
    	NowFunc = func() metav1.Time { return now }
    	defer func() {
    		NowFunc = metav1.Now
    	}()
    	tests := []struct {
    		name        string
    		fg          bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/log/slog/value_test.go

    	}{
    		{1, IntValue(1)},
    		{1.5, Float64Value(1.5)},
    		{float32(2.5), Float64Value(2.5)},
    		{"s", StringValue("s")},
    		{true, BoolValue(true)},
    		{testTime, TimeValue(testTime)},
    		{time.Hour, DurationValue(time.Hour)},
    		{[]Attr{Int("i", 3)}, GroupValue(Int("i", 3))},
    		{IntValue(4), IntValue(4)},
    		{uint(2), Uint64Value(2)},
    		{uint8(3), Uint64Value(3)},
    		{uint16(4), Uint64Value(4)},
    		{uint32(5), Uint64Value(5)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/tableconvertor/tableconvertor_test.go

    		{"string", true, nil},
    		{"string", "foo", "foo"},
    
    		{"date", int64(42), nil},
    		{"date", float64(3.14), nil},
    		{"date", true, nil},
    		{"date", time.Now().Add(-time.Hour*12 - 30*time.Minute).UTC().Format(time.RFC3339), "12h"},
    		{"date", time.Now().Add(+time.Hour*12 + 30*time.Minute).UTC().Format(time.RFC3339), "<invalid>"},
    		{"date", "", "<unknown>"},
    
    		{"unknown", "foo", nil},
    	}
    	for _, tt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/defaults.go

    		obj.DefaultMode = &perm
    	}
    }
    func SetDefaults_ServiceAccountTokenProjection(obj *v1.ServiceAccountTokenProjection) {
    	hour := int64(time.Hour.Seconds())
    	if obj.ExpirationSeconds == nil {
    		obj.ExpirationSeconds = &hour
    	}
    }
    func SetDefaults_PersistentVolume(obj *v1.PersistentVolume) {
    	if obj.Status.Phase == "" {
    		obj.Status.Phase = v1.VolumePending
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker_test.go

    	tracker.Set("k3", 59)
    	expected := map[string]*timestampedCount{
    		"k3": {
    			count:         59,
    			lastUpdatedAt: mostRecent,
    		},
    	}
    
    	fakeClock.SetTime(now)
    	if err := tracker.prune(time.Hour); err != nil {
    		t.Fatalf("Expected no error, but got: %v", err)
    	}
    
    	// we expect only one entry in the map, so DeepEqual should work.
    	if !reflect.DeepEqual(expected, tracker.counts) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 19:36:14 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  6. pkg/test/framework/components/istio/ca.go

    	if err != nil {
    		return Cert{}, fmt.Errorf("creating citadel client: %v", err)
    	}
    	req := &pb.IstioCertificateRequest{
    		Csr:              string(csrPEM),
    		ValidityDuration: int64((time.Hour * 24 * 7).Seconds()),
    	}
    	rctx := metadata.NewOutgoingContext(context.Background(), metadata.Pairs("Authorization", "Bearer "+token, "ClusterID", constants.DefaultClusterName))
    	resp, err := client.CreateCertificate(rctx, req)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. security/pkg/util/jwtutil_test.go

    		expectedExp time.Time
    		expectedErr error
    	}{
    		"jwt with expiration time": {
    			jwt:         thirdPartyJwt,
    			expectedExp: time.Date(2020, time.April, 5, 10, 13, 54, 0, time.FixedZone("PDT", -int((7*time.Hour).Seconds()))),
    			expectedErr: nil,
    		},
    		"jwt with no expiration time": {
    			jwt:         firstPartyJwt,
    			expectedExp: time.Time{},
    			expectedErr: nil,
    		},
    		"invalid jwt": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/kubeconfig_test.go

    			withClientCert:         true,
    			command:                "user",
    			additionalFlags:        []string{"--validity-period=12h"},
    			expectedValidityPeriod: 12 * time.Hour,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			buf := new(bytes.Buffer)
    
    			// Get subcommands working in the temporary directory
    			cmd := newCmdUserKubeConfig(buf)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/fuzzer/fuzzer.go

    			obj.RegistryBurst = 10
    			obj.RegistryPullQPS = 5
    			obj.ResolverConfig = kubetypes.ResolvConfDefault
    			obj.SerializeImagePulls = true
    			obj.StreamingConnectionIdleTimeout = metav1.Duration{Duration: 4 * time.Hour}
    			obj.SyncFrequency = metav1.Duration{Duration: 1 * time.Minute}
    			obj.ContentType = "application/vnd.kubernetes.protobuf"
    			obj.KubeAPIQPS = 50
    			obj.KubeAPIBurst = 100
    			obj.HairpinMode = v1beta1.PromiscuousBridge
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. cmd/handler-api.go

    	defer t.mu.RUnlock()
    
    	if t.staleUploadsCleanupInterval == 0 {
    		return 6 * time.Hour // default 6 hours
    	}
    
    	return t.staleUploadsCleanupInterval
    }
    
    func (t *apiConfig) getStaleUploadsExpiry() time.Duration {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.staleUploadsExpiry == 0 {
    		return 24 * time.Hour // default 24 hours
    	}
    
    	return t.staleUploadsExpiry
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top