- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for newPVC (0.16 sec)
-
pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go
t.Fatalf("failed to get PVC: %v", err) } // Assume PVC newPVC := pvc.DeepCopy() newPVC.Annotations[volume.AnnSelectedNode] = "test-node" if err := cache.Assume(newPVC); err != nil { t.Fatalf("failed to assume PVC: %v", err) } if err := verifyPVC(cache, getPVCName(pvc), newPVC); err != nil { t.Fatalf("failed to get PVC after assume: %v", err) } // Add old PVC
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/registry/core/persistentvolumeclaim/strategy_test.go
if !reflect.DeepEqual(newPvc, newPvcInfo.pvc()) { t.Errorf("new pvc changed: %v", cmp.Diff(newPvc, newPvcInfo.pvc())) } default: // new pvc should not need to be changed if !reflect.DeepEqual(newPvc, newPvcInfo.pvc()) { t.Errorf("new pvc changed: %v", cmp.Diff(newPvc, newPvcInfo.pvc())) } } }) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
newPVC := pvc.DeepCopy() metav1.SetMetaDataAnnotation(&newPVC.ObjectMeta, volume.AnnSelectedNode, node) return newPVC } func pvcSetEmptyAnnotations(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim { newPVC := pvc.DeepCopy() newPVC.Annotations = map[string]string{} return newPVC }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission.go
oldPVC.ObjectMeta.ResourceVersion = "" newPVC.ObjectMeta.ResourceVersion = "" oldPVC.Status.Capacity = nil newPVC.Status.Capacity = nil oldPVC.Status.Conditions = nil newPVC.Status.Conditions = nil if p.expansionRecoveryEnabled { oldPVC.Status.AllocatedResourceStatuses = nil newPVC.Status.AllocatedResourceStatuses = nil oldPVC.Status.AllocatedResources = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 23.6K bytes - Viewed (0) -
pkg/api/persistentvolumeclaim/util_test.go
for _, newpvcInfo := range pvcInfo { oldpvc := oldpvcInfo.pvc() newpvc := newpvcInfo.pvc() if newpvc == nil { continue } t.Run(fmt.Sprintf("old pvc %v, new pvc %v", oldpvcInfo.description, newpvcInfo.description), func(t *testing.T) { EnforceDataSourceBackwardsCompatibility(&newpvc.Spec, nil) // old pvc should never be changed if !reflect.DeepEqual(oldpvc, oldpvcInfo.pvc()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
// verify quota rejects negative pvc storage requests newPvc := validPersistentVolumeClaim("not-allowed-pvc", getVolumeResourceRequirements(api.ResourceList{api.ResourceStorage: resource.MustParse("-1Gi")}, api.ResourceList{}))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
pkg/controller/volume/expand/expand_controller.go
} oldReq := oldPVC.Spec.Resources.Requests[v1.ResourceStorage] oldCap := oldPVC.Status.Capacity[v1.ResourceStorage] newPVC, ok := new.(*v1.PersistentVolumeClaim) if !ok { return } newReq := newPVC.Spec.Resources.Requests[v1.ResourceStorage] newCap := newPVC.Status.Capacity[v1.ResourceStorage] // PVC will be enqueued under 2 circumstances
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 16.2K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
// nil inherits statefulset labels pod := newPod() statefulSet := newStatefulSet(1) statefulSet.Spec.Selector.MatchLabels = nil claims := getPersistentVolumeClaims(statefulSet, pod) pvc := newPVC("datadir-foo-0") resultClaims := map[string]v1.PersistentVolumeClaim{"datadir": pvc} if !reflect.DeepEqual(claims, resultClaims) { t.Fatalf("Unexpected pvc:\n %+v\n, desired pvc:\n %+v", claims, resultClaims)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeClaim, opts PersistentVolumeClaimSpecValidationOptions) field.ErrorList { allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) allErrs = append(allErrs, ValidatePersistentVolumeClaim(newPvc, opts)...) newPvcClone := newPvc.DeepCopy() oldPvcClone := oldPvc.DeepCopy()
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/apis/core/validation/validation_test.go
}, "status-update-with-old-pvc-valid-resourcestatus-newpvc-invalid-recovery-disabled": { isExpectedFailure: true, oldClaim: validResizeStatusPVC, newClaim: invalidResizeStatusPVC, enableRecoverFromExpansion: false, }, "status-update-with-old-pvc-valid-allocatedResource-newpvc-invalid-recovery-disabled": { isExpectedFailure: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)