mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Create a secret for external PostgreSQL instances (#5351)
* Create a secret for external PostgreSQL instances * Bump the chart version * Add whitespace at the end of the file * Create a secret for external PostgreSQL instances * Add whitespace at the end of the file * Bump version
This commit is contained in:
committed by
k8s-ci-robot
parent
b51f4d3c64
commit
287abd5d30
@@ -1,6 +1,6 @@
|
||||
name: sonarqube
|
||||
description: Sonarqube is an open sourced code quality scanning tool
|
||||
version: 0.5.4
|
||||
version: 0.5.5
|
||||
appVersion: 6.7.3
|
||||
keywords:
|
||||
- coverage
|
||||
|
||||
@@ -78,7 +78,7 @@ spec:
|
||||
- name: SONARQUBE_JDBC_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ template "postgresql.fullname" .}}
|
||||
name: {{- if .Values.postgresql.enabled }} {{ template "postgresql.fullname" .}} {{- else }} {{ template "sonarqube.fullname" . }} {{- end }}
|
||||
key: postgres-password
|
||||
- name: SONARQUBE_JDBC_URL
|
||||
value: "jdbc:postgresql://{{ template "postgresql.hostname" . }}:{{- .Values.postgresql.service.port -}}/{{- .Values.postgresql.postgresDatabase -}}"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{{- if eq .Values.postgresql.enabled false -}}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "sonarqube.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "sonarqube.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
type: Opaque
|
||||
data:
|
||||
postgres-password: {{ .Values.postgresql.postgresPassword | b64enc | quote }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user