From 65728ca30c18f9159206b096fe6e1dc5841f5830 Mon Sep 17 00:00:00 2001 From: Kizerov Dmytro Date: Fri, 20 Dec 2024 18:04:04 +0200 Subject: [PATCH] try to fix deploy --- greencity-chart/templates/ClusterExternalSecret.yaml | 4 ++++ greencity-chart/templates/greencity.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/greencity-chart/templates/ClusterExternalSecret.yaml b/greencity-chart/templates/ClusterExternalSecret.yaml index e8c0d99f65..390a8945f3 100644 --- a/greencity-chart/templates/ClusterExternalSecret.yaml +++ b/greencity-chart/templates/ClusterExternalSecret.yaml @@ -274,4 +274,8 @@ spec: remoteRef: key: DOMAIN-NAME + - secretKey: OPEN-AI-API-KEY + remoteRef: + key: OPEN-AI-API-KEY + {{- end }} diff --git a/greencity-chart/templates/greencity.yaml b/greencity-chart/templates/greencity.yaml index 4e8baf72b3..0563a83eb0 100644 --- a/greencity-chart/templates/greencity.yaml +++ b/greencity-chart/templates/greencity.yaml @@ -258,6 +258,12 @@ spec: name: {{ .Values.externalSecret.secretName }} key: GOOGLE-API-KEY + - name: OPEN_AI_API_KEY + valueFrom: + secretKeyRef: + name: {{ .Values.externalSecret.secretName }} + key: OPEN-AI-API-KEY + ports: - containerPort: 8080 name: tomcat \ No newline at end of file