Skip to content

Commit

Permalink
Create database secrets if postgres password is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Woodcock committed Sep 16, 2020
1 parent be864d1 commit c251c20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/artifactory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: artifactory
home: https://www.jfrog.com/artifactory/
version: 11.0.1
version: 11.0.2
appVersion: 7.7.8
description: Universal Repository Manager supporting all major packaging formats,
build tools and CI servers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (not .Values.database.secrets) (not .Values.postgresql.enabled) }}
{{- if or (and (not .Values.database.secrets) (not .Values.postgresql.enabled)) .Values.database.password }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
3 changes: 3 additions & 0 deletions stable/artifactory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ artifactory:
url: "jdbc:postgresql://{{ .Release.Name }}-postgresql:{{ .Values.postgresql.service.port }}/{{ .Values.postgresql.postgresqlDatabase }}"
driver: org.postgresql.Driver
username: "{{ .Values.postgresql.postgresqlUsername }}"
{{- if .Values.postgresql.postgresqlPassword }}
password: "{{ .Values.postgresql.postgresqlPassword }}"
{{- end }}
{{- else }}
type: "{{ .Values.database.type }}"
driver: "{{ .Values.database.driver }}"
Expand Down

0 comments on commit c251c20

Please sign in to comment.