Skip to content

Commit

Permalink
Add labels to google_compute_global_address resource (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis authored Aug 3, 2024
1 parent 35c9943 commit 8ce7f2d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-symlinks

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.92.0
rev: v1.92.1
hooks:
- id: terraform_fmt

Expand All @@ -29,7 +29,7 @@ repos:
- id: terraform_docs

- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.213
rev: 3.2.217
hooks:
- id: checkov
verbose: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 5.37.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 5.39.1 |

### Modules

Expand Down
3 changes: 2 additions & 1 deletion regional/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 5.37.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 5.39.1 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.14.0 |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.31.0 |

Expand Down Expand Up @@ -64,6 +64,7 @@ No modules.
| <a name="input_istio_remote_injection_path"></a> [istio\_remote\_injection\_path](#input\_istio\_remote\_injection\_path) | The sidecar injector mutating webhook configuration path value for the clientConfig.service field | `string` | `"/inject"` | no |
| <a name="input_istio_remote_injection_url"></a> [istio\_remote\_injection\_url](#input\_istio\_remote\_injection\_url) | The sidecar injector mutating webhook configuration clientConfig.url value | `string` | `""` | no |
| <a name="input_istio_version"></a> [istio\_version](#input\_istio\_version) | The version of istio to install | `string` | `"1.22.2"` | no |
| <a name="input_labels"></a> [labels](#input\_labels) | A map of key/value pairs to assign to the resources being created | `map(string)` | `{}` | no |
| <a name="input_node_location"></a> [node\_location](#input\_node\_location) | The zone in which the cluster's nodes should be located. If not specified, the cluster's nodes are located across zones in the region | `string` | `null` | no |
| <a name="input_project"></a> [project](#input\_project) | The ID of the project in which the resource belongs | `string` | n/a | yes |
| <a name="input_region"></a> [region](#input\_region) | The region in which the resource belongs | `string` | n/a | yes |
Expand Down
1 change: 1 addition & 0 deletions regional/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resource "google_compute_global_address" "istio_gateway" {
count = var.enable_istio_gateway ? 1 : 0


labels = var.labels
name = "istio-gateway-${var.region}"
project = var.project
}
Expand Down
6 changes: 6 additions & 0 deletions regional/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ variable "istio_version" {
default = "1.22.2"
}

variable "labels" {
description = "A map of key/value pairs to assign to the resources being created"
type = map(string)
default = {}
}

variable "node_location" {
description = "The zone in which the cluster's nodes should be located. If not specified, the cluster's nodes are located across zones in the region"
type = string
Expand Down

0 comments on commit 8ce7f2d

Please sign in to comment.