Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for newNode (0.18 sec)

  1. pkg/controller/daemon/update.go

    				numUnavailable++
    				continue
    			}
    			switch {
    			case oldPod == nil && newPod == nil, oldPod != nil && newPod != nil:
    				// the manage loop will handle creating or deleting the appropriate pod, consider this unavailable
    				numUnavailable++
    			case newPod != nil:
    				// this pod is up to date, check its availability
    				if !podutil.IsPodAvailable(newPod, ds.Spec.MinReadySeconds, metav1.Time{Time: now}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/api/pod/util.go

    				if len(allErrs) != 0 {
    					return true
    				}
    			}
    		}
    	}
    	return false
    }
    
    func MarkPodProposedForResize(oldPod, newPod *api.Pod) {
    	for i, c := range newPod.Spec.Containers {
    		if c.Resources.Requests == nil {
    			continue
    		}
    		if cmp.Equal(oldPod.Spec.Containers[i].Resources, c.Resources) {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  7. pkg/controller/disruption/disruption.go

    		return nil
    	}
    
    	newPod := pod.DeepCopy()
    	updated := apipod.UpdatePodCondition(&newPod.Status, &v1.PodCondition{
    		Type:   v1.DisruptionTarget,
    		Status: v1.ConditionFalse,
    	})
    	if !updated {
    		return nil
    	}
    	if _, err := dc.kubeClient.CoreV1().Pods(pod.Namespace).UpdateStatus(ctx, newPod, metav1.UpdateOptions{}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  8. src/go/doc/example.go

    	}
    
    	// Copy body and comments, as the originals may be used elsewhere.
    	newBody := &ast.BlockStmt{
    		Lbrace: body.Lbrace,
    		List:   body.List,
    		Rbrace: last.Pos(),
    	}
    	newComments := make([]*ast.CommentGroup, len(comments)-1)
    	copy(newComments, comments[:i])
    	copy(newComments[i:], comments[i+1:])
    	return newBody, newComments
    }
    
    // lastComment returns the last comment inside the provided block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          check(!responseBodyOpen)
          check(!requestBodyOpen)
        }
    
        val exchangeFinder = this.exchangeFinder!!
        val connection = exchangeFinder.find()
        val codec = connection.newCodec(client, chain)
        val result = Exchange(this, eventListener, exchangeFinder, codec)
        this.interceptorScopedExchange = result
        this.exchange = result
        this.withLock {
          this.requestBodyOpen = true
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    	utilruntime.Must(example.AddToScheme(scheme))
    	utilruntime.Must(examplev1.AddToScheme(scheme))
    
    	grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, os.Stderr))
    }
    
    func newPod() runtime.Object {
    	return &example.Pod{}
    }
    
    func newPodList() runtime.Object {
    	return &example.PodList{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top