Skip to content

Commit

Permalink
merge upstream/master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SchSeba committed Jan 25, 2024
2 parents 5898650 + ede5182 commit b6d9bbb
Show file tree
Hide file tree
Showing 545 changed files with 12,939 additions and 9,090 deletions.
4 changes: 0 additions & 4 deletions .ci-operator.yaml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -32,10 +32,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -53,27 +53,27 @@ jobs:
name: Golangci-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51.0
version: v1.55.2

test-coverage:
name: test-coverage
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down Expand Up @@ -107,10 +107,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x

- name: run test
run: make test-e2e-conformance-virtual-k8s-cluster-ci
Expand Down Expand Up @@ -141,10 +141,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x

- name: run test
run: make test-e2e-conformance-virtual-ocp-cluster-ci
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ tags
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
#IDE (GoLand) specific
.idea/

# test-environment files
registry-login.conf
16 changes: 9 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ run:
- pkg/client
linters-settings:
depguard:
list-type: blacklist
packages:
# logging is allowed only by logutils.Log, logrus
# is allowed to use only in logutils package
- github.com/sirupsen/logrus
packages-with-error-message:
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
rules:
main:
deny:
- pkg: github.com/sirupsen/logrus
desc: "logging is allowed only by logutils.Log"
dupl:
threshold: 100
funlen:
Expand All @@ -25,6 +23,7 @@ linters-settings:
goconst:
min-len: 2
min-occurrences: 2
ignore-tests: true
gocritic:
enabled-tags:
- diagnostic
Expand Down Expand Up @@ -118,4 +117,7 @@ issues:
- lll
- stylecheck
- goconst
- path: test/conformance/tests
linters:
- goconst

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20 AS builder
FROM golang:1.21 AS builder
WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
COPY . .
RUN make _build-manager BIN_PATH=build/_output/cmd
Expand Down
17 changes: 0 additions & 17 deletions Dockerfile.rhel7

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile.sriov-network-config-daemon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20 AS builder
FROM golang:1.21 AS builder
WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
COPY . .
RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd
Expand Down
16 changes: 0 additions & 16 deletions Dockerfile.sriov-network-config-daemon.rhel7

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile.webhook
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20 AS builder
FROM golang:1.21 AS builder
WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
COPY . .
RUN make _build-webhook BIN_PATH=build/_output/cmd
Expand Down
13 changes: 0 additions & 13 deletions Dockerfile.webhook.rhel7

This file was deleted.

23 changes: 9 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Setting SHELL to bash allows bash commands to be executed by recipes.
# This is a requirement for 'setup-envtest.sh' in the test target.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
# Setting SHELL to bash allows bash commands to be executed by recipes.
# This is a requirement for 'setup-envtest.sh' in the test target.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
CURPATH=$(PWD)
TARGET_DIR=$(CURPATH)/build/_output
BIN_DIR=$(CURPATH)/bin
Expand Down Expand Up @@ -51,13 +51,7 @@ GOLANGCI_LINT = $(BIN_DIR)/golangci-lint
# golangci-lint version should be updated periodically
# we keep it fixed to avoid it from unexpectedly failing on the project
# in case of a version bump
GOLANGCI_LINT_VER = v1.51.0

GOLANGCI_LINT = $(BIN_DIR)/golangci-lint
# golangci-lint version should be updated periodically
# we keep it fixed to avoid it from unexpectedly failing on the project
# in case of a version bump
GOLANGCI_LINT_VER = v1.46.1
GOLANGCI_LINT_VER = v1.55.2


.PHONY: all build clean gendeepcopy test test-e2e test-e2e-k8s run image fmt sync-manifests test-e2e-conformance manifests update-codegen
Expand Down Expand Up @@ -114,6 +108,7 @@ manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) webhook paths="./..." output:crd:artifacts:config=$(CRD_BASES)
cp ./config/crd/bases/* ./deployment/sriov-network-operator/crds/


sync-manifests-%: manifests
@mkdir -p manifests/$*
sed '2{/---/d}' $(CRD_BASES)/sriovnetwork.openshift.io_sriovibnetworks.yaml | awk 'NF' > manifests/$*/sriov-network-operator-sriovibnetworks_crd.yaml
Expand Down Expand Up @@ -162,7 +157,7 @@ envtest: ## Download envtest-setup locally if necessary.

GOMOCK = $(shell pwd)/bin/mockgen
gomock:
$(call go-get-tool,$(GOMOCK),github.com/golang/mock/mockgen@v1.6.0)
$(call go-install-tool,$(GOMOCK),github.com/golang/mock/mockgen@v1.6.0)

# go-install-tool will 'go install' any package $2 and install it to $1.
define go-install-tool
Expand Down Expand Up @@ -208,7 +203,7 @@ redeploy-operator-virtual-cluster:
./hack/virtual-cluster-redeploy.sh

test-e2e-validation-only:
SUITE=./test/validation ./hack/run-e2e-conformance.sh
SUITE=./test/validation ./hack/run-e2e-conformance.sh

test-e2e: generate vet manifests skopeo envtest
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir=/tmp -p path)"; source hack/env.sh; HOME="$(shell pwd)" go test ./test/e2e/... -timeout 60m -coverprofile cover.out -v
Expand Down
22 changes: 0 additions & 22 deletions Makefile.bundle

This file was deleted.

8 changes: 0 additions & 8 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ reviewers:
- dougbtv
- fepan
- s1061123
- SchSeba
- bn222
- Billy99
- wizhaoredhat
approvers:
- pliurh
- zshi-redhat
- dougbtv
- squeed
- fepan
- s1061123
- SchSeba
- bn222
- Billy99
- wizhaoredhat
component: "Networking"
subcomponent: "SR-IOV"
Loading

0 comments on commit b6d9bbb

Please sign in to comment.