diff --git a/greencity-chart/templates/ClusterExternalSecret.yaml b/greencity-chart/templates/ClusterExternalSecret.yaml index e8c0d99f6..390a8945f 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 4e8baf72b..0563a83eb 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