cache linux test images, fix linux example of proxy protocol and add more logs to k8s tests
This commit is contained in:
parent
7565b2df58
commit
e8803e346f
|
@ -148,3 +148,5 @@ jobs:
|
|||
push: true
|
||||
tags: ghcr.io/bunkerity/${{ inputs.LINUX }}-tests:${{ inputs.RELEASE }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha,scope=${{ inputs.LINUX }}-${{ inputs.RELEASE }}-tests
|
||||
cache-to: type=gha,scope=${{ inputs.LINUX }}-${{ inputs.RELEASE }}-tests,mode=min
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
DNS_RESOLVERS=8.8.8.8 8.8.4.4
|
||||
API_LISTEN_IP=127.0.0.1
|
||||
HTTP_PORT=8080
|
||||
HTTPS_PORT=8443
|
||||
# replace with your domains
|
||||
SERVER_NAME=www.example.com
|
||||
# real IP settings
|
||||
|
|
|
@ -36,10 +36,10 @@ class KubernetesTest(Test):
|
|||
"USE_LETS_ENCRYPT_STAGING": "yes",
|
||||
"USE_REAL_IP": "yes",
|
||||
"USE_PROXY_PROTOCOL": "yes",
|
||||
"REAL_IP_FROM": "100.64.0.0/16",
|
||||
"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",
|
||||
}
|
||||
replace_env = {"API_WHITELIST_IP": "127.0.0.1/8 100.64.0.0/10"}
|
||||
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":
|
||||
for k, v in append_env.items():
|
||||
|
@ -133,6 +133,11 @@ class KubernetesTest(Test):
|
|||
cwd="/tmp/kubernetes",
|
||||
shell=True,
|
||||
)
|
||||
run(
|
||||
"kubectl describe pods",
|
||||
cwd="/tmp/kubernetes",
|
||||
shell=True,
|
||||
)
|
||||
raise (Exception("k8s stack is not healthy"))
|
||||
sleep(60)
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue