Skip to content

Commit

Permalink
v2.4.0 (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored May 7, 2024
1 parent 487074c commit b3cb317
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 83 deletions.
29 changes: 29 additions & 0 deletions .changes/2.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## 2.4.0 (May 07, 2024)

NOTES:

* The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-390](https://github.com/hashicorp/terraform-cloud-operator/pull/390)]
* In upcoming releases, we shall proceed with renaming this project to HCP Terraform Operator for Kubernetes or simply HCP Terraform Operator. This measure is necessary in response to the recent announcement of [The Infrastructure Cloud](https://www.hashicorp.com/blog/introducing-the-infrastructure-cloud). The most noticeable change you can expect in version 2.6.0 is the renaming of this repository and related resources, such as the Helm chart and Docker Hub names. Please follow the changelogs for updates. [[GH-393](https://github.com/hashicorp/terraform-cloud-operator/pull/393)]

BUG FIXES:

* `Workspace`: Fix an issue when the controller panics while accessing the default Project. [[GH-394](https://github.com/hashicorp/terraform-cloud-operator/pull/394)]

FEATURES:

* `Workspace`: Add a new CLI option called `--workspace-sync-period` to set the time interval for re-queuing Workspace resources once they are successfully reconciled. [[GH-391](https://github.com/hashicorp/terraform-cloud-operator/pull/391)]
* `Helm`: Add a new value called `controllers.workspace.syncPeriod` to set the CLI option `--workspace-sync-period`. [[GH-391](https://github.com/hashicorp/terraform-cloud-operator/pull/391)]

ENHANCEMENTS:

* `Workspace`: Update variables reconciliation logic to reduce the number of API calls. [[GH-390](https://github.com/hashicorp/terraform-cloud-operator/pull/390)]

DEPENDENCIES:

* Bump `github.com/hashicorp/go-tfe` from 1.47.1 to 1.49.0. [[GH-378](https://github.com/hashicorp/terraform-cloud-operator/pull/378)]
* Bump `kube-rbac-proxy` from 0.16.0 to 0.17.0. [[GH-392](https://github.com/hashicorp/terraform-cloud-operator/pull/392)]
* Bump `k8s.io/api` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `k8s.io/apimachinery` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `k8s.io/client-go` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `sigs.k8s.io/controller-runtime` from 0.17.2 to 0.17.3. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]

6 changes: 0 additions & 6 deletions .changes/unreleased/BUG FIXES-394-20240425-100957.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-378-20240410-095608.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-392-20240424-095941.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-399-20240425-153157.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-399-20240425-153200.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-399-20240425-153202.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/DEPENDENCIES-399-20240425-153205.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/ENHANCEMENTS-390-20240419-102720.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/FEATURES-391-20240424-100418.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/FEATURES-391-20240424-100420.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/unreleased/NOTES-390-20240419-102736.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions .changes/unreleased/NOTES-393-20240507-094432.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
## 2.4.0 (May 07, 2024)

NOTES:

* The `Workspace` CRD has been changed. Please follow the Helm chart instructions on how to upgrade it. [[GH-390](https://github.com/hashicorp/terraform-cloud-operator/pull/390)]
* In upcoming releases, we shall proceed with renaming this project to HCP Terraform Operator for Kubernetes or simply HCP Terraform Operator. This measure is necessary in response to the recent announcement of [The Infrastructure Cloud](https://www.hashicorp.com/blog/introducing-the-infrastructure-cloud). The most noticeable change you can expect in version 2.6.0 is the renaming of this repository and related resources, such as the Helm chart and Docker Hub names. Please follow the changelogs for updates. [[GH-393](https://github.com/hashicorp/terraform-cloud-operator/pull/393)]

BUG FIXES:

* `Workspace`: Fix an issue when the controller panics while accessing the default Project. [[GH-394](https://github.com/hashicorp/terraform-cloud-operator/pull/394)]

FEATURES:

* `Workspace`: Add a new CLI option called `--workspace-sync-period` to set the time interval for re-queuing Workspace resources once they are successfully reconciled. [[GH-391](https://github.com/hashicorp/terraform-cloud-operator/pull/391)]
* `Helm`: Add a new value called `controllers.workspace.syncPeriod` to set the CLI option `--workspace-sync-period`. [[GH-391](https://github.com/hashicorp/terraform-cloud-operator/pull/391)]

ENHANCEMENTS:

* `Workspace`: Update variables reconciliation logic to reduce the number of API calls. [[GH-390](https://github.com/hashicorp/terraform-cloud-operator/pull/390)]

DEPENDENCIES:

* Bump `github.com/hashicorp/go-tfe` from 1.47.1 to 1.49.0. [[GH-378](https://github.com/hashicorp/terraform-cloud-operator/pull/378)]
* Bump `kube-rbac-proxy` from 0.16.0 to 0.17.0. [[GH-392](https://github.com/hashicorp/terraform-cloud-operator/pull/392)]
* Bump `k8s.io/api` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `k8s.io/apimachinery` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `k8s.io/client-go` from 0.29.2 to 0.29.4. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]
* Bump `sigs.k8s.io/controller-runtime` from 0.17.2 to 0.17.3. [[GH-399](https://github.com/hashicorp/terraform-cloud-operator/pull/399)]

## 2.3.0 (March 18, 2024)

BUG FIXES:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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/terraform-cloud-operator --wait --version 2.3.0
$ helm install demo hashicorp/terraform-cloud-operator --wait --version 2.4.0
```

More detailed information about the installation and available values can be found [here](./charts/terraform-cloud-operator/README.md).
Expand Down
1 change: 1 addition & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ To create a new release, adhere to the following steps:

```console
$ git add -A
$ git commit -m "v$TFC_OPERATOR_RELEASE_VERSION"
$ git push
```

Expand Down
4 changes: 2 additions & 2 deletions charts/terraform-cloud-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ apiVersion: v2
name: terraform-cloud-operator
description: Official Helm chart for HCP Terraform Operator for Kubernetes.
type: application
version: "2.3.0"
appVersion: "2.3.0"
version: "2.4.0"
appVersion: "2.4.0"
8 changes: 4 additions & 4 deletions charts/terraform-cloud-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Use the option `--version VERSION` with `helm install` and `helm upgrade` comman

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

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

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

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

```console
$ helm upgrade demo hashicorp/terraform-cloud-operator \
--version 2.3.0 \
--version 2.4.0 \
--namespace tfc-operator-system \
--set operator.syncPeriod=5m \
--set controllers.agentPool.workers=5 \
Expand Down
2 changes: 1 addition & 1 deletion charts/terraform-cloud-operator/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

> **Warning**
> In upcoming releases, we shall proceed with renaming this project to either HCP Terraform Operator for Kubernetes or simply HCP Terraform Operator. This measure is necessary in response to the recent announcement of [The Infrastructure Cloud](https://www.hashicorp.com/blog/introducing-the-infrastructure-cloud).
> In upcoming releases, we shall proceed with renaming this project to HCP Terraform Operator for Kubernetes or simply HCP Terraform Operator. This measure is necessary in response to the recent announcement of [The Infrastructure Cloud](https://www.hashicorp.com/blog/introducing-the-infrastructure-cloud).
>
> The most noticeable change you can expect in version 2.6.0 is the renaming of this repository and related resources, such as the Helm chart and Docker Hub names.
>
Expand Down
6 changes: 2 additions & 4 deletions scripts/update-helm-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

CHART_DIR="charts/terraform-cloud-operator"
CHART_FILE="Chart.yaml"
VALUES_FILE="values.yaml"
VERSION_FILE="version/VERSION"

# Update the 'Chart.yaml' file with a new version of the Operator image tag.
function update_chart_file {
Expand All @@ -22,11 +20,11 @@ function update_chart_file {

yq \
--inplace \
'.appVersion = strenv(VERSION) | .version = strenv(VERSION)' $CHART_DIR/$CHART_FILE
'.appVersion = strenv(TFC_OPERATOR_RELEASE_VERSION) | .version = strenv(TFC_OPERATOR_RELEASE_VERSION)' $CHART_DIR/$CHART_FILE
}

function main {
if [[ -z "${VERSION}" ]]; then
if [[ -z "${TFC_OPERATOR_RELEASE_VERSION}" ]]; then
echo "The environment variable TFC_OPERATOR_RELEASE_VERSION is not set."
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion version/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0

0 comments on commit b3cb317

Please sign in to comment.