Skip to content

Commit d11251b

Browse files
committed
feat(iac): Expose k3s kubeconfig as an output variable
1 parent 1866574 commit d11251b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

deployment/terraform/modules/openstack-kubernetes-infra/kubeconfig-extraction.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ data "local_file" "kube_config_raw_file" {
2222
depends_on = [ null_resource.copy_kubeconfig ]
2323
}
2424

25-
# output "kube_config_raw" {
26-
# value = data.local_file.kube_config_raw_file
27-
# description = "Kubeconfig for this cluster"
28-
# }
25+
2926

3027
# data "external" "extract_kubeconfig_file" {
3128
# program = ["bash", "${path.module}/kubeconfig_extraction.sh"]

deployment/terraform/modules/openstack-kubernetes-infra/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ output "kubeconfig_file" {
2929
value = abspath(local.kubeconfig_file)
3030
description = "Path to the generated KUBECONFIG file used to connect to kubernetes"
3131
}
32+
33+
output "kube_config_raw" {
34+
value = data.local_file.kube_config_raw_file
35+
description = "Kubeconfig for this cluster"
36+
}

0 commit comments

Comments
 (0)