From a8335e5852fb5c8331d1ce42e06fc57ea569cf5d Mon Sep 17 00:00:00 2001 From: secustor Date: Fri, 17 Jan 2025 23:37:38 +0100 Subject: [PATCH] feat(immich): provide option for pgvector initialization --- charts/immich/Chart.yaml | 2 +- charts/immich/templates/immich-server.yaml | 2 ++ charts/immich/values.yaml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/immich/Chart.yaml b/charts/immich/Chart.yaml index 80a99cf..d56e113 100644 --- a/charts/immich/Chart.yaml +++ b/charts/immich/Chart.yaml @@ -3,5 +3,5 @@ name: immich description: A Immich Helm chart targeted at advanced users type: application -version: 0.1.0 +version: 0.2.0 appVersion: "v1.124.2" diff --git a/charts/immich/templates/immich-server.yaml b/charts/immich/templates/immich-server.yaml index 1716c0d..bffac9c 100644 --- a/charts/immich/templates/immich-server.yaml +++ b/charts/immich/templates/immich-server.yaml @@ -39,6 +39,8 @@ spec: containerPort: {{ .Values.server.service.port }} protocol: TCP env: + - name: DB_VECTOR_EXTENSION + value: {{ .Values.common.config.vectorExtension }} {{- with .Values.common.postgres }} - name: DB_HOSTNAME value: {{ .host }} diff --git a/charts/immich/values.yaml b/charts/immich/values.yaml index b247a99..a7306ef 100644 --- a/charts/immich/values.yaml +++ b/charts/immich/values.yaml @@ -4,8 +4,13 @@ fullnameOverride: "" imagePullSecrets: [] + # Configurations that are relevant for all the components of the chart common: + config: + # This has only an effect during database initialization + # pgvector is the default as CloudNativePG supports it out of the box + vectorExtension: pgvector # or pgvecto.rs postgres: host: immich-db existingSecret: