Skip to content

Commit

Permalink
test: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jun 3, 2024
1 parent 7c868a7 commit b1aa755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions Resources/k8s/kustomize/base/jobs/load-graphql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 &&
Expand Down

0 comments on commit b1aa755

Please sign in to comment.