Skip to content

Commit 825bda6

Browse files
authored
feat: add project and location output to fleet-membership (#1740)
1 parent 6b927e5 commit 825bda6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

modules/fleet-membership/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ To deploy this config:
3737
| Name | Description |
3838
|------|-------------|
3939
| cluster\_membership\_id | The ID of the hub membership |
40+
| location | The location of the hub membership. |
41+
| project\_id | The project of the hub membership. |
4042
| wait | An output to use when you want to depend on registration finishing |
4143

4244
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/fleet-membership/outputs.tf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2022 Google LLC
2+
* Copyright 2022-2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,3 +23,14 @@ output "wait" {
2323
description = "An output to use when you want to depend on registration finishing"
2424
value = var.enable_fleet_registration ? google_gke_hub_membership.primary[0].membership_id : local.gke_hub_membership_name
2525
}
26+
27+
output "project_id" {
28+
description = "The project of the hub membership."
29+
value = local.hub_project_id
30+
}
31+
32+
output "location" {
33+
# TODO: google_gke_hub_membership b/300473592
34+
description = "The location of the hub membership."
35+
value = "global"
36+
}

0 commit comments

Comments
 (0)