Skip to content

Commit

Permalink
cache linux test images, fix linux example of proxy protocol and add …
Browse files Browse the repository at this point in the history
…more logs to k8s tests
  • Loading branch information
fl0ppy-d1sk committed Oct 30, 2023
1 parent 7565b2d commit e8803e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions examples/proxy-protocol/variables.env
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 7 additions & 2 deletions tests/KubernetesTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def init():
"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():
Expand Down Expand Up @@ -133,6 +133,11 @@ def init():
cwd="/tmp/kubernetes",
shell=True,
)
run(
"kubectl describe pods",
cwd="/tmp/kubernetes",
shell=True,
)
raise (Exception("k8s stack is not healthy"))
sleep(60)
except:
Expand Down

0 comments on commit e8803e3

Please sign in to comment.