- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for VolumeClaimName (0.35 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/controller/volume/attachdetach/util/util.go
claimName = pvcSource.ClaimName readOnly = pvcSource.ReadOnly } isEphemeral := podVolume.VolumeSource.Ephemeral != nil if isEphemeral { claimName = ephemeral.VolumeClaimName(pod, &podVolume) } if claimName != "" { logger.V(10).Info("Found PVC", "PVC", klog.KRef(pod.Namespace, claimName)) // If podVolume is a PVC, fetch the real PV behind the claim
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 12K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding.go
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 } hasPVC = true pvc, err := pl.PVCLister.PersistentVolumeClaims(pod.Namespace).Get(pvcName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 16.4K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph.go
}) for _, v := range pod.Spec.Volumes { claimName := "" if v.PersistentVolumeClaim != nil { claimName = v.PersistentVolumeClaim.ClaimName } else if v.Ephemeral != nil { claimName = ephemeral.VolumeClaimName(pod, &v) } if claimName != "" { pvcVertex := g.getOrCreateVertex_locked(pvcVertexType, pod.Namespace, claimName) e := newDestinationEdge(pvcVertex, podVertex, nodeVertex) g.graph.SetEdge(e)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 17.5K 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/scheduler/framework/plugins/nodevolumelimits/non_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: continue } if pvcName == "" { return fmt.Errorf("PersistentVolumeClaim had no name") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 30 23:00:56 UTC 2023 - 19.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)