- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 77 for PVCs (0.15 sec)
-
pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go
} }) } } func newPluginWithListers(ctx context.Context, tb testing.TB, pods []*v1.Pod, nodes []*v1.Node, pvcs []*v1.PersistentVolumeClaim, pvs []*v1.PersistentVolume) framework.Plugin { snapshot := cache.NewSnapshot(pods, nodes) objects := make([]runtime.Object, 0, len(pvcs)) for _, pvc := range pvcs { objects = append(objects, pvc) } for _, pv := range pvs { objects = append(objects, pv) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 14 05:17:04 UTC 2023 - 20K 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) -
staging/src/k8s.io/api/apps/v1beta2/types.go
// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. type StatefulSetPersistentVolumeClaimRetentionPolicy struct { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:24 UTC 2023 - 52.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) -
pkg/scheduler/eventhandlers.go
} // CheckVolumeBindingPred fails if pod has unbound immediate PVCs. If these // PVCs have specified StorageClass name, creating StorageClass objects // with late binding will cause predicates to pass, so we need to move pods // to active queue. // We don't need to invalidate cached results because results will not be // cached for pod that has unbound immediate PVCs.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:21:04 UTC 2024 - 24K 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) -
staging/src/k8s.io/api/apps/v1/types.go
// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs // created from the StatefulSet VolumeClaimTemplates. type StatefulSetPersistentVolumeClaimRetentionPolicy struct { // WhenDeleted specifies what happens to PVCs created from StatefulSet // VolumeClaimTemplates when the StatefulSet is deleted. The default policy // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 49.1K 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) -
plugin/pkg/auth/authorizer/node/node_authorizer_test.go
pod.Status.ResourceClaimStatuses = append(pod.Status.ResourceClaimStatuses, corev1.PodResourceClaimStatus{ Name: podClaimName, ResourceClaimName: &claimName, }) } // Choose shared pvcs randomly from shared pvcs in a namespace. subset = randomSubset(opts.sharedPVCsPerPod, opts.sharedPVCsPerNamespace) for _, i := range subset { pv := &corev1.PersistentVolume{} pv.Name = fmt.Sprintf("pv%d-shared-%s", i, pod.Namespace)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 40.5K bytes - Viewed (0)