Skip to content

Commit

Permalink
added new outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
3pings committed Aug 23, 2024
1 parent dc1c066 commit 45d3036
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Additionally, with the "VIP" tag, we enable Kubevip for HA. The Edge Host is no
```
module "edge-demo-module" {
source = "spectrocloud/edge/spectrocloud"
version = "1.3.2"
version = "1.4.0"
# Store Number/Location
name = "demo"
# add tags to the cluster (optional) list(strings)
Expand Down Expand Up @@ -172,5 +172,8 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_admin_kube_config"></a> [admin\_kube\_config](#output\_admin\_kube\_config) | n/a |
| <a name="output_id"></a> [id](#output\_id) | n/a |
| <a name="output_kubeconfig"></a> [kubeconfig](#output\_kubeconfig) | n/a |
| <a name="output_name"></a> [name](#output\_name) | n/a |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2 changes: 1 addition & 1 deletion examples/cluster.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "edge-demo-module" {
source = "spectrocloud/edge/spectrocloud"
version = "1.3.2"
version = "1.4.0"
# Store Number/Location
name = "demo"
# add tags to the cluster (optional) list(strings)
Expand Down
16 changes: 16 additions & 0 deletions examples/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Examples for using outputs with the module.
### For the kubeconfig and admin_kube_config you must set the skip_wait_for_completion variable to true.

#####################################################
# output "name" {
# value = module.edge-demo-module.name
# }
# output "kubeconfig" {
# value = module.edge-demo-module.kubeconfig
# }
# output "admin_kube_config" {
# value = module.edge-demo-module.admin_kube_config
# }
# output "id" {
# value = module.edge-demo-module.id
# }
9 changes: 9 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
output "kubeconfig" {
value = spectrocloud_cluster_edge_native.this.kubeconfig
}
output "admin_kube_config" {
value = spectrocloud_cluster_edge_native.this.admin_kube_config
}
output "id" {
value = spectrocloud_cluster_edge_native.this.id
}
output "name" {
value = spectrocloud_cluster_edge_native.this.name
}

0 comments on commit 45d3036

Please sign in to comment.