Skip to content

fix(images): update digest field for a mapped image#1308

Merged
carolynvs merged 2 commits intogetporter:mainfrom
vdice:fix/img-map-content-digest
Oct 20, 2020
Merged

fix(images): update digest field for a mapped image#1308
carolynvs merged 2 commits intogetporter:mainfrom
vdice:fix/img-map-content-digest

Conversation

@vdice
Copy link
Copy Markdown
Member

@vdice vdice commented Oct 1, 2020

What does this change

  • Updates the (former) digest field for a mapped image to contentDigest, per the CNAB core spec
  • Also updates the similar field for an invocation image in some test data files

What issue does it fix

Closes #1307

Notes for the reviewer

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Signed-off-by: Vaughn Dice <vadice@microsoft.com>
Copy link
Copy Markdown
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad you noticed that digest wasn't conformant anymore. Thanks for fixing this!

I just had one question about how the struct name was being turned into a string, then this is good to go.

Comment thread pkg/runtime/runtime-manifest.go Outdated
Comment thread pkg/runtime/runtime-manifest.go Outdated
@carolynvs carolynvs self-assigned this Oct 6, 2020
Signed-off-by: Vaughn Dice <vadice@microsoft.com>
Copy link
Copy Markdown
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@carolynvs carolynvs merged commit 7e228ad into getporter:main Oct 20, 2020
@vdice vdice deleted the fix/img-map-content-digest branch October 20, 2020 16:35
carolynvs added a commit to carolynvs/porter that referenced this pull request Nov 5, 2020
This undoes an accidental change from
getporter#1308 that changed the manifest
field images.NAME.digest to images.NAME.contentDigest. This is a
breaking regression for anyone previously using images. There wasn't any
need to change the field name in the manifest, we only needed the
bundle.json to use the term contentDigest.

I have changed the manifest field back to digest, and ensured that the
user documentation for that field is up to date.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
carolynvs added a commit to carolynvs/porter that referenced this pull request Nov 5, 2020
This undoes an accidental change from
getporter#1308 that changed the manifest
field images.NAME.digest to images.NAME.contentDigest. This is a
breaking regression for anyone previously using images. There wasn't any
need to change the field name in the manifest, we only needed the
bundle.json to use the term contentDigest.

I have changed the manifest field back to digest, and ensured that the
user documentation for that field is up to date.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update digest field in images map to use contentDigest

2 participants