Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for claimrefToClaimKey (0.26 sec)

  1. pkg/controller/volume/persistentvolume/index.go

    }
    
    func (c byAccessModes) Len() int {
    	return len(c.modes)
    }
    
    func claimToClaimKey(claim *v1.PersistentVolumeClaim) string {
    	return fmt.Sprintf("%s/%s", claim.Namespace, claim.Name)
    }
    
    func claimrefToClaimKey(claimref *v1.ObjectReference) string {
    	return fmt.Sprintf("%s/%s", claimref.Namespace, claimref.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/pv_controller.go

    					return fmt.Errorf("invalid binding of claim %q to volume %q: volume already claimed by %q", claimToClaimKey(claim), claim.Spec.VolumeName, claimrefToClaimKey(volume.Spec.ClaimRef))
    				}
    			}
    		}
    	}
    }
    
    // syncBoundClaim is the main controller method to decide what to do with a
    // bound claim.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_base.go

    	}
    	// sync the claim when its volume is deleted. Explicitly syncing the
    	// claim here in response to volume deletion prevents the claim from
    	// waiting until the next sync period for its Lost status.
    	claimKey := claimrefToClaimKey(volume.Spec.ClaimRef)
    	logger.V(5).Info("deleteVolume: scheduling sync of claim", "PVC", klog.KRef(volume.Spec.ClaimRef.Namespace, volume.Spec.ClaimRef.Name), "volumeName", volume.Name)
    	ctrl.claimQueue.Add(claimKey)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
Back to top