From c4fcde9cbb810ece9fd299e6eb00d51ebba95ba4 Mon Sep 17 00:00:00 2001 From: Brandon Squizzato <35474886+bsquizz@users.noreply.github.com> Date: Wed, 17 Nov 2021 20:26:28 -0500 Subject: [PATCH] Do not check for Reservation on minikube/k8s (#155) --- bonfire/openshift.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bonfire/openshift.py b/bonfire/openshift.py index 61e279eb..0bf44d99 100644 --- a/bonfire/openshift.py +++ b/bonfire/openshift.py @@ -756,6 +756,9 @@ def _find_reservation(): def check_for_existing_reservation(requester): + if on_k8s(): + return False + log.info("Checking for existing reservations for '%s'", requester) all_res = get_json("reservation") @@ -768,6 +771,9 @@ def check_for_existing_reservation(requester): def get_reservation(name=None, namespace=None, requester=None): + if on_k8s(): + return False + if name: res = get_json("reservation", name=name) return res if res else False