Skip to content

Commit 1ef7d96

Browse files
Merge pull request #107 from vdice/fix/contentDigest-yaml-tag
fix(bundle.go): add omitempty to contentDigest yaml tag
2 parents de80204 + 3106b28 commit 1ef7d96

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bundle/bundle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type LocationRef struct {
8181
type BaseImage struct {
8282
ImageType string `json:"imageType" yaml:"imageType"`
8383
Image string `json:"image" yaml:"image"`
84-
Digest string `json:"contentDigest,omitempty" yaml:"contentDigest"`
84+
Digest string `json:"contentDigest,omitempty" yaml:"contentDigest,omitempty"`
8585
Size uint64 `json:"size,omitempty" yaml:"size,omitempty"`
8686
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
8787
MediaType string `json:"mediaType,omitempty" yaml:"mediaType,omitempty"`

testdata/bundles/bundle.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ description: something
55
invocationImages:
66
- imageType: docker
77
image: deislabs/invocation-image:1.0
8-
contentDigest: ""
98
labels:
109
os: Linux
1110
images:
1211
server:
1312
imageType: docker
1413
image: nginx:1.0
15-
contentDigest: ""
1614
description: complicated
1715
parameters:
1816
enabled:

0 commit comments

Comments
 (0)