Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 80 for claimrefns (0.27 sec)

  1. pkg/controller/volume/expand/expand_controller.go

    	if err != nil {
    		logger.V(5).Info("Error getting Persistent Volume for PVC from informer", "pvcKey", key, "pvcUID", pvc.UID, "err", err)
    		return err
    	}
    
    	if pv.Spec.ClaimRef == nil || pvc.Namespace != pv.Spec.ClaimRef.Namespace || pvc.UID != pv.Spec.ClaimRef.UID {
    		err := fmt.Errorf("persistent Volume is not bound to PVC being updated : %s", key)
    		logger.V(4).Info("", "err", err)
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/graph.go

    	if pv.Spec.ClaimRef != nil {
    		pvVertex := g.getOrCreateVertex_locked(pvVertexType, "", pv.Name)
    
    		// since we don't know the other end of the pvc -> pod -> node chain (or it may not even exist yet), we can't decorate these edges with kubernetes node info
    		g.graph.SetEdge(simple.Edge{F: pvVertex, T: g.getOrCreateVertex_locked(pvcVertexType, pv.Spec.ClaimRef.Namespace, pv.Spec.ClaimRef.Name)})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/volume_manager_test.go

    				},
    			},
    			Spec: v1.PersistentVolumeSpec{
    				PersistentVolumeSource: v1.PersistentVolumeSource{
    					RBD: &v1.RBDPersistentVolumeSource{
    						RBDImage: "fake-device",
    					},
    				},
    				ClaimRef: &v1.ObjectReference{
    					Name:      claim.ObjectMeta.Name,
    					Namespace: claim.ObjectMeta.Namespace,
    				},
    				VolumeMode: &fs,
    			},
    		}
    		kubeClient := fake.NewSimpleClientset(node, pod, pv, claim)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    				GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{},
    			},
    			AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany},
    			// this one we're pretending is already bound
    			ClaimRef: &v1.ObjectReference{UID: "metric-test-pvc-1", Namespace: "metric-test"},
    		},
    	}
    	pvcInformer.Informer().GetStore().Add(pvc)
    	pvInformer.Informer().GetStore().Add(pv)
    	pvcLister := pvcInformer.Lister()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			AccessModes: []v1.PersistentVolumeAccessMode{
    				v1.ReadWriteOnce,
    				v1.ReadOnlyMany,
    			},
    			VolumeMode: &mode,
    			ClaimRef:   &v1.ObjectReference{Namespace: "ns", Name: "pvc-volume-name"},
    		},
    	}
    
    	gcepvc := &v1.PersistentVolumeClaim{
    		ObjectMeta: metav1.ObjectMeta{UID: "pvc-001", Name: "pvc-volume-name", Namespace: "ns"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		pv.Spec.ClaimRef = &corev1.ObjectReference{Name: fmt.Sprintf("pvc%d-%s", i, pod.Name), Namespace: pod.Namespace}
    		pvs = append(pvs, pv)
    
    		pod.Spec.Volumes = append(pod.Spec.Volumes, corev1.Volume{VolumeSource: corev1.VolumeSource{
    			PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: pv.Spec.ClaimRef.Name},
    		}})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  7. pkg/volume/nfs/nfs_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name: "pvA",
    		},
    		Spec: v1.PersistentVolumeSpec{
    			PersistentVolumeSource: v1.PersistentVolumeSource{
    				NFS: &v1.NFSVolumeSource{},
    			},
    			ClaimRef: &v1.ObjectReference{
    				Name: "claimA",
    			},
    		},
    	}
    
    	claim := &v1.PersistentVolumeClaim{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "claimA",
    			Namespace: "nsA",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 9K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/volumebinding/binder.go

    			return false, fmt.Errorf("pv %q node affinity doesn't match node %q: %w", pv.Name, node.Name, err)
    		}
    
    		// Check if pv.ClaimRef got dropped by unbindVolume()
    		if pv.Spec.ClaimRef == nil || pv.Spec.ClaimRef.UID == "" {
    			return false, fmt.Errorf("ClaimRef got reset for pv %q", pv.Name)
    		}
    
    		// Check if pvc is fully bound
    		if !b.isPVCFullyBound(pvc) {
    			return false, nil
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Name: "test1",
    				},
    				Spec: api.PersistentVolumeSpec{
    					ClaimRef:    &claimRef,
    					AccessModes: []api.PersistentVolumeAccessMode{api.ReadOnlyMany},
    					Capacity: map[api.ResourceName]resource.Quantity{
    						api.ResourceStorage: resource.MustParse("4Gi"),
    					},
    				},
    				Status: api.PersistentVolumeStatus{
    					Phase: api.VolumeBound,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_generator.go

    			pv := volumeToMount.VolumeSpec.PersistentVolume
    			pvc, err := og.kubeClient.CoreV1().PersistentVolumeClaims(pv.Spec.ClaimRef.Namespace).Get(context.TODO(), pv.Spec.ClaimRef.Name, metav1.GetOptions{})
    			if err != nil {
    				eventErr, detailedErr := volumeToMount.GenerateError("VerifyControllerAttachedVolume fetching pvc failed", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top