- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 183 for deepCopy (0.18 sec)
-
pkg/kubelet/cm/dra/state/zz_generated.deepcopy.go
in, out := &val, &outVal *out = make([]string, len(*in)) copy(*out, *in) } (*out)[key] = outVal } } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaimInfoState. func (in *ClaimInfoState) DeepCopy() *ClaimInfoState { if in == nil { return nil } out := new(ClaimInfoState) in.DeepCopyInto(out) return out
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:23:27 UTC 2024 - 1.9K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_test.go
}}, } invalidParallelismValue := validConfig.DeepCopy() invalidParallelismValue.Parallelism = 0 resourceNameNotSet := validConfig.DeepCopy() resourceNameNotSet.LeaderElection.ResourceName = "" resourceNamespaceNotSet := validConfig.DeepCopy() resourceNamespaceNotSet.LeaderElection.ResourceNamespace = "" resourceLockNotLeases := validConfig.DeepCopy() resourceLockNotLeases.LeaderElection.ResourceLock = "configmap"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 06:27:01 UTC 2024 - 12.2K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller_test.go
claims: func() []*resourcev1alpha2.ResourceClaim { claim := testClaimReserved.DeepCopy() claim.Spec.AllocationMode = resourcev1alpha2.AllocationModeImmediate return []*resourcev1alpha2.ResourceClaim{claim} }(), expectedClaims: func() []resourcev1alpha2.ResourceClaim { claim := testClaimAllocated.DeepCopy() claim.Spec.AllocationMode = resourcev1alpha2.AllocationModeImmediate
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 08:56:16 UTC 2024 - 28.2K bytes - Viewed (0) -
pilot/pkg/config/kube/crd/config.go
return in.ObjectMeta } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IstioKind) DeepCopyInto(out *IstioKind) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec out.Status = in.Status } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioKind.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 2.2K bytes - Viewed (0) -
pilot/pkg/config/kube/crd/config_test.go
} if got := obj.DeepCopy(); !reflect.DeepEqual(*got, obj) { t.Errorf("DeepCopy() => got %v, want %v", got, obj) } if got := obj.DeepCopyObject(); !reflect.DeepEqual(got, &obj) { t.Errorf("DeepCopyObject() => got %v, want %v", got, obj) } var empty *crd.IstioKind if empty.DeepCopy() != nil { t.Error("DeepCopy of nil should return nil") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/volume/util/resize_util_test.go
testCases := []conditionMergeTestCase{ { description: "when removing all conditions", pvc: pvc.DeepCopy(), newConditions: []v1.PersistentVolumeClaimCondition{}, finalConditions: []v1.PersistentVolumeClaimCondition{}, }, { description: "adding new condition", pvc: pvc.DeepCopy(), newConditions: []v1.PersistentVolumeClaimCondition{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclaim_test.go
}, "invalid-update-class": { wantFailures: field.ErrorList{field.Invalid(field.NewPath("spec"), func() resource.ResourceClaimSpec { spec := validClaim.Spec.DeepCopy() spec.ResourceClassName += "2" return *spec }(), "field is immutable")}, oldClaim: validClaim, update: func(claim *resource.ResourceClaim) *resource.ResourceClaim {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
claim = claim.DeepCopy() claim.Spec.ParametersRef.APIGroup = "example.com" return claim } // classWithCRD replaces the in-tree group with "example.com". func classWithCRD(class *resourcev1alpha2.ResourceClass) *resourcev1alpha2.ResourceClass { class = class.DeepCopy() class.ParametersRef.APIGroup = "example.com" return class }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclass_test.go
class := testClass(goodName, goodName) class.ParametersRef = goodParameters.DeepCopy() return class }(), }, "good-parameters-apigroup": { class: func() *resource.ResourceClass { class := testClass(goodName, goodName) class.ParametersRef = goodParameters.DeepCopy() class.ParametersRef.APIGroup = goodAPIGroup return class }(), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 10.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller_test.go
TrustDomainAliases: mh.trustDomainAliases, } } func buildMockController() *Controller { discovery1 := memory.NewServiceDiscovery(mock.ReplicatedFooServiceV1.DeepCopy(), mock.HelloService.DeepCopy(), mock.ExtHTTPService.DeepCopy(), ) for _, port := range mock.HelloService.Ports { discovery1.AddInstance(mock.MakeServiceInstance(mock.HelloService, port, 0, model.Locality{}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 14.5K bytes - Viewed (0)