Skip to content

Refactor Kubernetes setup for integration tests #6034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions k8s/README.md
Original file line number Diff line number Diff line change
@@ -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`.
3 changes: 3 additions & 0 deletions k8s/envoy/envoy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
kubectl apply -f $SCRIPT_DIR/envoy.yaml
Loading