Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync master branch with upstream #5

Merged
merged 65 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
ec58a7f
bump golang to 1.20
yulng Mar 1, 2023
2fdbcb2
bump gopkg.in/yaml.v2
SalDaniele Mar 23, 2023
eaa631d
fix golangci-lint issues
SchSeba Apr 4, 2023
cacd058
bump golangci-lint
SchSeba Apr 4, 2023
36db6d9
Merge pull request #248 from SalDaniele/bump-yaml-v2
zeeke Apr 18, 2023
d72d197
Merge pull request #245 from yulng/goversion
adrianchiris Apr 24, 2023
1ec6269
Add codeql workflow
adrianchiris Apr 24, 2023
77c66ac
Merge pull request #254 from adrianchiris/add-codeql
adrianchiris Apr 24, 2023
41f97c1
Bump golangci-lint in Makefile as well
jiriproX May 12, 2023
c1faa08
Merge pull request #259 from jiriproX/fix_golangci_lint_bump
adrianchiris May 16, 2023
b13516f
Remove unused GODOC from Makefile
adrianchiris May 16, 2023
32577e1
update multus configuration reference link in README
frbimo May 17, 2023
d1fcccd
Enable race detection in unit tests
AlinaSecret May 17, 2023
6b7aa33
Merge pull request #262 from frbimo/fixed_link
SchSeba May 22, 2023
4cd8f7d
Merge pull request #261 from adrianchiris/cleanup/remove-godoc
SchSeba May 22, 2023
be6ec52
use make lint in the github actions
SchSeba May 22, 2023
99061d5
Merge pull request #264 from AlinaSecret/enable-race-detection
adrianchiris May 22, 2023
bf485ab
Add support to revert VF trust
SchSeba May 10, 2023
d5a1e4f
Merge pull request #265 from SchSeba/use_go_lint
SchSeba May 25, 2023
aa5c230
Merge pull request #258 from SchSeba/support_trust_restore
adrianchiris May 28, 2023
04bd07c
Add both hardware and nic mac allocation retry
SchSeba Jan 30, 2023
0368a17
Workflow Maintenance
adrianchiris May 30, 2023
660c3c9
Merge pull request #266 from adrianchiris/workflow-maintenance
SchSeba May 30, 2023
e6d4a64
fix typo in push workflows
adrianchiris May 30, 2023
80e5fcc
Merge pull request #267 from adrianchiris/fix-push-workflow
adrianchiris May 30, 2023
4e6eab8
Merge pull request #239 from SchSeba/fix_release_vf
SchSeba Jun 8, 2023
50701a0
Add support for allmulticast flag
mlguerrero12 May 30, 2023
b159972
Delete ConfIFNames parameter
mlguerrero12 Jun 13, 2023
30ed341
Merge pull request #268 from mlguerrero12/allmultisupport
adrianchiris Jun 20, 2023
f9b80d3
Revert "Add support for allmulticast flag"
adrianchiris Jun 21, 2023
33f3ed9
expose mac address in cni result
SchSeba May 2, 2023
e4dd022
Check VF ID existence in Del cmd
mlguerrero12 Jun 26, 2023
4dcc2db
Merge pull request #240 from SchSeba/expose_mac_address
adrianchiris Jun 26, 2023
be5b5e5
Merge branch 'master' into revert-268-allmultisupport
adrianchiris Jun 29, 2023
c44726a
Merge pull request #272 from k8snetworkplumbingwg/revert-268-allmulti…
adrianchiris Jul 3, 2023
f1d045a
Convert mac address to lower case always
SchSeba Jul 10, 2023
272860a
Merge pull request #274 from SchSeba/fix_mac_address_verification
SchSeba Jul 11, 2023
868c852
Merge pull request #269 from mlguerrero12/fixinterfacenamenumber
adrianchiris Jul 19, 2023
dfc5ea8
Merge pull request #273 from mlguerrero12/verifyvfidpresence
adrianchiris Jul 20, 2023
ecb3590
Remove Dockerfile.rhel7
bn222 Aug 31, 2023
5ccf2aa
Merge pull request #279 from bn222/master
adrianchiris Sep 3, 2023
6217a32
Support vlan Proto
mlguerrero12 Jul 18, 2023
f0e62c3
Merge pull request #277 from mlguerrero12/supportvlanproto
zeeke Oct 4, 2023
f76881b
Fix checks for vlan parameters
mlguerrero12 Oct 5, 2023
a953d5b
Merge pull request #281 from mlguerrero12/removevlanqosprotocheck
adrianchiris Oct 8, 2023
fdbccf1
Makefile: Provide switch for container engine
andreaskaris Jul 27, 2023
c2188d2
Add vendoring for logging
andreaskaris Jul 27, 2023
f996a66
Add debug logging for SR-IOV plugin
andreaskaris Jul 27, 2023
1bf2f23
Merge pull request #276 from andreaskaris/add-logging
zeeke Oct 11, 2023
b14f8af
Bump golang.org/x/net from 0.8.0 to 0.17.0
dependabot[bot] Oct 11, 2023
248f138
Merge pull request #284 from k8snetworkplumbingwg/dependabot/go_modul…
adrianchiris Oct 12, 2023
d572508
Set MAC address after renaming the interface
zeeke Sep 28, 2023
75f2f5e
Merge pull request #280 from zeeke/ocpbugs-19536-us
zeeke Oct 13, 2023
5de2d3a
Fix release workflow
adrianchiris Nov 29, 2023
5615abc
Merge pull request #287 from adrianchiris/fix-release-workflow
zeeke Nov 29, 2023
427e0d5
fix platform in image push release workflow
adrianchiris Nov 29, 2023
07ecbf9
Merge pull request #288 from adrianchiris/fix-ppc64le-workflow
adrianchiris Dec 3, 2023
13c9a62
Add SRIOV Operator CI lane
zeeke Oct 6, 2023
b1b909b
bump go version to 1.21
ii2day Feb 6, 2024
c9c49b5
Optionally avoid sleeping in `entrypoint.sh`
zeeke Jan 11, 2024
8136d36
Merge pull request #289 from zeeke/avoid-sleep
adrianchiris Feb 6, 2024
59356d5
Merge pull request #290 from ii2day/ii2day/go-version
adrianchiris Feb 20, 2024
bfe9de0
chore: Add OWNERS file
killianmuldoon Feb 23, 2024
4696b6b
Merge pull request #293 from killianmuldoon/pr-add-owners
SchSeba Mar 5, 2024
3e63680
Merge pull request #282 from zeeke/e2e-operator
SchSeba Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 39 additions & 8 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build-test:
strategy:
matrix:
go-version: [1.19.x]
go-version: [1.21.x]
os: [ubuntu-latest]
goos: [linux]
goarch: [amd64, arm64, ppc64le]
Expand All @@ -18,12 +18,12 @@ jobs:
GO111MODULE: on
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build test for ${{ matrix.goarch }}
env:
Expand All @@ -33,17 +33,17 @@ jobs:

- name: Go test
if: ${{ matrix.goarch }} == "amd64"
run: sudo go test ./... # sudo needed for netns change in test
run: sudo go test -race ./... # sudo needed for netns change in test

coverage:
runs-on: ubuntu-latest
needs: build-test
name: coverage
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.21.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -52,7 +52,38 @@ jobs:
run: sudo make test-coverage # sudo needed for netns change in test

- name: Coveralls
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: test/coverage/lcov.info
file: test/coverage/lcov.info

sriov-operator-e2e-test:
name: SR-IOV operator e2e tests
needs: [ build-test ]
runs-on: [ sriov ]
env:
TEST_REPORT_PATH: k8s-artifacts
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: build sriov-cni image
run: podman build -t ghaction-sriov-cni:pr-${{github.event.pull_request.number}} .

- name: Check out sriov operator's code
uses: actions/checkout@v2
with:
repository: k8snetworkplumbingwg/sriov-network-operator
path: sriov-network-operator-wc

- name: run test
run: make test-e2e-conformance-virtual-k8s-cluster-ci
working-directory: sriov-network-operator-wc
env:
LOCAL_SRIOV_CNI_IMAGE: ghaction-sriov-cni:pr-${{github.event.pull_request.number}}

- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ env.TEST_REPORT_PATH }}
path: ./sriov-network-operator-wc/${{ env.TEST_REPORT_PATH }}
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "37 4 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ go ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
52 changes: 22 additions & 30 deletions .github/workflows/image-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,51 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to Docker
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push sriov-cni
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64
tags: |
${{ env.IMAGE_NAME }}:latest-amd64
${{ steps.docker_meta.outputs.tags }}:${{ github.sha }}
${{ env.IMAGE_NAME }}:${{ github.sha }}
file: ./Dockerfile

build-and-push-arm64-sriov-cni:
name: Image Push ARM64
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to Docker
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push sriov-cni
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand All @@ -71,23 +71,23 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to Docker
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push sriov-cni
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand All @@ -98,29 +98,21 @@ jobs:

push-manifest:
runs-on: ubuntu-20.04
needs: [build-and-push-amd64-sriov-cni,build-and-push-amr64-sriov-cni,build-and-push-ppc64le-sriov-cni]
needs: [build-and-push-amd64-sriov-cni,build-and-push-arm64-sriov-cni,build-and-push-ppc64le-sriov-cni]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest for multi-arch images
run: |
# pull
docker pull ${{ env.IMAGE_NAME }}:latest-amd64
docker pull ${{ env.IMAGE_NAME }}:latest-arm64
docker pull ${{ env.IMAGE_NAME }}:latest-ppc64le
# create
docker manifest create ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:latest-amd64 ${{ env.IMAGE_NAME }}:latest-arm64 ${{ env.IMAGE_NAME }}:latest-ppc64le
# annotate
docker manifest annotate ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:latest-amd64 --arch amd64
docker manifest annotate ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:latest-arm64 --arch arm64
docker manifest annotate ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:latest-ppc64le --arch ppc64le
# push
docker manifest push ${{ env.IMAGE_NAME }}:latest
docker buildx imagetools create -t ${{ env.IMAGE_NAME }}:latest \
${{ env.IMAGE_NAME }}:latest-amd64 \
${{ env.IMAGE_NAME }}:latest-arm64 \
${{ env.IMAGE_NAME }}:latest-ppc64le
Loading
Loading