Skip to content

Commit 409bc29

Browse files
authored
feat(bootstrap-gcp): add cluster labels (#573)
1 parent e3a7bf4 commit 409bc29

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bootstrap/terraform/gcp-bootstrap/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ module "gke" {
6363
release_channel = var.release_channel
6464
regional = var.regional_cluster
6565
zones = var.cluster_zones
66+
cluster_resource_labels = merge(
67+
{
68+
"managed-by" = "plural"
69+
},
70+
var.cluster_labels,
71+
)
6672
grant_registry_access = var.grant_registry_access
6773

6874
node_pools = var.node_pools

bootstrap/terraform/gcp-bootstrap/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ variable "cluster_zones" {
350350
default = []
351351
}
352352

353+
variable "cluster_labels" {
354+
type = map(string)
355+
default = {}
356+
}
357+
353358
variable "grant_registry_access" {
354359
type = bool
355360
description = "Grants created cluster-specific service account storage.objectViewer and artifactregistry.reader roles."

0 commit comments

Comments
 (0)