diff --git a/proto/info/edge_node_cluster.proto b/proto/info/edge_node_cluster.proto index c39f715..081f998 100644 --- a/proto/info/edge_node_cluster.proto +++ b/proto/info/edge_node_cluster.proto @@ -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 @@ -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; +} \ No newline at end of file diff --git a/proto/info/info.proto b/proto/info/info.proto index b41c706..a4885ed 100644 --- a/proto/info/info.proto +++ b/proto/info/info.proto @@ -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; +} \ No newline at end of file