Skip to content

Commit

Permalink
Merge pull request #36 from bgilbert/gcp
Browse files Browse the repository at this point in the history
stream: add release field to `GcpImage`
  • Loading branch information
cgwalters authored Nov 2, 2021
2 parents 2c28950 + 82e3b5e commit 226b48f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ type CloudImage struct {

// GcpImage represents a GCP cloud image
type GcpImage struct {
Project string `json:"project,omitempty"`
Project string `json:"project"`
Family string `json:"family,omitempty"`
Name string `json:"name,omitempty"`
Name string `json:"name"`
}
1 change: 1 addition & 0 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {

if releaseArch.Media.Gcp.Image != nil {
cloudImages.Gcp = &stream.GcpImage{
Release: rel.Release,
Name: releaseArch.Media.Gcp.Image.Name,
Family: releaseArch.Media.Gcp.Image.Family,
Project: releaseArch.Media.Gcp.Image.Project,
Expand Down
5 changes: 3 additions & 2 deletions stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ type AwsRegionImage = RegionImage

// GcpImage represents a GCP cloud image
type GcpImage struct {
Project string `json:"project,omitempty"`
Release string `json:"release"`
Project string `json:"project"`
Family string `json:"family,omitempty"`
Name string `json:"name,omitempty"`
Name string `json:"name"`
}

0 comments on commit 226b48f

Please sign in to comment.