Skip to content

Commit 5db804e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into downstreammerge_20250425
2 parents ced1ea7 + ad9b168 commit 5db804e

31 files changed

+538
-87
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
python-version: 3.x
3939
- run: pip install mkdocs-material
40+
- run: pip install mkdocs-awesome-pages-plugin # Install the missing plugin
4041
- run: pip install $(mkdocs-get-deps)
4142
- run: mkdocs build
4243
- name: Setup Pages
@@ -60,6 +61,7 @@ jobs:
6061
python-version: 3.x
6162
- run: |
6263
pip install mkdocs-material
64+
pip install mkdocs-awesome-pages-plugin # Install the missing plugin
6365
pip install $(mkdocs-get-deps)
6466
- run: mkdocs build
6567
- name: Upload Artifact (Test)

dist/READMEcontainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ kubelet.
8484

8585
$ cd images && make
8686
builds the default centos based image from Dockerfile
87-
$ make fedora
87+
$ make fedora-image
8888
builds the image with the fedora
8989

9090
Once the image is built it must be tagged and pushed to a docker image repo

docs/developer-guide/image-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ To build images locally, use the following [Makefile](https://github.com/ovn-kub
2121

2222
```bash
2323
$ cd dist/images
24-
$ make fedora
25-
$ make ubuntu
24+
$ make fedora-image
25+
$ make ubuntu-image
2626
```
2727

2828
The build will create an image called ovn-kube-fedora:latest or ovn-kube-ubuntu:latest, which can be re-tagged.
40.1 KB
Loading

docs/images/ovn-inside-k8s.png

-40.4 KB
Loading

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![ovn-kubernetes-logo](images/ovn-inside-k8s.png)
1+
![ovn-kubernetes-logo](images/ovn-inside-k8s-stacked.png)
22

33
# OVN-Kubernetes: A Robust Kubernetes Networking Provider
44

docs/installation/launching-ovn-kubernetes-on-kind.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Build the image for fedora and launch the KIND Deployment
4444
4545
```
4646
$ pushd dist/images
47-
$ make fedora
47+
$ make fedora-image
4848
$ popd
4949

5050
$ pushd contrib
@@ -70,7 +70,7 @@ $ OCI_BIN=podman
7070
Then build,
7171
7272
```
73-
$ make fedora
73+
$ make fedora-image
7474
$ popd
7575
```
7676
@@ -319,7 +319,7 @@ $ cd go-controller/
319319
$ make
320320
321321
$ cd ../dist/images/
322-
$ make fedora
322+
$ make fedora-image
323323
324324
$ cd ../../contrib/
325325
$ KIND_IPV4_SUPPORT=false KIND_IPV6_SUPPORT=true ./kind.sh
@@ -423,7 +423,7 @@ $ cd go-controller/
423423
$ make
424424
425425
$ cd ../dist/images/
426-
$ make fedora
426+
$ make fedora-image
427427
428428
$ cd ../../contrib/
429429
$ KIND_IPV4_SUPPORT=true KIND_IPV6_SUPPORT=true K8S_VERSION=v1.32.3 ./kind.sh

docs/installation/launching-ovn-kubernetes-with-helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ networking:
6464
- Optional: build local image and load it into Kind nodes
6565
```
6666
# cd dist/images
67-
# make ubuntu
67+
# make ubuntu-image
6868
# docker tag ovn-kube-ubuntu:latest ghcr.io/ovn-kubernetes/ovn-kubernetes/ovn-kube-ubuntu:master
6969
# kind load docker-image ghcr.io/ovn-kubernetes/ovn-kubernetes/ovn-kube-ubuntu:master
7070
```

docs/observability/ovn-observability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ As of Aug 2024, the kernel need to be built from the source, therefore to try th
4545
- rebuild the kernel with the current master branch from [Linus' tree](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git)
4646
- to rebuild on fedora: https://docs.fedoraproject.org/en-US/quick-docs/kernel-build-custom/#_building_a_vanilla_upstream_kernel
4747
- Build an ovn-kubernetes image that uses the latest OVS/OVN code:
48-
`OVS_BRANCH=main make -C dist/images fedora-dev`
49-
- Start kind with that image, use `-ov localhost/ovn-kube-fedora-dev:latest` flag with `kind.sh` script.
48+
`OVS_BRANCH=main make -C dist/images fedora-dev-local-gw-deployment`
49+
- Start kind with that image, use `-ov localhost/ovn-daemonset-fedora:latest` flag with `kind.sh` script.
5050

5151
## Workflow Description
5252

go-controller/cmd/ovnkube/ovnkube.go

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"k8s.io/klog/v2"
2323
kexec "k8s.io/utils/exec"
2424

25+
"github.com/ovn-org/libovsdb/client"
26+
2527
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/clustermanager"
2628
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/config"
2729
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/controllermanager"
@@ -529,6 +531,7 @@ func runOvnKube(ctx context.Context, runMode *ovnkubeRunMode, ovnClientset *util
529531
}()
530532
}
531533

534+
var ovsClient client.Client
532535
if runMode.node {
533536
wg.Add(1)
534537
go func() {
@@ -543,13 +546,20 @@ func runOvnKube(ctx context.Context, runMode *ovnkubeRunMode, ovnClientset *util
543546
// register ovnkube node specific prometheus metrics exported by the node
544547
metrics.RegisterNodeMetrics(ctx.Done())
545548

549+
ovsClient, err = libovsdb.NewOVSClient(ctx.Done())
550+
if err != nil {
551+
nodeErr = fmt.Errorf("failed to initialize libovsdb vswitchd client: %w", err)
552+
return
553+
}
546554
nodeControllerManager, err := controllermanager.NewNodeControllerManager(
547555
ovnClientset,
548556
watchFactory,
549557
runMode.identity,
550558
wg,
551559
eventRecorder,
552-
routemanager.NewController())
560+
routemanager.NewController(),
561+
ovsClient,
562+
)
553563
if err != nil {
554564
nodeErr = fmt.Errorf("failed to create node network controller: %w", err)
555565
return
@@ -575,9 +585,11 @@ func runOvnKube(ctx context.Context, runMode *ovnkubeRunMode, ovnClientset *util
575585
metricsScrapeInterval := 30
576586
defer cancel()
577587

578-
ovsClient, err := libovsdb.NewOVSClient(ctx.Done())
579-
if err != nil {
580-
return fmt.Errorf("failed to initialize libovsdb vswitchd client: %w", err)
588+
if ovsClient == nil {
589+
ovsClient, err = libovsdb.NewOVSClient(ctx.Done())
590+
if err != nil {
591+
return fmt.Errorf("failed to initialize libovsdb vswitchd client: %w", err)
592+
}
581593
}
582594
if config.Metrics.ExportOVSMetrics {
583595
metrics.RegisterOvsMetricsWithOvnMetrics(ovsClient, metricsScrapeInterval, ctx.Done())

0 commit comments

Comments
 (0)