diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 19791ec95c..bc719385c5 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -432,7 +432,9 @@ jobs: cluster_name: kind - name: Deploy service under test run: | - kubectl apply -f k8s/${{ matrix.SERVICE }}/*.yaml + for f in k8s/${{ matrix.SERVICE }}/*.sh; do + bash "$f" + done - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} diff --git a/k8s/README.md b/k8s/README.md new file mode 100644 index 0000000000..2c176106c9 --- /dev/null +++ b/k8s/README.md @@ -0,0 +1,7 @@ +This folder contains a set of scripts that execute in separate runs to create Kubernetes environments where a specific +integration test will run to test discovery. + +The folder name (`envoy`, `istio`) will match the equivalent make target +(`make integration-test-envoy-discovery-k8s`, `make integration-test-istio-discovery-k8s`). + +Reference: `.github/workflows/integration-test.yaml`. diff --git a/k8s/envoy/envoy.sh b/k8s/envoy/envoy.sh new file mode 100644 index 0000000000..c711df6e5c --- /dev/null +++ b/k8s/envoy/envoy.sh @@ -0,0 +1,3 @@ +#!/bin/bash +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +kubectl apply -f $SCRIPT_DIR/envoy.yaml