Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for podVolumes (0.16 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	deviceMounter     volumepkg.DeviceMounter
    	blockVolumeMapper volumepkg.BlockVolumeMapper
    	podVolumes        map[volumetypes.UniquePodName]*reconstructedVolume
    }
    
    func (gvi globalVolumeInfo) MarshalLog() interface{} {
    	podVolumes := make(map[volumetypes.UniquePodName]v1.UniqueVolumeName)
    	for podName, volume := range gvi.podVolumes {
    		podVolumes[podName] = volume.volumeName
    	}
    
    	return struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods_linux_test.go

    	propagationNone := v1.MountPropagationNone
    
    	testCases := map[string]struct {
    		container      v1.Container
    		podVolumes     kubecontainer.VolumeMap
    		supportsRRO    bool
    		expectErr      bool
    		expectedErrMsg string
    		expectedMounts []kubecontainer.Mount
    	}{
    		"valid mounts in unprivileged container": {
    			podVolumes: kubecontainer.VolumeMap{
    				"disk":  kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "/mnt/disk"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 18:00:59 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/volume_binding.go

    	state.Lock()
    	state.podVolumesByNode[node.Name] = podVolumes
    	state.hasStaticBindings = state.hasStaticBindings || (podVolumes != nil && len(podVolumes.StaticBindings) > 0)
    	state.Unlock()
    	return nil
    }
    
    // PreScore invoked at the preScore extension point. It checks whether volumeBinding can skip Score
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_volumes_test.go

    	assert.NoError(t, err)
    
    	podVolumes := kubelet.volumeManager.GetMountedVolumesForPod(
    		util.GetUniquePodName(pod))
    
    	expectedPodVolumes := []string{"vol1"}
    	assert.Len(t, podVolumes, len(expectedPodVolumes), "Volumes for pod %+v", pod)
    	for _, name := range expectedPodVolumes {
    		assert.Contains(t, podVolumes, name, "Volumes for pod %+v", pod)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	}
    
    	podVolumes.StaticBindings = newBindings
    	podVolumes.DynamicProvisions = newProvisionedPVCs
    	return
    }
    
    // RevertAssumedPodVolumes will revert assumed PV and PVC cache.
    func (b *volumeBinder) RevertAssumedPodVolumes(podVolumes *PodVolumes) {
    	b.revertAssumedPVs(podVolumes.StaticBindings)
    	b.revertAssumedPVCs(podVolumes.DynamicProvisions)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    					},
    					unboundClaimsDelayBinding:  []*v1.PersistentVolumeClaim{},
    					unboundVolumesDelayBinding: map[string][]*v1.PersistentVolume{},
    				},
    				podVolumesByNode: map[string]*PodVolumes{},
    			},
    			wantFilterStatus: []*framework.Status{
    				nil,
    			},
    			wantPreScoreStatus: framework.NewStatus(framework.Skip),
    		},
    		{
    			name: "all bound with local volumes",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_volumes.go

    func (kl *Kubelet) ListVolumesForPod(podUID types.UID) (map[string]volume.Volume, bool) {
    	volumesToReturn := make(map[string]volume.Volume)
    	podVolumes := kl.volumeManager.GetMountedVolumesForPod(
    		volumetypes.UniquePodName(podUID))
    	for outerVolumeSpecName, volume := range podVolumes {
    		// TODO: volume.Mounter could be nil if volume object is recovered
    		// from reconciler's sync state process. PR 33616 will fix this problem
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/volume_manager.go

    			InnerVolumeSpecName: mountedVolume.InnerVolumeSpecName,
    		}
    	}
    	return podVolumes
    }
    
    func (vm *volumeManager) GetPossiblyMountedVolumesForPod(podName types.UniquePodName) container.VolumeMap {
    	podVolumes := make(container.VolumeMap)
    	for _, mountedVolume := range vm.actualStateOfWorld.GetPossiblyMountedVolumesForPod(podName) {
    		podVolumes[mountedVolume.OuterVolumeSpecName] = container.VolumeInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	for _, podVolume := range pod.Spec.Volumes {
    		if !mounts.Has(podVolume.Name) && !devices.Has(podVolume.Name) {
    			// Volume is not used in the pod, ignore it.
    			klog.V(4).InfoS("Skipping unused volume", "pod", klog.KObj(pod), "volumeName", podVolume.Name)
    			continue
    		}
    
    		pvc, volumeSpec, volumeGidValue, err :=
    			dswp.createVolumeSpec(podVolume, pod, mounts, devices)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. 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
    		pvc, err := getPVCFromCache(pod.Namespace, claimName, pvcLister)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top