def _inline_volume_check(inputs, claim_name):
    """Returns either an emptyDir or PVC volumeSpec """
    if "emptyDir" in inputs.get("spec", {}):
        return {"emptyDir": {}}
    else:
        return {
            "persistentVolumeClaim": {"claimName": claim_name},
        }