Files
charts/bitnami/sonarqube/templates/secret.yaml
Juan Ariza Toledano df0d773655 Add new chart: Sonarqube (#7819)
* Add new chart: Sonarqube

Signed-off-by: juan131 <juanariza@vmware.com>

* Complete missing parameters and sections

Signed-off-by: juan131 <juanariza@vmware.com>

* Add ct-values.yaml

Signed-off-by: juan131 <juanariza@vmware.com>

* Apply suggestions from code review

Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>

* Run readme-generator after code review suggestions

Signed-off-by: juan131 <juanariza@vmware.com>

* Fix typo

Signed-off-by: juan131 <juanariza@vmware.com>

* Add support to expose metrics

Signed-off-by: juan131 <juanariza@vmware.com>

* Use port 80 for HTTP port on svc by default

Signed-off-by: juan131 <juanariza@vmware.com>

* Add Autoscaling parameters

Signed-off-by: juan131 <juanariza@vmware.com>

* [bitnami/sonarqube] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
2021-11-02 12:52:51 +01:00

23 lines
898 B
YAML

{{- if (include "sonarqube.createSecret" .) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- if not .Values.existingSecret }}
sonarqube-password: {{ default (randAlphaNum 10) .Values.sonarqubePassword | b64enc | quote }}
{{- end }}
{{- if and .Values.smtpPassword (not .Values.smtpExistingSecret) }}
smtp-password: {{ .Values.smtpPassword | b64enc | quote }}
{{- end }}
{{- end }}