Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 124 for PersistentVolumeClaims (0.2 sec)

  1. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    	pvcs := sets.New[string]()
    	for _, volume := range pod.Spec.Volumes {
    		if volume.PersistentVolumeClaim == nil {
    			continue
    		}
    
    		pvc, err := pl.pvcLister.PersistentVolumeClaims(pod.Namespace).Get(volume.PersistentVolumeClaim.ClaimName)
    		if err != nil {
    			return nil, err
    		}
    
    		if !v1helper.ContainsAccessMode(pvc.Spec.AccessModes, v1.ReadWriteOncePod) {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. plugin/pkg/admission/storage/storageclass/setdefault/admission_test.go

    		attrs := admission.NewAttributesRecord(
    			claim, // new object
    			nil,   // old object
    			api.Kind("PersistentVolumeClaim").WithVersion("version"),
    			claim.Namespace,
    			claim.Name,
    			api.Resource("persistentvolumeclaims").WithVersion("version"),
    			"", // subresource
    			admission.Create,
    			&metav1.CreateOptions{},
    			false, // dryRun
    			nil,   // userInfo
    		)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 04:00:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_test.go

    					t.Errorf("bad claim ownerRefs: %s: %v", claim.Name, claim.GetOwnerReferences())
    				}
    			}
    		}
    
    		claims, _ := om.claimsLister.PersistentVolumeClaims(set.Namespace).List(labels.Everything())
    		if len(claims) != len(pods) {
    			t.Errorf("Unexpected number of claims: %d", len(claims))
    		}
    		for _, claim := range claims {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/storage/v1/types.go

    	Items []StorageClass `json:"items" protobuf:"bytes,2,rep,name=items"`
    }
    
    // VolumeBindingMode indicates how PersistentVolumeClaims should be bound.
    // +enum
    type VolumeBindingMode string
    
    const (
    	// VolumeBindingImmediate indicates that PersistentVolumeClaims should be
    	// immediately provisioned and bound.  This is the default mode.
    	VolumeBindingImmediate VolumeBindingMode = "Immediate"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. pkg/controller/volume/persistentvolume/pv_controller_base.go

    	modified := updateMigrationAnnotations(logger, ctrl.csiMigratedPluginManager, ctrl.translator, claimClone.Annotations, true)
    	if !modified {
    		return claimClone, nil
    	}
    	newClaim, err := ctrl.kubeClient.CoreV1().PersistentVolumeClaims(claimClone.Namespace).Update(ctx, claimClone, metav1.UpdateOptions{})
    	if err != nil {
    		return nil, fmt.Errorf("persistent Volume Controller can't anneal migration annotations: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/storage/v1beta1/types.go

    }
    
    // VolumeBindingMode indicates how PersistentVolumeClaims should be bound.
    type VolumeBindingMode string
    
    const (
    	// VolumeBindingImmediate indicates that PersistentVolumeClaims should be
    	// immediately provisioned and bound.  This is the default mode.
    	VolumeBindingImmediate VolumeBindingMode = "Immediate"
    
    	// VolumeBindingWaitForFirstConsumer indicates that PersistentVolumeClaims
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:32 UTC 2023
    - 33.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/nodevolumelimits/csi.go

    				return err
    			}
    
    			continue
    		}
    
    		if pvcName == "" {
    			return fmt.Errorf("PersistentVolumeClaim had no name")
    		}
    
    		pvc, err := pl.pvcLister.PersistentVolumeClaims(pod.Namespace).Get(pvcName)
    
    		if err != nil {
    			if newPod {
    				// The PVC is required to proceed with
    				// scheduling of a new pod because it cannot
    				// run without it. Bail out immediately.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. pkg/registry/core/persistentvolumeclaim/storage/storage_test.go

    	restOptions := generic.RESTOptions{
    		StorageConfig:           etcdStorage,
    		Decorator:               generic.UndecoratedStorage,
    		DeleteCollectionWorkers: 1,
    		ResourcePrefix:          "persistentvolumeclaims",
    	}
    	persistentVolumeClaimStorage, statusStorage, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_utils.go

    			return refs
    		}
    	}
    
    	return append(refs, *metav1.NewControllerRef(owner, gvk))
    }
    
    // getPersistentVolumeClaims gets a map of PersistentVolumeClaims to their template names, as defined in set. The
    // returned PersistentVolumeClaims are each constructed with a the name specific to the Pod. This name is determined
    // by getPersistentVolumeClaimName.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  10. pkg/controller/volume/persistentvolume/metrics/metrics.go

    type pvAndPVCCountCollector struct {
    	metrics.BaseStableCollector
    
    	// Cache for accessing information about PersistentVolumes.
    	pvLister PVLister
    	// Cache for accessing information about PersistentVolumeClaims.
    	pvcLister PVCLister
    	// Volume plugin manager
    	pluginMgr *volume.VolumePluginMgr
    }
    
    // Check if our collector implements necessary collector interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 13:09:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top