From 0560d29ad1cd156c50eeb9ea3a26bb08f0bc08c7 Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Tue, 25 Jun 2024 16:05:21 +0100 Subject: [PATCH] Gitea Shared Service Fix (#4008) * add in ignore_changes * changelog update --- CHANGELOG.md | 3 ++- templates/shared_services/gitea/terraform/mysql.tf | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6155665bfe..45cccf3cc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 0.18.0 (Unreleased) **BREAKING CHANGES & MIGRATIONS**: -* Update Core Terraform Provider versions ([[#3919](https://github.com/microsoft/AzureTRE/issues/3919)]) +* Update Core Terraform Provider versions ([#3919](https://github.com/microsoft/AzureTRE/issues/3919)) * Introduction of config value `enable_airlock_email_check`, which defaults to `false`, this is a change in behaviour. If you require email addresses for users before an airlock request is created, set to `true`. ([#3904](https://github.com/microsoft/AzureTRE/issues/3904)) FEATURES: @@ -24,6 +24,7 @@ BUG FIXES: * Add lifecycle rule to MySQL resources to stop them recreating on `update` ([#3993](https://github.com/microsoft/AzureTRE/issues/3993)) * Fixes broken links on 'Using the Azure TRE -> Custom Templates' page of documentation ([[#4003](https://github.com/microsoft/AzureTRE/issues/4003)]) * Fix 'Renew Lets Encrypt Certificates' GitHub Action ([#3978](https://github.com/microsoft/AzureTRE/issues/3978)) +* Add lifecycle rule to the Gitea Shared Service template for the MySQL resource to stop it recreating on `update` ([#4006](https://github.com/microsoft/AzureTRE/issues/4006)) COMPONENTS: diff --git a/templates/shared_services/gitea/terraform/mysql.tf b/templates/shared_services/gitea/terraform/mysql.tf index 33d4a0fe9f..61fe2af169 100644 --- a/templates/shared_services/gitea/terraform/mysql.tf +++ b/templates/shared_services/gitea/terraform/mysql.tf @@ -27,6 +27,8 @@ resource "azurerm_mysql_flexible_database" "gitea" { server_name = azurerm_mysql_flexible_server.gitea.name charset = "utf8" collation = "utf8_unicode_ci" + + lifecycle { ignore_changes = [charset, collation] } } moved {