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

Merge branch 'main' from github.com/containernetworking/plugins into 'master' #40

Merged
merged 374 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
374 commits
Select commit Hold shift + click to select a range
36e1e16
Merge pull request #812 from liornoy/ginkgov2
dcbw Feb 20, 2023
6223674
ci(lint): setup yamllint linter
mmorel-35 Feb 20, 2023
86e39cf
Merge pull request #836 from mmorel-35/yamllint
squeed Feb 28, 2023
d12b81d
ci(lint): setup golangci-lint
mmorel-35 Feb 28, 2023
177e0bf
enable staticcheck linter
mmorel-35 Mar 2, 2023
16ba422
enable contextcheck linter
mmorel-35 Mar 6, 2023
3a04eb0
enable ineffassign linter
mmorel-35 Mar 6, 2023
709e775
enable nonamedreturns linter
mmorel-35 Mar 11, 2023
5a7619c
enable gosimple linter
mmorel-35 Mar 11, 2023
79f5246
enable gocritic linter
mmorel-35 Mar 12, 2023
a02bf4b
enable revive linter
mmorel-35 Mar 12, 2023
d3ee71f
Merge pull request #843 from mmorel-35/golangci-lint
squeed Mar 13, 2023
09f36a2
enable ginkgolinter linter
mmorel-35 Mar 13, 2023
c0fe3b7
remove govet and gofmt from test_linux.sh
mmorel-35 Mar 13, 2023
3bc0001
Merge pull request #854 from mmorel-35/clean-linters
squeed Mar 14, 2023
2fb0efe
enable durationcheck, predeclared, unconvert, unused and wastedassig…
mmorel-35 Mar 16, 2023
00e0d3b
build(deps): bump actions/setup-go from 3 to 4
dependabot[bot] Mar 20, 2023
d71d0f2
Fix revive linter errors
mlguerrero12 Mar 24, 2023
086f7eb
build(deps): bump actions/stale from 7 to 8
dependabot[bot] Mar 27, 2023
16d05ec
Merge pull request #867 from mlguerrero12/fixlinters
dcbw Mar 27, 2023
8813bfe
Merge pull request #855 from mmorel-35/linters
dcbw Mar 27, 2023
6c0d73e
Fix wastedassign linter errors
mlguerrero12 Mar 27, 2023
6f6345c
Merge pull request #871 from mlguerrero12/fixwastedassignlinter
squeed Apr 4, 2023
deec687
Merge pull request #853 from mmorel-35/ginkgolinter
squeed Apr 4, 2023
7bbd4d1
linter: fix ginkgolinter errors
maiqueb Apr 4, 2023
63235a2
Merge pull request #878 from maiqueb/fix-ginkgo-linter-warnings
squeed Apr 4, 2023
68a6619
Merge pull request #870 from containernetworking/dependabot/github_ac…
squeed Apr 4, 2023
47a4319
Merge pull request #861 from containernetworking/dependabot/github_ac…
squeed Apr 4, 2023
bc5f3de
go.mod: bump all deps
squeed Apr 4, 2023
cac8230
bridge, spoof check: remove drop rule index
maiqueb Mar 29, 2023
821982d
Add parameter to disable default vlan
mlguerrero12 Mar 31, 2023
43db9cc
Merge pull request #879 from squeed/bump-deps
squeed Apr 5, 2023
435ef22
build(deps): bump golang.org/x/sys from 0.6.0 to 0.7.0
dependabot[bot] Apr 5, 2023
4a6147a
Merge pull request #881 from containernetworking/dependabot/go_module…
dependabot[bot] Apr 5, 2023
10ddd9e
enable govet and unparam linters
mmorel-35 Apr 11, 2023
71aa710
Merge pull request #873 from maiqueb/mac-spoof-remove-index-when-addi…
squeed Apr 17, 2023
9f1f9a5
Merge pull request #875 from mlguerrero12/adddefaultvlanparam
squeed Apr 17, 2023
090af7d
bridge: add vlan trunk support
Jan 6, 2022
83fe87c
build: consume specific tables/chains via go-nft
maiqueb Mar 23, 2023
7dcd738
bridge, spoofcheck: only read the prerouting chain on CNI delete
maiqueb Mar 23, 2023
135292e
bridge, del: timeout after 55 secs of trying to list rules
maiqueb Apr 20, 2023
5b7a263
tuning: fix cmdCheck when using IFNAME
champtar Apr 20, 2023
c347755
Fix ValidateExpectedRoute with non default routes and nil GW
champtar Apr 20, 2023
d8fc886
Bump to golang 1.20 to pick up go1.19.6 / go1.20.1 CVE fixes
jingyuanliang Apr 21, 2023
9cf1a09
Merge pull request #829 from tjjh89017/bridge_vlan_trunk
dcbw Apr 24, 2023
c10af01
Merge pull request #880 from maiqueb/mac-spoof-improv-read-only-requi…
squeed Apr 24, 2023
c795a3c
Merge pull request #888 from jingyuanliang/go120
squeed Apr 24, 2023
00b82fb
Merge pull request #887 from champtar/route-CHECK
dcbw Apr 24, 2023
65fe256
Merge pull request #883 from mmorel-35/linter-2
squeed Apr 24, 2023
10b5639
Merge pull request #885 from champtar/tuning-CHECK
dcbw Apr 24, 2023
99b475a
build(deps): bump github.com/Microsoft/hcsshim from 0.9.8 to 0.9.9
dependabot[bot] May 1, 2023
7e91841
[sbr]: Ignore LinkNotFoundError during cmdDel
e0ne May 2, 2023
e513017
Merge pull request #891 from containernetworking/dependabot/go_module…
squeed May 3, 2023
38f18d2
Merge pull request #892 from e0ne/ignore-not-found
squeed May 3, 2023
1b2dc7c
build(deps): bump alpine in /.github/actions/retest-action
dependabot[bot] May 15, 2023
edab9ef
tap: allow for a tap device to be created as a bridge port
maiqueb Feb 17, 2023
6265f4e
Merge pull request #832 from maiqueb/tap-plugin-set-as-bridge-port
dcbw May 22, 2023
0389a29
github: remove stale issue cleanup
squeed May 25, 2023
2b097c5
Merge pull request #900 from squeed/disable-stale
squeed May 25, 2023
ca12d49
Add routes propagation for VRF plugin
korroot Mar 30, 2023
48aa2f4
Fix race conditions in DHCP test
AlinaSecret Jun 14, 2023
83029be
build(deps): bump golang.org/x/sys from 0.7.0 to 0.9.0
dependabot[bot] Jun 19, 2023
2216cff
build(deps): bump github.com/onsi/ginkgo/v2 from 2.9.2 to 2.11.0
dependabot[bot] Jun 19, 2023
470eee1
[tuning]add ability to set tx queue len
tariq1890 Jun 21, 2023
1512d72
Merge pull request #914 from tariq1890/tx-qlen
squeed Jun 26, 2023
d03b84d
Merge pull request #874 from travelping/vrf-add-routes
squeed Jun 27, 2023
ffb2e2d
Merge pull request #912 from containernetworking/dependabot/go_module…
squeed Jul 3, 2023
a7e8db0
Merge pull request #911 from containernetworking/dependabot/go_module…
squeed Jul 3, 2023
283f200
Merge pull request #897 from containernetworking/dependabot/docker/do…
squeed Jul 3, 2023
13fd3de
build(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
dependabot[bot] Jul 10, 2023
ba41448
test: install binaries using `go install`
squeed Jul 20, 2023
bf79945
Merge pull request #929 from squeed/fix-ci-cnitool-version
squeed Jul 20, 2023
2ba7f16
spoofcheck: Make use of go-nft's ApplyConfigEcho()
SirPhuttel Jun 1, 2023
719f60b
utils: iptables: Use go-iptables' ChainExists()
SirPhuttel Jul 5, 2023
3eb775c
plugins: meta: portmap: Implement a teardown() fast path
SirPhuttel Jul 5, 2023
0a100e5
meta: firewall: Fix firewalld test with non-abstract sockets
SirPhuttel Jun 27, 2023
8e69e38
test_linux.sh: Do not fail if called twice
SirPhuttel Jun 27, 2023
438548a
Merge pull request #902 from SirPhuttel/applyconfigecho
squeed Jul 20, 2023
f2574a7
Merge pull request #926 from containernetworking/dependabot/go_module…
squeed Jul 21, 2023
fb8ca5d
Merge pull request #918 from SirPhuttel/rawhide_testing
squeed Jul 21, 2023
1561794
Merge pull request #924 from SirPhuttel/go-iptables_review
squeed Jul 21, 2023
c1a7948
vrf: fix route filter to use output iface
sockmister Jul 14, 2023
8fd6306
Merge pull request #913 from AlinaSecret/dhcp/fix-race-test
squeed Jul 21, 2023
9d9ec6e
Merge pull request #927 from sockmister/vrf_filter_fix
squeed Jul 21, 2023
7c11d48
build(deps): bump github.com/coreos/go-iptables from 0.6.0 to 0.7.0
dependabot[bot] Aug 7, 2023
5f25a93
ci(lint) extend timeout to 5 min
mmorel-35 Sep 1, 2023
f955052
Merge pull request #942 from mmorel-35/patch-1
squeed Sep 4, 2023
d216b0c
build(deps): bump actions/checkout from 3 to 4
dependabot[bot] Sep 11, 2023
853b82d
build: Use POSIX sh for shell scripts
twz123 Sep 29, 2023
33ccedc
Create IPAM files with 0600 permissions
ricky-rav Oct 2, 2023
61fa963
build(deps): bump golang.org/x/sys from 0.10.0 to 0.13.0
dependabot[bot] Oct 9, 2023
6ff8e5e
Merge pull request #950 from ricky-rav/OCPBUGS-16788
dcbw Oct 12, 2023
f20b840
Merge pull request #937 from containernetworking/dependabot/go_module…
squeed Oct 16, 2023
1817253
build(deps): bump github.com/Microsoft/hcsshim from 0.9.9 to 0.11.1
dependabot[bot] Oct 16, 2023
e727ad6
Merge pull request #946 from containernetworking/dependabot/go_module…
squeed Oct 16, 2023
b66b5dd
Merge pull request #945 from containernetworking/dependabot/github_ac…
squeed Oct 16, 2023
c20da15
Merge pull request #952 from containernetworking/dependabot/go_module…
squeed Oct 16, 2023
4cf3da4
Merge pull request #948 from twz123/posix-sh
squeed Oct 16, 2023
19e5747
build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0
dependabot[bot] Oct 16, 2023
adaeedd
Merge pull request #955 from containernetworking/dependabot/go_module…
squeed Oct 16, 2023
691186c
build(deps): bump github.com/onsi/gomega from 1.27.8 to 1.28.0
dependabot[bot] Oct 16, 2023
845ef62
macvlan cmdDel: replace the loadConf function with json.unmarshal
cyclinder Oct 11, 2023
a8d4e0a
Merge pull request #949 from containernetworking/dependabot/go_module…
squeed Oct 17, 2023
37531cd
fix lint errors
squeed Oct 30, 2023
2f0faf6
Merge pull request #967 from squeed/fix-lint
squeed Oct 31, 2023
6b78761
fix workflow warnings
mmorel-35 Oct 30, 2023
aacae5c
dependabot: batch updates
squeed Oct 23, 2023
f7662a2
Merge pull request #968 from mmorel-35/patch-1
squeed Oct 31, 2023
d0d9e36
Merge pull request #961 from squeed/dependabot-batch
squeed Oct 31, 2023
28c5fae
build(deps): bump the golang group with 3 updates
dependabot[bot] Oct 31, 2023
c8c2689
Merge pull request #970 from containernetworking/dependabot/go_module…
squeed Oct 31, 2023
0b1a96f
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.56.3
dependabot[bot] Oct 31, 2023
dad27e9
Merge pull request #963 from containernetworking/dependabot/go_module…
squeed Nov 1, 2023
999ca15
macvlan: enable ipv6 ndisc_notify
zshi-redhat Nov 7, 2023
1079e11
Add ndisc_notify in ipvlan for ipv6 ndp
s1061123 Nov 13, 2023
2eee7ce
Merge pull request #974 from zshi-redhat/macvlan-ipv6-ndisc
squeed Nov 13, 2023
8c59fc1
bridge: remove useless check
arthur-zhang Oct 23, 2023
495a2cb
bridge: remove useless firstV4Addr
arthur-zhang Oct 26, 2023
5280b4d
bridge: fix spelling
arthur-zhang Oct 27, 2023
e82848a
Merge pull request #962 from arthur-zhang/dev-pr-bridge
squeed Nov 13, 2023
00406f9
Merge branch 'main' into fix/ndisc_ipvlan
s1061123 Nov 13, 2023
93a1b3d
Merge pull request #979 from s1061123/fix/ndisc_ipvlan
squeed Nov 13, 2023
f90ac41
revert some code in pr 962
arthur-zhang Nov 14, 2023
333fc9a
Merge pull request #981 from arthur-zhang/dev-revert
squeed Nov 16, 2023
6cac5d6
build(deps): bump the golang group with 3 updates
dependabot[bot] Nov 16, 2023
a4cbf13
Add CNI_NETNS_OVERRIDE for upcoming CNI change
s1061123 Oct 31, 2023
11ee4b6
Merge pull request #969 from s1061123/fix-netns-override
squeed Nov 16, 2023
e147446
Merge pull request #978 from containernetworking/dependabot/go_module…
squeed Nov 16, 2023
abee8cc
Merge pull request #954 from cyclinder/improve_cmd_del
squeed Nov 16, 2023
d708217
Bump to golang:1.21-alpine in release.sh
jingyuanliang Nov 17, 2023
8254217
build(deps): bump the golang group with 2 updates
dependabot[bot] Dec 4, 2023
3712c1c
Merge pull request #988 from containernetworking/dependabot/go_module…
squeed Dec 4, 2023
1fb5bf6
Merge pull request #982 from jingyuanliang/patch-1
squeed Dec 4, 2023
e6099fb
build(deps): bump actions/setup-go from 4 to 5
dependabot[bot] Dec 11, 2023
133a764
build(deps): bump alpine in /.github/actions/retest-action
dependabot[bot] Dec 11, 2023
b6a0e0b
Merge pull request #990 from containernetworking/dependabot/github_ac…
squeed Dec 11, 2023
7e131a0
bridge: Enable disabling bridge interface
ormergi Jan 8, 2024
14bdce5
Merge pull request #997 from ormergi/bridge-cont-iface-state
squeed Feb 2, 2024
8b2b1d2
Add github action to build binaries for each platform at release
s1061123 Jan 15, 2024
d1aada9
Merge pull request #1000 from s1061123/add-build-gh-action
squeed Feb 12, 2024
cb24406
Fix version of golangci-lint
adrianchiris Feb 13, 2024
976edfe
Merge pull request #1009 from adrianchiris/fix-lint-version
squeed Mar 11, 2024
2bae9b6
Update to Go v1.22 in CI and release
austinvazquez Feb 11, 2024
8e8410f
Merge pull request #1006 from austinvazquez/update-go-in-ci
squeed Mar 11, 2024
47373d2
build(deps): bump actions/setup-go from 3 to 5
dependabot[bot] Mar 11, 2024
0144de0
Merge pull request #1011 from containernetworking/dependabot/github_a…
squeed Mar 11, 2024
394ab0d
build(deps): bump the golang group with 5 updates
dependabot[bot] Mar 11, 2024
0729398
Merge pull request #1017 from containernetworking/dependabot/go_modul…
squeed Mar 11, 2024
9c016b5
Rename unused variables to resolve lint warnings
austinvazquez Feb 11, 2024
352e051
Update golangci-lint-action package to v4
austinvazquez Feb 11, 2024
019727a
Merge pull request #1005 from austinvazquez/update-golangci-lint-acti…
squeed Mar 11, 2024
8a3014f
build(deps): bump actions/checkout from 3 to 4
dependabot[bot] Mar 11, 2024
1b58119
Merge pull request #1010 from containernetworking/dependabot/github_a…
squeed Mar 11, 2024
c8d165d
Merge branch 'main' into dependabot/docker/dot-github/actions/retest-…
s1061123 Mar 11, 2024
8fc26ce
Merge pull request #991 from containernetworking/dependabot/docker/do…
s1061123 Mar 11, 2024
d34720b
Support DeviceID on Auxiliary Bus
adrianchiris Jan 24, 2024
ba5bdaf
Use temporary name for netdevice when moving in/out of NS
adrianchiris Jan 21, 2024
7567d28
Merge pull request #1002 from adrianchiris/use-temp-name
s1061123 Mar 12, 2024
9f1bf2a
Merge branch 'main' into support-sf
s1061123 Mar 12, 2024
c860b78
Merge pull request #1003 from adrianchiris/support-sf
s1061123 Mar 12, 2024
c464674
build(deps): bump the golang group with 4 updates
dependabot[bot] Mar 25, 2024
8ab3c63
Merge pull request #1022 from containernetworking/dependabot/go_modul…
squeed Mar 25, 2024
6f05dc3
build(deps): bump the golang group with 1 update
dependabot[bot] Apr 1, 2024
5974089
Merge pull request #1023 from containernetworking/dependabot/go_modul…
s1061123 Apr 3, 2024
52da39d
bandwidth: possibility to exclude some subnets from traffic shaping
oOraph Jun 28, 2023
ab0b386
bandwidth: possibility to specify shaped subnets or to exclude some f…
oOraph Jul 27, 2023
c666d14
bandwidth plugin: split unit tests in several files
oOraph Aug 9, 2023
78ebd8b
minor case change
oOraph Oct 17, 2023
ccc1cfa
Simplify unit test
s1061123 Apr 8, 2024
ef076af
Merge pull request #921 from oOraph/dev/exclude_subnets_from_traffic_…
s1061123 Apr 8, 2024
717b433
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0
dependabot[bot] Apr 19, 2024
670139c
Merge pull request #1027 from containernetworking/dependabot/go_modul…
s1061123 Apr 22, 2024
eb49a03
ip: include peer name in error message
samuelkarp Apr 26, 2024
ada798a
fix: close resolv.conf
testwill May 8, 2024
c053346
Merge pull request #1029 from samuelkarp/log-peer-veth-failure
s1061123 May 13, 2024
45a24d5
Merge branch 'main' into close_file
s1061123 May 13, 2024
dc704d1
Merge pull request #1034 from testwill/close_file
s1061123 May 13, 2024
427af86
Fix release script in github action
s1061123 May 14, 2024
3af6e6b
Merge pull request #1037 from s1061123/fix-buildversion
squeed May 16, 2024
3656c69
build: bump release go version
squeed May 16, 2024
9397270
dependabot: don't automatically update cni packages
squeed May 16, 2024
18d129f
Merge pull request #1039 from squeed/bump-go-version
s1061123 May 16, 2024
43139b3
Merge branch 'main' into dependabot-dont-bump-cni
s1061123 May 16, 2024
196ed2d
Merge pull request #1040 from squeed/dependabot-dont-bump-cni
s1061123 May 16, 2024
dc8b828
build(deps): bump the golang group across 1 directory with 4 updates
dependabot[bot] May 16, 2024
505f5a7
Merge pull request #1042 from containernetworking/dependabot/go_modul…
dependabot[bot] May 16, 2024
5c95925
build(deps): bump golangci/golangci-lint-action from 4 to 6
dependabot[bot] May 16, 2024
1868e4f
Merge pull request #1035 from containernetworking/dependabot/github_a…
dependabot[bot] May 16, 2024
14cad16
build(deps): bump the golang group with 2 updates
dependabot[bot] May 20, 2024
0259301
Merge pull request #1043 from containernetworking/dependabot/go_modul…
squeed May 20, 2024
0e87bcc
build(deps): bump alpine in /.github/actions/retest-action
dependabot[bot] May 27, 2024
434e9b9
Fix release tar images' owner to root
s1061123 Jun 17, 2024
518bc80
Merge pull request #1054 from s1061123/fix/1053
squeed Jun 17, 2024
b96f963
Merge pull request #1049 from containernetworking/dependabot/docker/d…
squeed Jun 17, 2024
508c94c
build(deps): bump the golang group across 1 directory with 3 updates
dependabot[bot] Jun 17, 2024
c29dc79
Merge pull request #1056 from containernetworking/dependabot/go_modul…
squeed Jun 17, 2024
d5f9ad9
build(deps): bump the golang group with 2 updates
dependabot[bot] Jun 24, 2024
11ad58c
Merge pull request #1060 from containernetworking/dependabot/go_modul…
squeed Jun 24, 2024
352c8b7
Change chown to change current dir as well
s1061123 Jun 18, 2024
acf8ddc
Merge pull request #1058 from s1061123/fix/1053b
squeed Jun 24, 2024
30078e1
.github: fix double-triggering CI
squeed Jul 15, 2024
675ca92
test: bump go version
squeed Jul 15, 2024
5188dc8
Merge pull request #1065 from squeed/bump-go
MikeZappa87 Aug 22, 2024
6269f39
Fix unnecessary retrying when the link is down in dhcp.
lisongmin Aug 21, 2024
d924f05
build: update github.com/vishvananda/netlink to 1.3.0
champtar Aug 16, 2024
7cff5db
Merge pull request #1080 from champtar/update-netlink
squeed Aug 27, 2024
07bd325
build(deps): bump the golang group across 1 directory with 4 updates
dependabot[bot] Aug 27, 2024
5def332
Merge pull request #1081 from containernetworking/dependabot/go_modul…
squeed Aug 27, 2024
0d2780f
Merge branch 'main' into main
squeed Aug 27, 2024
3653221
Merge pull request #1076 from lisongmin/main
squeed Aug 27, 2024
bdb6814
macvlan: add bcqueuelen setting
champtar Aug 16, 2024
720b1e9
Merge pull request #1074 from champtar/macvlan-bcqueuelen
squeed Aug 27, 2024
deb8ef6
Update go-iptables
danwinship Oct 22, 2023
06ba001
Update containernetworking/cni to v1.2.3 for GC
danwinship Aug 28, 2024
20f31e5
Merge pull request #1083 from danwinship/update-deps
squeed Aug 29, 2024
01b3db8
SBR: option to pass the table id (#1088)
LionelJouin Sep 9, 2024
a6d6efa
Use of Scope for routes in IPAM
LionelJouin Aug 30, 2024
729dd23
Vendor nftables library, add utils.SupportsIPTables and utils.Support…
danwinship Jul 31, 2023
61d0786
Add nftables implementation of ipmasq
danwinship Apr 4, 2023
a3ccebc
Add a backend abstraction to the portmap plugin
danwinship Jul 22, 2023
3d1968c
Fix portmap unit tests
danwinship Sep 3, 2024
01a94e1
Add nftables backend to portmap
danwinship Jul 22, 2023
03712a5
.github: add check to verify vendor directory
squeed Sep 16, 2024
cc8b1bd
dhcp: Add priority option to dhcp.
lisongmin Sep 14, 2024
e5df283
ci, go.mod: bump to go 1.23 (#1094)
squeed Sep 17, 2024
fa737f8
build(deps): bump the golang group with 3 updates
dependabot[bot] Sep 17, 2024
c11ed48
Ignore link-local routes in SBR tests
LionelJouin Sep 30, 2024
3a49cff
Fix txqueuelen being accidentally set to zero
gudmundur Sep 23, 2024
a4b80cc
host-device: use temp network namespace for rename
champtar Aug 13, 2024
8324a2e
build(deps): bump the golang group across 1 directory with 2 updates
dependabot[bot] Oct 7, 2024
8ad0361
resolve merge conflicts
h0nIg Oct 11, 2024
d44bbf2
Revert "Merge pull request #921 from oOraph/dev/exclude_subnets_from_…
h0nIg Oct 11, 2024
24b0bf9
make test working again
h0nIg Oct 11, 2024
c52e02b
add problem hint
h0nIg Oct 11, 2024
93d197c
VRF: Wait for the local/host routes to be added
LionelJouin Oct 7, 2024
e495072
build(deps): bump golang.org/x/sys in the golang group
dependabot[bot] Oct 14, 2024
d61e7e5
fix(dhcp): can not renew an ip address
lisongmin Sep 14, 2024
a4fc6f9
feat(dhcp): Cancel backoff retry on stop
lisongmin Sep 20, 2024
fec2d62
Pass status along ipam update
LionelJouin Sep 30, 2024
9296c5f
portmap: fix nftables backend
champtar Nov 5, 2024
6de8a98
ipmasq: fix nftables backend
champtar Nov 11, 2024
3ffc42c
build(deps): bump the golang group across 1 directory with 7 updates
dependabot[bot] Dec 2, 2024
7f756b4
portmap: fix iptables conditions detection
champtar Nov 5, 2024
ba8bc7d
Bump Go version to 1.23 in scripts/release.sh (#1123)
jingyuanliang Jan 6, 2025
e8c7d9b
test: enable unpriv user namespaces
squeed Jan 14, 2025
41d5485
build(deps): bump alpine in /.github/actions/retest-action
dependabot[bot] Dec 9, 2024
eded0af
build(deps): bump the golang group across 1 directory with 3 updates
dependabot[bot] Jan 14, 2025
abfac4a
Remove scripts/release.sh because of no longer used (#1137)
s1061123 Jan 15, 2025
e4ca66b
build: split CI and go.mod version
squeed Jan 6, 2025
b08eec6
Merge branch 'main' from github.com/containernetworking/plugins into …
coutinhop Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/retest-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.21

RUN apk add --no-cache curl jq

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/retest-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ runs:
using: 'docker'
image: 'Dockerfile'
env:
GITHUB_TOKEN: ${{ inputs.token }}
GITHUB_TOKEN: ${{ inputs.token }}
6 changes: 3 additions & 3 deletions .github/actions/retest-action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ curl --request GET \
--header "authorization: Bearer ${GITHUB_TOKEN}" \
--header "content-type: application/json" | jq '.workflow_runs | max_by(.run_number)' > run.json

RERUN_URL=$(jq -r '.rerun_url' run.json)
RUN_URL=$(jq -r '.rerun_url' run.json)

curl --request POST \
--url "${RERUN_URL}" \
--url "${RUN_URL}/rerun-failed-jobs" \
--header "authorization: Bearer ${GITHUB_TOKEN}" \
--header "content-type: application/json"

Expand All @@ -42,4 +42,4 @@ curl --request POST \
--header "authorization: Bearer ${GITHUB_TOKEN}" \
--header "accept: application/vnd.github.squirrel-girl-preview+json" \
--header "content-type: application/json" \
--data '{ "content" : "rocket" }'
--data '{ "content" : "rocket" }'
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "docker" # See documentation for possible values
directory: "/.github/actions/retest-action" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
golang:
patterns:
- "*"
exclude-patterns:
- "github.com/containernetworking/*"
1 change: 1 addition & 0 deletions .github/go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.23
2 changes: 1 addition & 1 deletion .github/workflows/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Re-Test Action
uses: ./.github/actions/retest-action
Expand Down
114 changes: 114 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
name: Release binaries
on:
push:
tags:
- 'v*'

jobs:
linux_release:
name: Release linux binaries
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: .github/go-version

- name: Build
env:
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: ./build_linux.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}'

- name: COPY files
run: cp README.md LICENSE bin/

- name: Change plugin file ownership
working-directory: ./bin
run: sudo chown -R root:root .

- name: Create dist directory
run: mkdir dist

- name: Create archive file
working-directory: ./bin
run: tar cfzpv ../dist/cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .

- name: Create sha256 checksum
working-directory: ./dist
run: sha256sum cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz | tee cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz.sha256

- name: Create sha512 checksum
working-directory: ./dist
run: sha512sum cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz | tee cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz.sha512

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

windows_releases:
name: Release windows binaries
runs-on: ubuntu-latest
strategy:
matrix:
goarch: [amd64]
steps:
- name: Install dos2unix
run: sudo apt-get install dos2unix

- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: .github/go-version

- name: Build
env:
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: ./build_windows.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}'

- name: COPY files
run: cp README.md LICENSE bin/

- name: Change plugin file ownership
working-directory: ./bin
run: sudo chown -R root:root .

- name: Create dist directory
run: mkdir dist

- name: Create archive file
working-directory: ./bin
run: tar cpfzv ../dist/cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .

- name: Create sha256 checksum
working-directory: ./dist
run: sha256sum cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz | tee cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz.sha256

- name: Create sha512 checksum
working-directory: ./dist
run: sha512sum cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz | tee cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz.sha512

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
71 changes: 52 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,53 @@
---
name: test

on: ["push", "pull_request"]
on:
pull_request: {}

env:
GO_VERSION: "1.22"
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le"
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le riscv64"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: .github/go-version
- uses: ibiqlik/action-yamllint@v3
with:
format: auto
- uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: -v
verify-vendor:
name: Verify vendor directory
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: .github/go-version
- name: Check module vendoring
run: |
go mod tidy
go mod vendor
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
build:
name: Build all linux architectures
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v2

go-version-file: .github/go-version
- name: Build on all supported architectures
run: |
set -e
Expand All @@ -26,9 +56,9 @@ jobs:
GOARCH=$arch ./build_linux.sh
rm bin/*
done

test-linux:
name: Run tests on Linux amd64
needs: build
runs-on: ubuntu-latest
steps:
- name: Install kernel module
Expand All @@ -37,22 +67,25 @@ jobs:
sudo apt-get install linux-modules-extra-$(uname -r)
- name: Install nftables
run: sudo apt-get install nftables

- name: Install dnsmasq(dhcp server)
run: |
sudo apt-get install dnsmasq
sudo systemctl disable --now dnsmasq
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: .github/go-version
- name: Set up Go for root
run: |
sudo ln -sf `which go` `sudo which go` || true
sudo go version
- uses: actions/checkout@v2

- name: Install test binaries
run: |
go install github.com/containernetworking/cni/cnitool@v1.2.2
go install github.com/mattn/goveralls@v0.0.12
go install github.com/modocache/gover@b58185e
go install github.com/containernetworking/cni/cnitool@latest
go install github.com/mattn/goveralls@latest
go install github.com/modocache/gover@latest

- name: test
run: PATH=$PATH:$(go env GOPATH)/bin COVERALLS=1 ./test_linux.sh
Expand All @@ -64,15 +97,15 @@ jobs:
PATH=$PATH:$(go env GOPATH)/bin
gover
goveralls -coverprofile=gover.coverprofile -service=github

test-win:
name: Build and run tests on Windows
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v2
go-version-file: .github/go-version
- name: test
run: bash ./test_windows.sh
44 changes: 44 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
issues:
exclude-rules:
- linters:
- revive
text: "don't use ALL_CAPS in Go names; use CamelCase"
- linters:
- revive
text: " and that stutters;"
- path: '(.+)_test\.go'
text: "dot-imports: should not use dot imports"

linters:
disable:
- errcheck
enable:
- contextcheck
- durationcheck
- gci
- ginkgolinter
- gocritic
- gofumpt
- gosimple
- govet
- ineffassign
- misspell
- nonamedreturns
- predeclared
- revive
- staticcheck
- unconvert
- unparam
- unused
- wastedassign

linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/containernetworking)

run:
timeout: 5m
modules-download-mode: vendor
12 changes: 12 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: default

ignore: |
vendor

rules:
document-start: disable
line-length: disable
truthy:
ignore: |
.github/workflows/*.yml
.github/workflows/*.yaml
1 change: 1 addition & 0 deletions OWNERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ This is the official list of the CNI network plugins owners:
- Matt Dupre <[email protected]> (@matthewdupre)
- Michael Cambria <[email protected]> (@mccv1r0)
- Piotr Skarmuk <[email protected]> (@jellonek)
- Michael Zappa <[email protected]> (@MikeZappa87)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ Read [CONTRIBUTING](CONTRIBUTING.md) for build and test instructions.
* `ptp`: Creates a veth pair.
* `vlan`: Allocates a vlan device.
* `host-device`: Move an already-existing device into a container.
* `dummy`: Creates a new Dummy device in the container.
#### Windows: Windows specific
* `win-bridge`: Creates a bridge, adds the host and the container to it.
* `win-overlay`: Creates an overlay interface to the container.
### IPAM: IP address allocation
* `dhcp`: Runs a daemon on the host to make DHCP requests on behalf of the container
* `host-local`: Maintains a local database of allocated IPs
* `static`: Allocate a static IPv4/IPv6 addresses to container and it's useful in debugging purpose.
* `static`: Allocate a single static IPv4/IPv6 address to container. It's useful in debugging purpose.

### Meta: other plugins
* `tuning`: Tweaks sysctl parameters of an existing interface
Expand Down
4 changes: 2 additions & 2 deletions build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
set -e
cd "$(dirname "$0")"

if [ "$(uname)" == "Darwin" ]; then
if [ "$(uname)" = "Darwin" ]; then
export GOOS="${GOOS:-linux}"
fi

Expand Down
Loading
Loading