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 pathType: Prefix
backend: backend:
service: service:
name: svc-athelia name: svc-authelia
port: port:
number: 9091 number: 9091
--- ---

View file

@ -120,6 +120,5 @@ class KubernetesTest(Test) :
def _debug_fail(self) : def _debug_fail(self) :
proc = run('sudo kubectl get pods --no-headers -o custom-columns=":metadata.name"', shell=True, capture_output=True) 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() :
for pod in proc.stdout.decode().splitlines() : run("sudo kubectl logs " + pod, shell=True)
run("sudo kubectl logs " + pod, shell=True)