Skip to content

Commit

Permalink
Edge-Node-Cluster: cluster admission additions
Browse files Browse the repository at this point in the history
ZInfoKubeCluster needs a cluster_id which should match the
id in config.EdgeNodeCluster.cluster_id

Track node entrance into or out of a cluster with
KubeNodeInfo.admission_status (NodeAdmission)

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
  • Loading branch information
andrewd-zededa authored and eriknordmark committed Sep 27, 2024
1 parent 554b224 commit dd9a2f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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;
}

0 comments on commit dd9a2f1

Please sign in to comment.