def pvc_is_root(pvc):
    """Return True if a persistent volume claim has a root_key."""
    return pvc.spec.selector \
       and pvc.spec.selector.match_labels \
       and pvc.spec.selector.match_labels.get('root_key', None)