From e23c580a74806b762a6ee107a713d4adb278ea8c Mon Sep 17 00:00:00 2001 From: demo-bot Date: Thu, 2 Apr 2026 13:11:14 +0000 Subject: [PATCH] feat(k6): add TestRun CRD reference template --- k6/testrun.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 k6/testrun.yaml diff --git a/k6/testrun.yaml b/k6/testrun.yaml new file mode 100644 index 0000000..ecb8e8c --- /dev/null +++ b/k6/testrun.yaml @@ -0,0 +1,36 @@ +# FALLBACK k6 TestRun CRD — reference template for load testing otel-demo. +# 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-otel-demo + namespace: demo-apps + labels: + app: otel-demo + backstage.io/component: otel-demo + app.kubernetes.io/managed-by: backstage + app.kubernetes.io/component: load-testing +spec: + parallelism: 1 + script: + configMap: + name: k6-test-otel-demo + file: load-test.js + runner: + image: grafana/k6:latest + envFrom: + - configMapRef: + name: k6-test-otel-demo + env: + - name: K6_OTEL_SERVICE_NAME + value: k6-otel-demo + - name: TEST_VUS + value: "10" + - name: TEST_DURATION + value: "30s"