Skip to content

Commit

Permalink
add resource_labels param to cluster_regional and zonal resource temp…
Browse files Browse the repository at this point in the history
…lates
  • Loading branch information
emalloy committed Feb 13, 2019
1 parent 9e6bfdc commit 40d77b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions autogen/cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ resource "google_container_cluster" "primary" {
name = "${var.name}"
description = "${var.description}"
project = "${var.project_id}"
resource_labels = "${var.cluster_resource_labels}"

region = "${var.region}"
additional_zones = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"]
Expand Down
1 change: 1 addition & 0 deletions autogen/cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ resource "google_container_cluster" "zonal_primary" {
name = "${var.name}"
description = "${var.description}"
project = "${var.project_id}"
resource_labels = "${var.cluster_resource_labels}"

zone = "${var.zones[0]}"
additional_zones = ["${slice(var.zones,1,length(var.zones))}"]
Expand Down

0 comments on commit 40d77b7

Please sign in to comment.