Skip to content

Commit 9bf7561

Browse files
authored
Super linter pipeline fixes and fixes to mysql template and airlock_processor.tf (#4847)
1 parent ca4abe8 commit 9bf7561

File tree

14 files changed

+63
-19
lines changed

14 files changed

+63
-19
lines changed

.github/linters/.tflint_core.hcl

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
# This is used for TRE tags validation only.
22

33
config {
4-
call_module_type = "all"
4+
call_module_type = "local"
55
force = false
66
}
77

88
plugin "azurerm" {
99
enabled = true
10-
}
11-
12-
rule "terraform_typed_variables" {
13-
enabled = false
10+
version = "0.30.0"
11+
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
1412
}
1513

1614
rule "azurerm_resource_missing_tags" {
1715
enabled = true
1816
tags = ["tre_id"]
1917
}
18+
19+
rule "terraform_required_version" {
20+
enabled = false
21+
}
22+
23+
rule "azurerm_resources_missing_prevent_destroy" {
24+
enabled = false
25+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# This is used for TRE tags validation only.
22

33
config {
4-
call_module_type = "all"
4+
call_module_type = "local"
55
force = false
66
}
77

88
plugin "azurerm" {
99
enabled = true
10+
version = "0.30.0"
11+
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
1012
}
1113

1214
rule "azurerm_resource_missing_tags" {
1315
enabled = true
1416
tags = ["tre_id", "tre_shared_service_id"]
1517
}
18+
19+
rule "terraform_required_version" {
20+
enabled = false
21+
}
22+
23+
rule "azurerm_resources_missing_prevent_destroy" {
24+
enabled = false
25+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# This is used for TRE tags validation only.
22

33
config {
4-
call_module_type = "all"
4+
call_module_type = "local"
55
force = false
66
}
77

88
plugin "azurerm" {
99
enabled = true
10+
version = "0.30.0"
11+
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
1012
}
1113

1214
rule "azurerm_resource_missing_tags" {
1315
enabled = true
1416
tags = ["tre_id", "tre_workspace_id", "tre_workspace_service_id", "tre_user_resource_id"]
1517
}
18+
19+
rule "terraform_required_version" {
20+
enabled = false
21+
}
22+
23+
rule "azurerm_resources_missing_prevent_destroy" {
24+
enabled = false
25+
}

.github/linters/.tflint_workspace_services.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ config {
77

88
plugin "azurerm" {
99
enabled = true
10+
version = "0.30.0"
11+
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
1012
}
1113

1214
rule "azurerm_resource_missing_tags" {
1315
enabled = true
1416
tags = ["tre_id", "tre_workspace_id", "tre_workspace_service_id"]
1517
}
1618

19+
rule "terraform_required_version" {
20+
enabled = false
21+
}
22+
1723
rule "azurerm_resources_missing_prevent_destroy" {
1824
enabled = false
1925
}
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# This is used for TRE tags validation only.
22

33
config {
4-
call_module_type = "all"
4+
call_module_type = "local"
55
force = false
66
}
77

88
plugin "azurerm" {
99
enabled = true
1010
}
1111

12-
rule "terraform_typed_variables" {
13-
enabled = false
14-
}
15-
1612
rule "azurerm_resource_missing_tags" {
1713
enabled = true
1814
tags = ["tre_id", "tre_workspace_id"]
1915
}
16+
17+
rule "terraform_required_version" {
18+
enabled = false
19+
}
20+
21+
rule "azurerm_resources_missing_prevent_destroy" {
22+
enabled = false
23+
}

.github/workflows/build_validation_develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143143
VALIDATE_TERRAFORM_TFLINT: true
144144
TERRAFORM_TFLINT_CONFIG_FILE: .tflint_workspace_services.hcl
145-
FILTER_REGEX_INCLUDE: "./templates/workspaces/.*"
145+
FILTER_REGEX_INCLUDE: "./templates/workspace_services/.*"
146146
FILTER_REGEX_EXCLUDE: ".*user_resource.*"
147147

148148
- name: User Resources Tags

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ BUG FIXES:
4747
* Fix type mismatch error where `{{ resource.parent.my_boolean_property }}` was returning string instead of the correct type ([#4813](https://github.com/microsoft/AzureTRE/issues/4813))
4848
* Delete npm package lock file ([#4810](https://github.com/microsoft/AzureTRE/issues/4810))
4949
* Switch from yarn to npm ([#4837](https://github.com/microsoft/AzureTRE/issues/4837))
50+
* Fix Mysql template ignored storage_mb ([#4846](https://github.com/microsoft/AzureTRE/issues/4846))
51+
* Fix duplicate `TOPIC_SUBSCRIPTION_NAME` in `core/terraform/airlock/airlock_processor.tf` ([#4847](https://github.com/microsoft/AzureTRE/pull/4847))
5052

5153
COMPONENTS:
5254

core/terraform/airlock/airlock_processor.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ resource "azurerm_linux_function_app" "airlock_function_app" {
9696
"WEBSITE_CONTENTOVERVNET" = 1
9797
"STORAGE_ENDPOINT_SUFFIX" = module.terraform_azurerm_environment_configuration.storage_suffix
9898

99-
"TOPIC_SUBSCRIPTION_NAME" = azurerm_servicebus_subscription.airlock_processor.name
10099
"AzureWebJobsStorage__clientId" = azurerm_user_assigned_identity.airlock_id.client_id
101100
"AzureWebJobsStorage__credential" = "managedidentity"
102101

core/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.12"
1+
__version__ = "0.16.13"

templates/workspace_services/mysql/porter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
schemaVersion: 1.0.0
33
name: tre-workspace-service-mysql
4-
version: 1.0.10
4+
version: 1.0.11
55
description: "A MySQL workspace service"
66
registry: azuretre
77
dockerfile: Dockerfile.tmpl
@@ -50,7 +50,7 @@ parameters:
5050
default: "B | 4GB 2vCores"
5151
- name: storage_mb
5252
type: integer
53-
default: 5120
53+
default: 20480
5454
- name: db_name
5555
type: string
5656
default: tredb

0 commit comments

Comments
 (0)