From b9b9cea794b73b05599ac87f6ce298275a2c6c42 Mon Sep 17 00:00:00 2001 From: dilip Date: Fri, 22 Sep 2023 17:18:49 +0530 Subject: [PATCH] Added env var new-api --- charts/cdefense/templates/config.yaml | 3 ++- charts/cdefense/templates/newapi/deployment.yaml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/cdefense/templates/config.yaml b/charts/cdefense/templates/config.yaml index 1f27e85..bf4662f 100644 --- a/charts/cdefense/templates/config.yaml +++ b/charts/cdefense/templates/config.yaml @@ -88,4 +88,5 @@ data: CLOUDDEFENSE_WEBCONSOLE_AUTH_STAGE: dockerStaging CLOUDDEFENSE_WEBCONSOLE_ONPREM_ENABLED: cdefense CUSTOM_VENDOR: "" - GPT_BASE_URL: "http://ai/" \ No newline at end of file + GPT_BASE_URL: "http://ai/" + OUTSIDE : "https://console.clouddefenseai.com" \ No newline at end of file diff --git a/charts/cdefense/templates/newapi/deployment.yaml b/charts/cdefense/templates/newapi/deployment.yaml index 852cc83..84f44a3 100644 --- a/charts/cdefense/templates/newapi/deployment.yaml +++ b/charts/cdefense/templates/newapi/deployment.yaml @@ -55,6 +55,11 @@ spec: configMapKeyRef: name: cdefense-config key: GPT_BASE_URL + - name: OUTSIDE + valueFrom: + configMapKeyRef: + name: cdefense-config + key: OUTSIDE ports: - containerPort: 8080 # resources: