From 8f1b5a96b2982667b5f4a61a2f36a42a7e148efe Mon Sep 17 00:00:00 2001 From: Aleksandr Rybolovlev Date: Thu, 24 Oct 2024 09:46:01 +0200 Subject: [PATCH] v2.7.0 --- .changes/2.7.0.md | 40 ++++++++++++++++++ .../BREAKING CHANGES-470-20240909-090348.yaml | 5 --- .../DEPENDENCIES-452-20240809-133524.yaml | 5 --- .../DEPENDENCIES-452-20240809-133526.yaml | 5 --- .../DEPENDENCIES-452-20240809-133529.yaml | 5 --- .../DEPENDENCIES-452-20240809-133531.yaml | 5 --- .../DEPENDENCIES-456-20240809-134156.yaml | 5 --- .../DEPENDENCIES-466-20240809-134831.yaml | 5 --- .../DEPENDENCIES-466-20240809-134841.yaml | 5 --- .../ENHANCEMENTS-477-20240821-134240.yaml | 5 --- .../ENHANCEMENTS-478-20240822-123848.yaml | 5 --- .../ENHANCEMENTS-481-20240830-094816.yaml | 5 --- .../ENHANCEMENTS-482-20240830-161222.yaml | 5 --- .../ENHANCEMENTS-487-20240917-131255.yaml | 5 --- .../ENHANCEMENTS-491-20241002-142919.yaml | 5 --- .../ENHANCEMENTS-494-20241016-113244.yaml | 5 --- .../FEATURES-470-20240909-085913.yaml | 5 --- .../FEATURES-479-20240830-090526.yaml | 5 --- .../FEATURES-479-20240830-090626.yaml | 5 --- .../FEATURES-480-20240830-091412.yaml | 5 --- .../FEATURES-480-20240830-091446.yaml | 5 --- .../FEATURES-489-20241017-094021.yaml | 5 --- .../unreleased/NOTES-470-20241017-085430.yaml | 5 --- .../unreleased/NOTES-478-20240822-123914.yaml | 5 --- .../unreleased/NOTES-481-20240830-094502.yaml | 5 --- .../unreleased/NOTES-494-20241022-081758.yaml | 5 --- CHANGELOG.md | 41 +++++++++++++++++++ Dockerfile | 2 +- README.md | 2 +- charts/hcp-terraform-operator/Chart.yaml | 4 +- charts/hcp-terraform-operator/README.md | 8 ++-- go.mod | 2 +- version/VERSION | 2 +- 33 files changed, 91 insertions(+), 135 deletions(-) create mode 100644 .changes/2.7.0.md delete mode 100644 .changes/unreleased/BREAKING CHANGES-470-20240909-090348.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-452-20240809-133524.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-452-20240809-133526.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-452-20240809-133529.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-452-20240809-133531.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-456-20240809-134156.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-466-20240809-134831.yaml delete mode 100644 .changes/unreleased/DEPENDENCIES-466-20240809-134841.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-477-20240821-134240.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-478-20240822-123848.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-481-20240830-094816.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-482-20240830-161222.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-487-20240917-131255.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-491-20241002-142919.yaml delete mode 100644 .changes/unreleased/ENHANCEMENTS-494-20241016-113244.yaml delete mode 100644 .changes/unreleased/FEATURES-470-20240909-085913.yaml delete mode 100644 .changes/unreleased/FEATURES-479-20240830-090526.yaml delete mode 100644 .changes/unreleased/FEATURES-479-20240830-090626.yaml delete mode 100644 .changes/unreleased/FEATURES-480-20240830-091412.yaml delete mode 100644 .changes/unreleased/FEATURES-480-20240830-091446.yaml delete mode 100644 .changes/unreleased/FEATURES-489-20241017-094021.yaml delete mode 100644 .changes/unreleased/NOTES-470-20241017-085430.yaml delete mode 100644 .changes/unreleased/NOTES-478-20240822-123914.yaml delete mode 100644 .changes/unreleased/NOTES-481-20240830-094502.yaml delete mode 100644 .changes/unreleased/NOTES-494-20241022-081758.yaml diff --git a/.changes/2.7.0.md b/.changes/2.7.0.md new file mode 100644 index 00000000..6a2c2455 --- /dev/null +++ b/.changes/2.7.0.md @@ -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 diff --git a/.changes/unreleased/BREAKING CHANGES-470-20240909-090348.yaml b/.changes/unreleased/BREAKING CHANGES-470-20240909-090348.yaml deleted file mode 100644 index 60bb6ad3..00000000 --- a/.changes/unreleased/BREAKING CHANGES-470-20240909-090348.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: BREAKING CHANGES -body: '`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.' -time: 2024-09-09T09:03:48.837008+02:00 -custom: - PR: "470" diff --git a/.changes/unreleased/DEPENDENCIES-452-20240809-133524.yaml b/.changes/unreleased/DEPENDENCIES-452-20240809-133524.yaml deleted file mode 100644 index 2da27f59..00000000 --- a/.changes/unreleased/DEPENDENCIES-452-20240809-133524.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/api` from 0.29.4 to 0.30.1. -time: 2024-08-09T13:35:24.458844+02:00 -custom: - PR: "452" diff --git a/.changes/unreleased/DEPENDENCIES-452-20240809-133526.yaml b/.changes/unreleased/DEPENDENCIES-452-20240809-133526.yaml deleted file mode 100644 index ee0e600b..00000000 --- a/.changes/unreleased/DEPENDENCIES-452-20240809-133526.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/apimachinery` from 0.29.4 to 0.30.1. -time: 2024-08-09T13:35:26.844358+02:00 -custom: - PR: "452" diff --git a/.changes/unreleased/DEPENDENCIES-452-20240809-133529.yaml b/.changes/unreleased/DEPENDENCIES-452-20240809-133529.yaml deleted file mode 100644 index bf395843..00000000 --- a/.changes/unreleased/DEPENDENCIES-452-20240809-133529.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/client-go` from 0.29.4 to 0.30.1. -time: 2024-08-09T13:35:29.095485+02:00 -custom: - PR: "452" diff --git a/.changes/unreleased/DEPENDENCIES-452-20240809-133531.yaml b/.changes/unreleased/DEPENDENCIES-452-20240809-133531.yaml deleted file mode 100644 index a423c93a..00000000 --- a/.changes/unreleased/DEPENDENCIES-452-20240809-133531.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `sigs.k8s.io/controller-runtime` from 0.17.3 to 0.18.4. -time: 2024-08-09T13:35:31.490145+02:00 -custom: - PR: "452" diff --git a/.changes/unreleased/DEPENDENCIES-456-20240809-134156.yaml b/.changes/unreleased/DEPENDENCIES-456-20240809-134156.yaml deleted file mode 100644 index 2e5121db..00000000 --- a/.changes/unreleased/DEPENDENCIES-456-20240809-134156.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/apimachinery` from 0.30.1 to 0.30.3. -time: 2024-08-09T13:41:56.043556+02:00 -custom: - PR: "456" diff --git a/.changes/unreleased/DEPENDENCIES-466-20240809-134831.yaml b/.changes/unreleased/DEPENDENCIES-466-20240809-134831.yaml deleted file mode 100644 index d9f89a5c..00000000 --- a/.changes/unreleased/DEPENDENCIES-466-20240809-134831.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/api` from 0.30.1 to 0.30.3. -time: 2024-08-09T13:48:31.029324+02:00 -custom: - PR: "466" diff --git a/.changes/unreleased/DEPENDENCIES-466-20240809-134841.yaml b/.changes/unreleased/DEPENDENCIES-466-20240809-134841.yaml deleted file mode 100644 index c6f039ed..00000000 --- a/.changes/unreleased/DEPENDENCIES-466-20240809-134841.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: DEPENDENCIES -body: Bump `k8s.io/client-go` from 0.30.1 to 0.30.3. -time: 2024-08-09T13:48:41.697829+02:00 -custom: - PR: "466" diff --git a/.changes/unreleased/ENHANCEMENTS-477-20240821-134240.yaml b/.changes/unreleased/ENHANCEMENTS-477-20240821-134240.yaml deleted file mode 100644 index 9be5b12f..00000000 --- a/.changes/unreleased/ENHANCEMENTS-477-20240821-134240.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`Workspace`: Update Notifications reconciliation logic to reduce the number of API calls.' -time: 2024-08-21T13:42:40.942036+02:00 -custom: - PR: "477" diff --git a/.changes/unreleased/ENHANCEMENTS-478-20240822-123848.yaml b/.changes/unreleased/ENHANCEMENTS-478-20240822-123848.yaml deleted file mode 100644 index 37e29e3f..00000000 --- a/.changes/unreleased/ENHANCEMENTS-478-20240822-123848.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`Workspace`: Update SSH key reconciliation logic to reduce the number of API calls.' -time: 2024-08-22T12:38:48.871032+02:00 -custom: - PR: "478" diff --git a/.changes/unreleased/ENHANCEMENTS-481-20240830-094816.yaml b/.changes/unreleased/ENHANCEMENTS-481-20240830-094816.yaml deleted file mode 100644 index cc3a4825..00000000 --- a/.changes/unreleased/ENHANCEMENTS-481-20240830-094816.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`Workspace`: Update the default project ID reconciliation logic to avoid making an API call each time a workspace object is updated.' -time: 2024-08-30T09:48:16.140808+02:00 -custom: - PR: "481" diff --git a/.changes/unreleased/ENHANCEMENTS-482-20240830-161222.yaml b/.changes/unreleased/ENHANCEMENTS-482-20240830-161222.yaml deleted file mode 100644 index 7b541019..00000000 --- a/.changes/unreleased/ENHANCEMENTS-482-20240830-161222.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`Module`: Update reconciliation logic to proceed to the next step immediately after the configuration version is uploaded successfully and reduce delays in output fetching.' -time: 2024-08-30T16:12:22.551945+02:00 -custom: - PR: "482" diff --git a/.changes/unreleased/ENHANCEMENTS-487-20240917-131255.yaml b/.changes/unreleased/ENHANCEMENTS-487-20240917-131255.yaml deleted file mode 100644 index bba06408..00000000 --- a/.changes/unreleased/ENHANCEMENTS-487-20240917-131255.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`AgentPool`: Update agent token reconciliation logic to reduce the number of API calls.' -time: 2024-09-17T13:12:55.654873+02:00 -custom: - PR: "487" diff --git a/.changes/unreleased/ENHANCEMENTS-491-20241002-142919.yaml b/.changes/unreleased/ENHANCEMENTS-491-20241002-142919.yaml deleted file mode 100644 index 1423f54a..00000000 --- a/.changes/unreleased/ENHANCEMENTS-491-20241002-142919.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`Helm Chart`: Add the ability to configure the creation of the RBAC role and role binding.' -time: 2024-10-02T14:29:19.427979944Z -custom: - PR: "491" diff --git a/.changes/unreleased/ENHANCEMENTS-494-20241016-113244.yaml b/.changes/unreleased/ENHANCEMENTS-494-20241016-113244.yaml deleted file mode 100644 index 9843877d..00000000 --- a/.changes/unreleased/ENHANCEMENTS-494-20241016-113244.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: ENHANCEMENTS -body: '`AgentPool`: Add the ability to configure labels and annotations for agent deployments.' -time: 2024-10-16T11:32:44.901754-04:00 -custom: - PR: "494" diff --git a/.changes/unreleased/FEATURES-470-20240909-085913.yaml b/.changes/unreleased/FEATURES-470-20240909-085913.yaml deleted file mode 100644 index 45be257d..00000000 --- a/.changes/unreleased/FEATURES-470-20240909-085913.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`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.' -time: 2024-09-09T08:59:13.827281+02:00 -custom: - PR: "470" diff --git a/.changes/unreleased/FEATURES-479-20240830-090526.yaml b/.changes/unreleased/FEATURES-479-20240830-090526.yaml deleted file mode 100644 index 0e15d1e4..00000000 --- a/.changes/unreleased/FEATURES-479-20240830-090526.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`Helm`: Add a new value called `controllers.project.syncPeriod` to set the CLI option `--project-sync-period`.' -time: 2024-08-30T09:05:26.954037+02:00 -custom: - PR: "479" diff --git a/.changes/unreleased/FEATURES-479-20240830-090626.yaml b/.changes/unreleased/FEATURES-479-20240830-090626.yaml deleted file mode 100644 index f3f98525..00000000 --- a/.changes/unreleased/FEATURES-479-20240830-090626.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`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.' -time: 2024-08-30T09:06:26.460931+02:00 -custom: - PR: "479" diff --git a/.changes/unreleased/FEATURES-480-20240830-091412.yaml b/.changes/unreleased/FEATURES-480-20240830-091412.yaml deleted file mode 100644 index c050e8a7..00000000 --- a/.changes/unreleased/FEATURES-480-20240830-091412.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`Helm`: Add a new value called `controllers.module.syncPeriod` to set the CLI option `--module-sync-period`.' -time: 2024-08-30T09:14:12.597913+02:00 -custom: - PR: "480" diff --git a/.changes/unreleased/FEATURES-480-20240830-091446.yaml b/.changes/unreleased/FEATURES-480-20240830-091446.yaml deleted file mode 100644 index 72d457a9..00000000 --- a/.changes/unreleased/FEATURES-480-20240830-091446.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`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.' -time: 2024-08-30T09:14:46.812805+02:00 -custom: - PR: "480" diff --git a/.changes/unreleased/FEATURES-489-20241017-094021.yaml b/.changes/unreleased/FEATURES-489-20241017-094021.yaml deleted file mode 100644 index d62febce..00000000 --- a/.changes/unreleased/FEATURES-489-20241017-094021.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: FEATURES -body: '`Workspace`: Add the `destroy` deletion policy. The `spec.allowDestroyPlan` must be set to `true` for the controller to execute a destroy run.' -time: 2024-10-17T09:40:21.262822+02:00 -custom: - PR: "489" diff --git a/.changes/unreleased/NOTES-470-20241017-085430.yaml b/.changes/unreleased/NOTES-470-20241017-085430.yaml deleted file mode 100644 index f0208211..00000000 --- a/.changes/unreleased/NOTES-470-20241017-085430.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: NOTES -body: The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. -time: 2024-10-17T08:54:30.601217+02:00 -custom: - PR: "470" diff --git a/.changes/unreleased/NOTES-478-20240822-123914.yaml b/.changes/unreleased/NOTES-478-20240822-123914.yaml deleted file mode 100644 index e7b87d9a..00000000 --- a/.changes/unreleased/NOTES-478-20240822-123914.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: NOTES -body: The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. -time: 2024-08-22T12:39:14.407611+02:00 -custom: - PR: "478" diff --git a/.changes/unreleased/NOTES-481-20240830-094502.yaml b/.changes/unreleased/NOTES-481-20240830-094502.yaml deleted file mode 100644 index 529e72d3..00000000 --- a/.changes/unreleased/NOTES-481-20240830-094502.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: NOTES -body: The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. -time: 2024-08-30T09:45:02.393365+02:00 -custom: - PR: "481" diff --git a/.changes/unreleased/NOTES-494-20241022-081758.yaml b/.changes/unreleased/NOTES-494-20241022-081758.yaml deleted file mode 100644 index 9fb44cfe..00000000 --- a/.changes/unreleased/NOTES-494-20241022-081758.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: NOTES -body: The `AgentPool` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. -time: 2024-10-22T08:17:58.516344+02:00 -custom: - PR: "494" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5017c31b..3fdd281a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/Dockerfile b/Dockerfile index 51f864f3..c79e1e70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ # Every target has a BIN_NAME argument that must be provided via --build-arg=BIN_NAME= # when building. -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23.2 # =================================== # diff --git a/README.md b/README.md index 86b53b96..d7419af8 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/charts/hcp-terraform-operator/Chart.yaml b/charts/hcp-terraform-operator/Chart.yaml index 37368321..8f39c190 100644 --- a/charts/hcp-terraform-operator/Chart.yaml +++ b/charts/hcp-terraform-operator/Chart.yaml @@ -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" diff --git a/charts/hcp-terraform-operator/README.md b/charts/hcp-terraform-operator/README.md index 49d87ab3..42c1ea3a 100644 --- a/charts/hcp-terraform-operator/README.md +++ b/charts/hcp-terraform-operator/README.md @@ -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 ``` @@ -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 \ @@ -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" ``` @@ -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 \ diff --git a/go.mod b/go.mod index afd55e01..7af2a8bc 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/version/VERSION b/version/VERSION index 6a6a3d8e..24ba9a38 100644 --- a/version/VERSION +++ b/version/VERSION @@ -1 +1 @@ -2.6.1 +2.7.0