Skip to content

Commit

Permalink
issue#4 accept custom secrets to gpt retrieval web deployment (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriska authored Feb 13, 2024
1 parent b8e6d2c commit d01b720
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/chatgpt-retrieval-plugin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/chatgpt-retrieval-plugin/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/chatgpt-retrieval-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,6 @@ web:
# value: "xxxxx"
# - name: OPENAI_API_KEY
# value: "xxxxx"
extraEnvFromSecret: []
# extraEnvFromSecret:
# - custom-secret

0 comments on commit d01b720

Please sign in to comment.