mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Add CUSTOM_LOG_LEVEL environment variable to KubernetesTest for bunkerweb
This commit is contained in:
parent
6429a0ea70
commit
3645151330
1 changed files with 3 additions and 0 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Reference in a new issue