Skip to content

Commit ea65896

Browse files
committed
adjust path of temporary files to parent scaletest folder
1 parent b791769 commit ea65896

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scaletest/terraform/coder.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ EOF
131131
}
132132

133133
resource "local_file" "kubernetes_template" {
134-
filename = "${path.module}/.coderv2/templates/kubernetes/main.tf"
134+
filename = "${path.module}/../.coderv2/templates/kubernetes/main.tf"
135135
content = <<EOF
136136
terraform {
137137
required_providers {
@@ -219,7 +219,7 @@ resource "local_file" "kubernetes_template" {
219219
}
220220

221221
resource "local_file" "output_vars" {
222-
filename = "${path.module}/.coderv2/url"
222+
filename = "${path.module}/../.coderv2/url"
223223
content = local.coder_url
224224
}
225225

scaletest/terraform/prometheus.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ prometheus:
102102
# after creating a cluster, and we want this to be brought up
103103
# with a single command.
104104
resource "local_file" "coder-monitoring-manifest" {
105-
filename = "${path.module}/.coderv2/coder-monitoring.yaml"
105+
filename = "${path.module}/../.coderv2/coder-monitoring.yaml"
106106
depends_on = [helm_release.prometheus-chart]
107107
content = <<EOF
108108
apiVersion: monitoring.coreos.com/v1
@@ -122,7 +122,7 @@ spec:
122122

123123
resource "null_resource" "coder-monitoring-manifest_apply" {
124124
provisioner "local-exec" {
125-
working_dir = "${abspath(path.module)}/.coderv2"
125+
working_dir = "${abspath(path.module)}/../.coderv2"
126126
command = <<EOF
127127
KUBECONFIG=${var.name}-cluster.kubeconfig gcloud container clusters get-credentials ${google_container_cluster.primary.name} --project=${var.project_id} --zone=${var.zone} && \
128128
KUBECONFIG=${var.name}-cluster.kubeconfig kubectl apply -f ${abspath(local_file.coder-monitoring-manifest.filename)}

0 commit comments

Comments
 (0)