Skip to content

Commit

Permalink
Merge pull request #1461 from 0xch4z/add-node-output
Browse files Browse the repository at this point in the history
add control_plane_nodes and agent_nodes output
  • Loading branch information
mysticaltech committed Sep 22, 2024
2 parents 3e4a0a2 + 21b8ceb commit 035e823
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@

| Name | Description |
|------|-------------|
| <a name="output_agent_nodes"></a> [agent\_nodes](#output\_agent\_nodes) | The agent nodes |
| <a name="output_agents_public_ipv4"></a> [agents\_public\_ipv4](#output\_agents\_public\_ipv4) | The public IPv4 addresses of the agent servers. |
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Shared suffix for all resources belonging to this cluster. |
| <a name="output_control_plane_nodes"></a> [control\_plane\_nodes](#output\_control\_plane\_nodes) | The control plane nodes |
| <a name="output_control_planes_public_ipv4"></a> [control\_planes\_public\_ipv4](#output\_control\_planes\_public\_ipv4) | The public IPv4 addresses of the controlplane servers. |
| <a name="output_ingress_public_ipv4"></a> [ingress\_public\_ipv4](#output\_ingress\_public\_ipv4) | The public IPv4 address of the Hetzner load balancer |
| <a name="output_ingress_public_ipv6"></a> [ingress\_public\_ipv6](#output\_ingress\_public\_ipv6) | The public IPv6 address of the Hetzner load balancer |
Expand Down
10 changes: 10 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ output "k3s_token" {
sensitive = true
}

output "control_plane_nodes" {
description = "The control plane nodes"
value = [for node in module.control_planes : node]
}

output "agent_nodes" {
description = "The agent nodes"
value = [for node in module.agents : node]
}

# Keeping for backward compatibility
output "kubeconfig_file" {
value = local.kubeconfig_external
Expand Down

0 comments on commit 035e823

Please sign in to comment.