From c8457d1e63d2fa58f5521740e4679ecfb02dd9fb Mon Sep 17 00:00:00 2001 From: Naramsim Date: Mon, 3 Jun 2024 07:15:06 +0200 Subject: [PATCH] fix: use envs/add slash/change dir --- .github/workflows/docker-k8s.yml | 2 +- Resources/k8s/kustomize/base/jobs/load-graphql.yaml | 1 + Resources/k8s/kustomize/base/kustomization.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 8efe527b..1122ee38 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -101,4 +101,4 @@ jobs: kubectl wait --timeout=10020s --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 + kubectl logs jobs/load-graphql diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index ec0cf1ca..bc125a2b 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -35,6 +35,7 @@ spec: - apt-get update && apt-get install -y git curl && curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 bash && + cd /tmp && git clone https://github.com/PokeAPI/pokeapi.git && cd pokeapi && git checkout $(POKEAPI_CHECKOUT_REF) | git checkout master && diff --git a/Resources/k8s/kustomize/base/kustomization.yaml b/Resources/k8s/kustomize/base/kustomization.yaml index 93828994..7fdf034c 100644 --- a/Resources/k8s/kustomize/base/kustomization.yaml +++ b/Resources/k8s/kustomize/base/kustomization.yaml @@ -5,7 +5,7 @@ namespace: pokeapi configMapGenerator: - name: pokeapi-configmap - files: + envs: - config/pokeapi.env secretGenerator: