Skip to content

Commit

Permalink
Edge-Node-Cluster VMI additions
Browse files Browse the repository at this point in the history
Track VirtualMachineInstance for eve VMs.

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
  • Loading branch information
andrewd-zededa authored and eriknordmark committed Oct 15, 2024
1 parent 60db108 commit 6c1ffcd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
37 changes: 37 additions & 0 deletions proto/info/edge_node_cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ message KubeNodeCondition {

// Condition state
bool set = 2;

// last_transition_time is the last time the Condition changed
google.protobuf.Timestamp last_transition_time = 3;
}

// Cluster Admission status of the eve node
Expand Down Expand Up @@ -269,3 +272,37 @@ enum KubeComp {
KUBE_COMP_CDI = 5;
KUBE_COMP_LONGHORN = 6;
}

// KubeVMIStatus is the VirtualMachineInstancePhase
// Refer to: https://pkg.go.dev/kubevirt.io/api/core/v1#VirtualMachineInstancePhase
enum KubeVMIStatus {
KUBE_VMI_STATUS_UNSPECIFIED = 0;
KUBE_VMI_STATUS_PENDING = 1;
KUBE_VMI_STATUS_SCHEDULING = 2;
KUBE_VMI_STATUS_SCHEDULED = 3;
KUBE_VMI_STATUS_RUNNING = 4;
KUBE_VMI_STATUS_SUCCEEDED = 5;
KUBE_VMI_STATUS_FAILED = 6;
KUBE_VMI_STATUS_UNKNOWN = 7;
}

// KubeVMIInfo is the VMI status of eve VM apps
message KubeVMIInfo {
// Name of the VirtualMachineInstance
string name = 1;

// Status (VirtualMachineInstance.Status.Phase)
KubeVMIStatus status = 2;

// Creation Time of the VirtualMachineInstance
google.protobuf.Timestamp creation_time = 3;

// LastTransitionTime is the last time is_ready changed
google.protobuf.Timestamp last_transition_time = 4;

// IsReady is true if the VMI has a Ready Condition which is true
bool is_ready = 5;

// NodeName is the current node (kubernetes.io/hostname) the VMI is running on
string node_name = 6;
}
5 changes: 4 additions & 1 deletion proto/info/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1352,4 +1352,7 @@ message ZInfoKubeCluster {
// Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed
// in to the node by the controller.
string cluster_id = 5;
}

// Virtual Machines running on the cluster
repeated KubeVMIInfo eve_vm_apps = 6;
}

0 comments on commit 6c1ffcd

Please sign in to comment.