You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add default agent pool and execution mode support to projects (#1185)
* Add ExcludedWorkspaces and AllowedProjects to AgentPools
* Add DefaultExecutionMode, DefaultAgentPool, and SettingOverwrites to Project
* Update CHANGELOG
* Address lint failures
* Update mocks
* Private receiver to reduce duplication
* Prefer t.Cleanup over defer
* Use require.Equal() or require.NotNil() to prevent downstream panics when accessing the slice by index
* Remove unnecessary org subscription upgrades
* Added comment to updateArrayAttribute
---------
Co-authored-by: Chris Trombley <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
* Adds `CanceledAt`, `RunEvents`, `TriggerReason` field to `Run` by @jpadrianoGo[#1161](https://github.com/hashicorp/go-tfe/pull/1161)
9
9
* Adds `CreatedAt` field to `AgentPool` by @jpadrianoGo[#1150](https://github.com/hashicorp/go-tfe/pull/1150)
10
10
* Adds `CreatedBy` relation to `AgentToken` by @jpadrianoGo[#1149](https://github.com/hashicorp/go-tfe/pull/1149)
11
+
* Adds `AllowedProjects` and `ExcludedWorkspaces` to `AgentPool` by @tylerwolf[#1185](https://github.com/hashicorp/go-tfe/pull/1185)
12
+
* Adds `DefaultExecutionMode`, `DefaultAgentPool`, and `SettingOverwrites` to `Project` by @tylerwolf[#1185](https://github.com/hashicorp/go-tfe/pull/1185)
// updateArrayAttribute is a helper function to update array attributes of an agent pool, such as allowed workspaces, allowed projects, or excluded workspaces.
320
+
// Note: This function does not validate the options parameter, so it should be used with caution. It is intended to be used with options structs
0 commit comments