diff --git a/charts/neon-storage-controller/Chart.yaml b/charts/neon-storage-controller/Chart.yaml index ce7a997..f663e4c 100644 --- a/charts/neon-storage-controller/Chart.yaml +++ b/charts/neon-storage-controller/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: neon-storage-controller description: Neon storage controller type: application -version: 1.0.8 +version: 1.0.9 appVersion: "0.1.0" kubeVersion: "^1.18.x-x" home: https://neon.tech diff --git a/charts/neon-storage-controller/README.md b/charts/neon-storage-controller/README.md index 7cb316b..98dae17 100644 --- a/charts/neon-storage-controller/README.md +++ b/charts/neon-storage-controller/README.md @@ -1,6 +1,6 @@ # neon-storage-controller -![Version: 1.0.8](https://img.shields.io/badge/Version-1.0.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) +![Version: 1.0.9](https://img.shields.io/badge/Version-1.0.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) Neon storage controller @@ -69,6 +69,7 @@ Kubernetes: `^1.18.x-x` | settings.publicKey | string | `""` | | | settings.sentryEnvironment | string | `"development"` | "development" or "production". It will be visible in sentry in order to filter issues | | settings.sentryUrl | string | `""` | url (will be converted into `SENTRY_DSN` environment variable) used by sentry to collect error/panic events in storage-controller | +| settings.splitThreshold | string | `""` | Size threshold in bytes for automatically sharding a tenant. Omit to disable auto-sharding (default) | | tolerations | list | `[]` | Tolerations for pod assignment. | ---------------------------------------------- diff --git a/charts/neon-storage-controller/templates/deployment.yaml b/charts/neon-storage-controller/templates/deployment.yaml index 7791ed8..1596f3a 100644 --- a/charts/neon-storage-controller/templates/deployment.yaml +++ b/charts/neon-storage-controller/templates/deployment.yaml @@ -51,6 +51,10 @@ spec: - --compute-hook-url - {{ .Values.settings.computeHookUrl | quote }} {{- end }} + {{- if .Values.settings.splitThreshold }} + - --split-threshold + - {{ .Values.settings.splitThreshold | quote }} + {{- end }} env: - name: LD_LIBRARY_PATH value: "/usr/local/v16/lib" diff --git a/charts/neon-storage-controller/values.yaml b/charts/neon-storage-controller/values.yaml index bfc9225..f785bb1 100644 --- a/charts/neon-storage-controller/values.yaml +++ b/charts/neon-storage-controller/values.yaml @@ -34,6 +34,8 @@ settings: controlPlaneJwtToken: "" # URL for compute notifications computeHookUrl: "" + # To enable auto-sharding of tenants when they reach a certain size in bytes + splitThreshold: "" # Enable auto register to control plane # This will run postinstall job