Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/rhdh/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: redhat-developer-hub
type: application
version: 3.4.8
version: 3.4.9
appVersion: 2.1.0
annotations:
artifacthub.io/category: integration-delivery
Expand Down
4 changes: 2 additions & 2 deletions charts/rhdh/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# RHDH Helm Chart for OpenShift and Kubernetes

![Version: 3.4.8](https://img.shields.io/badge/Version-3.4.8-informational?style=flat-square)
![Version: 3.4.9](https://img.shields.io/badge/Version-3.4.9-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying Red Hat Developer Hub, which is a Red Hat supported version of Backstage.
Expand Down Expand Up @@ -36,7 +36,7 @@ For the **Generally Available** version of this chart, see:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add redhat-developer https://redhat-developer.github.io/rhdh-chart

helm install my-rhdh redhat-developer/redhat-developer-hub --version 3.4.8
helm install my-rhdh redhat-developer/redhat-developer-hub --version 3.4.9
```

## Introduction
Expand Down
2 changes: 1 addition & 1 deletion charts/rhdh/templates/_backstage-pod-template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ include "rhdh.postgresql.secretName" . }}
key: {{ include "rhdh.postgresql.adminPasswordKey" . }}
key: {{ include "rhdh.postgresql.passwordKey" . }}
{{- else if .Values.externalDatabase.host }}
- name: POSTGRES_HOST
value: {{ .Values.externalDatabase.host | quote }}
Expand Down
12 changes: 12 additions & 0 deletions charts/rhdh/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ Returns the PostgreSQL admin password key.
{{- end -}}
{{- end -}}

{{/*
Returns the PostgreSQL user password key.
Uses the admin key when username is "postgres" (default).
*/}}
{{- define "rhdh.postgresql.passwordKey" -}}
{{- if eq (.Values.postgresql.auth.username | default "postgres") "postgres" -}}
{{- include "rhdh.postgresql.adminPasswordKey" . -}}
{{- else -}}
{{- (((((.Values).postgresql).auth).secretKeys).userPasswordKey) | default "password" -}}
{{- end -}}
{{- end -}}

{{/*
Returns the PostgreSQL hostname.
When postgresql.enabled is false, returns externalDatabase.host.
Expand Down
Loading