feat(k6): add TestRun CRD reference template (#4)
Some checks failed
CI Pipeline / Build and Test (push) Has been cancelled
Security Scanning / Trivy — Filesystem & Dependency Scan (push) Has been cancelled
Security Scanning / Gitleaks — Secret Scan (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
Build and Publish TechDocs / build-and-publish (push) Has been cancelled
Some checks failed
CI Pipeline / Build and Test (push) Has been cancelled
Security Scanning / Trivy — Filesystem & Dependency Scan (push) Has been cancelled
Security Scanning / Gitleaks — Secret Scan (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
Build and Publish TechDocs / build-and-publish (push) Has been cancelled
This commit was merged in pull request #4.
This commit is contained in:
36
k6/testrun.yaml
Normal file
36
k6/testrun.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
# FALLBACK k6 TestRun CRD — reference template for load testing online-boutique.
|
||||
# This static skeleton is only used when The Watcher agent fails to generate
|
||||
# a bespoke k6 script. When generation succeeds, the agent produces a custom
|
||||
# TestRun CRD that replaces this file in the scaffolded output repository.
|
||||
#
|
||||
# TestRun CRDs are committed to the repo as a reference. They are created
|
||||
# dynamically from Backstage (not auto-synced by ArgoCD) because they are
|
||||
# ephemeral one-shot resources.
|
||||
apiVersion: k6.io/v1alpha1
|
||||
kind: TestRun
|
||||
metadata:
|
||||
name: k6-online-boutique
|
||||
namespace: demo-apps
|
||||
labels:
|
||||
app: online-boutique
|
||||
backstage.io/component: online-boutique
|
||||
app.kubernetes.io/managed-by: backstage
|
||||
app.kubernetes.io/component: load-testing
|
||||
spec:
|
||||
parallelism: 1
|
||||
script:
|
||||
configMap:
|
||||
name: k6-test-online-boutique
|
||||
file: load-test.js
|
||||
runner:
|
||||
image: grafana/k6:latest
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: k6-test-online-boutique
|
||||
env:
|
||||
- name: K6_OTEL_SERVICE_NAME
|
||||
value: k6-online-boutique
|
||||
- name: TEST_VUS
|
||||
value: "10"
|
||||
- name: TEST_DURATION
|
||||
value: "30s"
|
||||
Reference in New Issue
Block a user