Skip to content

Commit

Permalink
cleaning generated desc. and nullable fields in status
Browse files Browse the repository at this point in the history
Signed-off-by: L. Pivarc <lpivarc@redhat.com>
  • Loading branch information
xpivarc committed Oct 20, 2020
1 parent a03cc6f commit 7285769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions staging/src/kubevirt.io/client-go/api/v1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ type ClockOffsetTimezone string
// Represents the clock and timers of a vmi.
//
// +k8s:openapi-gen=true
// +kubebuilder:pruning:PreserveUnknownFields
type Clock struct {
// ClockOffset allows specifying the UTC offset or the timezone of the guest clock.
ClockOffset `json:",inline"`
Expand Down
1 change: 1 addition & 0 deletions staging/src/kubevirt.io/client-go/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ type DataVolumeTemplateSpec struct {
//
// +k8s:openapi-gen=true
type VirtualMachineInstanceTemplateSpec struct {
// +kubebuilder:pruning:PreserveUnknownFields
// +nullable
ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`
// VirtualMachineInstance Spec contains the VirtualMachineInstance specification.
Expand Down

0 comments on commit 7285769

Please sign in to comment.