fix: run as root/remove debug/lowertimeout

This commit is contained in:
Naramsim 2024-06-03 08:11:27 +02:00
parent 24e968553c
commit 64cbb1193d
2 changed files with 3 additions and 5 deletions

View file

@ -40,10 +40,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
@ -98,7 +94,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=10020s --for=condition=complete job/load-graphql
kubectl wait --timeout=600s --for=condition=complete job/load-graphql
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
test "$last_command" -eq 1
kubectl logs jobs/load-graphql

View file

@ -19,6 +19,8 @@ spec:
containers:
- name: load-graphql
image: curlimages/curl:latest
securityContext:
runAsUser: 0
env:
- name: HASURA_GRAPHQL_ADMIN_SECRET
valueFrom: