mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-14 17:21:25 +00:00
17 lines
227 B
Python
17 lines
227 B
Python
"""
|
|
Environment variables
|
|
"""
|
|
import os
|
|
|
|
|
|
def get_env():
|
|
return os.environ.get("ENV", "development")
|
|
|
|
|
|
def is_prod():
|
|
return get_env() == "production"
|
|
|
|
|
|
def is_k8s():
|
|
return os.environ.get("KUBERNETES", "0") == "1"
|