Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 64 for newNode (0.33 sec)

  1. 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)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		pod.Status = corev1.PodStatus{}
    		newPod := s.pc.Create(pod)
    		if markReady {
    			setPodReady(newPod)
    		}
    		newPod.Status.PodIP = ip
    		newPod.Status.Phase = phase
    		newPod.Status.PodIPs = []corev1.PodIP{
    			{
    				IP: ip,
    			},
    		}
    		s.pc.UpdateStatus(newPod)
    	} else {
    		s.pc.Update(pod)
    	}
    }
    
    // just overwrites the labels
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    			newPod := createPodWithVolume("dswp-test-pod", "dswp-test-volume-name", "file-bound", []v1.Container{newContainer})
    
    			// Act - add the new Pod
    			fakePodManager.AddPod(newPod)
    			dswp.findAndAddNewPods()
    
    			// Assert
    
    			// Check the global volume state
    			uniquePodName := types.UniquePodName(newPod.UID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	if err := store.GuaranteedUpdate(ctx, key, storedObj, false, nil,
    		func(_ runtime.Object, _ storage.ResponseMeta) (runtime.Object, *uint64, error) {
    			newPod := prevStoredObj.DeepCopy()
    			newPod.Annotations = map[string]string{"version": "second"}
    			return newPod, nil, nil
    		}, nil); err != nil {
    		t.Fatalf("update failed: %v", err)
    	}
    	objRV, _ := strconv.Atoi(storedObj.ResourceVersion)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	newPod, ok := obj.(*example.Pod)
    	if !ok {
    		t.Fatalf("unexpected object: %#v", obj)
    	}
    
    	// update the object should not fail precondition
    	newPod.Spec.NodeName = "machine2"
    	res, _, err := registry.Update(ctx, podName, rest.DefaultUpdatedObjectInfo(newPod), rest.ValidateAllObjectFunc, rest.ValidateAllObjectUpdateFunc, false, &metav1.UpdateOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        return peerCertificates.isNotEmpty() &&
          OkHostnameVerifier.verify(url.host, peerCertificates[0] as X509Certificate)
      }
    
      @Throws(SocketException::class)
      internal fun newCodec(
        client: OkHttpClient,
        chain: RealInterceptorChain,
      ): ExchangeCodec {
        val socket = this.socket!!
        val source = this.source!!
        val sink = this.sink!!
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top