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

Edge-Node-Cluster: cluster admission additions #68

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
727 changes: 407 additions & 320 deletions go/info/edge_node_cluster.pb.go

Large diffs are not rendered by default.

707 changes: 360 additions & 347 deletions go/info/info.pb.go

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions proto/info/edge_node_cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ message KubeNodeCondition {
bool set = 2;
}

// Cluster Admission status of the eve node
enum NodeAdmission {
NODE_ADMISSION_UNSPECIFIED = 0;
// Not Clustered is the default state at first boot
NODE_ADMISSION_NOT_CLUSTERED = 1;
// Leaving can be a long lived state due to draining existing data
NODE_ADMISSION_LEAVING = 2;
// Joining can be a long lived state if inter-node networking is not operable
NODE_ADMISSION_JOINING = 3;
// Joined is reached when the node becomes Ready the first time after a request
// to join the cluster
NODE_ADMISSION_JOINED = 4;
}

message KubeNodeInfo {
// Name of the node, will match device name
string name = 1;
Expand All @@ -49,6 +63,9 @@ message KubeNodeInfo {
string internal_ip = 6;

bool schedulable = 7;

// Admission State of the local node in a cluster
NodeAdmission admission_status = 8;
}

// StorageHealthStatus is a higher level tracking status to show redundancy/failure-zone level
Expand Down
4 changes: 4 additions & 0 deletions proto/info/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1348,4 +1348,8 @@ message ZInfoKubeCluster {

// Info message on cluster storage
KubeStorageInfo storage = 4;

// Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed
// in to the node by the controller.
string cluster_id = 5;
eriknordmark marked this conversation as resolved.
Show resolved Hide resolved
}
66 changes: 34 additions & 32 deletions python/info/edge_node_cluster_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 58 additions & 58 deletions python/info/info_pb2.py

Large diffs are not rendered by default.

Loading