Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ClaimContainsAllocatedResources (0.35 sec)

  1. pkg/api/persistentvolumeclaim/util.go

    			pvc.Status.ModifyVolumeStatus = nil
    		}
    	}
    
    	if !utilfeature.DefaultFeatureGate.Enabled(features.RecoverVolumeExpansionFailure) {
    		if !helper.ClaimContainsAllocatedResources(oldPVC) {
    			pvc.Status.AllocatedResources = nil
    		}
    		if !helper.ClaimContainsAllocatedResourceStatus(oldPVC) {
    			pvc.Status.AllocatedResourceStatuses = nil
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. pkg/apis/core/helper/helpers.go

    	for _, m := range modes {
    		if m == mode {
    			return true
    		}
    	}
    	return false
    }
    
    func ClaimContainsAllocatedResources(pvc *core.PersistentVolumeClaim) bool {
    	if pvc == nil {
    		return false
    	}
    
    	if pvc.Status.AllocatedResources != nil {
    		return true
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation.go

    		// If the old object had an invalid label selector, continue to allow it in the new object
    		opts.AllowInvalidLabelValueInSelector = true
    	}
    
    	if helper.ClaimContainsAllocatedResources(oldPvc) ||
    		helper.ClaimContainsAllocatedResourceStatus(oldPvc) {
    		opts.EnableRecoverFromExpansionFailure = true
    	}
    	return opts
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top