Skip to content

Commit b00a9ab

Browse files
zql-tqyxiaozhu36
authored andcommitted
Support output 'this_k8s_node_ids' parameter.
1 parent fcdac45 commit b00a9ab

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.3.0 (Unreleased)
1+
## 1.4.0 (Unreleased)
2+
## 1.3.0 (Jun 26,2020)
3+
4+
IMPROVEMENTS
5+
6+
- Support output 'this_k8s_node_ids' parameter. [GH-5]( https://github.com/terraform-alicloud-modules/terraform-alicloud-kubernetes/pull/5)
7+
28
## 1.2.0 (Jun 16,2020)
39

410
IMPROVEMENTS

examples/complete/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ output "cluster_nodes" {
2929
value = module.k8s.cluster_nodes
3030
}
3131

32+
output "this_k8s_node_ids" {
33+
description = "List ids of of cluster node."
34+
value = module.k8s.this_k8s_node_ids
35+
}

outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ output "cluster_nodes" {
2929
value = alicloud_cs_kubernetes.k8s.*.worker_nodes
3030
}
3131

32+
output "this_k8s_node_ids" {
33+
description = "List ids of of cluster node."
34+
value = [for _, obj in concat(alicloud_cs_kubernetes.k8s.*.worker_nodes, [{}])[0] : lookup(obj,"id")]
35+
}

0 commit comments

Comments
 (0)