- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 64 for newNode (0.53 sec)
-
pkg/kubelet/status/status_manager_test.go
expectFn func(t *testing.T, status v1.PodStatus) }{ {pod: newPod(0, 1, func(pod *v1.Pod) { pod.Status.Phase = v1.PodFailed })}, { pod: newPod(0, 1, func(pod *v1.Pod) { pod.Status.Phase = v1.PodRunning }), expectFn: func(t *testing.T, status v1.PodStatus) { status.Phase = v1.PodFailed }, }, { pod: newPod(0, 1, func(pod *v1.Pod) { pod.Status.Phase = v1.PodRunning
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_test.go
pendingDeletionRS.ObjectMeta.OwnerReferences[0].UID = "789" now := metav1.Now() pendingDeletionRS.DeletionTimestamp = &now pod1 := newPod("pod1", someRS, v1.PodRunning, nil, true) pod2 := newPod("pod2", someRS, v1.PodRunning, nil, true) pod3 := newPod("pod3", relatedRS, v1.PodRunning, nil, true) pod4 := newPod("pod4", unrelatedRS, v1.PodRunning, nil, true) logger, _ := ktesting.NewTestContext(t) stopCh := make(chan struct{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 69.2K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
return } // NewPod creates a new pod func NewPod(ds *apps.DaemonSet, nodeName string) *v1.Pod { newPod := &v1.Pod{Spec: ds.Spec.Template.Spec, ObjectMeta: ds.Spec.Template.ObjectMeta} newPod.Namespace = ds.Namespace newPod.Spec.NodeName = nodeName // Added default tolerations for DaemonSet pods. util.AddOrUpdateDaemonPodTolerations(&newPod.Spec) return newPod }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.3K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
// This function returns three values; // - oldPod/newPod: each test will call Update() with these oldPod and newPod. prepareFunc func(t *testing.T, logger klog.Logger, q *PriorityQueue) (oldPod, newPod *v1.Pod) // schedulingHintsEnablement shows which value of QHint feature gate we test a test case with. schedulingHintsEnablement []bool }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
pkg/kubelet/config/config.go
} // updatePodFunc is the local function which updates the pod cache *oldPods* with new pods *newPods*. // After updated, new pod will be stored in the pod cache *pods*. // Notice that *pods* and *oldPods* could be the same cache. updatePodsFunc := func(newPods []*v1.Pod, oldPods, pods map[types.UID]*v1.Pod) { filtered := filterInvalidPods(newPods, source, s.recorder) for _, ref := range filtered {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 16.7K bytes - Viewed (0) -
pkg/kubelet/pleg/generic.go
} return containers } func computeEvents(oldPod, newPod *kubecontainer.Pod, cid *kubecontainer.ContainerID) []*PodLifecycleEvent { var pid types.UID if oldPod != nil { pid = oldPod.ID } else if newPod != nil { pid = newPod.ID } oldState := getContainerState(oldPod, cid) newState := getContainerState(newPod, cid) return generateEvents(pid, cid.ID, oldState, newState) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
allErrs = append(allErrs, validateContainerStatusUsers(newPod.Status.InitContainerStatuses, fldPath.Child("initContainerStatuses"), newPod.Spec.OS)...) allErrs = append(allErrs, validateContainerStatusUsers(newPod.Status.EphemeralContainerStatuses, fldPath.Child("ephemeralContainerStatuses"), newPod.Spec.OS)...) return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/registry/core/pod/storage/eviction_test.go
pod.ObjectMeta.Name = podName pod.Spec.NodeName = "foo" newPod, err := storage.Create(testContext, pod, nil, &metav1.CreateOptions{}) if err != nil { t.Error(err) } (newPod.(*api.Pod)).Status.Phase = api.PodRunning _, _, err = statusStorage.Update(testContext, pod.Name, rest.DefaultUpdatedObjectInfo(newPod), nil, nil, false, &metav1.UpdateOptions{}) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 09:26:37 UTC 2024 - 40K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
for i := 0; i < count; i++ { newPod := newPod(fmt.Sprintf("pod-%v", rand.String(10)), job) newPod.Status = v1.PodStatus{Phase: status} newPod.Status.ContainerStatuses = []v1.ContainerStatus{ { State: v1.ContainerState{ Terminated: &v1.ContainerStateTerminated{ FinishedAt: testFinishedAt, }, }, }, } newPod.Finalizers = append(newPod.Finalizers, batch.JobTrackingFinalizer)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/csi.go
} } } return nil } func (pl *CSILimits) filterAttachableVolumes( logger klog.Logger, pod *v1.Pod, csiNode *storagev1.CSINode, newPod bool, result map[string]string) error { for _, vol := range pod.Spec.Volumes { pvcName := "" isEphemeral := false switch { case vol.PersistentVolumeClaim != nil:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 18:07:11 UTC 2024 - 16.6K bytes - Viewed (0)