Skip to content

Commit ced1ea7

Browse files
Merge pull request #2516 from maiqueb/merge-20250416
CORENET-5389,OCPBUGS-51040,OCPBUGS-54577: [DownstreamMerge] 2025-04-16
2 parents 3b45a03 + 9a73d1f commit ced1ea7

File tree

65 files changed

+2664
-853
lines changed

Some content is hidden

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

65 files changed

+2664
-853
lines changed

contrib/kind-helm.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ helm install ovn-kubernetes . -f "${value_file}" \
403403
--set k8sAPIServer=${API_URL} \
404404
--set podNetwork="${NET_CIDR_IPV4}/24" \
405405
--set serviceNetwork=${SVC_CIDR_IPV4} \
406-
--set ovnkube-identity.replicas=${MASTER_REPLICAS} \
407406
--set ovnkube-master.replicas=${MASTER_REPLICAS} \
408407
--set global.image.repository=$(get_image) \
409408
--set global.image.tag=$(get_tag) \

dist/templates/k8s.ovn.org_clusteruserdefinednetworks.yaml.j2

Lines changed: 201 additions & 4 deletions
Large diffs are not rendered by default.

dist/templates/k8s.ovn.org_userdefinednetworks.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
description: |-
5252
Lifecycle controls IP addresses management lifecycle.
5353

54-
The only allowed value is Persistent. When set, OVN Kubernetes assigned IP addresses will be persisted in an
54+
The only allowed value is Persistent. When set, the IP addresses assigned by OVN Kubernetes will be persisted in an
5555
`ipamclaims.k8s.cni.cncf.io` object. These IP addresses will be reused by other pods if requested.
5656
Only supported when mode is `Enabled`.
5757
enum:
@@ -155,7 +155,7 @@ spec:
155155
- message: JoinSubnets is only supported for Primary network
156156
rule: '!has(self.joinSubnets) || has(self.role) && self.role ==
157157
''Primary'''
158-
- message: MTU should be greater than or equal to 1280 when IPv6 subent
158+
- message: MTU should be greater than or equal to 1280 when IPv6 subnet
159159
is used
160160
rule: '!has(self.subnets) || !has(self.mtu) || !self.subnets.exists_one(i,
161161
isCIDR(i) && cidr(i).ip().family() == 6) || self.mtu >= 1280'
@@ -255,7 +255,7 @@ spec:
255255
- message: JoinSubnets is only supported for Primary network
256256
rule: '!has(self.joinSubnets) || has(self.role) && self.role ==
257257
''Primary'''
258-
- message: MTU should be greater than or equal to 1280 when IPv6 subent
258+
- message: MTU should be greater than or equal to 1280 when IPv6 subnet
259259
is used
260260
rule: '!has(self.subnets) || !has(self.mtu) || !self.subnets.exists_one(i,
261261
isCIDR(i.cidr) && cidr(i.cidr).ip().family() == 6) || self.mtu

dist/templates/ovnkube-identity.yaml.j2

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# ovnkube-identity
22
# starts ovnkube-identity
33
# it is run on the master(s).
4-
kind: Deployment
4+
kind: DaemonSet
55
apiVersion: apps/v1
66
metadata:
77
name: ovnkube-identity
88
# namespace set up by install
99
namespace: ovn-kubernetes
1010
annotations:
1111
kubernetes.io/description: |
12-
This Deployment launches the ovnkube-identity networking component.
12+
This DaemonSet launches the ovnkube-identity networking component on control-plane nodes.
1313
spec:
14-
progressDeadlineSeconds: 600
15-
replicas: {{ ovn_master_count | default(1|int) }}
1614
revisionHistoryLimit: 10
1715
selector:
1816
matchLabels:
1917
name: ovnkube-identity
20-
strategy:
18+
updateStrategy:
2119
rollingUpdate:
22-
maxSurge: 0
23-
maxUnavailable: 1
20+
maxSurge: 100%
21+
maxUnavailable: 0
2422
type: RollingUpdate
2523
template:
2624
metadata:
@@ -35,20 +33,9 @@ spec:
3533
serviceAccountName: ovnkube-identity
3634
hostNetwork: true
3735
dnsPolicy: Default
38-
39-
# required to be scheduled on a linux node with node-role.kubernetes.io/control-plane label and
40-
# only one instance of ovnkube-control-plane pod per node
41-
affinity:
42-
nodeAffinity:
43-
requiredDuringSchedulingIgnoredDuringExecution:
44-
nodeSelectorTerms:
45-
- matchExpressions:
46-
- key: node-role.kubernetes.io/control-plane
47-
operator: Exists
48-
- key: kubernetes.io/os
49-
operator: In
50-
values:
51-
- "linux"
36+
nodeSelector:
37+
node-role.kubernetes.io/control-plane: ""
38+
kubernetes.io/os: "linux"
5239
containers:
5340
- name: ovnkube-identity
5441
image: "{{ ovn_image | default('docker.io/ovnkube/ovn-daemonset:latest') }}"

docs/api-reference/userdefinednetwork-api-spec.md

Lines changed: 91 additions & 15 deletions
Large diffs are not rendered by default.

docs/developer-guide/documentation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ a GitHub Action workflow that will automatically publish the changes to the webs
6666

6767
## How to test your documentation changes?
6868

69+
### Option 1) Build and view docs with a PR
70+
71+
Pushing docs changes to the ovn-kubernetes/ovn-kubernetes project as a pull request will
72+
run the job name "[Test and Deploy static content to Pages](https://github.com/ovn-kubernetes/ovn-kubernetes/blob/master/.github/workflows/docs.yml)" which has a step to save the
73+
docs artifacts. You can download those as a .zip file, extract and view them locally.
74+
75+
### Option 2) Build and serve docs locally
76+
6977
In order to test changes locally to either mkdocs.yml or to files under docs/ folder,
7078
please follow the instructions below.
7179

docs/features/infrastructure-security-controls/node-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Some of the allowed annotations have additional checks; for instance, the IP add
6565
must match the node's [k8s.ovn.org/node-subnets](https://github.com/ovn-org/ovn-kubernetes/blob/5d56a53df520a085e629cdc71be092afed9c3f0f/go-controller/pkg/util/subnet_annotations.go#L15-L39) networks.
6666

6767

68-
## Deployment
68+
## DaemonSet
6969

7070
In Kind,
7171
the feature is enabled by default and can be disabled with `--disable-ovnkube-identity` when creating the cluster.\

docs/governance/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 133 deletions
This file was deleted.

docs/governance/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CODE_OF_CONDUCT.md

0 commit comments

Comments
 (0)