File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : pdf2md
33description : Helm chart for pdf2md pdf2md.trieve.ai
44type : application
5- version : 0.0.4
5+ version : 0.0.5
66appVersion : " sha-b6286ae"
77dependencies :
88 - name : redis
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ metadata:
77 app.kubernetes.io/name : {{ .name }}
88 app.kubernetes.io/instance : {{ $.Release.Name }}
99 annotations :
10+ {{- if $.Values.config.asSecret }}
11+ checksum/config : {{ include (print $.Template.BasePath "/secret.yaml") $ | sha256sum }}
12+ {{- else }}
1013 checksum/config : {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
14+ {{- end }}
1115spec :
1216 selector :
1317 matchLabels :
1620 template :
1721 metadata :
1822 annotations :
23+ {{- if $.Values.config.asSecret }}
24+ checksum/config : {{ include (print $.Template.BasePath "/secret.yaml") $ | sha256sum }}
25+ {{- else }}
1926 checksum/config : {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
27+ {{- end }}
2028 labels :
2129 app.kubernetes.io/name : {{ .name }}
2230 app.kubernetes.io/instance : {{ $.Release.Name }}
4048 {{- toYaml .resources | nindent 12 }}
4149 {{- end }}
4250 envFrom :
51+ {{- if $.Values.config.asSecret }}
52+ - secretRef :
53+ name : pdf2md-config
54+ {{- else }}
4355 - configMapRef :
4456 name : pdf2md-config
57+ {{- end }}
4558---
4659{{- end }}
Original file line number Diff line number Diff line change @@ -66,17 +66,31 @@ clickhouse:
6666s3 :
6767 endpoint : https://bucket-s3bucket.s3.amazonaws.com
6868 accessKey : NXVN****************
69+ accessKeyRef :
70+ enabled : false
71+ secretName : " my-pdf2md-s3-credentials"
72+ secretKey : " accessKey"
6973 secretKey : czc3L***********************************
74+ secretKeyRef :
75+ enabled : false
76+ secretName : " my-pdf2md-s3-credentials"
77+ secretKey : " secretKey"
7078 bucket : pdf2md-s3bucket
7179 region : us-east-2
7280
7381config :
82+ asSecret : false
83+ strictLookup : false
7484
7585 llm :
7686 # We recommend openrouter because they accept
7787 # a larger payload size.
7888 baseUrl : https://openrouter.ai/api/v1
7989 apiKey : sk-**********************************************************************
90+ apiKeyRef :
91+ enabled : false
92+ secretName : " my-pdf2md-llm-secret"
93+ secretKey : " apiKey"
8094 model : gpt-*******
8195
8296 chunkr :
@@ -87,6 +101,10 @@ config:
87101 # PDF2MD has a single ADMIN API apiKey
88102 # Change as needed
89103 apiKey : CQS2ZQUGG43CNqn1CVfreire
104+ apiKeyRef :
105+ enabled : false
106+ secretName : " my-pdf2md-auth-secret"
107+ secretKey : " apiKey"
90108
91109containers :
92110 - name : pdf2md-server
You can’t perform that action at this time.
0 commit comments