Skip to content

Commit c243496

Browse files
authored
Expose kubeconfig path out of Typhoon test environment. (#1035)
1 parent fadd106 commit c243496

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

kubernetes/test-infra/typhoon-aws/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
locals {
2+
kubeconfig_path = "${path.root}/kubeconfig"
3+
}
4+
15
resource "tls_private_key" "typhoon-acc" {
26
algorithm = "RSA"
37
}
@@ -26,3 +30,7 @@ resource "null_resource" "ssh-key" {
2630
data "aws_route53_zone" "typhoon-acc" {
2731
name = var.base_domain
2832
}
33+
34+
output "kubeconfig_path" {
35+
value = local.kubeconfig_path
36+
}

kubernetes/test-infra/typhoon-aws/module_1_18.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ module "typhoon-acc-1_18" {
2828
resource "local_file" "typhoon-acc_1_18" {
2929
count = local.enabled_1_18
3030
content = module.typhoon-acc-1_18[0].kubeconfig-admin
31-
filename = "kubeconfig"
31+
filename = local.kubeconfig_path
3232
}

kubernetes/test-infra/typhoon-aws/module_1_19.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ module "typhoon-acc-1_19" {
2828
resource "local_file" "typhoon-acc-1_19" {
2929
count = local.enabled_1_19
3030
content = module.typhoon-acc-1_19[0].kubeconfig-admin
31-
filename = "kubeconfig"
31+
filename = local.kubeconfig_path
3232
}

0 commit comments

Comments
 (0)