Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for PVCs (0.07 sec)

  1. pkg/controller/volume/ephemeral/controller_test.go

    		Controller:         &isController,
    		BlockOwnerDeletion: &isTrue,
    	}
    }
    
    func sortPVCs(pvcs []v1.PersistentVolumeClaim) []v1.PersistentVolumeClaim {
    	sort.Slice(pvcs, func(i, j int) bool {
    		return pvcs[i].Namespace < pvcs[j].Namespace ||
    			pvcs[i].Name < pvcs[j].Name
    	})
    	return pvcs
    }
    
    func createTestClient(objects ...runtime.Object) *fake.Clientset {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			}
    		}
    		return true, nil
    	})
    }
    
    func (env *testEnv) updateClaims(ctx context.Context, pvcs []*v1.PersistentVolumeClaim) error {
    	for i, pvc := range pvcs {
    		newPvc, err := env.client.CoreV1().PersistentVolumeClaims(pvc.Namespace).Update(ctx, pvc, metav1.UpdateOptions{})
    		if err != nil {
    			return err
    		}
    		pvcs[i] = newPvc
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	unboundClaimsDelayBinding []*v1.PersistentVolumeClaim
    	// unboundClaimsImmediate are the pod's unbound with immediate binding PVCs (i.e., supposed to be bound already) .
    	unboundClaimsImmediate []*v1.PersistentVolumeClaim
    	// unboundVolumesDelayBinding are PVs that belong to storage classes of the pod's unbound PVCs with delayed binding.
    	unboundVolumesDelayBinding map[string][]*v1.PersistentVolume
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    	}
    	return s, nil
    }
    
    // calPreFilterState computes preFilterState describing which PVCs use ReadWriteOncePod
    // and which pods in the cluster are in conflict.
    func (pl *VolumeRestrictions) calPreFilterState(ctx context.Context, pod *v1.Pod, pvcs sets.Set[string]) (*preFilterState, error) {
    	conflictingPVCRefCount := 0
    	for pvc := range pvcs {
    		key := framework.GetNamespacedName(pod.Namespace, pvc)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. pkg/volume/util/finalizer.go

    limitations under the License.
    */
    
    package util
    
    const (
    	// PVCProtectionFinalizer is the name of finalizer on PVCs that have a running pod.
    	PVCProtectionFinalizer = "kubernetes.io/pvc-protection"
    
    	// PVProtectionFinalizer is the name of finalizer on PVs that are bound by PVCs
    	PVProtectionFinalizer = "kubernetes.io/pv-protection"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 10 21:24:35 UTC 2018
    - 874 bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    			maxVols:      3,
    			test:         "new pod's count considers PVCs backed by AzureDisk volumes",
    		},
    		{
    			newPod:       splitPVCPod(azureDiskVolumeFilterType),
    			existingPods: []*v1.Pod{splitAzureDiskPod, oneAzureDiskPod},
    			filterName:   azureDiskVolumeFilterType,
    			maxVols:      3,
    			test:         "new pod's count ignores PVCs not backed by AzureDisk volumes",
    		},
    		{
    			newPod:       twoAzureDiskPod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    				makeNode("node-a").Node,
    			},
    			pvcs:                []*v1.PersistentVolumeClaim{},
    			wantPreFilterStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, `persistentvolumeclaim "pvc-a" not found`),
    			wantFilterStatus: []*framework.Status{
    				nil,
    			},
    			wantScores: []int64{
    				0,
    			},
    		},
    		{
    			name: "Part of PVCs do not exist",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/framework/fake_listers.go

    	ps := make([]*v1.PersistentVolumeClaim, len(pvcs))
    	for i := range pvcs {
    		ps[i] = &pvcs[i]
    	}
    	return &persistentVolumeClaimNamespaceLister{
    		pvcs:      ps,
    		namespace: namespace,
    	}
    }
    
    // NodeInfoLister declares a framework.NodeInfo type for testing.
    type NodeInfoLister []*framework.NodeInfo
    
    // Get returns a fake node object in the fake nodes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 10:14:08 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. pkg/controller/volume/common/common.go

    )
    
    const (
    	// PodPVCIndex is the lookup name for the index function, which is to index by pod pvcs.
    	PodPVCIndex = "pod-pvc-index"
    )
    
    // PodPVCIndexFunc creates an index function that returns PVC keys (=
    // namespace/name) for given pod.  This includes the PVCs
    // that might be created for generic ephemeral volumes.
    func PodPVCIndexFunc() func(obj interface{}) ([]string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 11 18:54:20 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_pod_control.go

    func (spc *StatefulPodControl) CreateStatefulPod(ctx context.Context, set *apps.StatefulSet, pod *v1.Pod) error {
    	// Create the Pod's PVCs prior to creating the Pod
    	if err := spc.createPersistentVolumeClaims(set, pod); err != nil {
    		spc.recordPodEvent("create", set, pod, err)
    		return err
    	}
    	// If we created the PVCs attempt to create the Pod
    	err := spc.objectMgr.CreatePod(ctx, pod)
    	// sink already exists errors
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top