Skip to content

Commit

Permalink
Add labels to google_compute_global_address resource
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis committed Aug 3, 2024
1 parent 8ce7f2d commit a2a311e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ No modules.
|------|-------------|------|---------|:--------:|
| <a name="input_gke_fleet_host_project_id"></a> [gke\_fleet\_host\_project\_id](#input\_gke\_fleet\_host\_project\_id) | The project ID of the GKE Hub host project | `string` | `""` | no |
| <a name="input_istio_gateway_dns"></a> [istio\_gateway\_dns](#input\_istio\_gateway\_dns) | Map of attributes for the Istio gateway domain names, it is also used to create the managed certificate resource | <pre>map(object({<br> managed_zone = string<br> project = string<br> }))</pre> | `{}` | 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_project"></a> [project](#input\_project) | The ID of the project in which the resource belongs | `string` | n/a | yes |

### Outputs
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
resource "google_compute_global_address" "istio_gateway_mci" {
count = var.gke_fleet_host_project_id == "" ? 1 : 0

labels = var.labels
name = "istio-gateway-mci"
project = var.project
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ variable "istio_gateway_dns" {
default = {}
}

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

variable "project" {
description = "The ID of the project in which the resource belongs"
type = string
Expand Down

0 comments on commit a2a311e

Please sign in to comment.