From 3ef987e47bdb05bc699e92d79143f2cf133f908c Mon Sep 17 00:00:00 2001 From: dale1020 Date: Fri, 20 Feb 2026 12:08:50 +0500 Subject: [PATCH] fix saving systems to secret --- .../charts/atp3-python-runner/templates/configmap.yaml | 2 -- deployments/charts/atp3-python-runner/templates/job.yaml | 4 ++-- deployments/charts/atp3-python-runner/templates/secret.yaml | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deployments/charts/atp3-python-runner/templates/configmap.yaml b/deployments/charts/atp3-python-runner/templates/configmap.yaml index da00fae..670829f 100644 --- a/deployments/charts/atp3-python-runner/templates/configmap.yaml +++ b/deployments/charts/atp3-python-runner/templates/configmap.yaml @@ -3,7 +3,5 @@ kind: ConfigMap metadata: name: {{ include "atp3-python-runner.fullname" . }}-cm data: - atpEnvgeneConfiguration: | - {{ toJson .Values.ATP_ENVGENE_CONFIGURATION | nindent 4 }} testParams: | {{ toJson .Values.TEST_PARAMS | nindent 4 }} diff --git a/deployments/charts/atp3-python-runner/templates/job.yaml b/deployments/charts/atp3-python-runner/templates/job.yaml index b5088ba..c2aa38e 100644 --- a/deployments/charts/atp3-python-runner/templates/job.yaml +++ b/deployments/charts/atp3-python-runner/templates/job.yaml @@ -69,8 +69,8 @@ spec: value: "{{ .Values.MONITORING_ENABLED }}" - name: ATP_ENVGENE_CONFIGURATION valueFrom: - configMapKeyRef: - name: {{ include "atp3-python-runner.fullname" . }}-cm + secretKeyRef: + name: {{ include "atp3-python-runner.fullname" . }}-secret key: atpEnvgeneConfiguration - name: TEST_PARAMS valueFrom: diff --git a/deployments/charts/atp3-python-runner/templates/secret.yaml b/deployments/charts/atp3-python-runner/templates/secret.yaml index a4397ba..4c535d0 100644 --- a/deployments/charts/atp3-python-runner/templates/secret.yaml +++ b/deployments/charts/atp3-python-runner/templates/secret.yaml @@ -6,4 +6,5 @@ type: Opaque data: atpTestsGitToken: {{ default "" .Values.ATP_TESTS_GIT_TOKEN | b64enc }} atpStorageUsername: {{ default "" .Values.ATP_STORAGE_USERNAME | b64enc }} - atpStoragePassword: {{ default "" .Values.ATP_STORAGE_PASSWORD | b64enc }} \ No newline at end of file + atpStoragePassword: {{ default "" .Values.ATP_STORAGE_PASSWORD | b64enc }} + atpEnvgeneConfiguration: {{ toJson .Values.ATP_ENVGENE_CONFIGURATION | b64enc }} \ No newline at end of file