From b1aa75552388f3530747c326def64cbfb14c4dc2 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Mon, 3 Jun 2024 09:43:39 +0200 Subject: [PATCH] test: debug --- .github/workflows/docker-k8s.yml | 2 +- Resources/k8s/kustomize/base/jobs/load-graphql.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 468f660c8..4241c66cf 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -98,7 +98,7 @@ jobs: bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/ - name: K8s wait for job run: | - kubectl wait --timeout=600s --for=condition=complete job/load-graphql + kubectl wait --timeout=6000s --for=condition=complete job/load-graphql last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql) test "$last_command" -eq 1 - name: Get GQL output diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index 8a6efd8e3..5bbc02785 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -18,9 +18,7 @@ spec: done; containers: - name: load-graphql - image: curlimages/curl:latest - securityContext: - runAsUser: 0 + image: debian:buster env: - name: HASURA_GRAPHQL_ADMIN_SECRET valueFrom: @@ -34,7 +32,7 @@ spec: key: POKEAPI_CHECKOUT_REF command: ["sh", "-c"] args: - - apk update && apk add git && + - apt-get update && apt-get install curl git && curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 sh && cd /tmp && git clone https://github.com/PokeAPI/pokeapi.git &&