Skip to content

Commit 4a446bf

Browse files
committed
feature(pdf2md): added pdf2md helm chart
1 parent 24e8858 commit 4a446bf

File tree

16 files changed

+332
-2
lines changed

16 files changed

+332
-2
lines changed

charts/pdf2md/Chart.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: redis
3+
repository: https://charts.bitnami.com/bitnami
4+
version: 20.10.0
5+
- name: clickhouse
6+
repository: ""
7+
version: 0.0.0
8+
digest: sha256:ab1d96b6b226666e40dbc914a2c9c6fd60ad3bce71b0ba97085f3f9fa03f9090
9+
generated: "2025-03-16T23:53:51.662732432-07:00"

charts/pdf2md/Chart.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v2
2+
name: pdf2md
3+
description: Helm chart for pdf2md pdf2md.trieve.ai
4+
type: application
5+
version: 0.0.1
6+
appVersion: "sha-b6286ae"
7+
dependencies:
8+
- name: redis
9+
repository: https://charts.bitnami.com/bitnami
10+
version: 20.10.0
11+
condition: redis.enabled
12+
- name: clickhouse
13+
version: 0.0.0
14+
condition: clickhouse.enabled
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: altinity-clickhouse-operator
3+
repository: https://docs.altinity.com/clickhouse-operator/
4+
version: 0.24.4
5+
digest: sha256:fee75e1786d42b6b0893ecc4a75bca13b539c6f71fabca82fa1690d0f1aa661a
6+
generated: "2025-03-02T00:44:43.875908354-08:00"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: clickhouse
2+
apiVersion: v2
3+
version: 0.0.0
4+
dependencies:
5+
- name: altinity-clickhouse-operator
6+
version: 0.24.4
7+
repository: https://docs.altinity.com/clickhouse-operator/
8+
condition: installCrds
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: "clickhouse.altinity.com/v1"
2+
kind: "ClickHouseInstallation"
3+
metadata:
4+
name: {{ $.Release.Name }}-trieve
5+
labels:
6+
app.kubernetes.io/name: {{ $.Release.Name }}-trieve
7+
app.kubernetes.io/instance: {{ .Release.Name }}
8+
spec:
9+
{{ toYaml .Values.clickhouseSpec | indent 2 }}
10+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
installCrds: true
3+
4+
clickhouseSpec:
5+
## A ClickhouseInstallation template spec
6+
configuration:
7+
users:
8+
# printf 'test_password' | sha256sum
9+
test_user/password_sha256_hex: 10a6e6cc8311a3e2bcc09bf6c199adecd5dd59408c343e926b129c4914f3cb01
10+
clusters:
11+
- name: "simple"
104 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- define "pdf2md.redisUrl" -}}
2+
{{- if .Values.redis.enabled -}}
3+
{{- $svcName := printf "%s-redis-master" .Release.Name -}}
4+
{{- $redisSecretName := printf "%s-redis" .Release.Name -}}
5+
{{- $redisSecretKey := "redis-password" -}}
6+
{{- $redisUri := printf "redis://%s@%s" .Release.Name -}}
7+
{{- with (lookup "v1" "Secret" .Release.Namespace $redisSecretName) -}}
8+
{{- $redisPassword := index .data $redisSecretKey | b64dec -}}
9+
redis://:{{ $redisPassword }}@{{ $svcName }}:6379
10+
{{- end -}}
11+
{{- else -}}
12+
{{ .Values.redis.connection }}
13+
{{- end -}}
14+
{{- end -}}

0 commit comments

Comments
 (0)