- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for VolumeClaimName (0.54 sec)
-
pkg/controller/volume/pvcprotection/pvc_protection_controller.go
for _, volume := range pod.Spec.Volumes { if volume.PersistentVolumeClaim != nil && volume.PersistentVolumeClaim.ClaimName == pvc.Name || !podIsShutDown(pod) && volume.Ephemeral != nil && ephemeral.VolumeClaimName(pod, &volume) == pvc.Name && ephemeral.VolumeIsForPod(pod, pvc) == nil { logger.V(2).Info("Pod uses PVC", "pod", klog.KObj(pod), "PVC", klog.KObj(pvc)) return true } } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 14K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller.go
logger := klog.FromContext(ctx) logger.V(5).Info("Ephemeral: checking volume", "volumeName", vol.Name) if vol.Ephemeral == nil { return nil } pvcName := ephemeral.VolumeClaimName(pod, &vol) pvc, err := ec.pvcLister.PersistentVolumeClaims(pod.Namespace).Get(pvcName) if err != nil && !errors.IsNotFound(err) { return err } if pvc != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/csi.go
// Generic ephemeral inline volumes also use a PVC, // just with a computed name and certain ownership. // That is checked below once the pvc object is // retrieved. pvcName = ephemeral.VolumeClaimName(pod, &vol) isEphemeral = true default: // Inline Volume does not have PVC. // Need to check if CSI migration is enabled for this inline volume.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 18:07:11 UTC 2024 - 16.6K bytes - Viewed (0) -
pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go
// same way as a PVC reference. The only additional // constraint (checked below) is that the PVC must be // owned by the pod. pvcSource = &v1.PersistentVolumeClaimVolumeSource{ ClaimName: ephemeral.VolumeClaimName(pod, &podVolume), } } if pvcSource != nil { klog.V(5).InfoS("Found PVC", "PVC", klog.KRef(pod.Namespace, pvcSource.ClaimName)) // If podVolume is a PVC, fetch the real PV behind the claim
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 23.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder.go
pvcName = vol.PersistentVolumeClaim.ClaimName case vol.Ephemeral != nil: // Generic ephemeral inline volumes also use a PVC, // just with a computed name, and... pvcName = ephemeral.VolumeClaimName(pod, vol) isEphemeral = true default: return true, nil, nil } bound, pvc, err = b.isPVCBound(logger, pod.Namespace, pvcName) // ... the PVC must be owned by the pod.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 14:55:34 UTC 2024 - 42.6K bytes - Viewed (0)