Skip to content

Commit

Permalink
Bump golang 1.18 and k8s 1.24 (#209)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Sch <[email protected]>
  • Loading branch information
SchSeba authored Jun 14, 2022
1 parent d5784b1 commit ba420ed
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
build:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x]
go-version: [1.17.x, 1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
TARGET: amd64
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

Expand Down
24 changes: 14 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@ $(BUILDDIR)/$(BINARY_NAME): $(GOFILES) | $(BUILDDIR)
# Tools

GOLINT = $(GOBIN)/golint
$(GOBIN)/golint: | $(BASE) ; $(info Building golint...)
$Q go get -u golang.org/x/lint/golint
$(GOBIN)/golint: | $(BASE) ; $(info Installing golint...)
$Q go install golang.org/x/lint/golint

GOCOVMERGE = $(GOBIN)/gocovmerge
$(GOBIN)/gocovmerge: | $(BASE) ; $(info Building gocovmerge...)
$Q go get github.com/wadey/gocovmerge
$(GOBIN)/gocovmerge: | $(BASE) ; $(info Installing gocovmerge...)
$Q go install github.com/wadey/gocovmerge

GOCOV = $(GOBIN)/gocov
$(GOBIN)/gocov: | $(BASE) ; $(info Building gocov...)
$Q go get github.com/axw/gocov/...
$(GOBIN)/gocov: | $(BASE) ; $(info Installing gocov...)
$Q go install github.com/axw/gocov/...

GOCOVXML = $(GOBIN)/gocov-xml
$(GOBIN)/gocov-xml: | $(BASE) ; $(info Building gocov-xml...)
$Q go get github.com/AlekSi/gocov-xml
$(GOBIN)/gocov-xml: | $(BASE) ; $(info Installing gocov-xml...)
$Q go install github.com/AlekSi/gocov-xml

GO2XUNIT = $(GOBIN)/go2xunit
$(GOBIN)/go2xunit: | $(BASE) ; $(info Building go2xunit...)
$Q go get github.com/tebeka/go2xunit
$(GOBIN)/go2xunit: | $(BASE) ; $(info Installing go2xunit...)
$Q go install github.com/tebeka/go2xunit


# Tests
Expand Down Expand Up @@ -140,6 +140,10 @@ image: | $(BASE) ; $(info Building Docker image...) @ ## Build SR-IOV CNI docker

# Misc

.PHONY: deps-update
deps-update: ; $(info Updating dependencies...) @ ## Update dependencies
@go mod tidy && go mod vendor

.PHONY: clean
clean: | $(BASE) ; $(info Cleaning...) @ ## Cleanup everything
@cd $(BASE) && $(GO) clean --modcache --cache --testcache
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SR-IOV CNI plugin works with [SR-IOV device plugin](https://github.com/k8snetwor

## Build

This plugin uses Go modules for dependency management and requires Go 1.13+ to build.
This plugin uses Go modules for dependency management and requires Go 1.17+ to build.

To build the plugin binary:

Expand Down
12 changes: 11 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/k8snetworkplumbingwg/sriov-cni

go 1.13
go 1.17

require (
github.com/containernetworking/cni v0.8.1
Expand All @@ -9,5 +9,15 @@ require (
github.com/onsi/gomega v0.0.0-20151007035656-2152b45fa28a
github.com/stretchr/testify v1.4.0
github.com/vishvananda/netlink v1.0.1-0.20190924205540-07ace697bea4
)

require (
github.com/coreos/go-iptables v0.4.5 // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/safchain/ethtool v0.0.0-20190326074333-42ed695e3de8 // indirect
github.com/stretchr/objx v0.1.0 // indirect
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc // indirect
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
)

0 comments on commit ba420ed

Please sign in to comment.