mirror of
https://github.com/bitnami/charts.git
synced 2026-04-01 06:47:23 +08:00
[bitnami/seaweedfs] Make database check on start optional (#31277)
* Changes to allow not waiting for database which allows it to be used in places where service mesh is not ready yet infrastructure is known to already have the database ready. Signed-off-by: wkbrd <30599409+wkbrd@users.noreply.github.com> * Fix field name Signed-off-by: wkbrd <30599409+wkbrd@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update bitnami/seaweedfs/Chart.yaml for version change Co-authored-by: David Gomez <davidbhlm@gmail.com> Signed-off-by: wkbrd <30599409+wkbrd@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Simplified check Signed-off-by: wkbrd <30599409+wkbrd@users.noreply.github.com> --------- Signed-off-by: wkbrd <30599409+wkbrd@users.noreply.github.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: David Gomez <davidbhlm@gmail.com>
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## 4.2.1 (2025-01-07)
|
||||
## 4.3.0 (2025-01-10)
|
||||
|
||||
* [bitnami/seaweedfs] Release 4.2.1 ([#31244](https://github.com/bitnami/charts/pull/31244))
|
||||
* [bitnami/seaweedfs] Make database check on start optional ([#31277](https://github.com/bitnami/charts/pull/31277))
|
||||
|
||||
## <small>4.2.1 (2025-01-07)</small>
|
||||
|
||||
* [bitnami/*] Fix typo in README (#31052) ([b41a51d](https://github.com/bitnami/charts/commit/b41a51d1bd04841fc108b78d3b8357a5292771c8)), closes [#31052](https://github.com/bitnami/charts/issues/31052)
|
||||
* [bitnami/seaweedfs] Release 4.2.1 (#31244) ([75fba5d](https://github.com/bitnami/charts/commit/75fba5d61dbf307dabd130d1ff3f621bb85320cc)), closes [#31244](https://github.com/bitnami/charts/issues/31244)
|
||||
|
||||
## 4.2.0 (2024-12-10)
|
||||
|
||||
|
||||
@@ -50,4 +50,4 @@ name: seaweedfs
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/seawwedfs
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/seaweedfs
|
||||
version: 4.2.1
|
||||
version: 4.3.0
|
||||
|
||||
@@ -1151,6 +1151,7 @@ enabled = false
|
||||
| `externalDatabase.password` | External Database user password | `""` |
|
||||
| `externalDatabase.database` | External Database database name | `bitnami_seaweedfs` |
|
||||
| `externalDatabase.existingSecret` | The name of an existing secret with database credentials. Evaluated as a template | `""` |
|
||||
| `externalDatabase.waitForDatabaseEnabled` | Whether to check for external database before starting seaweedfs containers | `true` |
|
||||
| `externalDatabase.initDatabaseJob.enabled` | Enable the init external database job | `false` |
|
||||
| `externalDatabase.initDatabaseJob.labels` | Extra labels for the init external database job | `{}` |
|
||||
| `externalDatabase.initDatabaseJob.annotations` | Extra annotations for the init external database job | `{}` |
|
||||
|
||||
@@ -77,6 +77,17 @@ Return the proper init external database job image name
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Returns whether wait for external database is enabled
|
||||
*/}}
|
||||
{{- define "seaweedfs.waitForDatabase.enabled" -}}
|
||||
{{- if or .Values.mariadb.enabled .Values.postgresql.enabled (and .Values.externalDatabase.enabled (eq .Values.externalDatabase.waitForDatabaseEnabled true) ) }}
|
||||
{{- print "true" -}}
|
||||
{{- else }}
|
||||
{{- print "false" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the proper Docker Image Registry Secret Names
|
||||
*/}}
|
||||
@@ -339,6 +350,7 @@ Return the database secret key name
|
||||
Returns an init-container that waits for the database to be ready
|
||||
*/}}
|
||||
{{- define "seaweedfs.filer.waitForDBInitContainer" -}}
|
||||
{{ if eq "true" ( include "seaweedfs.waitForDatabase.enabled" . ) }}
|
||||
- name: wait-for-db
|
||||
image: {{ include "seaweedfs.initDatabaseJob.image" . }}
|
||||
{{- if or .Values.mariadb.enabled (and .Values.externalDatabase.enabled (eq .Values.externalDatabase.store "mariadb") ) }}
|
||||
@@ -410,6 +422,7 @@ Returns an init-container that waits for the database to be ready
|
||||
- name: db-credentials
|
||||
mountPath: /secrets
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Returns an init-container that generates auth configuration for the Amazon S3 API
|
||||
|
||||
@@ -3538,6 +3538,10 @@ externalDatabase:
|
||||
## NOTE: When it's set, the `externalDatabase.password` parameter is ignored
|
||||
##
|
||||
existingSecret: ""
|
||||
## @param externalDatabase.waitForDatabaseEnabled Whether to check for external database before starting seaweedfs containers
|
||||
##
|
||||
waitForDatabaseEnabled: true
|
||||
##
|
||||
## Init external database job
|
||||
##
|
||||
initDatabaseJob:
|
||||
|
||||
Reference in New Issue
Block a user