Merge pull request #4845 from fluxcd/conformance-arm64-gh
Run ARM64 e2e tests on GitHub runners
This commit is contained in:
29
.github/workflows/conformance.yaml
vendored
29
.github/workflows/conformance.yaml
vendored
@@ -13,9 +13,8 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
conform-kubernetes:
|
conform-kubernetes:
|
||||||
# Hosted on Equinix
|
runs-on:
|
||||||
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
|
group: "ARM64"
|
||||||
runs-on: [self-hosted, Linux, ARM64, equinix]
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Keep this list up-to-date with https://endoflife.date/kubernetes
|
# Keep this list up-to-date with https://endoflife.date/kubernetes
|
||||||
@@ -40,18 +39,15 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
- name: Setup Kubernetes Kind
|
- name: Setup Kubernetes
|
||||||
run: |
|
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
|
||||||
kind create cluster \
|
with:
|
||||||
--wait 5m \
|
version: v0.22.0
|
||||||
--name ${{ steps.prep.outputs.CLUSTER }} \
|
cluster_name: ${{ steps.prep.outputs.CLUSTER }}
|
||||||
--kubeconfig=/tmp/${{ steps.prep.outputs.CLUSTER }} \
|
node_image: ghcr.io/fluxcd/kindest/node:v${{ matrix.KUBERNETES_VERSION }}-arm64
|
||||||
--image=ghcr.io/fluxcd/kindest/node:v${{ matrix.KUBERNETES_VERSION }}-arm64
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
run: TEST_KUBECONFIG=/tmp/${{ steps.prep.outputs.CLUSTER }} make e2e
|
run: TEST_KUBECONFIG=$HOME/.kube/config make e2e
|
||||||
- name: Run multi-tenancy tests
|
- name: Run multi-tenancy tests
|
||||||
env:
|
|
||||||
KUBECONFIG: /tmp/${{ steps.prep.outputs.CLUSTER }}
|
|
||||||
run: |
|
run: |
|
||||||
./bin/flux install
|
./bin/flux install
|
||||||
./bin/flux create source git flux-system \
|
./bin/flux create source git flux-system \
|
||||||
@@ -68,18 +64,11 @@ jobs:
|
|||||||
kubectl -n apps wait helmrelease/podinfo --for=condition=ready --timeout=1m
|
kubectl -n apps wait helmrelease/podinfo --for=condition=ready --timeout=1m
|
||||||
- name: Debug failure
|
- name: Debug failure
|
||||||
if: failure()
|
if: failure()
|
||||||
env:
|
|
||||||
KUBECONFIG: /tmp/${{ steps.prep.outputs.CLUSTER }}
|
|
||||||
run: |
|
run: |
|
||||||
kubectl -n flux-system get all
|
kubectl -n flux-system get all
|
||||||
kubectl -n flux-system describe po
|
kubectl -n flux-system describe po
|
||||||
kubectl -n flux-system logs deploy/source-controller
|
kubectl -n flux-system logs deploy/source-controller
|
||||||
kubectl -n flux-system logs deploy/kustomize-controller
|
kubectl -n flux-system logs deploy/kustomize-controller
|
||||||
- name: Cleanup
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
kind delete cluster --name ${{ steps.prep.outputs.CLUSTER }}
|
|
||||||
rm /tmp/${{ steps.prep.outputs.CLUSTER }}
|
|
||||||
|
|
||||||
conform-k3s:
|
conform-k3s:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user