diff --git a/charts/chatgpt-retrieval-plugin/Chart.yaml b/charts/chatgpt-retrieval-plugin/Chart.yaml index 0b78696..f0bd37b 100644 --- a/charts/chatgpt-retrieval-plugin/Chart.yaml +++ b/charts/chatgpt-retrieval-plugin/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: chatgpt-retrieval-plugin description: ChatGPT Retrieval Plugin Helm chart for Kubernetes type: application -version: 0.0.18 +version: 0.0.19 appVersion: "0.0.1" keywords: - docker diff --git a/charts/chatgpt-retrieval-plugin/templates/web-deployment.yaml b/charts/chatgpt-retrieval-plugin/templates/web-deployment.yaml index 0566ed7..1be85ba 100644 --- a/charts/chatgpt-retrieval-plugin/templates/web-deployment.yaml +++ b/charts/chatgpt-retrieval-plugin/templates/web-deployment.yaml @@ -39,6 +39,10 @@ spec: name: {{ template "app.web-env.name" . }} - secretRef: name: {{ template "app.web-env.name" . }} + {{- range .Values.web.extraEnvFromSecret }} + - secretRef: + name: {{ tpl . $ }} + {{- end }} ports: - name: http containerPort: {{ .Values.web.service.port }} diff --git a/charts/chatgpt-retrieval-plugin/values.yaml b/charts/chatgpt-retrieval-plugin/values.yaml index e487f45..396d8ff 100644 --- a/charts/chatgpt-retrieval-plugin/values.yaml +++ b/charts/chatgpt-retrieval-plugin/values.yaml @@ -96,3 +96,6 @@ web: # value: "xxxxx" # - name: OPENAI_API_KEY # value: "xxxxx" + extraEnvFromSecret: [] + # extraEnvFromSecret: + # - custom-secret