- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 320 for persistentVolumeClaim (0.48 sec)
-
pkg/quota/v1/evaluator/core/persistent_volume_claims_test.go
"k8s.io/kubernetes/pkg/apis/core" "k8s.io/kubernetes/pkg/features" ) func testVolumeClaim(name string, namespace string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { return &core.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace}, Spec: spec, } } func TestPersistentVolumeClaimEvaluatorUsage(t *testing.T) { classGold := "gold"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go
pod.ObjectMeta.UID = uid return pod } func pvc() *v1.PersistentVolumeClaim { return &v1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: defaultPVCName, Namespace: defaultNS, }, } } func withProtectionFinalizer(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim { pvc.Finalizers = append(pvc.Finalizers, volumeutil.PVCProtectionFinalizer) return pvc
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 15.5K bytes - Viewed (0) -
plugin/pkg/admission/storage/persistentvolume/resize/admission.go
return nil } if len(a.GetSubresource()) != 0 { return nil } pvc, ok := a.GetObject().(*api.PersistentVolumeClaim) // if we can't convert then we don't handle this object so just return if !ok { return nil } oldPvc, ok := a.GetOldObject().(*api.PersistentVolumeClaim) if !ok { return nil } oldSize := oldPvc.Spec.Resources.Requests[api.ResourceStorage]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 3.9K bytes - Viewed (0) -
pkg/quota/v1/install/update_filter.go
return core.GetQuotaServiceType(oldService) != core.GetQuotaServiceType(newService) case schema.GroupResource{Resource: "persistentvolumeclaims"}: oldPVC := oldObj.(*v1.PersistentVolumeClaim) newPVC := newObj.(*v1.PersistentVolumeClaim) return core.RequiresQuotaReplenish(newPVC, oldPVC) } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 08 22:39:55 UTC 2022 - 1.7K bytes - Viewed (0) -
pkg/apis/apps/v1beta1/conversion.go
// copy so we don't modify the input templatesCopy := make([]corev1.PersistentVolumeClaim, len(out.VolumeClaimTemplates)) copy(templatesCopy, out.VolumeClaimTemplates) out.VolumeClaimTemplates = templatesCopy for i := range out.VolumeClaimTemplates { out.VolumeClaimTemplates[i].APIVersion = "v1" out.VolumeClaimTemplates[i].Kind = "PersistentVolumeClaim" } } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:36:24 UTC 2022 - 4.3K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control.go
GetPod(namespace, podName string) (*v1.Pod, error) UpdatePod(pod *v1.Pod) error DeletePod(pod *v1.Pod) error CreateClaim(claim *v1.PersistentVolumeClaim) error GetClaim(namespace, claimName string) (*v1.PersistentVolumeClaim, error) UpdateClaim(claim *v1.PersistentVolumeClaim) error } // StatefulPodControl defines the interface that StatefulSetController uses to create, update, and delete Pods,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 14.9K bytes - Viewed (0) -
hack/testdata/prune-reap/b.yml
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: b-pvc spec: accessModes: - ReadWriteOnce resources: requests:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 22:04:38 UTC 2016 - 154 bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
return fmt.Sprintf("%s-%d", set.Name, ordinal) } // getPersistentVolumeClaimName gets the name of PersistentVolumeClaim for a Pod with an ordinal index of ordinal. claim // must be a PersistentVolumeClaim from set's VolumeClaims template. func getPersistentVolumeClaimName(set *apps.StatefulSet, claim *v1.PersistentVolumeClaim, ordinal int) string { // NOTE: This name format is used by the heuristics for zone spreading in ChooseZoneForVolume
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding.go
hasPVC := false for _, vol := range pod.Spec.Volumes { var pvcName string isEphemeral := false switch { case vol.PersistentVolumeClaim != nil: pvcName = vol.PersistentVolumeClaim.ClaimName case vol.Ephemeral != nil: pvcName = ephemeral.VolumeClaimName(pod, &vol) isEphemeral = true default: // Volume is not using a PVC, ignore continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 16.4K bytes - Viewed (0) -
hack/testdata/prune-reap/a.yml
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: a-pvc spec: accessModes: - ReadWriteOnce resources: requests:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 22:04:38 UTC 2016 - 154 bytes - Viewed (0)