Skip to content

Commit

Permalink
types: allow Vm.VmStatus.status be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-bednar committed Nov 22, 2017
1 parent 62edace commit 040adb4
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 @@ -3135,9 +3135,6 @@
},
"v1.VirtualMachine": {
"description": "VirtualMachine is *the* VM Definition. It represents a virtual machine in the runtime environment of kubernetes.",
"required": [
"status"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources",
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 @@ -111,7 +111,7 @@ type VirtualMachine struct {
// VM Spec contains the VM specification.
Spec VMSpec `json:"spec,omitempty" valid:"required"`
// Status is the high level overview of how the VM is doing. It contains information available to controllers and users.
Status VMStatus `json:"status"`
Status VMStatus `json:"status,omitempty"`
}

func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine) {
Expand Down

0 comments on commit 040adb4

Please sign in to comment.