mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #43885 from zhangxiaoyu-zidif/master
Automatic merge from submit-queue Fix a typo Fix a typo **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
commit
85dfdc1274
@ -251,7 +251,7 @@ func (c *MaxPDVolumeCountChecker) filterVolumes(volumes []v1.Volume, namespace s
|
||||
if err != nil {
|
||||
// if the PV is not found, log the error
|
||||
// and count the PV towards the PV limit
|
||||
// generate a random volume ID since its required for de-dup
|
||||
// generate a random volume ID since it is required for de-dup
|
||||
utilruntime.HandleError(fmt.Errorf("Unable to look up PV info for %s/%s/%s, assuming PV matches predicate when counting limits: %v", namespace, pvcName, pvName, err))
|
||||
source := rand.NewSource(time.Now().UnixNano())
|
||||
generatedID := "missingPV" + strconv.Itoa(rand.New(source).Intn(1000000))
|
||||
|
Loading…
Reference in New Issue
Block a user