generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
use_shallow_replication
field for Compute Gallery/SIG builds, f…
…ix replica count type (#337) * Add `use_shallow_replication` option for SIG image versions & Cast replica count at int64 to fix it being parsed as the wrong number Fix sig replica count - use shallow replication in acc test - fix units Make generate Add tests Update docs-partials/builder/azure/arm/SharedImageGalleryDestination-not-required.mdx Co-authored-by: Wilken Rivera <[email protected]> Update builder/azure/arm/step_publish_to_shared_image_gallery.go Co-authored-by: Wilken Rivera <[email protected]> Implement the rest of Wilken's suggested changes Add validation, fix acceptance tests with new name for shallow replication field make generate Fix make generate Fix make generate after rebasing on main Add comments and tests * Apply suggestions from code review Co-authored-by: Wilken Rivera <[email protected]> * Update builder/azure/arm/step_publish_to_shared_image_gallery.go Co-authored-by: Wilken Rivera <[email protected]> * Fix brackets after code review, gofmt config file, and make generate * Fix replica count check should only happen when using shallow replication * Shallow Replication region check didn't work so I changed it to be a bit simpler, be stricter about requiring replica count = 1 rather than > 1 for shallow replication --------- Co-authored-by: Wilken Rivera <[email protected]>
- Loading branch information
1 parent
55fc16b
commit d042ec9
Showing
12 changed files
with
365 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.