Skip to content

Commit

Permalink
add deletion_protection_enabled defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Brennan committed Jul 29, 2024
1 parent b0bf8ce commit 160b94f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions charts/terraform-cloud/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.12.0] - 2024-07-29
### Added
- Added dynamodb deletion_protection_enabled defaults

## [v1.11.0] - 2024-07-03
### Changed
- Bump `redis` module version to `1.2.1`
Expand Down
2 changes: 1 addition & 1 deletion charts/terraform-cloud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.11.0
version: 1.12.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/terraform-cloud/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# terraform-cloud

![Version: 1.11.0](https://img.shields.io/badge/Version-1.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=flat-square)
![Version: 1.12.0](https://img.shields.io/badge/Version-1.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=flat-square)

A Helm chart for provisioning resources using Terraform Cloud

Expand Down
4 changes: 4 additions & 0 deletions charts/terraform-cloud/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ app.mintel.com/terraform-allow-destroy: {{ (include "mintel_common.terraform_clo
{{- if ( eq .Global.clusterEnv "dev") }}
{{- $_ := set $defaults "point_in_time_recovery_enabled" false }}
{{- end }}
{{/* deletion_protection */}}
{{- if ( not ( has .Global.clusterEnv (list "prod" "logs"))) }}
{{- $_ := set $defaults "deletion_protection_enabled" false }}
{{- end }}
{{- end }}
{{/* Opensearch */}}
{{- if ( eq .ResourceType "opensearch")}}
Expand Down

0 comments on commit 160b94f

Please sign in to comment.