Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nat reuse router port external ip #3313

Merged
merged 17 commits into from
Oct 24, 2023
Merged

Nat reuse router port external ip #3313

merged 17 commits into from
Oct 24, 2023

Conversation

zbb88888
Copy link
Collaborator

@zbb88888 zbb88888 commented Oct 19, 2023

What type of this PR

Features

  • support ovn nat reuse lrp type eip
  • support ovn nat specify IP or IP cidr
  • ipam allocation should not return "nil" string, return ""(empty string) should be better
  • update ovn nat e2e
  • add independent vip e2e

limit gw nodes number to 2, in HA kind-init-ha env, we can have a normal worker node and two gw nodes.
use the ha env, we can tcpdump bfd packet between worker node and gw nodes in ovn ha chassis group case in the future.

#3287

WHAT

🤖 Generated by Copilot at ff9e3be

No summary available (Limit exceeded: required to process 52456 tokens, but only 50000 are allowed per call)

🤖 Generated by Copilot at 3d06a9f

Sing, O Muse, of the valiant deeds of the ovn developers
Who, with skill and wisdom, enhanced the vip and eip features
They added tests and validations, and refined the error messages
To make them clear and consistent, like the oracles of Delphi

HOW

🤖 Generated by Copilot at ff9e3be

No walkthrough available (Limit exceeded: required to process 52456 tokens, but only 50000 are allowed per call)

Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
@zbb88888 zbb88888 changed the title Nat reuse Nat reuse router Oct 23, 2023
@zbb88888 zbb88888 changed the title Nat reuse router Nat reuse router port eip Oct 23, 2023
@zbb88888 zbb88888 changed the title Nat reuse router port eip Nat reuse router port external ip Oct 23, 2023
@zbb88888 zbb88888 force-pushed the nat-reuse branch 3 times, most recently from 54e69ba to c3b79e3 Compare October 23, 2023 06:25
zbb88888 and others added 8 commits October 23, 2023 14:46
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Bumps the k8s-io group with 1 update: [k8s.io/sample-controller](https://github.com/kubernetes/sample-controller).

- [Commits](kubernetes/sample-controller@v0.28.2...v0.28.3)

---
updated-dependencies:
- dependency-name: k8s.io/sample-controller
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
kubeovn#3315)

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.16.2...v0.16.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: 张祖建 <zhangzujian.7@gmail.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
@zbb88888 zbb88888 marked this pull request as ready for review October 23, 2023 08:39
@zbb88888 zbb88888 mentioned this pull request Oct 23, 2023
1 task
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
charts/templates/kube-ovn-crd.yaml Show resolved Hide resolved
cmd/cmdmain.go Show resolved Hide resolved
@zbb88888 zbb88888 merged commit 1606f3c into kubeovn:master Oct 24, 2023
@zbb88888 zbb88888 deleted the nat-reuse branch October 24, 2023 03:01
zbb88888 added a commit that referenced this pull request Oct 24, 2023
* nat could use lrp type ovn eip

* nat support specify vpc ip

* e2e

* fix G307

* update ovn nat webhook

* test e2e

* add independent vip e2e

* update ovn vpc nat e2e about nats use ip or ip cidr

* fix e2e

* fix golint

* fix comment

* build(deps): bump the k8s-io group with 1 update (#3314)

Bumps the k8s-io group with 1 update: [k8s.io/sample-controller](https://github.com/kubernetes/sample-controller).

- [Commits](kubernetes/sample-controller@v0.28.2...v0.28.3)

---
updated-dependencies:
- dependency-name: k8s.io/sample-controller
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>

* build(deps): bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.16.3 (#3315)

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.16.2...v0.16.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>

* fix golang lint error (#3323)

Signed-off-by: 张祖建 <zhangzujian.7@gmail.com>

* fix gofumpt

* ovn dnat should print vpc

---------

Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: 张祖建 <zhangzujian.7@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 张祖建 <zhangzujian.7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants