feat(helm): add db.secret.enabled key

This commit is contained in:
rasta-rocket 2025-02-14 16:37:45 +01:00
parent 667b9122e0
commit 69aa133b30
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View file

@ -91,6 +91,7 @@ type: Opaque
```
### Database Settings
<<<<<<< HEAD
| Name | Description | Value |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
@ -98,6 +99,7 @@ type: Opaque
| `db.endpoint` | If `db.useExisting` is `true`, this is the IP, Hostname or Service Name of the Postgres server to connect to. | `localhost` |
| `db.database` | If `db.useExisting` is `true`, the name of the existing database to connect to. | `litellm` |
| `db.url` | If `db.useExisting` is `true`, the connection url of the existing database to connect to can be overwritten with this value. | `postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME)` |
| `db.secret.enabled` | If `db.secretenabled` is `true`, a Kubernetes Secret that contains credentials will be created. | `true` |
| `db.secret.name` | If `db.useExisting` is `true`, the name of the Kubernetes Secret that contains credentials. | `postgres` |
| `db.secret.usernameKey` | If `db.useExisting` is `true`, the name of the key within the Kubernetes Secret that holds the username for authenticating with the Postgres instance. | `username` |
| `db.secret.passwordKey` | If `db.useExisting` is `true`, the name of the key within the Kubernetes Secret that holds the password associates with the above user. | `password` |

View file

@ -1,4 +1,4 @@
{{- if .Values.db.deployStandalone -}}
{{- if or .Values.db.deployStandalone .Values.db.secret.enabled -}}
apiVersion: v1
kind: Secret
metadata:
@ -9,4 +9,4 @@ data:
username: {{ .Values.postgresql.auth.username | default "litellm" | b64enc }}
password: {{ .Values.postgresql.auth.password | default "litellm" | b64enc }}
type: Opaque
{{- end -}}
{{- end -}}

View file

@ -218,6 +218,7 @@ db:
database: litellm
url: postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME)
secret:
enabled: true
name: postgres
usernameKey: username
passwordKey: password