@hiiretail/gcp-infra-cli 0.78.0 → 0.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const validate = {};
|
|
2
2
|
|
|
3
3
|
validate.jiraProjectKey = (input) => {
|
|
4
|
-
if (!/\s/.test(input) && input === input.
|
|
5
|
-
return 'Must be
|
|
4
|
+
if (!/\s/.test(input) && input === input.toLowerCase()) return true;
|
|
5
|
+
return 'Must be lowercase and not contain any whitepace';
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
module.exports = validate;
|
|
@@ -18,6 +18,7 @@ dependency "notification_channels" {
|
|
|
18
18
|
|
|
19
19
|
locals {
|
|
20
20
|
project_vars = read_terragrunt_config(find_in_parent_folders("project.hcl"))
|
|
21
|
+
common_vars = read_terragrunt_config(find_in_parent_folders("common.hcl"))
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
|
|
@@ -29,5 +30,11 @@ inputs = merge(
|
|
|
29
30
|
notification_channels = dependency.notification_channels.outputs.notification_channels,
|
|
30
31
|
telemetry_resource_name = "//container.googleapis.com/projects/${lookup(local.project_vars.locals, "monitoring_project_id", local.project_vars.locals.tribe_project_id)}/locations/europe-west1/clusters/k8s-cluster/k8s/namespaces/<%-serviceName%>"
|
|
31
32
|
slos = yamldecode(file("${get_terragrunt_dir()}/slos.yaml")),
|
|
33
|
+
documentation = "[Alerting guidelines](https://confluence.extendaretail.com/x/71fhBg)"
|
|
34
|
+
user_labels = {
|
|
35
|
+
cc = local.common_vars.locals.cost_center
|
|
36
|
+
clan = local.common_vars.locals.clan_name
|
|
37
|
+
jira_project_key = lookup(local.common_vars.locals, "jira_project_key", null)
|
|
38
|
+
},
|
|
32
39
|
}
|
|
33
40
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
|
|
2
2
|
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
|
|
3
3
|
terraform {
|
|
4
|
-
source = "git::https://github.com/extenda/tf-module-gcp-spanner//?ref=v0.1.
|
|
4
|
+
source = "git::https://github.com/extenda/tf-module-gcp-spanner//?ref=v0.1.2"
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
# Include all settings from the root terragrunt.hcl file
|