test: display logs/use direct cf key

This commit is contained in:
Naramsim 2024-06-03 06:16:04 +02:00
parent 92e8671b8e
commit c850b6e118
2 changed files with 6 additions and 3 deletions

View file

@ -101,3 +101,4 @@ jobs:
kubectl wait --timeout=1020s --for=condition=complete job/load-graphql kubectl wait --timeout=1020s --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

View file

@ -25,9 +25,11 @@ spec:
secretKeyRef: secretKeyRef:
name: graphql-env-secret name: graphql-env-secret
key: HASURA_GRAPHQL_ADMIN_SECRET key: HASURA_GRAPHQL_ADMIN_SECRET
envFrom: - name: POKEAPI_CHECKOUT_REF
- configMapRef: valueFrom:
configMapKeyRef:
name: pokeapi-configmap name: pokeapi-configmap
key: POKEAPI_CHECKOUT_REF
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- apt-get update && - apt-get update &&