Skip to content

Commit d4d4bfc

Browse files
authored
v2.9.0 (#597)
1 parent 5d1870e commit d4d4bfc

31 files changed

+95
-125
lines changed

.changes/2.9.0.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## 2.9.0 (April 24, 2025)
2+
3+
BREAKING CHANGES:
4+
5+
* `AgentPool`: The new field, `spec.deletionPolicy`, is set to `retain` by default, which changes the previous default controller behavior when resources are deleted. The previous behavior corresponded to the `destroy` deletion policy value. This change is considered safer in cases of accidental resource deletion, planned migration, or other scenarios involving the deletion of a custom resource. [[GH-584](https://github.com/hashicorp/hcp-terraform-operator/pull/584)]
6+
* `Projects`: The new field, `spec.deletionPolicy` is set to `retain` by default, which changes the previous default controller when projects are deleted. The previous behavior corresponded to the `soft` deletion policy. This change takes into account migration and overall better management of resources. [[GH-569](https://github.com/hashicorp/hcp-terraform-operator/pull/569)]
7+
8+
NOTES:
9+
10+
* `AgentPool`: The field `spec.autoscaling.targetWorkspaces` is deprecated and will be removed in a future release. The motivation behind this change is that the field does not guarantee newly provisioned agents will pick up runs only for the listed workspaces. Additionally, using this field could lead to situations where agents are not scaled to process runs for unlisted workspaces. [[GH-561](https://github.com/hashicorp/hcp-terraform-operator/pull/561)]
11+
* `Module`: The field `spec.destroyOnDeletion` is deprecated and will be removed in a future release. This change is motivated by the introduction of a new field, `spec.deletionPolicy`, which aligns with the approach the operator uses across all other controllers. The default value of `spec.deletionPolicy` is `retain`, which replaces the default value `false` of `spec.destroyOnDeletion`. The corresponding value `true` of `spec.destroyOnDeletion` is replaced with `destroy` in `spec.deletionPolicy`. [[GH-582](https://github.com/hashicorp/hcp-terraform-operator/pull/582)]
12+
* The `AgentPool` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-494](https://github.com/hashicorp/hcp-terraform-operator/pull/494)]
13+
* The `Module` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-582](https://github.com/hashicorp/hcp-terraform-operator/pull/582)]
14+
* The `Project` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-569](https://github.com/hashicorp/hcp-terraform-operator/pull/569)]
15+
* The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-558](https://github.com/hashicorp/hcp-terraform-operator/pull/558)]
16+
17+
BUG FIXES:
18+
19+
* `AgentPool`: Add a new scaling algorithm that accounts for speculative plans when calculating pending runs. This algorithm is compatible with HCP Terraform and TFE v202409-1 and later. [[GH-561](https://github.com/hashicorp/hcp-terraform-operator/pull/561)]
20+
* `AgentPool`: Fix an issue where, in some circumstances, a newly created CR with the autoscaling feature enabled does not update its status while handling runs. [[GH-580](https://github.com/hashicorp/hcp-terraform-operator/pull/580)]
21+
22+
FEATURES:
23+
24+
* `AgentPool`: Add a new field, `spec.deletionPolicy`, that specifies the behavior of the custom resource and its associated agent pool when the custom resource is deleted. [[GH-584](https://github.com/hashicorp/hcp-terraform-operator/pull/584)]
25+
* `Module`: Add a new field `spec.deletionPolicy`, that specifies the behavior of a custom resource and its associated module when the custom resource is deleted. This field aims to replace `spec.destroyOnDeletion`. [[GH-582](https://github.com/hashicorp/hcp-terraform-operator/pull/582)]
26+
* `Project`: Add a new field, `spec.deletionPolicy`, that specifies the behavior of a custom resource and its associated project when the custom resource is deleted. [[GH-569](https://github.com/hashicorp/hcp-terraform-operator/pull/569)]
27+
28+
ENHANCEMENTS:
29+
30+
* `Workspace`: Add the ability to enable auto apply for run triggers via a new optional field `spec.applyRunTrigger`. This feature is available in HCP Terraform and Terraform Enterprise starting with version v202401-1. [[GH-558](https://github.com/hashicorp/hcp-terraform-operator/pull/558)]
31+
* `Workspace`: Add new fields, `spec.versionControl.enableFileTriggers`, `spec.versionControl.triggerPatterns` and `spec.versionControl.triggerPrefixes`, which specify whether a new run should be triggered when files in the specified paths change in the connected repository. [[GH-496](https://github.com/hashicorp/hcp-terraform-operator/pull/496)] [[GH-578](https://github.com/hashicorp/hcp-terraform-operator/pull/578)]
32+
33+
DEPENDENCIES:
34+
35+
* Bump `k8s.io/api` from 0.31.6 to 0.32.3. [[GH-586](https://github.com/hashicorp/hcp-terraform-operator/pull/586)] [[GH-587](https://github.com/hashicorp/hcp-terraform-operator/pull/587)]
36+
* Bump `k8s.io/apimachinery` from 0.31.6 to 0.32.3. [[GH-586](https://github.com/hashicorp/hcp-terraform-operator/pull/586)] [[GH-587](https://github.com/hashicorp/hcp-terraform-operator/pull/587)]
37+
* Bump `k8s.io/client-go` from 0.31.6 to 0.32.3. [[GH-586](https://github.com/hashicorp/hcp-terraform-operator/pull/586)] [[GH-587](https://github.com/hashicorp/hcp-terraform-operator/pull/587)]
38+
* Bump `sigs.k8s.io/controller-runtime` from 0.19.7 to 0.20.4. [[GH-586](https://github.com/hashicorp/hcp-terraform-operator/pull/586)]
39+
40+
## Community Contributors :raised_hands:
41+
42+
- @baptman21 made their contribution in https://github.com/hashicorp/hcp-terraform-operator/pull/496

.changes/unreleased/BREAKING CHANGES-569-20250402-133853.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/BREAKING CHANGES-584-20250415-124806.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/BUG FIXES-561-20250319-111650.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/BUG FIXES-580-20250321-154528.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/DEPENDENCIES-586-20250401-091327.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/DEPENDENCIES-586-20250401-091330.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/DEPENDENCIES-586-20250401-091333.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/DEPENDENCIES-586-20250401-091336.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/DEPENDENCIES-587-20250401-134200.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)