Skip to content

Commit

Permalink
feat(bootstrap-gcp): add cluster labels (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkoss authored Apr 7, 2023
1 parent e3a7bf4 commit 409bc29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap/terraform/gcp-bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ module "gke" {
release_channel = var.release_channel
regional = var.regional_cluster
zones = var.cluster_zones
cluster_resource_labels = merge(
{
"managed-by" = "plural"
},
var.cluster_labels,
)
grant_registry_access = var.grant_registry_access

node_pools = var.node_pools
Expand Down
5 changes: 5 additions & 0 deletions bootstrap/terraform/gcp-bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ variable "cluster_zones" {
default = []
}

variable "cluster_labels" {
type = map(string)
default = {}
}

variable "grant_registry_access" {
type = bool
description = "Grants created cluster-specific service account storage.objectViewer and artifactregistry.reader roles."
Expand Down

0 comments on commit 409bc29

Please sign in to comment.