From 114538d55ff8ffb0533bfd637b9862ecda8938a6 Mon Sep 17 00:00:00 2001 From: arko0220 Date: Fri, 8 May 2026 17:25:30 +0500 Subject: [PATCH] feat: add extra_vars --- deployments/charts/atp3-bruno-runner/templates/job.yaml | 2 ++ deployments/charts/atp3-bruno-runner/values.yaml | 1 + entrypoint.sh | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- scripts | 2 +- 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/deployments/charts/atp3-bruno-runner/templates/job.yaml b/deployments/charts/atp3-bruno-runner/templates/job.yaml index eb91a9c..baa2478 100644 --- a/deployments/charts/atp3-bruno-runner/templates/job.yaml +++ b/deployments/charts/atp3-bruno-runner/templates/job.yaml @@ -67,6 +67,8 @@ spec: value: "{{ .Values.DEBUG_MODE }}" - name: TEST_PARAMS value: {{ toJson .Values.TEST_PARAMS | quote }} + - name: EXTRA_VARS + value: "{{ .Values.EXTRA_VARS }}" - name: ATP_ENVGENE_CONFIGURATION valueFrom: secretKeyRef: diff --git a/deployments/charts/atp3-bruno-runner/values.yaml b/deployments/charts/atp3-bruno-runner/values.yaml index 615ebae..50aaf52 100644 --- a/deployments/charts/atp3-bruno-runner/values.yaml +++ b/deployments/charts/atp3-bruno-runner/values.yaml @@ -22,6 +22,7 @@ MONITORING_ENABLED: true # Security Context properties # enabled is a flag to enable Security Context SECURITY_CONTEXT_ENABLED: false +EXTRA_VARS: "" # runAsUser is the user ID used to run the container podSecurityContext: runAsUser: 1000 diff --git a/entrypoint.sh b/entrypoint.sh index a3aaa5f..68bf271 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,6 +35,8 @@ source /scripts/native-report.sh source /scripts/envgene.sh # shellcheck disable=SC1091 source /scripts/render-environment-configuration.sh +# shellcheck disable=SC1091 +source /scripts/parse-extra-vars.sh # Execute main workflow echo "🚀 Starting test execution workflow..." @@ -44,6 +46,7 @@ echo "🚀 Starting test execution workflow..." trap 'finalize_once' EXIT init_environment || fail "Environment initialization failed" +parse_extra_vars || fail "EXTRA_VARS parsing failed" clone_repository || fail "Repository clone failed" render_environment_configuration || fail "Render Environment Configuration Failed" load_envgene || fail "Load Envgen Failed" diff --git a/package-lock.json b/package-lock.json index fbb5021..76b0411 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bruno-runner", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bruno-runner", - "version": "0.1.0", + "version": "0.1.1", "dependencies": { "@usebruno/cli": "3.2.1", "allure": "3.1.0", diff --git a/package.json b/package.json index fc7ccfa..116cedb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bruno-runner", - "version": "0.1.0", + "version": "0.1.1", "description": "ATP3 Runner for Bruno collections with Allure reporting", "dependencies": { "@usebruno/cli": "3.2.1", diff --git a/scripts b/scripts index 4443f5f..9d3412d 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 4443f5f8cb4032c8f2dc728df003803182c76e89 +Subproject commit 9d3412dfb8a4280440fd3c758130aaada964f545