Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for deepCopy (0.22 sec)

  1. pkg/apis/core/zz_generated.deepcopy.go

    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity.
    func (in *Affinity) DeepCopy() *Affinity {
    	if in == nil {
    		return nil
    	}
    	out := new(Affinity)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity.
    func (in *Affinity) DeepCopy() *Affinity {
    	if in == nil {
    		return nil
    	}
    	out := new(Affinity)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  3. pkg/api/pod/util_test.go

    			// preStop
    			// container
    			{
    				oldPod := makePod([]api.Container{makeContainer(tc.oldLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				newPod := makePod([]api.Container{makeContainer(tc.newLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				expectPod := makePod([]api.Container{makeContainer(tc.expectLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				dropDisabledFields(newPod, nil, oldPod, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	}
    	var updatedPods = make([]*v1.Pod, len(pods))
    	updatedPods[0] = pods[0].DeepCopy()
    	updatedPods[1] = pods[1].DeepCopy()
    	updatedPods[3] = pods[3].DeepCopy()
    
    	tests := []struct {
    		name                   string
    		podsToAdd              []*v1.Pod
    		expectedMapAfterAdd    map[string]*framework.QueuedPodInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_pods.go

    			cResourceCopy := c.Resources.DeepCopy()
    			// for both requests and limits, we only compare the cpu, memory and ephemeralstorage
    			// which are included in convertToAPIContainerStatuses
    			deleteCustomResourceFromResourceRequirements(cResourceCopy)
    			csResourceCopy := cs.Resources.DeepCopy()
    			if csResourceCopy != nil && !cmp.Equal(*cResourceCopy, *csResourceCopy) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_test.go

    		},
    	}
    	cpu800mMem800MPodSpec := cpu500mMem500MPodSpec.DeepCopy()
    	cpu800mMem800MPodSpec.Containers[0].Resources.Requests = v1.ResourceList{v1.ResourceCPU: cpu800m, v1.ResourceMemory: mem800M}
    	cpu800mPodSpec := cpu500mMem500MPodSpec.DeepCopy()
    	cpu800mPodSpec.Containers[0].Resources.Requests = v1.ResourceList{v1.ResourceCPU: cpu800m}
    	mem800MPodSpec := cpu500mMem500MPodSpec.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  7. pkg/apis/batch/validation/validation_test.go

    			// copy to avoid polluting the testcase object, set a resourceVersion to allow validating update, and test a no-op update
    			oldSpec := *v.DeepCopy()
    			oldSpec.ResourceVersion = "1"
    			oldSpec.Spec.TimeZone = nil
    
    			newSpec := *v.DeepCopy()
    			newSpec.ResourceVersion = "2"
    
    			errs = ValidateCronJobUpdate(&newSpec, &oldSpec, corevalidation.PodValidationOptions{})
    			if len(errs) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	defaultCreateStrategy := &testRESTStrategy{scheme, &predictableNameGenerator{}, true, false, true}
    	registry.CreateStrategy = defaultCreateStrategy
    
    	// create the object (DeepCopy because the registry mutates the objects)
    	objA, err := registry.Create(testContext, podA.DeepCopy(), rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	// get the object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller_test.go

    			var statusUpdates []batch.JobStatus
    			manager.updateStatusHandler = func(ctx context.Context, job *batch.Job) (*batch.Job, error) {
    				statusUpdates = append(statusUpdates, *job.Status.DeepCopy())
    				return job, tc.statusUpdateErr
    			}
    			job := tc.job.DeepCopy()
    			if job.Status.UncountedTerminatedPods == nil {
    				job.Status.UncountedTerminatedPods = &batch.UncountedTerminatedPods{}
    			}
    			jobCtx := &syncJobCtx{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods_test.go

    	CPU1AndMem1GAndStorage2G := CPU1AndMem1G.DeepCopy()
    	CPU1AndMem1GAndStorage2G[v1.ResourceEphemeralStorage] = resource.MustParse("2Gi")
    	CPU1AndMem1GAndStorage2GAndCustomResource := CPU1AndMem1GAndStorage2G.DeepCopy()
    	CPU1AndMem1GAndStorage2GAndCustomResource["unknown-resource"] = resource.MustParse("1")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
Back to top