- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for newPVC (0.33 sec)
-
pkg/volume/util/resize_util.go
conditions := []v1.PersistentVolumeClaimCondition{progressCondition} newPVC := pvc.DeepCopy() newPVC = MergeResizeConditionOnPVC(newPVC, conditions) newPVC = mergeStorageResourceStatus(newPVC, v1.PersistentVolumeClaimControllerResizeInProgress) newPVC = mergeStorageAllocatedResources(newPVC, newSize) newPVC = setResizer(newPVC, resizerName) return PatchPVCStatus(pvc /*oldPVC*/, newPVC, kubeClient) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 19:30:35 UTC 2023 - 14.8K bytes - Viewed (0) -
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.go
newPvc := obj.(*api.PersistentVolumeClaim) oldPvc := old.(*api.PersistentVolumeClaim) opts := validation.ValidationOptionsForPersistentVolumeClaim(newPvc, oldPvc) errorList := validation.ValidatePersistentVolumeClaim(newPvc, opts) return append(errorList, validation.ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc, opts)...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 20:58:25 UTC 2022 - 7.8K bytes - Viewed (0) -
pkg/quota/v1/install/update_filter.go
case schema.GroupResource{Resource: "persistentvolumeclaims"}: oldPVC := oldObj.(*v1.PersistentVolumeClaim) newPVC := newObj.(*v1.PersistentVolumeClaim) return core.RequiresQuotaReplenish(newPVC, oldPVC) } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 08 22:39:55 UTC 2022 - 1.7K 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)