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

[WIP] r/policy_set: add support for VCS policy sets #80

Merged
merged 3 commits into from
Jun 20, 2019

Conversation

vancluever
Copy link
Contributor

This adds the necessary changes to allow for VCS policy sets.

VCS-backed policy sets are defined by supplying the vcs_repo - and
optionally, policies_path, arguments to the tfe_policy_set resource.
This is in lieu of policy_ids.

Changing either vcs_repo or policies_path will result in a new
resource being forced.

@vancluever vancluever changed the title r/policy_set: add support for VCS policy sets [WIP] r/policy_set: add support for VCS policy sets Jun 14, 2019
@vancluever
Copy link
Contributor Author

Depends on hashicorp/go-tfe#77.

Copy link
Contributor

@davidcelis davidcelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks right to me 👍 will probably want @chrisarcand's review too once he's back!

go.mod Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
tfe/resource_tfe_policy_set.go Show resolved Hide resolved
tfe/resource_tfe_policy_set.go Show resolved Hide resolved
tfe/resource_tfe_policy_set.go Show resolved Hide resolved
tfe/resource_tfe_policy_set.go Outdated Show resolved Hide resolved
tfe/resource_tfe_policy_set.go Outdated Show resolved Hide resolved
tfe/resource_tfe_policy_set_test.go Outdated Show resolved Hide resolved
tfe/resource_tfe_policy_set_test.go Show resolved Hide resolved
website/docs/r/policy_set.html.markdown Outdated Show resolved Hide resolved
@vancluever vancluever force-pushed the vcs-policy-set-support branch 2 times, most recently from 07a60ea to 7e6fc50 Compare June 18, 2019 16:50
This adds the necessary changes to allow for VCS policy sets.

VCS-backed policy sets are defined by supplying the vcs_repo - and
optionally, policies_path, arguments to the tfe_policy_set resource.
This is in lieu of policy_ids.

Changing either vcs_repo or policies_path will result in a new
resource being forced.
@vancluever
Copy link
Contributor Author

I think the changes here should comprise most of the final changes necessary to put this through.

@svanharmelen I'd still like to hear your thoughts/response of the ordering of the options. I'll defer to your judgement here.

@ghost ghost added the dependencies label Jun 19, 2019
@svanharmelen
Copy link
Contributor

@vancluever I made a few small changes to make sure all logic is consistent (mainly the tests). It would be great if you could review and run the tests one more time to make sure they all pass. If they do, this should be good to be merged and released 👍

@vancluever
Copy link
Contributor Author

Looks good, this all passes. I will be merging shortly!

@vancluever vancluever merged commit c9cd744 into master Jun 20, 2019
@radditude radditude deleted the vcs-policy-set-support branch April 14, 2021 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants