Skip to content

Commit f9ce464

Browse files
zql-tqyxiaozhu36
authored andcommitted
Support output 'this_k8s_node_ids' parameter.
1 parent 8033abd commit f9ce464

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## 1.4.0 (Unreleased)
1+
## 1.5.0 (Unreleased)
2+
## 1.4.0 (Jun 26, 2020)
3+
4+
IMPROVEMENTS:
5+
6+
- Support output 'this_k8s_node_ids' parameter [GH-12](https://github.com/terraform-alicloud-modules/terraform-alicloud-managed-kubernetes/pull/12)
7+
28
## 1.3.0 (April 09, 2020)
39

410
IMPROVEMENTS:

examples/basic/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ output "this_k8s_nodes" {
1111
description = "List nodes of cluster."
1212
value = module.managed-k8s.this_k8s_nodes
1313
}
14+
output "this_k8s_node_ids" {
15+
description = "List ids of of cluster node."
16+
value = module.managed-k8s.this_k8s_node_ids
17+
}
1418
// Output VPC
1519
output "this_vpc_id" {
1620
description = "The ID of the VPC."

outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ output "this_k8s_nodes" {
1111
description = "List nodes of cluster."
1212
value = concat(alicloud_cs_managed_kubernetes.this.*.worker_nodes, [""])[0]
1313
}
14+
output "this_k8s_node_ids" {
15+
description = "List ids of of cluster node."
16+
value = [for _, obj in concat(alicloud_cs_managed_kubernetes.this.*.worker_nodes, [{}])[0] : lookup(obj,"id")]
17+
}
1418
// Output VPC
1519
output "this_vpc_id" {
1620
description = "The ID of the VPC."

0 commit comments

Comments
 (0)