Skip to content

Commit

Permalink
neon-storage-controller: add support for splitThreshold setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed May 17, 2024
1 parent 91f3ad5 commit 4f1600d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/neon-storage-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion charts/neon-storage-controller/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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. |

----------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions charts/neon-storage-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions charts/neon-storage-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f1600d

Please sign in to comment.