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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/fleet-membership/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ To deploy this config:
| Name | Description |
|------|-------------|
| cluster\_membership\_id | The ID of the hub membership |
| location | The location of the hub membership. |
| project\_id | The project of the hub membership. |
| wait | An output to use when you want to depend on registration finishing |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13 changes: 12 additions & 1 deletion modules/fleet-membership/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2022 Google LLC
* Copyright 2022-2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,3 +23,14 @@ output "wait" {
description = "An output to use when you want to depend on registration finishing"
value = var.enable_fleet_registration ? google_gke_hub_membership.primary[0].membership_id : local.gke_hub_membership_name
}

output "project_id" {
description = "The project of the hub membership."
value = local.hub_project_id
}

output "location" {
# TODO: google_gke_hub_membership b/300473592
description = "The location of the hub membership."
value = "global"
}