Commit ec4734f6 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

QKD E2E Test:

- Fixed cleanup of Failed system pods
parent 61b1a65c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -75,9 +75,9 @@ end2end_test qkd_end2end:

    # Clean-up Kubernetes Failed pods
    - >
      kubectl get pods --all-namespaces --field-selector=status.phase=Failed
        -o custom-columns=NAMESPACE:.metadata.namespace,NAME:.metadata.name
        --no-headers | xargs -r -n2 kubectl delete pod -n
      kubectl get pods --all-namespaces --no-headers --field-selector=status.phase=Failed
      -o custom-columns=NAMESPACE:.metadata.namespace,NAME:.metadata.name |
      xargs --no-run-if-empty --max-args=2 kubectl delete pod --namespace

    # Login Docker repository
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY