-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added workflow dispatch and cleaned inputs * switching helm install to other namespace * switched to branch dependand repo checkout * added hardcoded branch name for testing * changed cronjob values * removed secret mount * updated k6 version due to CVEs * updated k6 version * test rollout to cluster * chnage GHA * fix gha 2 * fix gha 3 * fix gha 4 * fix gha 5 * test it * test GHA 7 * test GHA 8 * test GHA 9 * test GHA 10 * test GHA 11 * test GHA 12 * test GHA 13 * test GHA 14 * test GHA 15 * test GHA 16 --------- Co-authored-by: M_Westerholz <[email protected]> Co-authored-by: M. Westerholz <[email protected]>
- Loading branch information
1 parent
892fc8e
commit e655e04
Showing
14 changed files
with
117 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,4 @@ jobs: | |
run_trivy_scan: true | ||
image_tag_generation: "version_git_tag" | ||
add_latest_tag: true | ||
container_registry: "ghcr.io" | ||
publish_helm: | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
chart_name: schulportal-load-tests | ||
helm_chart_version_generation: specified | ||
image_tag_generation: specified | ||
helm_chart_version: ${{ github.ref_name }} | ||
image_tag: ${{ github.ref_name }} | ||
container_registry: "ghcr.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Trigger Loadtest | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branch: DBP-1012-setup-loadtest-env | ||
|
||
jobs: | ||
run_loadtest: | ||
permissions: | ||
packages: write | ||
security-events: write | ||
contents: read | ||
uses: ./.github/workflows/install-and-run-spsh-loadtest.yml | ||
with: | ||
branch: DBP-1012-setup-loadtest-env # | ||
secrets: | ||
# token: ${{ secrets.GITHUB_TOKEN }} # not sure whether this is needed | ||
KUBECONFIG: ${{ secrets.KUBECONFIG }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# Create image for running k6 with output for Prometheus | ||
FROM grafana/k6:0.43.1 | ||
FROM grafana/k6:0.54.0 | ||
USER root | ||
|
||
COPY wrapper-script.sh wrapper-script.sh | ||
RUN apk add git && \ | ||
chmod +x wrapper-script.sh | ||
|
||
ENTRYPOINT ["./wrapper-script.sh"] | ||
RUN apk add git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v1 | ||
name: schulportal-load-tests | ||
description: A Helm chart for distributed k6 loadtests in kubernetes. | ||
description: A Helm chart for distributed k6 loadtests | ||
version: 0.0.1 | ||
appVersion: "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
charts/schulportal-load-tests/templates/spsh-loadtest-secret-json.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: spsh-loadtest-secret-json | ||
namespace: spsh | ||
labels: | ||
app.kubernetes.io/managed-by: helm | ||
spec: | ||
itemPath: "vaults/spsh-dev/items/spsh-loadtest-secret-json" |
9 changes: 9 additions & 0 deletions
9
charts/schulportal-load-tests/templates/spsh-loadtest-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: spsh-loadtest-secret | ||
namespace: spsh | ||
labels: | ||
app.kubernetes.io/managed-by: helm | ||
spec: | ||
itemPath: "vaults/spsh-dev/items/spsh-loadtest-secret" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
branch: "main" | ||
|
||
cronjobs: | ||
dev-scenario: | ||
scriptPath: test.js | ||
scriptPath: 1_goto-sp-oidc.ts # 01, 02, 03 Files | ||
schedule: 0 8 * * * | ||
port: 5656 | ||
serviceName: dev-scenario | ||
image: ghcr.io/dbildungsplattform/spsh-k6-loadtest:latest | ||
environment: spsh.loadtest.dbildungscloud.dev | ||
|
||
# image-tag: latest | ||
imageTag: DBP-1012 | ||
environment: main.dev.spsh.dbildungsplattform.de | ||
# jobsParallelism: not used yet but available? test it | ||
# staging-scenario: | ||
# scriptPath: test.js | ||
# schedule: 0 8 * * * | ||
# port: 5656 | ||
# serviceName: staging-scenario | ||
# image: ghcr.io/dbildungsplattform/schulportal-load-tests:latest | ||
# environment: spsh.staging.dbildungsplattform.de | ||
# prod-scenario: | ||
# scriptPath: test.js | ||
# schedule: 0 8 * * * | ||
# port: 5656 | ||
# serviceName: prod-scenario | ||
# image: ghcr.io/dbildungsplattform/schulportal-load-tests:latest | ||
# environment: spsh.dbildungsplattform.de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.