Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for PVCs (0.04 sec)

  1. pkg/controller/volume/ephemeral/controller_test.go

    		Controller:         &isController,
    		BlockOwnerDeletion: &isTrue,
    	}
    }
    
    func sortPVCs(pvcs []v1.PersistentVolumeClaim) []v1.PersistentVolumeClaim {
    	sort.Slice(pvcs, func(i, j int) bool {
    		return pvcs[i].Namespace < pvcs[j].Namespace ||
    			pvcs[i].Name < pvcs[j].Name
    	})
    	return pvcs
    }
    
    func createTestClient(objects ...runtime.Object) *fake.Clientset {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. pkg/volume/util/finalizer.go

    limitations under the License.
    */
    
    package util
    
    const (
    	// PVCProtectionFinalizer is the name of finalizer on PVCs that have a running pod.
    	PVCProtectionFinalizer = "kubernetes.io/pvc-protection"
    
    	// PVProtectionFinalizer is the name of finalizer on PVs that are bound by PVCs
    	PVProtectionFinalizer = "kubernetes.io/pv-protection"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 10 21:24:35 UTC 2018
    - 874 bytes
    - Viewed (0)
  3. pkg/controller/volume/common/common.go

    )
    
    const (
    	// PodPVCIndex is the lookup name for the index function, which is to index by pod pvcs.
    	PodPVCIndex = "pod-pvc-index"
    )
    
    // PodPVCIndexFunc creates an index function that returns PVC keys (=
    // namespace/name) for given pod.  This includes the PVCs
    // that might be created for generic ephemeral volumes.
    func PodPVCIndexFunc() func(obj interface{}) ([]string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 11 18:54:20 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  4. plugin/pkg/admission/storage/persistentvolume/resize/admission.go

    	// Growing Persistent volumes is only allowed for PVCs for which their StorageClass
    	// explicitly allows it
    	if !pvcr.allowResize(pvc, oldPvc) {
    		return admission.NewForbidden(a, fmt.Errorf("only dynamically provisioned pvc can be resized and "+
    			"the storageclass that provisions the pvc must support resize"))
    	}
    
    	return nil
    }
    
    // Growing Persistent volumes is only allowed for PVCs for which their StorageClass
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  5. pkg/api/persistentvolumeclaim/util.go

    // gate is disabled, dataSourceRef will be forced to empty, ensuring pre-1.22 behavior.
    // This should be called before NormalizeDataSources, so that data sources other than PVCs
    // and VolumeSnapshots can only be set through the dataSourceRef field and not the dataSource
    // field.
    func EnforceDataSourceBackwardsCompatibility(pvcSpec, oldPVCSpec *core.PersistentVolumeClaimSpec) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumebinding/test_utils.go

    			PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{
    				ClaimName: pvcName,
    			},
    		},
    	})
    	return pb
    }
    
    func (pb podBuilder) withPVCSVolume(pvcs []*v1.PersistentVolumeClaim) podBuilder {
    	for i, pvc := range pvcs {
    		pb.withPVCVolume(pvc.Name, fmt.Sprintf("vol%v", i))
    	}
    	return pb
    }
    
    func (pb podBuilder) withEmptyDirVolume() podBuilder {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. pkg/quota/v1/evaluator/core/persistent_volume_claims.go

    var pvcObjectCountName = generic.ObjectCountQuotaResourceNameFor(corev1.SchemeGroupVersion.WithResource("persistentvolumeclaims").GroupResource())
    
    // pvcResources are the set of static resources managed by quota associated with pvcs.
    // for each resource in this list, it may be refined dynamically based on storage class.
    var pvcResources = []corev1.ResourceName{
    	corev1.ResourcePersistentVolumeClaims,
    	corev1.ResourceRequestsStorage,
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:36:24 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  8. plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go

    		Handler: admission.NewHandler(admission.Create),
    	}
    }
    
    var (
    	pvResource  = api.Resource("persistentvolumes")
    	pvcResource = api.Resource("persistentvolumeclaims")
    )
    
    // Admit sets finalizer on all PVCs(PVs). The finalizer is removed by
    // PVCProtectionController(PVProtectionController) when it's not referenced.
    //
    // This prevents users from deleting a PVC that's used by a running pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 02 21:13:50 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. pkg/registry/core/persistentvolumeclaim/storage/storage.go

    func (r *REST) defaultOnReadPvc(pvc *api.PersistentVolumeClaim) {
    	if pvc == nil {
    		return
    	}
    
    	// We set dataSourceRef to the same value as dataSource at creation time now,
    	// but for pre-existing PVCs with data sources, the dataSourceRef field will
    	// be blank, so we fill it in here at read time.
    	pvcutil.NormalizeDataSources(&pvc.Spec)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  10. plugin/pkg/admission/storage/storageclass/setdefault/admission_test.go

    		classes           []*storagev1.StorageClass
    		claim             *api.PersistentVolumeClaim
    		expectError       bool
    		expectedClassName string
    	}{
    		{
    			"no default, no modification of PVCs",
    			[]*storagev1.StorageClass{classWithFalseDefault, classWithNoDefault, classWithEmptyDefault},
    			claimWithNoClass,
    			false,
    			"",
    		},
    		{
    			"one default, modify PVC with class=nil",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 04:00:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
Back to top