Skip to content

Serve node IP and instance ID to the network policy agent via gRPC #3686

Serve node IP and instance ID to the network policy agent via gRPC

Serve node IP and instance ID to the network policy agent via gRPC #3686

name: Automatic Pull Request test
on:
pull_request:
branches:
- "master"
- "release*"
- "sdkv2*"
permissions:
contents: read
jobs:
unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # refs/tags/v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # refs/tags/v7.0.0
with:
go-version: "1.26"
check-latest: true
- name: Set up tools
run: |
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/cmd/goimports@latest
# Install ginkgo version from go.mod
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
- name: Run code checks
run: |
make check-format
make vet
- name: Build
run: make build-linux
- name: Build tests
run: make build-test-binaries
- name: Helm lint
run: make helm-lint
- name: Unit test
run: make unit-test
- name: Upload code coverage
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # refs/tags/v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
docker-build-arch:
name: Build Docker images (${{ matrix.arch }})
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-latest
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # refs/tags/v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # refs/tags/v4.2.0
- name: Build CNI image
run: make docker
docker-build:
name: Build Docker images
needs: docker-build-arch
runs-on: ubuntu-latest
steps:
- run: echo "All docker builds completed successfully"
docker-build-init-arch:
name: Build Docker init images (${{ matrix.arch }})
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-latest
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # refs/tags/v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # refs/tags/v4.2.0
- name: Build CNI Init image
run: make docker-init
docker-build-init:
name: Build Docker init images
needs: docker-build-init-arch
runs-on: ubuntu-latest
steps:
- run: echo "All docker init builds completed successfully"