Skip to content

Commit

Permalink
kubeconfig can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jun 1, 2024
1 parent 57015d3 commit aab44d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podstatus/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aab44d6

Please sign in to comment.