Skip to content

Commit

Permalink
bump k8s to v1.30.3
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian committed Jul 19, 2024
1 parent 65db5f5 commit f114928
Show file tree
Hide file tree
Showing 57 changed files with 1,146 additions and 1,626 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ lint:
@GOOS=linux gosec -exclude=G204,G301,G306,G402,G404,G601 -exclude-dir=test -exclude-dir=pkg/client ./...

.PHONY: gofumpt
gofumpt: gofumpt
gofumpt:
gofumpt -w -extra .

.PHONY: lint-windows
Expand Down
6 changes: 5 additions & 1 deletion cmd/cni/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ func main() {
// must ensure that the goroutine does not jump from OS thread to thread
runtime.LockOSThread()

funcs := skel.CNIFuncs{
Add: cmdAdd,
Del: cmdDel,
}
about := fmt.Sprintf("CNI kube-ovn plugin %s", versions.VERSION)
skel.PluginMain(cmdAdd, nil, cmdDel, version.All, about)
skel.PluginMainFuncs(funcs, version.All, about)
}

func cmdAdd(args *skel.CmdArgs) error {
Expand Down
8 changes: 5 additions & 3 deletions cmd/webhook/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/klog/v2"
"k8s.io/klog/v2/klogr"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
ctrlwebhook "sigs.k8s.io/controller-runtime/pkg/webhook"

ovnv1 "github.com/kubeovn/kube-ovn/pkg/apis/kubeovn/v1"
Expand Down Expand Up @@ -61,7 +61,7 @@ func main() {
pflag.Parse()

// set logger for controller-runtime framework
ctrl.SetLogger(klogr.New())
ctrl.SetLogger(klog.NewKlogr())

// Create a webhook server.
hookServer := ctrlwebhook.NewServer(ctrlwebhook.Options{
Expand All @@ -72,7 +72,9 @@ func main() {
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
// disable metrics to avoid port conflict
MetricsBindAddress: "0",
Metrics: server.Options{
BindAddress: "0",
},
HealthProbeBindAddress: util.JoinHostPort(os.Getenv("POD_IP"), *healthProbePort),
})
if err != nil {
Expand Down
218 changes: 109 additions & 109 deletions go.mod

Large diffs are not rendered by default.

1,058 changes: 299 additions & 759 deletions go.sum

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions hack/update-codegen-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
# set GOPROXY you like
GOPROXY="https://goproxy.cn"

PROJECT_PACKAGE=github.com/kubeovn/kube-ovn
docker run -it --rm \
-v ${PWD}:/go/src/${PROJECT_PACKAGE}\
-v ${PWD}/hack/boilerplate.go.txt:/tmp/fake-boilerplate.txt \
-e PROJECT_PACKAGE=${PROJECT_PACKAGE} \
-e CLIENT_GENERATOR_OUT=${PROJECT_PACKAGE}/pkg/client \
-e APIS_ROOT=${PROJECT_PACKAGE}/pkg/apis \
-e GROUPS_VERSION="kubeovn:v1" \
-e GENERATION_TARGETS="deepcopy,client,informer,lister" \
-v ${PWD}:/app \
-e GOPROXY=${GOPROXY} \
quay.io/slok/kube-code-generator:v1.26.0
ghcr.io/zhangzujian/kube-code-generator:v0.2.1 \
--boilerplate-path ./hack/boilerplate.go.txt \
--apis-in ./pkg/apis \
--go-gen-out ./pkg/client

go mod tidy
4 changes: 2 additions & 2 deletions mocks/pkg/ovs/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 60 additions & 50 deletions pkg/apis/kubeovn/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions pkg/client/clientset/versioned/doc.go

This file was deleted.

6 changes: 2 additions & 4 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f114928

Please sign in to comment.