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:
Michael Laccetti
2018-05-03 13:37:52 -07:00
committed by k8s-ci-robot
parent b51f4d3c64
commit 287abd5d30
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 -}}"
+14
View File
@@ -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 -}}