Skip to content

Commit 5623d51

Browse files
authored
feat: Add instance_group_urls output (#618)
1 parent 2e4f36a commit 5623d51

File tree

15 files changed

+47
-0
lines changed

15 files changed

+47
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Then perform the following commands on the root folder:
185185
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |
186186
| http\_load\_balancing\_enabled | Whether http load balancing enabled |
187187
| identity\_namespace | Workload Identity namespace |
188+
| instance\_group\_urls | List of GKE generated instance groups |
188189
| location | Cluster location (region if regional cluster, zone if zonal cluster) |
189190
| logging\_service | Logging service used |
190191
| master\_authorized\_networks\_config | Networks from which access to master is permitted |

autogen/main/outputs.tf.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ output "identity_namespace" {
131131
google_container_cluster.primary
132132
]
133133
}
134+
135+
output "instance_group_urls" {
136+
description = "List of GKE generated instance groups"
137+
value = google_container_cluster.primary.instance_group_urls
138+
}
134139
{% if private_cluster %}
135140

136141
output "master_ipv4_cidr_block" {

modules/beta-private-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ Then perform the following commands on the root folder:
241241
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |
242242
| http\_load\_balancing\_enabled | Whether http load balancing enabled |
243243
| identity\_namespace | Workload Identity namespace |
244+
| instance\_group\_urls | List of GKE generated instance groups |
244245
| intranode\_visibility\_enabled | Whether intra-node visibility is enabled |
245246
| istio\_enabled | Whether Istio is enabled |
246247
| location | Cluster location (region if regional cluster, zone if zonal cluster) |

modules/beta-private-cluster-update-variant/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ output "identity_namespace" {
132132
]
133133
}
134134

135+
output "instance_group_urls" {
136+
description = "List of GKE generated instance groups"
137+
value = google_container_cluster.primary.instance_group_urls
138+
}
139+
135140
output "master_ipv4_cidr_block" {
136141
description = "The IP range in CIDR notation used for the hosted master network"
137142
value = var.master_ipv4_cidr_block

modules/beta-private-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ Then perform the following commands on the root folder:
219219
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |
220220
| http\_load\_balancing\_enabled | Whether http load balancing enabled |
221221
| identity\_namespace | Workload Identity namespace |
222+
| instance\_group\_urls | List of GKE generated instance groups |
222223
| intranode\_visibility\_enabled | Whether intra-node visibility is enabled |
223224
| istio\_enabled | Whether Istio is enabled |
224225
| location | Cluster location (region if regional cluster, zone if zonal cluster) |

modules/beta-private-cluster/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ output "identity_namespace" {
132132
]
133133
}
134134

135+
output "instance_group_urls" {
136+
description = "List of GKE generated instance groups"
137+
value = google_container_cluster.primary.instance_group_urls
138+
}
139+
135140
output "master_ipv4_cidr_block" {
136141
description = "The IP range in CIDR notation used for the hosted master network"
137142
value = var.master_ipv4_cidr_block

modules/beta-public-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Then perform the following commands on the root folder:
230230
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |
231231
| http\_load\_balancing\_enabled | Whether http load balancing enabled |
232232
| identity\_namespace | Workload Identity namespace |
233+
| instance\_group\_urls | List of GKE generated instance groups |
233234
| intranode\_visibility\_enabled | Whether intra-node visibility is enabled |
234235
| istio\_enabled | Whether Istio is enabled |
235236
| location | Cluster location (region if regional cluster, zone if zonal cluster) |

modules/beta-public-cluster-update-variant/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ output "identity_namespace" {
132132
]
133133
}
134134

135+
output "instance_group_urls" {
136+
description = "List of GKE generated instance groups"
137+
value = google_container_cluster.primary.instance_group_urls
138+
}
139+
135140
output "istio_enabled" {
136141
description = "Whether Istio is enabled"
137142
value = local.cluster_istio_enabled

modules/beta-public-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ Then perform the following commands on the root folder:
208208
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |
209209
| http\_load\_balancing\_enabled | Whether http load balancing enabled |
210210
| identity\_namespace | Workload Identity namespace |
211+
| instance\_group\_urls | List of GKE generated instance groups |
211212
| intranode\_visibility\_enabled | Whether intra-node visibility is enabled |
212213
| istio\_enabled | Whether Istio is enabled |
213214
| location | Cluster location (region if regional cluster, zone if zonal cluster) |

modules/beta-public-cluster/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ output "identity_namespace" {
132132
]
133133
}
134134

135+
output "instance_group_urls" {
136+
description = "List of GKE generated instance groups"
137+
value = google_container_cluster.primary.instance_group_urls
138+
}
139+
135140
output "istio_enabled" {
136141
description = "Whether Istio is enabled"
137142
value = local.cluster_istio_enabled

0 commit comments

Comments
 (0)