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

Add sites manager to nodeunit and nodegroup #289

Merged
merged 54 commits into from Nov 29, 2021

Conversation

attlee-wang
Copy link
Member

@attlee-wang attlee-wang commented Nov 29, 2021

What type of PR is this?

** enhancement **

What this PR does:

Add sites manager to nodeunit and nodegroup

SuperEdge puts forward the concept of ServiceGroup in the first version of open source in 2020, as shown below:

image

However, the NodeUnit and NodeGroup resources have not been instantiated, and they have been managed through labels. When the user wants to see what resources his NodeUnit and NodeGroup resources have, it is quite cumbersome and needs to filter by label. For this reason, users have put forward a strong demand to visualize NodeUnit and NodeGroup.

Talk about the benefits of visualization:

-You can digitize your physical sites everywhere, and directly use CR to perform digital management of sites in the K8s cluster;
-A single physical site can be divided into multiple logical sites, and multiple logical sites can form a NodeGroup; (a node can belong to multiple logical site NodeUnits at the same time)
-A NodeGroup can be bound to a set of applications in the cloud, using the capabilities of ServiceGroup in the cloud, once an application is submitted, and deployed to different logical sites at the same time;
-The usage is fully compatible with ServiceGroup. ServiceGroup is an abstraction of applications, and NodeGroup is an abstraction of resources. The two can be combined flexibly to run applications.

Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
@attlee-wang attlee-wang added enhancement New feature or request size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 29, 2021
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Signed-off-by: attleewang <attleewang@tencent.com>
Copy link
Contributor

@dodiadodia dodiadodia left a comment

Choose a reason for hiding this comment

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

LGTM

@dodiadodia dodiadodia merged commit 7de1ffd into superedge:main Nov 29, 2021
@@ -80,9 +80,10 @@ const (

// label
const (
EdgeNodeLabelKey = "superedge.io/edge-node"
EdgeNodeLabelKey = "superedge.io/node-edge"

Choose a reason for hiding this comment

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

I think this change should be applied in other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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.

None yet

3 participants