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 committed Oct 9, 2024
1 parent 60db108 commit df1da8b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
34 changes: 34 additions & 0 deletions proto/info/edge_node_cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,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 CreationTime = 3;

// LastTransitionTime is the last time the Ready Condition was true
google.protobuf.Timestamp LastTransitionTime = 4;

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

// NodeName is the current node (kubernetes.io/hostname) the VMI is running on
string NodeName = 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 df1da8b

Please sign in to comment.