[Fix] cntlid from /etc/machine-id for unique per-node offset + FNV-1a… #114
This file contains hidden or 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: E2E Tests | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| e2e: | |
| name: E2E Controller Tests | |
| runs-on: qnap-nas | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Setup kind | |
| uses: helm/kind-action@v1.8.0 | |
| with: | |
| cluster_name: kind | |
| version: v0.20.0 | |
| node_image: kindest/node:v1.29.0 | |
| kubectl_version: v1.29.0 | |
| - name: Verify cluster | |
| run: | | |
| kubectl cluster-info | |
| kubectl get nodes | |
| - name: Install CRDs | |
| run: | | |
| # Generate CRDs using controller-gen and install them | |
| make manifests | |
| for f in config/crd/novastor.io_*.yaml; do | |
| kubectl apply -f "$f" | |
| done | |
| # Verify CRDs are installed | |
| kubectl get crd | grep novastor | |
| - name: Create test namespace | |
| run: | | |
| kubectl create namespace novastor-e2e-test --dry-run=client | |
| kubectl create namespace novastor-system --dry-run=client | |
| kubectl create namespace novastor-e2e-test || true | |
| kubectl create namespace novastor-system || true | |
| - name: Run E2E tests | |
| run: | | |
| go test -v -tags=e2e -run TestControllerDeployment ./test/e2e/... -timeout 30m | |
| env: | |
| KUBECONFIG: /home/runner/.kube/config | |
| - name: Collect logs on failure | |
| if: failure() | |
| run: | | |
| kubectl get events -n novastor-system || true | |
| kubectl describe pods -n novastor-system || true | |
| kubectl get all -n novastor-e2e-test || true |