Skip to content

Commit

Permalink
Merge pull request #66 from displague/spec_required
Browse files Browse the repository at this point in the history
require spec in managed types
  • Loading branch information
displague authored Jun 16, 2021
2 parents cb55cfa + c52b551 commit d7c7e86
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis/ports/v1alpha1/assignment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Assignment struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec AssignmentSpec `json:"spec,omitempty"`
Spec AssignmentSpec `json:"spec"`
Status AssignmentStatus `json:"status,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion apis/server/v1alpha2/device_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type Device struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec DeviceSpec `json:"spec,omitempty"`
Spec DeviceSpec `json:"spec"`
Status DeviceStatus `json:"status,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion apis/vlan/v1alpha1/virtualnetwork_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type VirtualNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec VirtualNetworkSpec `json:"spec,omitempty"`
Spec VirtualNetworkSpec `json:"spec"`
Status VirtualNetworkStatus `json:"status,omitempty"`
}

Expand Down
2 changes: 2 additions & 0 deletions package/crds/ports.metal.equinix.com_assignments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ spec:
type: object
type: array
type: object
required:
- spec
type: object
served: true
storage: true
Expand Down
2 changes: 2 additions & 0 deletions package/crds/server.metal.equinix.com_devices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ spec:
type: object
type: array
type: object
required:
- spec
type: object
served: true
storage: true
Expand Down
2 changes: 2 additions & 0 deletions package/crds/vlan.metal.equinix.com_virtualnetworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ spec:
type: object
type: array
type: object
required:
- spec
type: object
served: true
storage: true
Expand Down

0 comments on commit d7c7e86

Please sign in to comment.