From 0fa9c2215560a8f010278cd577b3dfe542ed41bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Thu, 10 Sep 2026 14:41:12 +0200 Subject: [PATCH 1/8] Update docker-k8s.yml --- .github/workflows/docker-k8s.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 19cf154b0..00814de2e 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -99,6 +99,10 @@ jobs: run: | kubectl config set-context --current --namespace pokeapi kubectl describe deployment + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + detached: true - name: Migrate and build data run: | make k8s-migrate From 7f0f2a79a9f822ae165cab8ddae664265a9055df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Thu, 10 Sep 2026 14:48:47 +0200 Subject: [PATCH 2/8] Update docker-k8s.yml --- .github/workflows/docker-k8s.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 00814de2e..72e28db68 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -51,6 +51,10 @@ jobs: uses: actions/checkout@v6 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 @@ -99,10 +103,6 @@ jobs: run: | kubectl config set-context --current --namespace pokeapi kubectl describe deployment - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - with: - detached: true - name: Migrate and build data run: | make k8s-migrate From c04166d68936865cb58433d7d8dae2480d772b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Thu, 10 Sep 2026 15:21:47 +0200 Subject: [PATCH 3/8] Update docker-k8s.yml --- .github/workflows/docker-k8s.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 72e28db68..0abbf8f5c 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -51,10 +51,6 @@ jobs: uses: actions/checkout@v6 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 @@ -108,6 +104,8 @@ jobs: make k8s-migrate make k8s-build-db bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/ + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 - name: K8s wait for job run: | kubectl wait --timeout=600s --for=condition=complete job/load-graphql From 854f8a78d23b4dcccf631d555fa8a9e09513e168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Sat, 12 Sep 2026 14:55:01 +0200 Subject: [PATCH 4/8] Update docker-k8s.yml --- .github/workflows/docker-k8s.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 0abbf8f5c..e93cc8407 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -104,8 +104,10 @@ jobs: make k8s-migrate make k8s-build-db bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/ - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 + - name: Setup upterm session + uses: owenthereal/action-upterm@v1 + with: + detached: true - name: K8s wait for job run: | kubectl wait --timeout=600s --for=condition=complete job/load-graphql From d6094dfd69a927a26f7c0d2400bcbe923943010d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Sat, 12 Sep 2026 15:11:04 +0200 Subject: [PATCH 5/8] Update docker-k8s.yml --- .github/workflows/docker-k8s.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index e93cc8407..04d1334d4 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -47,6 +47,10 @@ jobs: k8s: runs-on: ubuntu-latest steps: + - name: Setup upterm session + uses: owenthereal/action-upterm@v1 + with: + detached: true - name: Checkout uses: actions/checkout@v6 with: @@ -104,10 +108,6 @@ jobs: make k8s-migrate make k8s-build-db bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/ - - name: Setup upterm session - uses: owenthereal/action-upterm@v1 - with: - detached: true - name: K8s wait for job run: | kubectl wait --timeout=600s --for=condition=complete job/load-graphql From af44d3bbbc9ea41e4306c999218814e88fe770f2 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Sat, 12 Sep 2026 22:29:17 +0900 Subject: [PATCH 6/8] fix: switch gql load image --- .../k8s/kustomize/base/jobs/load-graphql.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index 9bb8b28f0..9419f4fca 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -18,7 +18,7 @@ spec: done; containers: - name: load-graphql - image: debian:bullseye + image: buildpack-deps:bookworm-scm env: - name: HASURA_GRAPHQL_ADMIN_SECRET valueFrom: @@ -32,10 +32,12 @@ spec: key: POKEAPI_CHECKOUT_REF command: ["sh", "-c"] args: - - apt-get update && apt-get install -y curl git && - curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.48.1 bash && - cd /tmp && - git clone https://github.com/PokeAPI/pokeapi.git && - cd pokeapi && - (git checkout $(POKEAPI_CHECKOUT_REF) || git checkout master) && - hasura md apply --endpoint http://graphql:8080 --project graphql/v1beta2 --admin-secret $(HASURA_GRAPHQL_ADMIN_SECRET) + - | + set -e + curl -L https://github.com/hasura/graphql-engine/releases/download/v2.48.1/cli-hasura-linux-amd64 -o /usr/local/bin/hasura + chmod +x /usr/local/bin/hasura + cd /tmp + git clone https://github.com/PokeAPI/pokeapi.git + cd pokeapi + git checkout ${POKEAPI_CHECKOUT_REF} || git checkout master + hasura md apply --endpoint http://graphql:8080 --project graphql/v1beta2 --admin-secret ${HASURA_GRAPHQL_ADMIN_SECRET} From c2253546882ca8cf96df4a28d53f7ba2ac43edfa Mon Sep 17 00:00:00 2001 From: Naramsim Date: Sat, 12 Sep 2026 22:44:56 +0900 Subject: [PATCH 7/8] chore: remove debug/update kind --- .github/workflows/docker-k8s.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 04d1334d4..fdf3a4dd4 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -47,10 +47,6 @@ jobs: k8s: runs-on: ubuntu-latest steps: - - name: Setup upterm session - uses: owenthereal/action-upterm@v1 - with: - detached: true - name: Checkout uses: actions/checkout@v6 with: @@ -81,11 +77,11 @@ jobs: - name: Lint k8s run: (cd Resources/k8s/kustomize && yamllint .) - name: Create k8s Kind Cluster - uses: helm/kind-action@v1.14.0 + uses: helm/kind-action@v1.15.0 with: cluster_name: pokeapi config: Resources/kind/config-ga.yaml - version: v0.32.0 + version: v0.33.0 - name: Create deployment configuration run: | cp Resources/k8s/kustomize/base/secrets/postgres.env.sample Resources/k8s/kustomize/base/secrets/postgres.env From de3bfaa6c5d5a79bbf2c1aecb784dbff1126f01f Mon Sep 17 00:00:00 2001 From: Naramsim Date: Sat, 12 Sep 2026 22:52:30 +0900 Subject: [PATCH 8/8] chore: use newer debian release --- Resources/k8s/kustomize/base/jobs/load-graphql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index 9419f4fca..80548c360 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -18,7 +18,7 @@ spec: done; containers: - name: load-graphql - image: buildpack-deps:bookworm-scm + image: buildpack-deps:stable-scm env: - name: HASURA_GRAPHQL_ADMIN_SECRET valueFrom: