mirror of
https://github.com/resf/distro-tools.git
synced 2024-10-31 02:51:23 +00:00
17 lines
218 B
Python
17 lines
218 B
Python
"""
|
|
Environment variables
|
|
"""
|
|
import os
|
|
|
|
|
|
def get_env():
|
|
return os.environ.get("ENV", "development")
|
|
|
|
|
|
def is_prod():
|
|
return get_env() == "1"
|
|
|
|
|
|
def is_k8s():
|
|
return os.environ.get("KUBERNETES", "0") == "1"
|