def _check_if_pod_exists(pod_id):
user = KubeUtils.get_current_user()
try:
pod = Pod.filter(Pod.owner_id == user.id, Pod.id == pod_id).first()
if pod is None:
raise PodNotFound
except DataError:
# pod_id is not uuid
raise PodNotFound
评论列表
文章目录