Skip to content

Commit

Permalink
Revert "feat(vd): support filesystem mode (#300)" (#323)
Browse files Browse the repository at this point in the history
This reverts commit 4b147f7.

Signed-off-by: Pavel Tishkov <[email protected]>
  • Loading branch information
fl64 authored Aug 30, 2024
1 parent 0353618 commit f04f53e
Show file tree
Hide file tree
Showing 22 changed files with 149 additions and 617 deletions.
4 changes: 2 additions & 2 deletions api/core/v1alpha2/vdcondition/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const (
Provisioning ReadyReason = "Provisioning"
// ProvisioningNotStarted indicates that the provisioning process has not started yet.
ProvisioningNotStarted ReadyReason = "ProvisioningNotStarted"
// WaitingForFirstConsumer indicates that the provisioning has been suspended: a created and scheduled virtual machine is awaited.
WaitingForFirstConsumer ReadyReason = "WaitingForFirstConsumer"
// WaitForFirstConsumer indicates that the provisioning has been suspended: a created and scheduled virtual machine is awaited.
WaitForFirstConsumer ReadyReason = "WaitForFirstConsumer"
// ProvisioningFailed indicates that the provisioning process has failed.
ProvisioningFailed ReadyReason = "ProvisioningFailed"
// Ready indicates that the import process is complete and the `VirtualDisk` is ready for use.
Expand Down
8 changes: 8 additions & 0 deletions api/core/v1alpha2/virtual_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,18 @@ type VirtualDisk struct {
}

type VirtualDiskSpec struct {
BindingMode *VirtualDiskBindingMode `json:"bindingMode,omitempty"`
DataSource *VirtualDiskDataSource `json:"dataSource,omitempty"`
PersistentVolumeClaim VirtualDiskPersistentVolumeClaim `json:"persistentVolumeClaim"`
}

type VirtualDiskBindingMode string

const (
VirtualDiskBindingModeWaitForFirstConsumer VirtualDiskBindingMode = "WaitForFirstConsumer"
VirtualDiskBindingModeImmediate VirtualDiskBindingMode = "Immediate"
)

type VirtualDiskStatus struct {
DownloadSpeed *StatusSpeed `json:"downloadSpeed,omitempty"`
Capacity string `json:"capacity,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions api/core/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions crds/doc-ru-virtualdisk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ spec:
properties:
spec:
properties:
bindingMode:
description: |
Типы режимов привязки диска:
* `WaitForFirstConsumer` — отложить создание диска до тех пор, пока использующая этот диск виртуальная машина не будет назначена на узел.
* `Immediate` — начать создание диска, не дожидаясь создания виртуальной машины.
dataSource:
description: |
Тип источника, из которого будет создан диск. Если источник (.spec.dataSource) отсутствует, то будет создан пустой диск.
Expand Down
10 changes: 10 additions & 0 deletions crds/virtualdisk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ spec:
required:
- persistentVolumeClaim
properties:
bindingMode:
type: string
enum:
- "WaitForFirstConsumer"
- "Immediate"
description: |
The types of disk binding modes are:
* `WaitForFirstConsumer` — delay the provisioning of a disk until a `VirtualMachine` that uses the disk is scheduled.
* `Immediate` — start creating the disk without waiting for the scheduling of the virtual machine.
persistentVolumeClaim:
type: object
description: |
Expand Down

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions images/cdi-artifact/patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,3 @@ Do not manage DataVolume CRD with cdi-operator. Module will install this CRD usi
#### `011-change-storage-class-for-scratch-pvc.patch`

Set the storage class name for the scratch pvc from the original pvc that will own the scratch pvc, or set it to an empty value if not available.

#### `012-add-caps-for-deckhouse-provisioners.patch`

Add capabilities for deckhouse provisioners to cdi StorageProfile.

#### `013-support-converting-images-to-different-formats.patch`

Support for converting images to different formats.
Loading

0 comments on commit f04f53e

Please sign in to comment.