Skip to content

Commit

Permalink
bump k8s to v1.27.13 (#3966)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian committed May 6, 2024
1 parent 621026c commit 43e664d
Show file tree
Hide file tree
Showing 39 changed files with 166 additions and 5,405 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
SHELL = /bin/bash

include Makefile.e2e

REGISTRY = kubeovn
DEV_TAG = dev
RELEASE_TAG = $(shell cat VERSION)
Expand Down Expand Up @@ -584,6 +582,11 @@ ipam-bench:
go test -timeout 30m -bench='^BenchmarkIPAM' -benchtime=10000x test/unittest/ipam_bench/ipam_test.go -args -logtostderr=false
go test -timeout 90m -bench='^BenchmarkParallelIPAM' -benchtime=10x test/unittest/ipam_bench/ipam_test.go -args -logtostderr=false

.PHONY: kubectl-ko-log
kubectl-ko-log:
kubectl ko log all
tar -zcvf kubectl-ko-log.tar.gz kubectl-ko-log/

.PHONY: clean
clean:
$(RM) dist/images/kube-ovn dist/images/kube-ovn-cmd
Expand Down
2 changes: 1 addition & 1 deletion cmd/daemon/cniserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func CmdMain() {
util.LogFatalAndExit(err, "failed to initialize node gateway")
}

stopCh := signals.SetupSignalHandler()
stopCh := signals.SetupSignalHandler().Done()
podInformerFactory := kubeinformers.NewSharedInformerFactoryWithOptions(config.KubeClient, 0,
kubeinformers.WithTweakListOptions(func(listOption *v1.ListOptions) {
listOption.FieldSelector = fmt.Sprintf("spec.nodeName=%s", config.NodeName)
Expand Down
2 changes: 1 addition & 1 deletion cmd/ovn_ic_controller/ovn_ic_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CmdMain() {
util.LogFatalAndExit(err, "failed to parse config")
}

stopCh := signals.SetupSignalHandler()
stopCh := signals.SetupSignalHandler().Done()
ctl := ovn_ic_controller.NewController(config)
ctl.Run(stopCh)
}
2 changes: 1 addition & 1 deletion cmd/speaker/speaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func CmdMain() {
util.LogFatalAndExit(err, "failed to parse config")
}

stopCh := signals.SetupSignalHandler()
stopCh := signals.SetupSignalHandler().Done()
ctl := speaker.NewController(config)

go func() {
Expand Down
9 changes: 4 additions & 5 deletions cmd/webhook/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ func init() {
}

func main() {
var port int
klog.Infof(versions.String())

port = *pflag.Int("port", 8443, "The port webhook listen on.")
port := pflag.Int("port", 8443, "The port webhook listen on.")

klogFlags := flag.NewFlagSet("klog", flag.ExitOnError)
klog.InitFlags(klogFlags)
Expand All @@ -66,10 +65,10 @@ func main() {
ctrl.SetLogger(klogr.New())

// Create a webhook server.
hookServer := &ctrlwebhook.Server{
Port: port,
hookServer := ctrlwebhook.NewServer(ctrlwebhook.Options{
Port: *port,
CertDir: hookServerCertDir,
}
})

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Expand Down
6 changes: 3 additions & 3 deletions dist/images/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt upgrade -y && apt install ca-certificates python3 hostname libunwind8 netbase \
ethtool iproute2 ncat libunbound-dev procps libatomic1 kmod iptables \
ethtool iproute2 ncat libunbound8 procps libatomic1 kmod iptables \
tcpdump ipset curl uuid-runtime openssl inetutils-ping iputils-tracepath arping ndisc6 \
logrotate dnsutils net-tools strongswan strongswan-pki libcharon-extra-plugins \
libcharon-extauth-plugins libstrongswan-extra-plugins libstrongswan-standard-plugins -y --no-install-recommends && \
Expand All @@ -95,10 +95,10 @@ RUN mkdir -p /var/run/openvswitch && \
mkdir -p /opt/cni/bin

ARG ARCH
ENV CNI_VERSION=v1.3.0
ENV CNI_VERSION=v1.4.1
RUN curl -sSf -L --retry 5 https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | tar -xz -C . ./loopback ./portmap ./macvlan

ENV KUBE_VERSION="v1.28.8"
ENV KUBE_VERSION="v1.28.9"

RUN curl -L https://dl.k8s.io/${KUBE_VERSION}/kubernetes-client-linux-${ARCH}.tar.gz | tar -xz -C . && cp ./kubernetes/client/bin/kubectl /usr/bin/kubectl \
&& chmod +x /usr/bin/kubectl && rm -rf ./kubernetes
Expand Down
210 changes: 53 additions & 157 deletions go.mod

Large diffs are not rendered by default.

459 changes: 98 additions & 361 deletions go.sum

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions test/e2e/cyclonus.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions test/e2e/framework/daemonset.go

This file was deleted.

87 changes: 0 additions & 87 deletions test/e2e/framework/docker/container.go

This file was deleted.

71 changes: 0 additions & 71 deletions test/e2e/framework/docker/exec.go

This file was deleted.

Loading

0 comments on commit 43e664d

Please sign in to comment.