mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-24 20:33:04 +00:00
fix: run as root/remove debug/lowertimeout
This commit is contained in:
parent
24e968553c
commit
64cbb1193d
2 changed files with 3 additions and 5 deletions
6
.github/workflows/docker-k8s.yml
vendored
6
.github/workflows/docker-k8s.yml
vendored
|
@ -40,10 +40,6 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup tmate session
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
with:
|
|
||||||
detached: true
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
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/
|
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
|
- name: K8s wait for job
|
||||||
run: |
|
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)
|
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
|
||||||
test "$last_command" -eq 1
|
test "$last_command" -eq 1
|
||||||
kubectl logs jobs/load-graphql
|
kubectl logs jobs/load-graphql
|
||||||
|
|
|
@ -19,6 +19,8 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: load-graphql
|
- name: load-graphql
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
env:
|
env:
|
||||||
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in a new issue