Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for storageClassName (0.34 sec)

  1. pkg/controller/volume/persistentvolume/metrics/metrics.go

    			boundNumberByStorageClass[pv.Spec.StorageClassName]++
    		} else {
    			unboundNumberByStorageClass[pv.Spec.StorageClassName]++
    		}
    	}
    	for storageClassName, number := range boundNumberByStorageClass {
    		ch <- metrics.NewLazyConstMetric(
    			boundPVCountDesc,
    			metrics.GaugeValue,
    			float64(number),
    			storageClassName)
    	}
    	for storageClassName, number := range unboundNumberByStorageClass {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 13:09:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/index_test.go

    				pvc.Spec.StorageClassName = &classSilver
    			}),
    		},
    		"successful-match-with-class-and-labels": {
    			expectedMatch: "gce-pd-silver2",
    			claim: makePVC("1G", func(pvc *v1.PersistentVolumeClaim) {
    				pvc.Spec.AccessModes = []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce}
    				pvc.Spec.StorageClassName = &classSilver
    			}),
    		},
    		"successful-match-very-large": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  3. pkg/apis/core/helper/helpers.go

    }
    
    // GetPersistentVolumeClass returns StorageClassName.
    func GetPersistentVolumeClass(volume *core.PersistentVolume) string {
    	// Use beta annotation first
    	if class, found := volume.Annotations[core.BetaStorageClassAnnotation]; found {
    		return class
    	}
    
    	return volume.Spec.StorageClassName
    }
    
    // GetPersistentVolumeClaimClass returns StorageClassName. If no storage class was
    // requested, it returns "".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    			Spec: v1.PersistentVolumeClaimSpec{
    				VolumeName:       "some" + filterName + "Vol",
    				StorageClassName: &filterName,
    			},
    		},
    		{
    			ObjectMeta: metav1.ObjectMeta{Name: "someNon" + filterName + "Vol"},
    			Spec: v1.PersistentVolumeClaimSpec{
    				VolumeName:       "someNon" + filterName + "Vol",
    				StorageClassName: &filterName,
    			},
    		},
    		{
    			ObjectMeta: metav1.ObjectMeta{Name: "pvcWithDeletedPV"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  5. pkg/apis/storage/validation/validation.go

    		allErrs = append(allErrs, field.Invalid(field.NewPath("nodeTopology"), capacity.NodeTopology, "field is immutable"))
    	}
    	if capacity.StorageClassName != oldCapacity.StorageClassName {
    		allErrs = append(allErrs, field.Invalid(field.NewPath("storageClassName"), capacity.StorageClassName, "field is immutable"))
    	}
    
    	return allErrs
    }
    
    // ValidateVolumeAttributesClass validates a VolumeAttributesClass.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumespec.go

    	PersistentVolumeReclaimPolicy            *v1.PersistentVolumeReclaimPolicy     `json:"persistentVolumeReclaimPolicy,omitempty"`
    	StorageClassName                         *string                               `json:"storageClassName,omitempty"`
    	MountOptions                             []string                              `json:"mountOptions,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/storage/v1alpha1/types.go

    	// creator.
    	// This field is immutable.
    	StorageClassName string `json:"storageClassName" protobuf:"bytes,3,name=storageClassName"`
    
    	// capacity is the value reported by the CSI driver in its GetCapacityResponse
    	// for a GetCapacityRequest with topology and parameters that match the
    	// previous fields.
    	//
    	// The semantic is currently (CSI spec 1.2) defined as:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:32 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  8. helm/minio/templates/statefulset.yaml

            annotations: {{- toYaml $.Values.persistence.annotations | nindent 10 }}
            {{- end }}
          spec:
            accessModes: [ {{ $accessMode | quote }} ]
            {{- if $storageClass }}
            storageClassName: {{ $storageClass }}
            {{- end }}
            resources:
              requests:
                storage: {{ $psize }}
        {{- end }}
        {{- else }}
        - apiVersion: v1
          kind: PersistentVolumeClaim
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 07:50:24 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	// PVC that needs to be bound
    	pvc *v1.PersistentVolumeClaim
    
    	// Proposed PV to bind to this PVC
    	pv *v1.PersistentVolume
    }
    
    // StorageClassName returns the name of the storage class.
    func (b *BindingInfo) StorageClassName() string {
    	return b.pv.Spec.StorageClassName
    }
    
    // StorageResource represents storage resource.
    type StorageResource struct {
    	Requested int64
    	Capacity  int64
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. pkg/apis/storage/v1alpha1/zz_generated.conversion.go

    	out.ObjectMeta = in.ObjectMeta
    	out.NodeTopology = (*v1.LabelSelector)(unsafe.Pointer(in.NodeTopology))
    	out.StorageClassName = in.StorageClassName
    	out.Capacity = (*resource.Quantity)(unsafe.Pointer(in.Capacity))
    	out.MaximumVolumeSize = (*resource.Quantity)(unsafe.Pointer(in.MaximumVolumeSize))
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 23.8K bytes
    - Viewed (0)
Back to top