-
Notifications
You must be signed in to change notification settings - Fork 103
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
Enable workspace and organization Health Assessment (drift detection) setting management #462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Could you also include a Changelog update?
Super interested in this feature. @annawinkler is there anything else that needs to be added to get this PR reviewed/merged? Are you waiting for the tests to run successfully? @rexredinger any thoughts on these? Not sure if it is a flaky test, or an actual config error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇 This is looking really good! I have a few small suggestions and then this PR will be ready to go!
Updated workspace test with the
|
Co-authored-by: Anna Winkler <[email protected]>
2b84ce7
to
86befda
Compare
organization.go
Outdated
@@ -68,6 +68,7 @@ type Organization struct { | |||
CostEstimationEnabled bool `jsonapi:"attr,cost-estimation-enabled"` | |||
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"` | |||
Email string `jsonapi:"attr,email"` | |||
AssessmentsEnforced bool `jsonapi:"attr,assessments-enforced"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 Could you add this attribute in alphabetical order?
workspace.go
Outdated
@@ -115,6 +115,7 @@ type Workspace struct { | |||
CanQueueDestroyPlan bool `jsonapi:"attr,can-queue-destroy-plan"` | |||
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"` | |||
Description string `jsonapi:"attr,description"` | |||
AssessmentsEnabled bool `jsonapi:"attr,assessments-enabled"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 Could you add this attribute in alphabetical order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 🍪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
🚨 This has been updated to support and test against the settings changes described here 🚨
Description
Allow go-tfe to access and manage drift detection setting for workspaces in TFC.
Testing plan
External links
- tfe provider PR
Output from tests
Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.