feat(bakery/Azure): Changes to extract shared-image-gallery image name from logs #561
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is for resolving spinnaker/spinnaker#5448.
When using Azure provider if we have a custom packer template which creates shared gallery image , the "Image" output variable still reference the managed image which also gets created as a part of the shared image gallery version. It is possible to create shared image gallery images by adding extension attributes in bake stage json as it is passed on to the packer template as variables. However the rosco azure bake handler only scraps Managed image id which is also created in the due process. But if one were to create shared gallery image, then the idea is that we don't need managed image id reference anymore. So the output could reference the shared image gallery id and this could be in turn used for deploy. This PR is for that.
Samples changes to packer json and extended attributes in bake stage are as below
Packer changes to include shared image gallery
Bake stage additional attributes could be added to extended attribute as below