Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for oldpod (0.18 sec)

  1. pkg/kubelet/config/config.go

    		pods = make(map[types.UID]*v1.Pod)
    	}
    
    	// 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)
  2. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	dsw.AddNode(nodeName)
    	generatedVolumeName1, pod1AddErr := dsw.AddPod(types.UniquePodName(pod1Name), controllervolumetesting.NewPod(pod1Name, pod1Name), volumeSpec, nodeName)
    	if pod1AddErr != nil {
    		t.Fatalf(
    			"AddPod failed for pod %q. Expected: <no error> Actual: <%v>",
    			pod1Name,
    			pod1AddErr)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. pkg/scheduler/eventhandlers_test.go

    		newObj interface{}
    	}{
    		{
    			name:   "pod updated with the same UID",
    			oldObj: withPodName(podWithPort("oldUID", nodeName, 80), "pod"),
    			newObj: withPodName(podWithPort("oldUID", nodeName, 8080), "pod"),
    		},
    		{
    			name:   "pod updated with different UIDs",
    			oldObj: withPodName(podWithPort("oldUID", nodeName, 80), "pod"),
    			newObj: withPodName(podWithPort("newUID", nodeName, 8080), "pod"),
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. pkg/volume/util/resize_util.go

    		Patch(context.TODO(), oldPVC.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}, "status")
    	if updateErr != nil {
    		return oldPVC, fmt.Errorf("patchPVCStatus failed to patch PVC %q: %v", oldPVC.Name, updateErr)
    	}
    	return updatedClaim, nil
    }
    
    func createPVCPatch(
    	oldPVC *v1.PersistentVolumeClaim,
    	newPVC *v1.PersistentVolumeClaim, addResourceVersionCheck bool) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:30:35 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    			old := tc.oldCRD.DeepCopy()
    
    			dropDisabledFields(tc.crd, tc.oldCRD)
    
    			// old crd should never be changed
    			if diff := cmp.Diff(tc.oldCRD, old); diff != "" {
    				t.Fatalf("old crd changed from %v to %v\n%v", tc.oldCRD, old, diff)
    			}
    
    			if diff := cmp.Diff(tc.expectedCRD, tc.crd); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy.go

    // are not enabled.
    func dropDisabledFields(newCRD *apiextensions.CustomResourceDefinition, oldCRD *apiextensions.CustomResourceDefinition) {
    	if !utilfeature.DefaultFeatureGate.Enabled(apiextensionsfeatures.CRDValidationRatcheting) && (oldCRD == nil || (oldCRD != nil && !specHasOptionalOldSelf(&oldCRD.Spec))) {
    		if newCRD.Spec.Validation != nil {
    			dropOptionalOldSelfField(newCRD.Spec.Validation.OpenAPIV3Schema)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. pkg/controller/tainteviction/taint_eviction_test.go

    				*testutil.NewPod("pod1", "node1"),
    			},
    			oldNode:      testutil.NewNode("node1"),
    			newNode:      addTaintsToNode(testutil.NewNode("node1"), "testTaint1", "taint1", []int{1}),
    			expectDelete: true,
    		},
    		{
    			description: "Added tolerated taint",
    			pods: []corev1.Pod{
    				*addToleration(testutil.NewPod("pod1", "node1"), 1, 100),
    			},
    			oldNode:      testutil.NewNode("node1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  8. src/runtime/slice.go

    //
    //go:linkname growslice
    func growslice(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type) slice {
    	oldLen := newLen - num
    	if raceenabled {
    		callerpc := getcallerpc()
    		racereadrangepc(oldPtr, uintptr(oldLen*int(et.Size_)), callerpc, abi.FuncPCABIInternal(growslice))
    	}
    	if msanenabled {
    		msanread(oldPtr, uintptr(oldLen*int(et.Size_)))
    	}
    	if asanenabled {
    		asanread(oldPtr, uintptr(oldLen*int(et.Size_)))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParser.java

             */
            @Nullable
            String readIdentifier() {
                int oldPos = pos;
                pos = RegexBackedCSourceParser.consumeIdentifier(value, pos);
                if (pos == oldPos) {
                    return null;
                }
                return value.substring(oldPos, pos);
            }
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  10. plugin/pkg/admission/imagepolicy/admission_test.go

    		operation            admission.Operation
    	}{
    		{
    			test:        "Single container allowed",
    			pod:         goodPod("good"),
    			wantAllowed: true,
    			subresource: "",
    			operation:   admission.Create,
    		},
    		{
    			test:        "Single container denied",
    			pod:         goodPod("bad"),
    			wantAllowed: false,
    			wantErr:     true,
    			subresource: "",
    			operation:   admission.Create,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
Back to top