Add CUSTOM_LOG_LEVEL environment variable to KubernetesTest for bunkerweb

This commit is contained in:
Théophile Diot 2024-12-29 12:10:14 +00:00
parent 6429a0ea70
commit 3645151330
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -33,6 +33,7 @@ class KubernetesTest(Test):
"REAL_IP_FROM": "100.64.0.0/10 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8",
"REAL_IP_HEADER": "proxy_protocol",
"LOG_LEVEL": "info",
"CUSTOM_LOG_LEVEL": "debug",
"USE_BUNKERNET": "no",
"SEND_ANONYMOUS_REPORT": "no",
"USE_DNSBL": "no",
@ -49,6 +50,8 @@ class KubernetesTest(Test):
for ele in yaml["spec"]["template"]["spec"]["containers"][0]["env"]:
if ele["name"] in replace_env:
ele["value"] = replace_env[ele["name"]]
if yaml["metadata"]["name"] == "bunkerweb-controller":
yaml["spec"]["template"]["spec"]["containers"][0]["env"].append({"name": "CUSTOM_LOG_LEVEL", "value": "debug"})
if (
yaml["metadata"]["name"]
in [