From d403cc40668f2e2c3adfd762587867c2482dc0f6 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 3 Oct 2025 23:35:42 -0500 Subject: [PATCH] remove tensorchord option --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/README.md | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 15 +-------------- charts/postgres-cluster/templates/cluster.yaml | 5 +---- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 671ac04..59db884 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.9.1 +version: 6.10.0 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index 0179353..833d8cf 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.9.1](https://img.shields.io/badge/Version-6.9.1-informational?style=flat-square) ![AppVersion: v1.27.0](https://img.shields.io/badge/AppVersion-v1.27.0-informational?style=flat-square) +![Version: 6.10.0](https://img.shields.io/badge/Version-6.10.0-informational?style=flat-square) ![AppVersion: v1.27.0](https://img.shields.io/badge/AppVersion-v1.27.0-informational?style=flat-square) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index 3d8d3ef..02f5a4a 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -11,21 +11,8 @@ bootstrap: {{- if .Values.cluster.initdb.owner }} owner: {{ tpl .Values.cluster.initdb.owner . }} {{- end }} - {{- if eq .Values.type "tensorchord" }} - dataChecksums: true - {{- end }} - {{- if or (eq .Values.type "tensorchord") (.Values.cluster.initdb.postInitApplicationSQL) }} + {{- if (.Values.cluster.initdb.postInitApplicationSQL) }} postInitApplicationSQL: - {{- if eq .Values.type "tensorchord" }} - - ALTER SYSTEM SET search_path TO "$user", public, vectors; - - SET search_path TO "$user", public, vectors; - - CREATE EXTENSION IF NOT EXISTS "vectors"; - - CREATE EXTENSION IF NOT EXISTS "cube"; - - CREATE EXTENSION IF NOT EXISTS "earthdistance"; - - ALTER SCHEMA vectors OWNER TO "app"; - - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app"; - - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app"; - {{- end }} {{- with .Values.cluster.initdb }} {{- range .postInitApplicationSQL }} {{- printf "- %s" . | nindent 6 }} diff --git a/charts/postgres-cluster/templates/cluster.yaml b/charts/postgres-cluster/templates/cluster.yaml index 9f5c9f5..ff0604b 100644 --- a/charts/postgres-cluster/templates/cluster.yaml +++ b/charts/postgres-cluster/templates/cluster.yaml @@ -80,11 +80,8 @@ spec: enablePDB: {{ .Values.cluster.enablePDB }} postgresql: - {{- if or (eq .Values.type "tensorchord") (not (empty .Values.cluster.postgresql.shared_preload_libraries)) }} + {{- if .Values.cluster.postgresql.shared_preload_libraries }} shared_preload_libraries: - {{- if eq .Values.type "tensorchord" }} - - vectors.so - {{- end }} {{- with .Values.cluster.postgresql.shared_preload_libraries }} {{- toYaml . | nindent 6 }} {{- end }}