Skip to content

Commit

Permalink
Merge pull request #1227 from caseydavenport/casey-v3.20-gobuild
Browse files Browse the repository at this point in the history
Update go-build version
  • Loading branch information
caseydavenport authored Apr 18, 2022
2 parents d86a117 + fd7dcf2 commit 27110d1
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 17 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME=github.com/projectcalico/cni-plugin
GO_BUILD_VER=v0.54
GO_BUILD_VER=v0.65.1

ORGANIZATION=projectcalico
SEMAPHORE_PROJECT_ID?=$(SEMAPHORE_CNI_PLUGIN_PROJECT_ID)
Expand Down Expand Up @@ -50,6 +50,9 @@ endif

include Makefile.common

# Override K8S_VERSION to last available hyperkube.
K8S_VERSION = v1.18.6

###############################################################################

# fail if unable to download
Expand Down
7 changes: 4 additions & 3 deletions internal/pkg/testutils/utils_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ import (
types020 "github.com/containernetworking/cni/pkg/types/020"
"github.com/containernetworking/cni/pkg/types/current"
"github.com/mcuadros/go-version"
"github.com/projectcalico/cni-plugin/pkg/k8s"
plugintypes "github.com/projectcalico/cni-plugin/pkg/types"
client "github.com/projectcalico/libcalico-go/lib/clientv3"
log "github.com/sirupsen/logrus"
kerrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/projectcalico/cni-plugin/pkg/k8s"
plugintypes "github.com/projectcalico/cni-plugin/pkg/types"
client "github.com/projectcalico/libcalico-go/lib/clientv3"

"golang.org/x/sys/windows/registry"
)

Expand Down
1 change: 1 addition & 0 deletions internal/pkg/utils/network_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/sirupsen/logrus"

"github.com/containernetworking/cni/pkg/skel"

"github.com/projectcalico/cni-plugin/pkg/types"
api "github.com/projectcalico/libcalico-go/lib/apis/v3"
calicoclient "github.com/projectcalico/libcalico-go/lib/clientv3"
Expand Down
3 changes: 2 additions & 1 deletion internal/pkg/utils/winpol/windows_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
"net"
"strings"

"github.com/projectcalico/cni-plugin/internal/pkg/utils/hcn"
"github.com/sirupsen/logrus"

"github.com/projectcalico/cni-plugin/internal/pkg/utils/hcn"
)

type PolicyMarshaller interface {
Expand Down
3 changes: 2 additions & 1 deletion pkg/dataplane/dataplane_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
package dataplane

import (
"github.com/sirupsen/logrus"

"github.com/projectcalico/cni-plugin/pkg/dataplane/linux"
"github.com/projectcalico/cni-plugin/pkg/types"
"github.com/sirupsen/logrus"
)

func getDefaultSystemDataplane(conf types.NetConf, logger *logrus.Entry) (Dataplane, error) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/dataplane/dataplane_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
package dataplane

import (
"github.com/sirupsen/logrus"

"github.com/projectcalico/cni-plugin/pkg/dataplane/windows"
"github.com/projectcalico/cni-plugin/pkg/types"
"github.com/sirupsen/logrus"
)

func getDefaultSystemDataplane(conf types.NetConf, logger *logrus.Entry) (Dataplane, error) {
Expand Down
9 changes: 5 additions & 4 deletions pkg/dataplane/windows/dataplane_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ import (
"github.com/juju/clock"
"github.com/juju/errors"
"github.com/juju/mutex"
"github.com/rakelkar/gonetsh/netsh"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/util/wait"
utilexec "k8s.io/utils/exec"

"github.com/projectcalico/cni-plugin/internal/pkg/utils/cri"
"github.com/projectcalico/cni-plugin/internal/pkg/utils/winpol"
"github.com/projectcalico/cni-plugin/pkg/types"
api "github.com/projectcalico/libcalico-go/lib/apis/v3"
calicoclient "github.com/projectcalico/libcalico-go/lib/clientv3"
"github.com/projectcalico/libcalico-go/lib/options"
"github.com/rakelkar/gonetsh/netsh"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/util/wait"
utilexec "k8s.io/utils/exec"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ import (
"github.com/howeyc/fsnotify"
"github.com/kelseyhightower/envconfig"
cp "github.com/nmrshll/go-cp"
"github.com/projectcalico/libcalico-go/lib/names"
"github.com/prometheus/common/log"
"github.com/sirupsen/logrus"
"go.etcd.io/etcd/pkg/fileutil"
"k8s.io/client-go/rest"

"github.com/projectcalico/libcalico-go/lib/names"
)

type config struct {
Expand Down
11 changes: 6 additions & 5 deletions win_tests/calico_cni_k8s_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ import (

"github.com/Microsoft/hcsshim"
"github.com/containernetworking/cni/pkg/types/current"
log "github.com/sirupsen/logrus"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"

api "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
"github.com/projectcalico/api/pkg/lib/numorstring"
"github.com/projectcalico/cni-plugin/internal/pkg/testutils"
Expand All @@ -40,11 +46,6 @@ import (
"github.com/projectcalico/libcalico-go/lib/logutils"
"github.com/projectcalico/libcalico-go/lib/names"
"github.com/projectcalico/libcalico-go/lib/options"
log "github.com/sirupsen/logrus"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down

0 comments on commit 27110d1

Please sign in to comment.