- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for PVCs (0.09 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
pkg/controller/volume/pvprotection/pv_protection_controller.go
"k8s.io/kubernetes/pkg/util/slice" volumeutil "k8s.io/kubernetes/pkg/volume/util" ) // Controller is controller that removes PVProtectionFinalizer // from PVs that are not bound to PVCs. type Controller struct { client clientset.Interface pvLister corelisters.PersistentVolumeLister pvListerSynced cache.InformerSynced queue workqueue.TypedRateLimitingInterface[string] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/kubelet/server/stats/volume_stat_calculator.go
return PodVolumeStats{}, false } return result.(PodVolumeStats), true } // calcAndStoreStats calculates PodVolumeStats for a given pod and writes the result to the s.latest cache. // If the pod references PVCs, the prometheus metrics for those are updated with the result. func (s *volumeStatCalculator) calcAndStoreStats() { // Find all Volumes for the Pod volumes, found := s.statsProvider.ListVolumesForPod(s.pod.UID)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 29 00:55:10 UTC 2022 - 7.1K bytes - Viewed (0)