Skip to content

Commit

Permalink
add a struct for a migration config
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 8f0e86b commit a2893a1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/api/v1/deepcopy_generated.go

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

7 changes: 7 additions & 0 deletions pkg/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,13 @@ type VirtualMachineInstanceMigrationState struct {
MigrationUID types.UID `json:"migrationUid,omitempty"`
}

type MigrationConfig struct {
// The time for GiB of data to wait for the migration to be completed before aborting it
CompletionTimeoutPerGiB int64 `json:"completionTimeoutPerGiB,omitempty"`
// The time to wait for live migration to make progress in transferring data.
ProgressTimeout int64 `json:"progressTimeout,omitempty"`
}

// ---
// +k8s:openapi-gen=true
type VirtualMachineInstanceMigrationMethod string
Expand Down
7 changes: 7 additions & 0 deletions pkg/api/v1/types_swagger_generated.go

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

0 comments on commit a2893a1

Please sign in to comment.