Fix to avoid adding FoU devices for pods that don't use its egress #466
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
defaults: | |
run: | |
working-directory: v2 | |
env: | |
go-version: "1.21" | |
cache-version: 1 | |
jobs: | |
test: | |
name: Small test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: Cache tools | |
id: cache-tools | |
uses: actions/cache@v3 | |
with: | |
path: | | |
v2/bin | |
v2/include | |
key: cache-${{ env.cache-version }}-go-${{ env.go-version }}-${{ hashFiles('v2/Makefile') }} | |
- run: make setup | |
if: steps.cache-tools.outputs.cache-hit != 'true' | |
- run: make test | |
- run: make test-nodenet | |
timeout-minutes: 10 | |
- run: make test-founat | |
timeout-minutes: 10 | |
- run: make check-generate | |
e2e: | |
name: End-to-end Test | |
strategy: | |
matrix: | |
kindest-node: ["1.25.9", "1.26.4", "1.27.1"] | |
ip-version: ["ipv4", "ipv6"] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.go-version }} | |
- run: make image | |
- run: make certs | |
- name: Enable docker IPv6 mode | |
if: matrix.ip-version == 'ipv6' | |
working-directory: v2/e2e | |
run: | | |
sudo mkdir -p /etc/docker | |
sudo cp daemon.json /etc/docker/daemon.json | |
sudo systemctl restart docker.service | |
sleep 10 | |
echo TEST_IPV6=true >> $GITHUB_ENV | |
- run: make start KUBERNETES_VERSION=${{ matrix.kindest-node }} | |
working-directory: v2/e2e | |
- run: make install-coil | |
working-directory: v2/e2e | |
- run: make test | |
working-directory: v2/e2e | |
- run: make logs | |
working-directory: v2/e2e | |
if: always() | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: logs-${{ matrix.ip-version }}-${{ matrix.kindest-node }}.tar.gz | |
path: v2/e2e/logs.tar.gz |