Skip to content

Commit 2fc62a4

Browse files
committed
back to curl
1 parent 24c8b1f commit 2fc62a4

File tree

7 files changed

+155
-264
lines changed

7 files changed

+155
-264
lines changed

scaletest/terraform/action/coder_proxies.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ resource "null_resource" "api_key" {
2020
provisioner "local-exec" {
2121
interpreter = ["/bin/bash", "-c"]
2222
command = <<EOF
23+
<<<<<<< HEAD
2324
set -e
2425
26+
=======
27+
>>>>>>> 46f631c0c (back to curl)
2528
curl '${local.deployments.primary.url}/api/v2/users/first' \
2629
--data-raw $'{"email":"${local.coder_admin_email}","password":"${local.coder_admin_password}","username":"${local.coder_admin_user}","name":"${local.coder_admin_full_name}","trial":false}' \
2730
--insecure --silent --output /dev/null

scaletest/terraform/action/coder_templates.tf

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ resource "kubernetes_config_map" "template" {
9898
}
9999
}
100100

101+
<<<<<<< HEAD
101102
resource "kubernetes_job" "push_template" {
103+
=======
104+
resource "kubernetes_pod" "push_template" {
105+
>>>>>>> 46f631c0c (back to curl)
102106
provider = kubernetes.primary
103107
104108
metadata {
@@ -109,6 +113,7 @@ resource "kubernetes_job" "push_template" {
109113
}
110114
}
111115
spec {
116+
<<<<<<< HEAD
112117
completions = 1
113118
template {
114119
metadata {}
@@ -157,4 +162,50 @@ resource "kubernetes_job" "push_template" {
157162
}
158163
}
159164
wait_for_completion = true
165+
=======
166+
affinity {
167+
node_affinity {
168+
required_during_scheduling_ignored_during_execution {
169+
node_selector_term {
170+
match_expressions {
171+
key = "cloud.google.com/gke-nodepool"
172+
operator = "In"
173+
values = ["${google_container_node_pool.node_pool["primary_misc"].name}"]
174+
}
175+
}
176+
}
177+
}
178+
}
179+
container {
180+
name = "cli"
181+
image = "${var.coder_image_repo}:${var.coder_image_tag}"
182+
command = [
183+
"/opt/coder",
184+
"--verbose",
185+
"--url=${local.deployments.primary.url}",
186+
"--token=${trimspace(data.local_file.api_key.content)}",
187+
"templates",
188+
"push",
189+
"--directory=/template",
190+
"--yes",
191+
"kubernetes"
192+
]
193+
volume_mount {
194+
name = "coder-template"
195+
mount_path = "/template"
196+
}
197+
}
198+
volume {
199+
name = "coder-template"
200+
config_map {
201+
name = kubernetes_config_map.template.metadata.0.name
202+
items {
203+
key = "main.tf"
204+
path = "main.tf"
205+
}
206+
}
207+
}
208+
restart_policy = "Never"
209+
}
210+
>>>>>>> 46f631c0c (back to curl)
160211
}

scaletest/terraform/action/coderd.tf

Lines changed: 0 additions & 165 deletions
This file was deleted.

scaletest/terraform/action/k8s_coder_asia.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "kubernetes_secret" "proxy_token_asia" {
3636
namespace = kubernetes_namespace.coder_asia.metadata.0.name
3737
}
3838
data = {
39-
token = coderd_workspace_proxy.asia.session_token
39+
token = trimspace(data.local_file.asia_proxy_token.content)
4040
}
4141
lifecycle {
4242
ignore_changes = [timeouts, wait_for_service_account_token]

scaletest/terraform/action/k8s_coder_europe.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "kubernetes_secret" "proxy_token_europe" {
3636
namespace = kubernetes_namespace.coder_europe.metadata.0.name
3737
}
3838
data = {
39-
token = coderd_workspace_proxy.europe.session_token
39+
token = trimspace(data.local_file.europe_proxy_token.content)
4040
}
4141
lifecycle {
4242
ignore_changes = [timeouts, wait_for_service_account_token]

scaletest/terraform/action/vars.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ variable "provisionerd_image_tag" {
8787
}
8888

8989
// Traffic
90-
variable "traffic_bytes_per_tick" {
91-
description = "Number of bytes to send per tick."
92-
default = 1024
93-
}
90+
# variable "traffic_bytes_per_tick" {
91+
# description = "Number of bytes to send per tick."
92+
# default = 1024
93+
# }
9494

95-
variable "traffic_tick_interval" {
96-
description = "Interval between ticks."
97-
default = "1s"
98-
}
95+
# variable "traffic_tick_interval" {
96+
# description = "Interval between ticks."
97+
# default = "10s"
98+
# }
9999

100100
variable "workspace_count" {
101101
description = "Number of workspaces to create."
@@ -104,5 +104,5 @@ variable "workspace_count" {
104104

105105
variable "workspace_create_concurrency" {
106106
description = "Number of workspaces to create concurrently."
107-
default = 1
107+
default = 10
108108
}

0 commit comments

Comments
 (0)