Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of [HPR-1184] hcp: support HCP_PROJECT_ID environment variable into release/1.9.x #12453

Conversation

hc-github-team-packer
Copy link
Collaborator

Backport

This PR is auto-generated from #12452 to be assessed for backporting due to the inclusion of the label backport/1.9.x.

The below text is copied from the body of the original PR.


With HCP supporting multi-projects now, Packer needs to take it into account when picking a project from an organisation.

This commit adds two cases:

  1. multiple projects are defined, none is supplied through HCP_PROJECT_ID: in this case we will default to the oldest project defined for the organisation.

  2. we supply HCP_PROJECT_ID: in this case, we pick the project with the corresponding ID, and use it for publishing metadata.

@hc-github-team-packer hc-github-team-packer requested a review from a team as a code owner June 1, 2023 18:39
@hc-github-team-packer hc-github-team-packer merged commit 1f79121 into release/1.9.x Jun 1, 2023
@hc-github-team-packer hc-github-team-packer force-pushed the backport/fix_hcp_multiproject/hideously-concrete-pug branch from 0a97600 to ffd229d Compare June 1, 2023 18:39
@hc-github-team-packer hc-github-team-packer deleted the backport/fix_hcp_multiproject/hideously-concrete-pug branch June 1, 2023 18:39
@github-actions
Copy link

github-actions bot commented Jul 2, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants