Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Adding additional secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Polina Koornneef authored and Polina Koornneef committed Oct 26, 2021
1 parent 60c8dd1 commit 60df0d3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/sonarqube/templates/secret-additional.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if .Values.sonar-secrets.name -}}
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:
{{- if .Values.sonar-secrets.bitbucketKey }}
bitbucketKey: {{ .Values.sonar-secrets.bitbucketKey }}
{{- end }}
{{- if .Values.sonar-secrets.bitbucketSecret }}
bitbucketSecret: {{ .Values.sonar-secrets.bitbucketSecret }}
{{- end }}
{{- if .Values.sonar-secrets.postgresql-password }}
postgresql-password: {{ .Values.sonar-secrets.postgresql-password }}
{{- end }}
{{ template "postgresql.secretPasswordKey" . }}: {{ .Values.postgresql.postgresqlPassword | b64enc | quote }}
{{- end -}}
git

0 comments on commit 60df0d3

Please sign in to comment.