• Jan Safranek's avatar
    Fixed counting of unbound PVCs towards limit of attached volumes. · 2caae38d
    Jan Safranek authored
    There are two ways how a scheduled pod can get its PVCs unbound:
    - admin forcefuly unbinds it
    - user deletes original PVC that was bound when the pod was scheduled and
      creates a new one with the same name that does not get bound from some
      reason.
    
    In both cases we don't know where the original PVC pointed at and if we
    should account it to the limit of attached AWS EBS / GCE PDs etc.
    
    The common pattern here is to count it in when in doubt.
    2caae38d
predicates.go 55.4 KB