-
Notifications
You must be signed in to change notification settings - Fork 899
feat(scaletest): add scaletest-runner template #9662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 18 commits
51b5054
9a579fb
cde4388
cd20cb8
12ecd71
55d6fd8
b251af9
1b1b401
fa0de66
77d575c
abab20f
dac2ff8
059988e
6352ce1
67e54a6
8f6950a
964778e
57fd74e
4c22a73
35ac68f
7cffd30
5cb0e9b
e037b6b
f336a0a
047c784
18875f4
0507591
d83f480
179f5b4
5f5d3b1
c9205ce
f7b8c00
4688f59
3f4008c
0fce513
94b49e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: scaletest-sa | ||
namespace: coder-big | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: scaletest-role | ||
namespace: coder-big | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: ["*"] | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- deletecollection | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: scaletest-rolebinding | ||
namespace: coder-big | ||
subjects: | ||
- kind: ServiceAccount | ||
name: scaletest-sa | ||
roleRef: | ||
kind: Role | ||
name: scaletest-role | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: coder-provisioner-podmonitor-rolebinding | ||
namespace: coder-big | ||
subjects: | ||
- kind: ServiceAccount | ||
name: coder-provisioner | ||
roleRef: | ||
kind: Role | ||
name: coder-podmonitor | ||
--- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This image is used to run scaletest jobs and, although it is inside | ||
# the template directory, it is built separately and pushed to | ||
# gcr.io/coder-dev-1/scaletest-runner:latest. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Self-review: I ended up keeping this file close to where it's used, however, it may be confusing if someone tries to edit it in the template editor and there are no changes. Perhaps I should move it elsewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, in theory we could use our CI to build and push it... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, that was the idea behind the "Future improvements" below. 👍🏻 IMO not the highest priority right now, though. |
||
# | ||
# Future improvements will include versioning and including the version | ||
# in the template push. | ||
|
||
FROM codercom/enterprise-base:ubuntu | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
USER root | ||
|
||
RUN wget --quiet -O /tmp/terraform.zip https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip \ | ||
&& unzip /tmp/terraform.zip -d /usr/local/bin \ | ||
&& rm /tmp/terraform.zip \ | ||
&& terraform --version | ||
|
||
RUN wget --quiet -O /tmp/envsubst "https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-$(uname -s)-$(uname -m)" \ | ||
&& chmod +x /tmp/envsubst \ | ||
&& mv /tmp/envsubst /usr/local/bin | ||
|
||
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \ | ||
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \ | ||
&& apt-get update \ | ||
&& apt-get install --yes \ | ||
google-cloud-cli \ | ||
jq \ | ||
kubectl \ | ||
&& gcloud --version \ | ||
&& kubectl version --client \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
mafredri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
USER coder |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: Scaletest Runner | ||
description: Run a scaletest. | ||
tags: [local] | ||
--- | ||
|
||
# Scaletest Runner | ||
|
||
Run a scaletest. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be incorporated into scaletest/terraform instead
EDIT: If you prefer, I can incorporate this when I'm going through and updating the tf config instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'd appreciate that! Should I remove it from this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah you can leave it.