mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-07-07 01:24:06 +00:00
fix k8s things
This commit is contained in:
2
k8s.py
2
k8s.py
@ -67,7 +67,7 @@ try:
|
||||
CONFIG = yaml.safe_load(V1.read_namespaced_config_map(name="config-outfleet", namespace=NAMESPACE).data['config.yaml'])
|
||||
log.info("Created new ConfigMap [config-outfleet]")
|
||||
except Exception as e:
|
||||
log.info("Failed to create new ConfigMap [config-outfleet] {e}")
|
||||
log.info(f"Failed to create new ConfigMap [config-outfleet] {e}")
|
||||
except:
|
||||
log.info("Kubernetes environment not detected")
|
||||
except:
|
||||
|
5
main.py
5
main.py
@ -36,7 +36,7 @@ NAMESPACE = k8s.NAMESPACE
|
||||
SERVERS = list()
|
||||
BROKEN_SERVERS = list()
|
||||
CLIENTS = dict()
|
||||
VERSION = '3'
|
||||
VERSION = '4'
|
||||
HOSTNAME = ""
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
@ -64,7 +64,6 @@ def update_state():
|
||||
CLIENTS = dict()
|
||||
config = get_config()
|
||||
|
||||
|
||||
if config:
|
||||
HOSTNAME = config.get("ui_hostname", "my-own-SSL-ENABLED-domain.com")
|
||||
servers = config.get("servers", dict())
|
||||
@ -101,6 +100,7 @@ def index():
|
||||
"index.html",
|
||||
SERVERS=SERVERS,
|
||||
VERSION=VERSION,
|
||||
K8S_NAMESPACE=k8s.NAMESPACE,
|
||||
BROKEN_SERVERS=BROKEN_SERVERS,
|
||||
nt=request.args.get("nt"),
|
||||
nl=request.args.get("nl"),
|
||||
@ -135,6 +135,7 @@ def clients():
|
||||
SERVERS=SERVERS,
|
||||
CLIENTS=CLIENTS,
|
||||
VERSION=VERSION,
|
||||
K8S_NAMESPACE=k8s.NAMESPACE,
|
||||
nt=request.args.get("nt"),
|
||||
nl=request.args.get("nl"),
|
||||
selected_client=request.args.get("selected_client"),
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user