mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update KubernetesTest to filter environment variable replacements for DaemonSet of bunkerweb
This commit is contained in:
parent
3645151330
commit
26d70c1a54
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class KubernetesTest(Test):
|
|||
}
|
||||
replace_env = {"API_WHITELIST_IP": "127.0.0.1/8 100.64.0.0/10 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8"}
|
||||
for yaml in data:
|
||||
if yaml["metadata"]["name"] == "bunkerweb":
|
||||
if yaml["metadata"]["name"] == "bunkerweb" and yaml["kind"] == "DaemonSet":
|
||||
for ele in yaml["spec"]["template"]["spec"]["containers"][0]["env"]:
|
||||
if ele["name"] in replace_env:
|
||||
ele["value"] = replace_env[ele["name"]]
|
||||
|
|
|
|||
Loading…
Reference in a new issue