@hiiretail/gcp-infra-cli 0.79.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.toUpperCase()) return true;
5
- return 'Must be uppercase and not contain any whitepace';
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
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {