Skip to content

Commit

Permalink
[sonarqube] remove secret creation from postgres chart
Browse files Browse the repository at this point in the history
  • Loading branch information
PastNullInfinity committed Apr 2, 2020
1 parent 7a6d1f4 commit 74ca616
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: sonar-postgres-sealed-secret
name: sonarqube-postgres-secret
key: postgres-password
- name: POD_IP
valueFrom: { fieldRef: { fieldPath: status.podIP } }
Expand Down
19 changes: 0 additions & 19 deletions charts/sonarqube/charts/postgresql/templates/secrets.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions charts/sonarqube/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{{- if eq .Values.database.type "postgresql" -}}
{{- if eq .Values.postgresql.enabled false -}}
{{- if .Values.postgresql.postgresqlPasswordSecret -}}
{{- if eq .Values.postgresql.enabled true -}}

apiVersion: v1
kind: Secret
metadata:
name: {{ include "sonarqube.name" . }}-postgres-secret
type: Opaque
data:
postgres-password: {{ .Values.secrets.postgresPassword | b64enc }}
{{- end -}}
postgres-password: {{ .Values.secrets.postgresPassword | b64enc }}
---
{{- end -}}
{{- end -}}
{{- if eq .Values.database.type "mysql" -}}
{{- if eq .Values.mysql.enabled false -}}
{{- if eq .Values.mysql.enabled true -}}
{{- if not .Values.mysql.mysqlPasswordSecret -}}
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 74ca616

Please sign in to comment.