Skip to content

Commit

Permalink
add migration config to the migration spec
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 1, 2019
1 parent a2893a1 commit 5704f73
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
17 changes: 17 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4941,6 +4941,20 @@
}
}
},
"v1.MigrationConfig": {
"properties": {
"completionTimeoutPerGiB": {
"description": "The time for GiB of data to wait for the migration to be completed before aborting it",
"type": "integer",
"format": "int64"
},
"progressTimeout": {
"description": "The time to wait for live migration to make progress in transferring data.",
"type": "integer",
"format": "int64"
}
}
},
"v1.Network": {
"description": "Network represents a network type and a resource that should be connected to the vm.",
"required": [
Expand Down Expand Up @@ -5870,6 +5884,9 @@
},
"v1.VirtualMachineInstanceMigrationSpec": {
"properties": {
"configuration": {
"$ref": "#/definitions/v1.MigrationConfig"
},
"vmiName": {
"description": "The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace",
"type": "string"
Expand Down
11 changes: 10 additions & 1 deletion pkg/api/v1/deepcopy_generated.go

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

8 changes: 7 additions & 1 deletion pkg/api/v1/openapi_generated.go

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

3 changes: 2 additions & 1 deletion pkg/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ func (vl *VirtualMachineInstanceMigrationList) GetListMeta() meta.List {
// +k8s:openapi-gen=true
type VirtualMachineInstanceMigrationSpec struct {
// The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace
VMIName string `json:"vmiName,omitempty" valid:"required"`
VMIName string `json:"vmiName,omitempty" valid:"required"`
Config *MigrationConfig `json:"configuration,omitempty"`
}

// VirtualMachineInstanceMigration reprents information pertaining to a VMI's migration.
Expand Down

0 comments on commit 5704f73

Please sign in to comment.