Skip to content

Commit

Permalink
types: allow Vm.VmStatus.Phase be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-bednar committed Nov 21, 2017
1 parent 79bc071 commit 62edace
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3067,9 +3067,6 @@
},
"v1.VMStatus": {
"description": "VMStatus represents information about the status of a VM. Status may trail the actual\nstate of a system.",
"required": [
"phase"
],
"properties": {
"conditions": {
"description": "Conditions are specific points in VM's pod runtime.",
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ type VMStatus struct {
// Conditions are specific points in VM's pod runtime.
Conditions []VMCondition `json:"conditions,omitempty"`
// Phase is the status of the VM in kubernetes world. It is not the VM status, but partially correlates to it.
Phase VMPhase `json:"phase"`
Phase VMPhase `json:"phase,omitempty"`
// Graphics represent the details of available graphical consoles.
Graphics []VMGraphics `json:"graphics" optional:"true"`
}
Expand Down

0 comments on commit 62edace

Please sign in to comment.