Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for pvcs (0.27 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/binder.go

    		} else {
    			logger.V(5).Info("PVC is not bound", "PVC", klog.KObj(pvc))
    		}
    	}
    	return fullyBound, pvc, nil
    }
    
    func (b *volumeBinder) isPVCFullyBound(pvc *v1.PersistentVolumeClaim) bool {
    	return pvc.Spec.VolumeName != "" && metav1.HasAnnotation(pvc.ObjectMeta, volume.AnnBindCompleted)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			delayFunc: func(t *testing.T, ctx context.Context, testEnv *testEnv, pod *v1.Pod, pvs []*v1.PersistentVolume, pvcs []*v1.PersistentVolumeClaim) {
    				pvc := pvcs[0]
    				// Delete PVC will fail check
    				if err := testEnv.client.CoreV1().PersistentVolumeClaims(pvc.Namespace).Delete(ctx, pvc.Name, metav1.DeleteOptions{}); err != nil {
    					t.Errorf("failed to delete PVC %q: %v", pvc.Name, err)
    				}
    			},
    			shouldFail: true,
    		},
    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/controller/statefulset/stateful_pod_control.go

    				return err
    			}
    		}
    		if utilfeature.DefaultFeatureGate.Enabled(features.StatefulSetAutoDeletePVC) {
    			// if the Pod's PVCs are not consistent with the StatefulSet's PVC deletion policy, update the PVC
    			// and dirty the pod.
    			if match, err := spc.ClaimsMatchRetentionPolicy(ctx, set, pod); err != nil {
    				spc.recordPodEvent("update", set, pod, err)
    				return err
    			} else if !match {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_pod_control_test.go

    	fakeClient := &fake.Clientset{}
    	pvcs := getPersistentVolumeClaims(set, pod)
    	pvcIndexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc})
    	deleteTime := time.Date(2019, time.January, 1, 0, 0, 0, 0, time.UTC)
    	for k := range pvcs {
    		pvc := pvcs[k]
    		pvc.DeletionTimestamp = &metav1.Time{Time: deleteTime}
    		pvcIndexer.Add(&pvc)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    	runningPod := st.MakePod().PVC("csi-ebs.csi.aws.com-3").Obj()
    	pendingVolumePod := st.MakePod().PVC("csi-4").Obj()
    
    	// Different pod than pendingVolumePod, but using the same unbound PVC
    	unboundPVCPod2 := st.MakePod().PVC("csi-4").Obj()
    
    	missingPVPod := st.MakePod().PVC("csi-6").Obj()
    	noSCPVCPod := st.MakePod().PVC("csi-5").Obj()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  6. pkg/controller/volume/pvcprotection/pvc_protection_controller.go

    		return err
    	}
    	logger.V(3).Info("Removed protection finalizer from PVC", "PVC", klog.KObj(pvc))
    	return nil
    }
    
    func (c *Controller) isBeingUsed(ctx context.Context, pvc *v1.PersistentVolumeClaim) (bool, error) {
    	// Look for a Pod using pvc in the Informer's cache. If one is found the
    	// correct decision to keep pvc is taken without doing an expensive live
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1/types_swagger_doc_generated.go

    	"whenDeleted": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:14:59 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/apps/v1/generated.proto

    // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
    // created from the StatefulSet VolumeClaimTemplates.
    message StatefulSetPersistentVolumeClaimRetentionPolicy {
      // WhenDeleted specifies what happens to PVCs created from StatefulSet
      // VolumeClaimTemplates when the StatefulSet is deleted. The default policy
      // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:14:59 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. pkg/controller/volume/pvprotection/pv_protection_controller.go

    	"k8s.io/kubernetes/pkg/util/slice"
    	volumeutil "k8s.io/kubernetes/pkg/volume/util"
    )
    
    // Controller is controller that removes PVProtectionFinalizer
    // from PVs that are not bound to PVCs.
    type Controller struct {
    	client clientset.Interface
    
    	pvLister       corelisters.PersistentVolumeLister
    	pvListerSynced cache.InformerSynced
    
    	queue workqueue.TypedRateLimitingInterface[string]
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apps/v1/types.go

    // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
    // created from the StatefulSet VolumeClaimTemplates.
    type StatefulSetPersistentVolumeClaimRetentionPolicy struct {
    	// WhenDeleted specifies what happens to PVCs created from StatefulSet
    	// VolumeClaimTemplates when the StatefulSet is deleted. The default policy
    	// of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
Back to top