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

[proposal] Edgemesh Container Network supports CNI features #487

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

IdeaMeshDyx
Copy link
Contributor

What type of PR is this?
/kind design

What this PR does / why we need it:

This proposal provides a design for edgemesh to support CNI feature.
There are two main goals:

Implement network partitioning and container IP allocation functions, compatible with CNI standards, and ensure that the IP address of each container in the cluster is unique.
Support cross-subnet Pod IP traffic proxy and forwarding functions, compatible with CNI standards.
Which issue(s) this PR fixes:

Fixes #465

@kubeedge-bot kubeedge-bot added the kind/design Categorizes issue or PR as related to design. label Aug 4, 2023
@kubeedge-bot kubeedge-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 4, 2023
@kubeedge-bot kubeedge-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 11, 2023
@Poorunga
Copy link
Member

@IdeaMeshDyx Need fix conflict

@kubeedge-bot kubeedge-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 23, 2023
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些.bak文件,确定不用了的,删下吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@@ -2,6 +2,7 @@ package app

import (
"fmt"
"github.com/kubeedge/edgemesh/pkg/cni"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go import顺序请遵守如下规范:

  1. 内置包
  2. 第三方包
  3. 项目自身的包

用空行间隔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下方所有go文件做相同处理

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@Poorunga
Copy link
Member

Poorunga commented Oct 30, 2023

CI / Check helm package (pull_request) Failing 一直出错的原因是,你自己生成的edgemsh.tgz 文件和 github自动生成的tgz,md5不一致 @IdeaMeshDyx

建议先不要改动build/helm目录下的文件

@Poorunga
Copy link
Member

@IdeaMeshDyx 需要执行 ./hack/verify-vendor.sh 和 ./hack/update-vendor.sh 和 ./hack/update-vendor-licenses.sh 去更新vendor和licenses

go.mod Outdated
@@ -37,6 +35,11 @@ require (
sigs.k8s.io/yaml v1.2.0
)

require (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此require和上方require合并

import (
"context"
"fmt"
"github.com/kubeedge/edgemesh/pkg/apis/config/defaults"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import顺序遵循规范


import (
"fmt"
"github.com/songgao/water"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

包导入顺序

@IdeaMeshDyx IdeaMeshDyx force-pushed the cni branch 2 times, most recently from 14aa5c6 to 44a243e Compare October 31, 2023 03:58
Signed-off-by: ideameshdyx <[email protected]>
Signed-off-by: ideameshdyx <[email protected]>
@Poorunga
Copy link
Member

/lgtm
/approve

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2023
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Poorunga

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 31, 2023
@kubeedge-bot kubeedge-bot merged commit b347a40 into kubeedge:main Oct 31, 2023
7 checks passed
@IdeaMeshDyx IdeaMeshDyx deleted the cni branch November 26, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/design Categorizes issue or PR as related to design. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OSPP] Container Network supports CNI features
4 participants