FixNameFile
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 21s

This commit is contained in:
QuangMinh_123
2025-12-10 09:57:16 +00:00
parent 085501b946
commit 24e4db954a
9 changed files with 205 additions and 124 deletions

View File

@@ -10,6 +10,9 @@ from psycopg2.extras import LoggingConnection
CORS_HEADERS = {
"Content-Type": "application/json",
}
SECRET_NAME = "fission-ailbl-user-phone-env"
CONFIG_NAME = "fission-eom-notification-config"
K8S_NAMESPACE = "default"
logging.basicConfig(level=logging.DEBUG)
@@ -95,6 +98,7 @@ def check_port_open(ip: str, port: int, timeout: int = 30):
current_app.logger.err(f"Check port open error: {err}")
return False
def str_to_bool(value: str | None) -> typing.Optional[bool]:
if value is None:
return None
@@ -103,4 +107,4 @@ def str_to_bool(value: str | None) -> typing.Optional[bool]:
return True
if val in ("false", "0", "no"):
return False
return None
return None