- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for deepCopy (0.37 sec)
-
pkg/registry/core/service/storage/storage_test.go
*REST } func (f *wrapperRESTForTests) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) { // Making a DeepCopy here ensures that any in-place mutations of the input // are not going to propagate to verification code, which used to happen // resulting in tests that passed when they shouldn't have. obj = obj.DeepCopyObject()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) allErrs = append(allErrs, ValidatePersistentVolumeClaim(newPvc, opts)...) newPvcClone := newPvc.DeepCopy() oldPvcClone := oldPvc.DeepCopy() // PVController needs to update PVC.Spec w/ VolumeName. // Claims are immutable in order to enforce quota, range limits, etc. without gaming the system. if len(oldPvc.Spec.VolumeName) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/proxy/iptables/proxier_test.go
} // Change an endpoint of an existing service. This will cause its SVC and SEP // chains to be rewritten. eps3update := eps3.DeepCopy() eps3update.Endpoints[0].Addresses[0] = "10.0.3.2" fp.OnEndpointSliceUpdate(eps3, eps3update) fp.syncProxyRules() expected = dedent.Dedent(` *filter :KUBE-NODEPORTS - [0:0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/zip_sum_test/testdata/zip_sums.csv
github.com/modern-go/reflect2,v1.0.1,h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=,6af8268206d037428a4197bd421bbe5399c19450ef53ae8309a083f34fb7ac05 github.com/mohae/deepcopy,v0.0.0-20170929034955-c48cc78d4826,h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=,41ba726508a213f4af89e7d58937263ff778e352d591edd422d3a3dc3272585c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 18 17:29:01 UTC 2020 - 334.9K bytes - Viewed (0)