Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/fleet-membership/membership.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ resource "google_gke_hub_membership" "primary" {
project = local.hub_project_id
membership_id = local.gke_hub_membership_name
location = var.membership_location
labels = var.resource_labels

endpoint {
gke_cluster {
Expand Down
6 changes: 6 additions & 0 deletions modules/fleet-membership/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ variable "membership_location" {
type = string
default = "global"
}

variable "resource_labels" {
description = "The resource labels (a map of key/value pairs) to be applied to the fleet membership. This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource."
type = map(string)
default = null
}
Loading