Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update handling of image metadata before pushing to registry (#11458)
When obtaining image metadata for a HCP Packer build, Packer core will use mapstructure to decode the image metadata and validate that is has all of the required data set. Before this change Packer core would fail if there is extra metadata fields in the image metadata that Packer is not aware. This change removes the restriction of erroring on unused metadata fields. Packer should only care about the fields it knows and ignore the rest. In the future, we will add new fields to the SDK but plugins may begin sending that data sooner.
- Loading branch information