File tree 6 files changed +24
-2
lines changed
6 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ RUN apt-get update --quiet && apt-get install --yes \
159
159
terraform \
160
160
fish \
161
161
unzip \
162
- zstd && \
162
+ zstd \
163
+ gettext-base && \
163
164
# Delete package cache to avoid consuming space in layer
164
165
apt-get clean && \
165
166
# Configure FIPS-compliant policies
Original file line number Diff line number Diff line change @@ -46,7 +46,14 @@ All of the above arguments may be specified as environment variables. Consult th
46
46
47
47
### Prometheus Metrics
48
48
49
- To capture Prometheus metrics from the loadtest, two environment
49
+ To capture Prometheus metrics from the loadtest, two environment variables are required:
50
+
51
+ - ` SCALETEST_PROMETHEUS_REMOTE_WRITE_USER `
52
+ - ` SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD `
53
+
54
+ ### Enterprise License
55
+
56
+ To add an Enterprise license, set the ` SCALETEST_CODER_LICENSE ` environment variable to the JWT string
50
57
51
58
## Scenarios
52
59
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ SCALETEST_SCENARIO="${SCALETEST_SCENARIO:-}"
14
14
SCALETEST_PROJECT=" ${SCALETEST_PROJECT:- } "
15
15
SCALETEST_PROMETHEUS_REMOTE_WRITE_USER=" ${SCALETEST_PROMETHEUS_REMOTE_WRITE_USER:- } "
16
16
SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD=" ${SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD:- } "
17
+ SCALETEST_CODER_LICENSE=" ${SCALETEST_CODER_LICENSE:- } "
17
18
SCALETEST_SKIP_CLEANUP=" ${SCALETEST_SKIP_CLEANUP:- 0} "
18
19
SCALETEST_CREATE_CONCURRENCY=" ${SCALETEST_CREATE_CONCURRENCY:- 10} "
19
20
SCALETEST_TRAFFIC_BYTES_PER_TICK=" ${SCALETEST_TRAFFIC_BYTES_PER_TICK:- 1024} "
@@ -155,6 +156,11 @@ maybedryrun "$DRY_RUN" kubectl --kubeconfig="${KUBECONFIG}" -n "coder-${SCALETES
155
156
echo " Initializing Coder deployment."
156
157
DRY_RUN=" $DRY_RUN " " ${PROJECT_ROOT} /scaletest/lib/coder_init.sh" " ${SCALETEST_CODER_URL} "
157
158
159
+ if [[ -n " ${SCALETEST_CODER_LICENSE} " ]]; then
160
+ echo " Applying Coder Enterprise License"
161
+ DRY_RUN=" $DRY_RUN " " ${PROJECT_ROOT} /scaletest/lib/coder_shim.sh" license add -l " ${SCALETEST_CODER_LICENSE} "
162
+ fi
163
+
158
164
echo " Creating ${SCALETEST_NUM_WORKSPACES} workspaces."
159
165
DRY_RUN=" $DRY_RUN " " ${PROJECT_ROOT} /scaletest/lib/coder_shim.sh" scaletest create-workspaces \
160
166
--count " ${SCALETEST_NUM_WORKSPACES} " \
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ coder:
106
106
value: "true"
107
107
- name: "CODER_VERBOSE"
108
108
value: "true"
109
+ - name: "CODER_EXPERIMENTS"
110
+ value: "${ var . coder_experiments } "
109
111
image:
110
112
repo: ${ var . coder_image_repo }
111
113
tag: ${ var . coder_image_tag }
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ resource "kubernetes_secret" "prometheus-postgres-password" {
112
112
113
113
# Install Prometheus Postgres exporter helm chart
114
114
resource "helm_release" "prometheus-exporter-chart" {
115
+ depends_on = [helm_release . prometheus-chart ]
115
116
repository = local. prometheus_exporter_helm_repo
116
117
chart = local. prometheus_exporter_helm_chart
117
118
name = local. prometheus_exporter_release_name
Original file line number Diff line number Diff line change @@ -157,3 +157,8 @@ variable "prometheus_remote_write_send_interval" {
157
157
description = " Prometheus remote write interval."
158
158
default = " 15s"
159
159
}
160
+
161
+ variable "coder_experiments" {
162
+ description = " Coder Experiments to enable"
163
+ default = " "
164
+ }
You can’t perform that action at this time.
0 commit comments