Commit Graph
18303 Commits
Author SHA1 Message Date
Megan Marsh 12a89719b7 Merge pull request #11304 from hashicorp/partifact_source
Partifact source
2021-10-04 14:38:39 -07:00
Megan Marsh 5d1f8e1424 fix mocks 2021-10-04 13:26:38 -07:00
Megan Marsh a28a865ce5 add ID 2021-10-04 11:55:17 -07:00
Megan Marsh db47309f02 update modfile 2021-10-04 11:27:44 -07:00
teddylear 11f5da8b5a fix: Removing test debris (#11300)
* fix: fixing provisioner file test debris

* fix: Setting hcl2_upgrade command create directory permissions to 0755
2021-10-04 10:58:27 -04:00
Bryce Kalow 92f5f9c070 website: upgrade dependencies (#11299)
* upgrades website deps

* add expect-error to get around incorrect prop types
2021-10-04 10:35:33 -04:00
dependabot[bot]andWilken Rivera 01483c4d72 Bump dessant/lock-threads from 2 to 3 (#11293)
* Bump dessant/lock-threads from 2 to 3

Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 2 to 3.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update input names for latest version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wilken Rivera <[email protected]>
2021-10-04 10:30:58 -04:00
Megan Marsh 3c5c61cd2a add source image id to build from PARtifact 2021-10-01 15:52:26 -07:00
Megan Marsh 06fb597185 import new sdk and fix compatability issues 2021-10-01 14:58:33 -07:00
Wilken Rivera 725c2dc835 Merge pull request #11298 from hashicorp/azr/scaleway-docs
use remote scaleway docs
2021-09-30 20:16:43 -04:00
Adrien Delorme 8f832f6126 use remote scaleway docs 2021-09-30 16:15:41 +02:00
Adrien Delorme fee561f8ea use the github.com/scaleway/packer-plugin-scaleway now (#11296) 2021-09-29 16:33:58 +02:00
packer-ci 8eac348d97 Putting source back into Dev Mode 2021-09-28 20:27:07 +00:00
packer-ci 6e6aa3f863 Cut version 1.7.6 v1.7.6 2021-09-28 19:55:18 +00:00
packer-ci 55cd239f92 cut version 1.7.6 2021-09-28 19:55:17 +00:00
packer-ci 4c6ddd8bf5 update changelog 2021-09-28 19:55:17 +00:00
Wilken Rivera 4ea4dbd0c4 Update CHANGELOG 2021-09-28 15:40:37 -04:00
Wilken Rivera 2e799fc4ac Update CHANGELOG.md
Add call out for Go 1.17 bump
2021-09-28 15:17:20 -04:00
Wilken Rivera 29d751a17c Merge pull request #11290 from hashicorp/nq.update-alert-banner-hcg2021
Update alert banner for HashiConf Global 2021
2021-09-28 01:36:46 -04:00
Wilken Rivera dbf1380321 Prune go modules file post go 1.17 upgrade (#11282)
```
go mod tidy
```
2021-09-24 17:04:18 +02:00
Noel Quiles 0d9e3eac0f Update alert banner for HashiConf Global 2021 2021-09-18 23:44:51 -04:00
Adrien Delorme 3457ed2312 Fail when an "hcp-packer-image" datasource could not be found (#11268)
* Fail when the Packer Service datasource could not be found

* Update datasource/hcp-packer-image/data.go
2021-09-15 13:53:41 +02:00
packer-ci 63865b4fd6 Putting source back into Dev Mode 2021-09-15 01:07:49 +00:00
packer-ci 881e5f80ba Cut version 1.7.5 v1.7.5 2021-09-14 21:02:51 +00:00
packer-ci aec7ec4ea8 cut version 1.7.5 2021-09-14 21:02:50 +00:00
packer-ci 7b012849fd update changelog 2021-09-14 21:02:50 +00:00
Wilken Rivera 89bf55e364 Merge pull request #11270 from hashicorp/unregister-future-datasource
Unregister packer-image-iteration datasource
2021-09-14 16:44:55 -04:00
Wilken Rivera 0dbc900698 Update CHANGELOG 2021-09-14 16:33:39 -04:00
Wilken Rivera 5c38202b46 Merge pull request #11271 from hashicorp/hcp-packer-registry-doc-changes
hcp packer registry doc changes
2021-09-14 16:27:49 -04:00
Wilken Rivera 05d77c96cf Temporarily remove hcp_packer_registry docs until out of internal beta 2021-09-14 15:58:30 -04:00
Wilken Rivera b2a15e51c7 Rename slug to bucket_name 2021-09-14 15:57:36 -04:00
Wilken Rivera d6a5234412 Unregister packer-image-iteration datasource
This change temporarily renames the type of the packer-image-iteration
datasource to prevent it from being automatically registered by the
Packer plugin tooling. The datasource is fully functional, but not quite
ready for full usage. It will be updated in a future release.
2021-09-14 14:25:48 -04:00
Wilken Rivera b10df3abb7 Update HCP Packer registry image extraction, validation, publishing logic for registry capable plugins (#11221)
* Update handling of registry artifacts

This change uses the github.com/hashicorp/packer-plgin-sdk/packer/registryimage for querying
Artifact State for HCP Registry Image metadata. To handle the conversion
of the RPC response, mapstructure was introduced to conversion state
data into an registryimage.Image before publishing to a image bucket.

* Update to use registry image from packersdk

* Rename internal registry service pkg

* Update vendored plugins to latest version

* The latest release of Amazon, GoogleCompute, and Azure have support
  for publishing images to the HCP Packer registry.
2021-09-13 21:07:54 -04:00
Megan Marsh d9a768094a update changelog 2021-09-08 15:43:05 -07:00
Wilken Rivera 7aa6b699ab Add environment variable precheck for datasource acceptance tests (#11254)
Before change
```
=== Failed
=== FAIL: datasource/hcp-packer-iteration TestAccDatasource_HCPPackerIteration (1.97s)
    pluginacc.go:143: Error running plugin acceptance tests: Bad exit code. Logfile: packer_log_hcp_packer_iteration_datasource_basic_test.txt
        Logs can be found at /Users/wilkenrivera/Development/packer/datasource/hcp-packer-iteration/packer_log_hcp_packer_iteration_datasource_basic_test.txt
        and the acceptance test template can be found at /Users/wilkenrivera/Development/packer/datasource/hcp-packer-iteration/hcp_packer_iteration_datasource_basic_test.pkr.hcl

DONE 690 tests, 5 skipped, 1 failure in 387.912s
```

After change
```
=== SKIP: datasource/hcp-packer-iteration TestAccDatasource_HCPPackerIteration (0.00s)
    data_acc_test.go:35: Acceptance tests skipped unless envs "HCP_CLIENT_ID" and "HCP_CLIENT_SECRET" are set
```
2021-09-08 12:16:33 +02:00
Wilken Rivera 6d0d5c89f3 Update plugin directory check for ci (#11253)
* Update plugin directory check for ci

On CIRCLECI the default plugin direction is under `$HOME/.config/packer`
this changes updates the acctest just a bit to check if we are running
in a CIRCLECI env.

* Apply same logic to cleanup step
2021-09-07 16:14:59 -04:00
Matthieu MORELandWilken Rivera 079a680492 Update golangci to v1.42.0 (#11252)
* Update Makefile

* Update .golangci.yml

Remove comment as version pinning is no longer needed.

Co-authored-by: Wilken Rivera <[email protected]>
2021-09-07 16:13:50 -04:00
Megan Marsh 9123c87027 Merge pull request #11246 from hashicorp/new_data_sources
New data sources
2021-09-07 10:35:12 -07:00
Megan Marsh c25c27b6b6 add docs pages for new data sources 2021-09-07 10:27:25 -07:00
Megan Marsh f7e568f919 Merge pull request #11248 from hashicorp/data_source_dependencies
allow datasources to use other datasources
2021-09-07 09:37:46 -07:00
Megan Marsh 6c7aadf08f return diags earlier 2021-09-07 09:26:53 -07:00
Megan Marsh 295bac0c5f remove unnecessary complexity 2021-09-07 09:21:00 -07:00
Megan Marsh 20a83dff4f remove unneeded check. 2021-09-07 07:47:39 -07:00
Megan Marsh 48de1fc7da allow datasources to use other datasources
create a null data source for testing. We can choose to document if we want to, but it's a convenience for us

add a test to catch cyclic datasource dependency, update tests to include out of order data sources, and update the code to clean up the returned diagnostics generated from the recursive evaluation

PR review comments
2021-09-03 16:10:39 -07:00
Megan Marsh 9cab184006 tidied modfile 2021-09-03 16:05:13 -07:00
Megan Marsh fd80f8da8c Add two new data sources -- hcp-packer-iteration and hcp-packer-image. These data sources together will allow users to query hcp_packer for the image_ids they need to use as source images to their builds, with a simple UI and clear outputs.
add quick and dirty acceptance test for hcp packer image iteration and hcp packer image data sources
PR review
linting
2021-09-03 15:51:09 -07:00
Adrien Delorme 27d89ac8d4 update all plugins + pin go to go 1.17 (#11237)
* up plugins and get rid of a dependency loop from packer to packer
2021-09-02 12:15:13 +02:00
Kevin Wang 8e026209da fix(website): start script reloads app on save (#11244) 2021-09-01 17:07:39 -04:00
Megan Marsh d6792820f4 Merge pull request #11227 from hashicorp/hcp_data_source
Implement hcp packer data source.
2021-08-31 09:33:48 -07:00
Adrien DelormeandSylvia Moss 9bdeb84cda Clarify what the labels of a source block do. (#11236)
Co-authored-by: Sylvia Moss <[email protected]>
2021-08-31 16:13:47 +02:00