Skip to content

Commit

Permalink
Merge pull request #107 from vdice/fix/contentDigest-yaml-tag
Browse files Browse the repository at this point in the history
fix(bundle.go): add omitempty to contentDigest yaml tag
  • Loading branch information
carolynvs-msft authored Aug 13, 2019
2 parents de80204 + 3106b28 commit 1ef7d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type LocationRef struct {
type BaseImage struct {
ImageType string `json:"imageType" yaml:"imageType"`
Image string `json:"image" yaml:"image"`
Digest string `json:"contentDigest,omitempty" yaml:"contentDigest"`
Digest string `json:"contentDigest,omitempty" yaml:"contentDigest,omitempty"`
Size uint64 `json:"size,omitempty" yaml:"size,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
MediaType string `json:"mediaType,omitempty" yaml:"mediaType,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions testdata/bundles/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ description: something
invocationImages:
- imageType: docker
image: deislabs/invocation-image:1.0
contentDigest: ""
labels:
os: Linux
images:
server:
imageType: docker
image: nginx:1.0
contentDigest: ""
description: complicated
parameters:
enabled:
Expand Down

0 comments on commit 1ef7d96

Please sign in to comment.