- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 112 for newTimer (3.18 sec)
-
pkg/kubelet/kubelet_node_status.go
Type: v1.NodeNetworkUnavailable, Status: v1.ConditionTrue, Reason: "NoRouteCreated", Message: "Node created without a route", LastTransitionTime: metav1.NewTime(kl.clock.Now()), }) } if kl.enableControllerAttachDetach { if node.Annotations == nil { node.Annotations = make(map[string]string) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 31.1K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
func TestOverlappingStatefulSets(t *testing.T) { sets := make([]*apps.StatefulSet, 10) perm := rand.Perm(10) for i, v := range perm { sets[i] = newStatefulSet(10) sets[i].CreationTimestamp = metav1.NewTime(sets[i].CreationTimestamp.Add(time.Duration(v) * time.Second)) } sort.Sort(overlappingStatefulSets(sets)) if !sort.IsSorted(overlappingStatefulSets(sets)) { t.Error("ascendingOrdinal fails to sort Pods") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
// in prior operation, but the pod remains with deletion timestamp // and grace period set to 0. func TestGracefulStoreCanDeleteIfExistingGracePeriodZero(t *testing.T) { deletionTimestamp := metav1.NewTime(time.Now()) deletionGracePeriodSeconds := int64(0) initialGeneration := int64(1) pod := &example.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "foo",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
tr.Spec.Audiences = []string{"api"} } tr.Status.Token = fmt.Sprintf("%v:%v:%d:%v", action.GetNamespace(), testAccount, *tr.Spec.ExpirationSeconds, tr.Spec.Audiences) tr.Status.ExpirationTimestamp = meta.NewTime(time.Unix(1, 1)) return true, tr, nil })) plug, tmpDir := newTestPlugin(t, client) defer os.RemoveAll(tmpDir) mounter, err := plug.NewMounter(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
updatedPDB.Status.DisruptionsAllowed -= int32(len(podNames)) updatedPDB.Status.DisruptedPods = make(map[string]metav1.Time) for _, name := range podNames { updatedPDB.Status.DisruptedPods[name] = metav1.NewTime(dc.clock.Now()) } if err := dc.coreClient.Tracker().Update(poddisruptionbudgetsResource, updatedPDB, updatedPDB.Namespace); err != nil { t.Fatalf("Eviction (PDB update) failed: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
const fastRequeue = 10 * time.Millisecond // testFinishedAt represents time one second later than unix epoch // this will be used in various test cases where we don't want back-off to kick in var testFinishedAt = metav1.NewTime((time.Time{}).Add(time.Second)) func newJobWithName(name string, parallelism, completions, backoffLimit int32, completionMode batch.CompletionMode) *batch.Job { j := &batch.Job{ TypeMeta: metav1.TypeMeta{Kind: "Job"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go
flowSchema: fs, condition: flowcontrol.FlowSchemaCondition{ Type: flowcontrol.FlowSchemaConditionDangling, Status: desiredStatus, LastTransitionTime: metav1.NewTime(now), Reason: desiredReason, Message: desiredMessage, }, oldValue: *danglingCondition}) } // imaginePL adds a priority level based on one of the mandatory ones
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 48.8K bytes - Viewed (0) -
pkg/printers/internalversion/printers.go
restarts := 0 restartableInitContainerRestarts := 0 totalContainers := len(pod.Spec.Containers) readyContainers := 0 lastRestartDate := metav1.NewTime(time.Time{}) lastRestartableInitContainerRestartDate := metav1.NewTime(time.Time{}) podPhase := pod.Status.Phase reason := string(podPhase) if pod.Status.Reason != "" { reason = pod.Status.Reason }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
DesiredReplicas: desiredReplicas, LastScaleTime: hpa.Status.LastScaleTime, CurrentMetrics: metricStatuses, Conditions: hpa.Status.Conditions, } if rescale { now := metav1.NewTime(time.Now()) hpa.Status.LastScaleTime = &now } } // updateStatusIfNeeded calls updateStatus only if the status of the new HPA is not the same as the old status
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0)