From aab44d607efbb0ee35b6c38772d72e6417c21a58 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Sat, 1 Jun 2024 20:54:10 +0200 Subject: [PATCH] kubeconfig can be empty --- podstatus/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podstatus/config.py b/podstatus/config.py index 6743217..1205d3a 100644 --- a/podstatus/config.py +++ b/podstatus/config.py @@ -12,7 +12,7 @@ def __init__(self): load_dotenv() self.FLASK_APP_SECRET_KEY = self.get_env_var("FLASK_APP_SECRET_KEY") self.LOG_LEVEL = self.get_env_var("LOG_LEVEL", "INFO").upper() - self.KUBECONFIG = self.get_env_var("KUBECONFIG", None) + self.KUBECONFIG = os.getenv("KUBECONFIG", None) self.K8S_NAMESPACE = self.get_env_var("K8S_NAMESPACE") def get_env_var(self, name, default=None):