Skip to content

Commit

Permalink
Minor cleanups on kubevirt related structs
Browse files Browse the repository at this point in the history
* Remove `omitempty` from Image string
* Restore alphabetical order in the Images struct

Signed-off-by: Roman Mohr <rmohr@redhat.com>
  • Loading branch information
rmohr committed Mar 15, 2022
1 parent 9dfda84 commit 66eb782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Artifact struct {
}

type KubeVirtContainerDisk struct {
Image string `json:"image,omitempty"`
Image string `json:"image"`
}

// Images contains images available in cloud providers
Expand All @@ -60,8 +60,8 @@ type Images struct {
Aws *AwsImage `json:"aws,omitempty"`
Gcp *GcpImage `json:"gcp,omitempty"`
Ibmcloud *ReplicatedObject `json:"ibmcloud,omitempty"`
PowerVS *ReplicatedObject `json:"powervs,omitempty"`
KubeVirt *KubeVirtContainerDisk `json:"kubevirt,omitempty"`
PowerVS *ReplicatedObject `json:"powervs,omitempty"`
}

// ReplicatedImage represents an image in all regions of an AWS-like cloud
Expand Down

0 comments on commit 66eb782

Please sign in to comment.