Skip to content

Commit

Permalink
feat: add project and location output to fleet-membership (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Sep 20, 2023
1 parent 6b927e5 commit 825bda6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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"
}

0 comments on commit 825bda6

Please sign in to comment.