Skip to content

Commit a71aaf8

Browse files
Merge pull request #2675 from jluhrsen/4.19-sync-from-4.20-07-17-2025
[release-4.19] OCPBUGS-59530,OCPBUGS-48709: DownStream Merge Sync from 4.20 [07-17-2025]
2 parents 0ea52bf + 67c834e commit a71aaf8

File tree

293 files changed

+1306
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+1306
-491
lines changed

OWNERS

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
reviewers:
2-
- abhat
3-
- dcbw
4-
- JacobTanenbaum
52
- jcaamano
3+
- kyrtapz
4+
- martinkennelly
65
- trozet
76
- tssurya
87
approvers:
98
- abhat
10-
- danwinship
11-
- dcbw
12-
- JacobTanenbaum
139
- jcaamano
10+
- kyrtapz
11+
- martinkennelly
1412
- knobunc
1513
- trozet
1614
- tssurya

contrib/kind.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,14 +845,14 @@ build_ovn_image() {
845845
# store in local registry
846846
if [ "$KIND_LOCAL_REGISTRY" == true ];then
847847
echo "Pushing built image to local $OCI_BIN registry"
848-
$OCI_BIN push "$push_args" "$OVN_IMAGE"
848+
$OCI_BIN push $push_args "$OVN_IMAGE"
849849
fi
850850
# We should push to local registry if image is not remote
851851
elif [ "${OVN_IMAGE}" != "" -a "${KIND_LOCAL_REGISTRY}" == true ] && (echo "$OVN_IMAGE" | grep / -vq); then
852852
local local_registry_ovn_image="localhost:5000/${OVN_IMAGE}"
853853
$OCI_BIN tag "$OVN_IMAGE" $local_registry_ovn_image
854854
OVN_IMAGE=$local_registry_ovn_image
855-
$OCI_BIN push "$push_args" "$OVN_IMAGE"
855+
$OCI_BIN push $push_args "$OVN_IMAGE"
856856
fi
857857
}
858858

docs/developer-guide/developer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ This file aims to have information that is useful to the people contributing to
55
## Generating ovsdb bindings using modelgen
66

77
In order to generate the latest NBDB and SBDB bindings, we have a tool called `modelgen`
8-
which lives in the libovsdb repo: https://github.com/ovn-org/libovsdb#modelgen. It is a
8+
which lives in the libovsdb repo: https://github.com/ovn-kubernetes/libovsdb#modelgen. It is a
99
[code generator](https://go.dev/blog/generate) that uses `pkg/nbdb/gen.go` and `pkg/sbdb/gen.go`
1010
files to auto-generate the models and additional code like deep-copy methods.
1111

1212
In order to use this tool do the following:
13+
1314
```
1415
$ cd go-controller/
1516
$ make modelgen

go-controller/.golangci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ linters-settings:
3333
- default
3434
- prefix(k8s.io,sigs.k8s.io)
3535
- prefix(github.com/ovn-org)
36+
- prefix(github.com/ovn-kubernetes)
3637
- localmodule
3738
- dot
3839

@@ -41,7 +42,7 @@ linters-settings:
4142
disable:
4243
- fieldalignment
4344
- shadow
44-
45+
4546
importas:
4647
no-unaliased: true
4748
alias:
@@ -57,9 +58,9 @@ linters-settings:
5758
- pkg: sigs.k8s.io/controller-runtime
5859
alias: ctrl
5960
# Other frequently used deps
60-
- pkg: github.com/ovn-org/libovsdb/ovsdb
61+
- pkg: github.com/ovn-kubernetes/libovsdb/ovsdb
6162
alias: ""
62-
63+
6364
revive:
6465
rules:
6566
# TODO: enable recommended (default) revive rules

go-controller/cmd/ovnkube/ovnkube.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"k8s.io/klog/v2"
2323
kexec "k8s.io/utils/exec"
2424

25-
"github.com/ovn-org/libovsdb/client"
25+
"github.com/ovn-kubernetes/libovsdb/client"
2626

2727
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/clustermanager"
2828
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/config"

go-controller/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require (
3838
github.com/onsi/gomega v1.36.1
3939
github.com/openshift/api v0.0.0-20231120222239-b86761094ee3
4040
github.com/openshift/client-go v0.0.0-20231121143148-910ca30a1a9a
41-
github.com/ovn-org/libovsdb v0.7.1-0.20240820095311-ce1951614a20
41+
github.com/ovn-kubernetes/libovsdb v0.8.0
4242
github.com/prometheus/client_golang v1.19.1
4343
github.com/prometheus/client_model v0.6.1
4444
github.com/safchain/ethtool v0.3.1-0.20231027162144-83e5e0097c91

go-controller/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ github.com/openshift/client-go v0.0.0-20231121143148-910ca30a1a9a h1:4FVrw8hz0Wb
639639
github.com/openshift/client-go v0.0.0-20231121143148-910ca30a1a9a/go.mod h1:arApQobmOjZqtxw44TwnQdUCH+t9DgZ8geYPFqksHws=
640640
github.com/openshift/custom-resource-status v1.1.2 h1:C3DL44LEbvlbItfd8mT5jWrqPfHnSOQoQf/sypqA6A4=
641641
github.com/openshift/custom-resource-status v1.1.2/go.mod h1:DB/Mf2oTeiAmVVX1gN+NEqweonAPY0TKUwADizj8+ZA=
642-
github.com/ovn-org/libovsdb v0.7.1-0.20240820095311-ce1951614a20 h1:OoDvzyaK7F/ZANIIFOgb4Haj7mye3Hle0fYZZNdidSs=
643-
github.com/ovn-org/libovsdb v0.7.1-0.20240820095311-ce1951614a20/go.mod h1:dJbxEaalQl83nn904K32FaMjlH/qOObZ0bj4ejQ78AI=
642+
github.com/ovn-kubernetes/libovsdb v0.8.0 h1:cWhqWb5rCiS3yTJ6VJ7s85cElE1NWWJ2XksPGLd5WII=
643+
github.com/ovn-kubernetes/libovsdb v0.8.0/go.mod h1:8nqWvM5pjHRbI5K6Uy/yuA5MdhCnGhNFH5fsSjZD8Rc=
644644
github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g=
645645
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
646646
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=

go-controller/hack/update-modelgen.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -o pipefail
44

55
# generate ovsdb bindings
66
if ! ( command -v modelgen > /dev/null ); then
7-
echo "modelgen not found, installing github.com/ovn-org/libovsdb/cmd/modelgen"
7+
echo "modelgen not found, installing github.com/ovn-kubernetes/libovsdb/cmd/modelgen"
88
olddir="${PWD}"
99
builddir="$(mktemp -d)"
1010
cd "${builddir}"
1111
# ensure the hash value is not outdated, if wrong bindings are being generated re-install modelgen
12-
GO111MODULE=on go install github.com/ovn-org/libovsdb/cmd/modelgen@v0.7.0
12+
GO111MODULE=on go install github.com/ovn-kubernetes/libovsdb/cmd/modelgen@v0.8.0
1313
cd "${olddir}"
1414
if [[ "${builddir}" == /tmp/* ]]; then #paranoia
1515
rm -rf "${builddir}"

go-controller/observability-lib/ovsdb/bridge.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go-controller/observability-lib/ovsdb/flow_sample_collector_set.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)