@@ -43,14 +43,19 @@ type VirtualDiskSpec struct {
43
43
}
44
44
45
45
type VirtualDiskStatus struct {
46
- DownloadSpeed VirtualDiskDownloadSpeed `json:"downloadSpeed"`
47
- Capacity string `json:"capacity,omitempty"`
48
- Target DiskTarget `json:"target"`
49
- Progress string `json:"progress,omitempty"`
50
- UploadCommand string `json:"uploadCommand,omitempty"`
51
- Phase DiskPhase `json:"phase"`
52
- FailureReason string `json:"failureReason"`
53
- FailureMessage string `json:"failureMessage"`
46
+ DownloadSpeed VirtualDiskDownloadSpeed `json:"downloadSpeed"`
47
+ Capacity string `json:"capacity,omitempty"`
48
+ Target DiskTarget `json:"target"`
49
+ Progress string `json:"progress,omitempty"`
50
+ UploadCommand string `json:"uploadCommand,omitempty"`
51
+ Phase DiskPhase `json:"phase"`
52
+ AttachedToVirtualMachines []AttachedVirtualMachine `json:"attachedToVirtualMachines,omitempty"`
53
+ Conditions []metav1.Condition `json:"conditions,omitempty"`
54
+ ObservedGeneration int64 `json:"observedGeneration,omitempty"`
55
+ }
56
+
57
+ type AttachedVirtualMachine struct {
58
+ Name string `json:"name"`
54
59
}
55
60
56
61
type VirtualDiskDataSource struct {
@@ -80,7 +85,7 @@ type VirtualDiskDownloadSpeed struct {
80
85
}
81
86
82
87
type DiskTarget struct {
83
- PersistentVolumeClaim string `json:"persistentVolumeClaimName"`
88
+ PersistentVolumeClaim string `json:"persistentVolumeClaimName,omitempty "`
84
89
}
85
90
86
91
type VirtualDiskPersistentVolumeClaim struct {
@@ -102,8 +107,9 @@ const (
102
107
DiskPending DiskPhase = "Pending"
103
108
DiskWaitForUserUpload DiskPhase = "WaitForUserUpload"
104
109
DiskProvisioning DiskPhase = "Provisioning"
105
- DiskReady DiskPhase = "Ready"
106
110
DiskFailed DiskPhase = "Failed"
107
- DiskPVCLost DiskPhase = "PVCLost"
108
- DiskUnknown DiskPhase = "Unknown"
111
+ DiskLost DiskPhase = "Lost"
112
+ DiskReady DiskPhase = "Ready"
113
+ DiskResizing DiskPhase = "Resizing"
114
+ DiskTerminating DiskPhase = "Terminating"
109
115
)
0 commit comments