[bitnami/jupyterhub] Init containers can be used with external PostgreSQL (#33582)

This commit is contained in:
James Baker
2025-05-12 11:54:33 +01:00
committed by GitHub
parent 9c8e84c917
commit 58e80d9805
3 changed files with 10 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 9.0.7 (2025-05-07)
## 9.0.8 (2025-05-09)
* [jupyterhub] Fix singleuser image pull secrets ([#33176](https://github.com/bitnami/charts/pull/33176))
* [bitnami/jupyterhub] Init containers can be used with external PostgreSQL ([#33582](https://github.com/bitnami/charts/pull/33582))
## <small>9.0.7 (2025-05-07)</small>
* [jupyterhub] Fix singleuser image pull secrets (#33176) ([95a3490](https://github.com/bitnami/charts/commit/95a34900e72996e02e0ba14bea719a6f7747e2c2)), closes [#33176](https://github.com/bitnami/charts/issues/33176)
## <small>9.0.6 (2025-05-06)</small>

View File

@@ -38,4 +38,4 @@ maintainers:
name: jupyterhub
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/jupyterhub
version: 9.0.7
version: 9.0.8

View File

@@ -74,8 +74,9 @@ spec:
{{- if .Values.hub.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.hub.terminationGracePeriodSeconds }}
{{- end }}
{{- if .Values.postgresql.enabled }}
{{- if or .Values.postgresql.enabled .Values.hub.initContainers }}
initContainers:
{{- if .Values.postgresql.enabled }}
# NOTE: The value postgresql.image is not available unless postgresql.enabled is not set. We could change this to use os-shell if
# it had the binary wait-for-port.
# This init container is for avoiding CrashLoopback errors in the Hub container because the PostgreSQL container is not ready
@@ -125,6 +126,7 @@ spec:
key: {{ include "jupyterhub.databaseSecretKey" . }}
- name: POSTGRESQL_CLIENT_POSTGRES_USER
value: {{ ternary .Values.postgresql.auth.username .Values.externalDatabase.user .Values.postgresql.enabled | quote }}
{{- end }}
{{- if .Values.hub.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.hub.initContainers "context" $) | nindent 8 }}
{{- end }}