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 VMI additions #69

Merged
merged 2 commits into from
Oct 15, 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
883 changes: 555 additions & 328 deletions go/info/edge_node_cluster.pb.go

Large diffs are not rendered by default.

717 changes: 366 additions & 351 deletions go/info/info.pb.go

Large diffs are not rendered by default.

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;
}
78 changes: 41 additions & 37 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.

Loading
Loading