From 664a64773fdb52c801a8e2eb54a0b7b920b9898a Mon Sep 17 00:00:00 2001 From: PatStLouis Date: Tue, 26 Nov 2024 18:47:51 +0000 Subject: [PATCH] change reference to the traction id/key to a secret Signed-off-by: PatStLouis --- .../templates/backend/deployment.yaml | 10 ++++++++-- charts/orgbook-publisher/templates/backend/secret.yaml | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/charts/orgbook-publisher/templates/backend/deployment.yaml b/charts/orgbook-publisher/templates/backend/deployment.yaml index d85899a..0e2d873 100644 --- a/charts/orgbook-publisher/templates/backend/deployment.yaml +++ b/charts/orgbook-publisher/templates/backend/deployment.yaml @@ -40,9 +40,15 @@ spec: - name: TRACTION_API_URL value: {{ .Values.backend.traction_api_url }} - name: TRACTION_API_KEY - value: {{ .Values.backend.traction_api_key }} + valueFrom: + secretKeyRef: + name: {{ .Values.backend.fullname }} + key: traction_api_key - name: TRACTION_TENANT_ID - value: {{ .Values.backend.traction_tenant_id }} + valueFrom: + secretKeyRef: + name: {{ .Values.backend.fullname }} + key: traction_tenant_id # DID WEB SERVER - name: DID_WEB_SERVER_URL diff --git a/charts/orgbook-publisher/templates/backend/secret.yaml b/charts/orgbook-publisher/templates/backend/secret.yaml index d8b90f9..8e199be 100644 --- a/charts/orgbook-publisher/templates/backend/secret.yaml +++ b/charts/orgbook-publisher/templates/backend/secret.yaml @@ -10,4 +10,5 @@ metadata: namespace: {{ .Release.Namespace }} type: Opaque data: - secret-key: {{ include "getOrGeneratePass" (dict "Namespace" .Release.Namespace "Kind" "Secret" "Name" (include "backend.fullname" .) "Key" "secret-key" "Length" 32) }} + traction_tenant_id: '' + traction_api_key: ''