Skip to content

Commit e64de2a

Browse files
authored
chore(api): update vmop and vmsnapshot crds (#1119)
Generated by the Kubebuilder. Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
1 parent 5a17929 commit e64de2a

6 files changed

Lines changed: 19 additions & 13 deletions

File tree

api/core/v1alpha2/virtual_machine_operation.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ type VirtualMachineOperationSpec struct {
5050
// Name of the virtual machine the operation is performed for.
5151
VirtualMachine string `json:"virtualMachineName"`
5252
// Force execution of an operation.
53-
// Effect on `Restart` and `Stop`: operation performs immediately.
54-
// Effect on `Evict` and `Migrate`: enable AutoConverge feature to force migration via CPU throttling.
53+
//
54+
// * Effect on `Restart` and `Stop`: operation performs immediately.
55+
// * Effect on `Evict` and `Migrate`: enable the AutoConverge feature to force migration via CPU throttling if the `PreferSafe` or `PreferForced` policies are used for live migration.
5556
Force *bool `json:"force,omitempty"`
5657
}
5758

api/core/v1alpha2/virtual_machine_snapshot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ type VirtualMachineSnapshotSpec struct {
7373
}
7474

7575
type ResourceRef struct {
76-
// Kind of resource
76+
// Kind of the resource.
7777
Kind string `json:"kind,omitempty"`
78-
// Api version of resource
78+
// API version of the resource.
7979
ApiVersion string `json:"apiVersion,omitempty"`
80-
// Resource Name
80+
// Name of the resource.
8181
Name string `json:"name,omitempty"`
8282
}
8383

api/core/v1alpha2/zz_generated.deepcopy.go

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/pkg/apiserver/api/generated/openapi/zz_generated.openapi.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crds/doc-ru-virtualmachineoperations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
Форсирует выполнение операции.
2626
2727
* Для операций `Restart` и `Stop`: выполнить операцию немедленно.
28-
* Для операции `Evict`: включить или выключить замедление CPU, если для живой миграции используются политики `PreferSafe` или `PreferForced`.
28+
* Для операции `Evict` и `Migrate`: включить или выключить замедление CPU, если для живой миграции используются политики `PreferSafe` или `PreferForced`.
2929
status:
3030
properties:
3131
conditions:

crds/virtualmachineoperations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
Force execution of an operation.
7272
7373
* Effect on `Restart` and `Stop`: operation performs immediately.
74-
* Effect on `Evict`: enable AutoConverge feature to force migration via CPU throttling.
74+
* Effect on `Evict` and `Migrate`: enable the AutoConverge feature to force migration via CPU throttling if the `PreferSafe` or `PreferForced` policies are used for live migration.
7575
type: boolean
7676
type:
7777
description: |-

0 commit comments

Comments
 (0)