Skip to content

Commit

Permalink
v2.7.0 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored Oct 24, 2024
1 parent 991a837 commit e76626f
Show file tree
Hide file tree
Showing 33 changed files with 91 additions and 135 deletions.
40 changes: 40 additions & 0 deletions .changes/2.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## 2.7.0 (October 24, 2024)

BREAKING CHANGES:

* `Workspace`: 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 `force` 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-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)]

NOTES:

* 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)]
* The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)] [[GH-478](https://github.com/hashicorp/hcp-terraform-operator/pull/478)] [[GH-481](https://github.com/hashicorp/hcp-terraform-operator/pull/481)]

FEATURES:

* `Helm Chart`: Add a new value called `controllers.project.syncPeriod` to set the CLI option `--project-sync-period`. [[GH-479](https://github.com/hashicorp/hcp-terraform-operator/pull/479)]
* `Helm Chart`: Add a new value called `controllers.module.syncPeriod` to set the CLI option `--module-sync-period`. [[GH-480](https://github.com/hashicorp/hcp-terraform-operator/pull/480)]
* `Module`: Add a new CLI option called `--module-sync-period` to set the time interval for re-queuing Module resources once they are successfully reconciled. [[GH-480](https://github.com/hashicorp/hcp-terraform-operator/pull/480)]
* `Project`: Add a new CLI option called `--project-sync-period` to set the time interval for re-queuing Project resources once they are successfully reconciled. [[GH-479](https://github.com/hashicorp/hcp-terraform-operator/pull/479)]
* `Workspace`: Add a new field, `spec.deletionPolicy`, that specifies the behavior of the custom resource and its associated workspace when the custom resource is deleted. [[GH-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)]
* `Workspace`: Add the `destroy` deletion policy. The `spec.allowDestroyPlan` must be set to `true` for the controller to execute a destroy run. [[GH-489](https://github.com/hashicorp/hcp-terraform-operator/pull/489)]

ENHANCEMENTS:

* `Helm Chart`: Add the ability to configure the creation of the RBAC role and role binding. [[GH-491](https://github.com/hashicorp/hcp-terraform-operator/pull/491)]
* `AgentPool`: Update agent token reconciliation logic to reduce the number of API calls. [[GH-487](https://github.com/hashicorp/hcp-terraform-operator/pull/487)]
* `AgentPool`: Add the ability to configure labels and annotations for agent deployments. [[GH-494](https://github.com/hashicorp/hcp-terraform-operator/pull/494)]
* `Module`: Update reconciliation logic to proceed to the next step immediately after the configuration version is uploaded successfully and reduce delays in output fetching. [[GH-482](https://github.com/hashicorp/hcp-terraform-operator/pull/482)]
* `Workspace`: Update Notifications reconciliation logic to reduce the number of API calls. [[GH-477](https://github.com/hashicorp/hcp-terraform-operator/pull/477)]
* `Workspace`: Update SSH key reconciliation logic to reduce the number of API calls. [[GH-478](https://github.com/hashicorp/hcp-terraform-operator/pull/478)]
* `Workspace`: Update the default project ID reconciliation logic to avoid making an API call each time a workspace object is updated. [[GH-481](https://github.com/hashicorp/hcp-terraform-operator/pull/481)]

DEPENDENCIES:

* Bump `k8s.io/api` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-466](https://github.com/hashicorp/hcp-terraform-operator/pull/466)]
* Bump `k8s.io/apimachinery` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-456](https://github.com/hashicorp/hcp-terraform-operator/pull/456)]
* Bump `k8s.io/client-go` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-466](https://github.com/hashicorp/hcp-terraform-operator/pull/466)]
* Bump `sigs.k8s.io/controller-runtime` from 0.17.3 to 0.18.4. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)]

## Community Contributors :raised_hands:

- @domino-sbr1 made their contribution in https://github.com/hashicorp/hcp-terraform-operator/pull/491
5 changes: 0 additions & 5 deletions .changes/unreleased/BREAKING CHANGES-470-20240909-090348.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-452-20240809-133524.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-452-20240809-133526.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-452-20240809-133529.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-452-20240809-133531.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-456-20240809-134156.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-466-20240809-134831.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-466-20240809-134841.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-477-20240821-134240.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-478-20240822-123848.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-481-20240830-094816.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-482-20240830-161222.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-487-20240917-131255.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-491-20241002-142919.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/ENHANCEMENTS-494-20241016-113244.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-470-20240909-085913.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-479-20240830-090526.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-479-20240830-090626.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-480-20240830-091412.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-480-20240830-091446.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/FEATURES-489-20241017-094021.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/NOTES-470-20241017-085430.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/NOTES-478-20240822-123914.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/NOTES-481-20240830-094502.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/NOTES-494-20241022-081758.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
## 2.7.0 (October 24, 2024)

BREAKING CHANGES:

* `Workspace`: 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 `force` 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-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)]

NOTES:

* 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)]
* The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)] [[GH-478](https://github.com/hashicorp/hcp-terraform-operator/pull/478)] [[GH-481](https://github.com/hashicorp/hcp-terraform-operator/pull/481)]

FEATURES:

* `Helm Chart`: Add a new value called `controllers.project.syncPeriod` to set the CLI option `--project-sync-period`. [[GH-479](https://github.com/hashicorp/hcp-terraform-operator/pull/479)]
* `Helm Chart`: Add a new value called `controllers.module.syncPeriod` to set the CLI option `--module-sync-period`. [[GH-480](https://github.com/hashicorp/hcp-terraform-operator/pull/480)]
* `Module`: Add a new CLI option called `--module-sync-period` to set the time interval for re-queuing Module resources once they are successfully reconciled. [[GH-480](https://github.com/hashicorp/hcp-terraform-operator/pull/480)]
* `Project`: Add a new CLI option called `--project-sync-period` to set the time interval for re-queuing Project resources once they are successfully reconciled. [[GH-479](https://github.com/hashicorp/hcp-terraform-operator/pull/479)]
* `Workspace`: Add a new field, `spec.deletionPolicy`, that specifies the behavior of the custom resource and its associated workspace when the custom resource is deleted. [[GH-470](https://github.com/hashicorp/hcp-terraform-operator/pull/470)]
* `Workspace`: Add the `destroy` deletion policy. The `spec.allowDestroyPlan` must be set to `true` for the controller to execute a destroy run. [[GH-489](https://github.com/hashicorp/hcp-terraform-operator/pull/489)]

ENHANCEMENTS:

* `Helm Chart`: Add the ability to configure the creation of the RBAC role and role binding. [[GH-491](https://github.com/hashicorp/hcp-terraform-operator/pull/491)]
* `AgentPool`: Update agent token reconciliation logic to reduce the number of API calls. [[GH-487](https://github.com/hashicorp/hcp-terraform-operator/pull/487)]
* `AgentPool`: Add the ability to configure labels and annotations for agent deployments. [[GH-494](https://github.com/hashicorp/hcp-terraform-operator/pull/494)]
* `Module`: Update reconciliation logic to proceed to the next step immediately after the configuration version is uploaded successfully and reduce delays in output fetching. [[GH-482](https://github.com/hashicorp/hcp-terraform-operator/pull/482)]
* `Workspace`: Update Notifications reconciliation logic to reduce the number of API calls. [[GH-477](https://github.com/hashicorp/hcp-terraform-operator/pull/477)]
* `Workspace`: Update SSH key reconciliation logic to reduce the number of API calls. [[GH-478](https://github.com/hashicorp/hcp-terraform-operator/pull/478)]
* `Workspace`: Update the default project ID reconciliation logic to avoid making an API call each time a workspace object is updated. [[GH-481](https://github.com/hashicorp/hcp-terraform-operator/pull/481)]

DEPENDENCIES:

* Bump `k8s.io/api` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-466](https://github.com/hashicorp/hcp-terraform-operator/pull/466)]
* Bump `k8s.io/apimachinery` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-456](https://github.com/hashicorp/hcp-terraform-operator/pull/456)]
* Bump `k8s.io/client-go` from 0.29.4 to 0.30.3. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)] [[GH-466](https://github.com/hashicorp/hcp-terraform-operator/pull/466)]
* Bump `sigs.k8s.io/controller-runtime` from 0.17.3 to 0.18.4. [[GH-452](https://github.com/hashicorp/hcp-terraform-operator/pull/452)]

## Community Contributors :raised_hands:

- @domino-sbr1 made their contribution in https://github.com/hashicorp/hcp-terraform-operator/pull/491

## 2.6.1 (August 07, 2024)

BUG FIXES:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Every target has a BIN_NAME argument that must be provided via --build-arg=BIN_NAME=<name>
# when building.

ARG GO_VERSION=1.22
ARG GO_VERSION=1.23.2

# ===================================
#
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Three simple commands to install the Operator:
```console
$ helm repo add hashicorp https://helm.releases.hashicorp.com
$ helm repo update
$ helm install demo hashicorp/hcp-terraform-operator --wait --version 2.6.1
$ helm install demo hashicorp/hcp-terraform-operator --wait --version 2.7.0
```

More detailed information about the installation and available values can be found [here](./charts/hcp-terraform-operator/README.md).
Expand Down
4 changes: 2 additions & 2 deletions charts/hcp-terraform-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ apiVersion: v2
name: hcp-terraform-operator
description: Official Helm chart for HCP Terraform Operator for Kubernetes.
type: application
version: "2.6.1"
appVersion: "2.6.1"
version: "2.7.0"
appVersion: "2.7.0"
8 changes: 4 additions & 4 deletions charts/hcp-terraform-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Use the option `--version VERSION` with `helm install` and `helm upgrade` comman

```console
$ helm install demo hashicorp/hcp-terraform-operator \
--version 2.6.1 \
--version 2.7.0 \
--namespace tfc-operator-system \
--create-namespace
```
Expand All @@ -36,7 +36,7 @@ Below are examples of the Operator installation/upgrade Helm chart with options.

```console
$ helm install demo hashicorp/hcp-terraform-operator \
--version 2.6.1 \
--version 2.7.0 \
--namespace tfc-operator-system \
--create-namespace \
--set operator.syncPeriod=10m \
Expand All @@ -55,7 +55,7 @@ If targeting a Terraform Enterprise instance rather than HCP Terraform, set the

```console
$ helm install demo hashicorp/hcp-terraform-operator \
--version 2.6.1 \
--version 2.7.0 \
--set operator.tfeAddress="https://tfe-api.my-company.com"
```

Expand All @@ -67,7 +67,7 @@ For more information, please refer to the [FAQ](./../../docs/faq.md#general-ques

```console
$ helm upgrade demo hashicorp/hcp-terraform-operator \
--version 2.6.1 \
--version 2.7.0 \
--namespace hcp-terraform-operator-system \
--set operator.syncPeriod=5m \
--set controllers.agentPool.workers=5 \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hashicorp/hcp-terraform-operator

go 1.22.6
go 1.23.2

require (
github.com/go-logr/logr v1.4.2
Expand Down
2 changes: 1 addition & 1 deletion version/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.1
2.7.0

0 comments on commit e76626f

Please sign in to comment.