fix k8s example for authelia and ignore error code when doing debug_fail for k8s tests

This commit is contained in:
bunkerity 2022-07-15 13:54:48 +02:00
parent 0fd77a8092
commit 7edd55544f
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,7 @@ spec:
pathType: Prefix
backend:
service:
name: svc-athelia
name: svc-authelia
port:
number: 9091
---

View File

@ -120,6 +120,5 @@ class KubernetesTest(Test) :
def _debug_fail(self) :
proc = run('sudo kubectl get pods --no-headers -o custom-columns=":metadata.name"', shell=True, capture_output=True)
if proc.returncode != 0 :
for pod in proc.stdout.decode().splitlines() :
run("sudo kubectl logs " + pod, shell=True)
for pod in proc.stdout.decode().splitlines() :
run("sudo kubectl logs " + pod, shell=True)