Add Fabric8 Kubernetes client integration #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kubernetes E2E Chaos Tests | ||
# Forked from https://github.com/fabric8io/kubernetes-client/blob/56a6c2c4f336cc6f64c19029a55c2d3d0289344f/.github/workflows/e2e-chaos-tests.yml | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
# The release versions will be verified by 'publish-release.yml' | ||
- armeria-* | ||
pull_request: | ||
concurrency: | ||
group: ci-e2e-chaos-tests-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
env: | ||
CHAOS_MESH_VERSION: 2.6.2 | ||
KUBERNETES_VERSION: v1.25.0 | ||
MINIKUBE_VERSION: v1.32.0 | ||
jobs: | ||
chaos-tests: | ||
name: Kubernetes Chaos Test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
if: github.repository == 'line/armeria' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
chaos-test: ["network-delay.yaml", "network-loss.yaml", "network-duplicate.yaml"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: setup-jdk-19 | ||
name: Setup Java 19 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 19 | ||
- name: Setup Minikube-Kubernetes | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: ${{ MINIKUBE_VERSION }} | ||
Check failure on line 46 in .github/workflows/e2e-chaos-tests.yml GitHub Actions / Kubernetes E2E Chaos TestsInvalid workflow file
|
||
kubernetes version: ${{ KUBERNETES_VERSION }} | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Kubectl # Chaos-Mesh setup requires a functional kubectl version for all cluster versiones | ||
uses: azure/setup-kubectl@v3 | ||
with: | ||
version: ${{ KUBERNETES_VERSION }} | ||
- name: Install Chaos Mesh | ||
run: | | ||
curl -sSL https://mirrors.chaos-mesh.org/v${CHAOS_MESH_VERSION}/install.sh | bash | ||
kubectl wait --for=condition=Ready pods --all-namespaces --all --timeout=600s | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Run Chaos Tests | ||
env: | ||
CHAOS_TEST: ${{ matrix.chaos-test }} | ||
run: | | ||
- name: Build with Gradle | ||
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test | ||
shell: bash |