Files
charts/bitnami/sonarqube/templates/tls-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

45 lines
1.6 KiB
YAML

{{- if .Values.ingress.enabled }}
{{- if .Values.ingress.secrets }}
{{- range .Values.ingress.secrets }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .name }}
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: kubernetes.io/tls
data:
tls.crt: {{ .certificate | b64enc }}
tls.key: {{ .key | b64enc }}
---
{{- end }}
{{- end }}
{{- if and .Values.ingress.tls .Values.ingress.selfSigned }}
{{- $ca := genCA "sonarqube-ca" 365 }}
{{- $cert := genSignedCert .Values.ingress.hostname nil (list .Values.ingress.hostname) 365 $ca }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-tls" .Values.ingress.hostname }}
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: kubernetes.io/tls
data:
tls.crt: {{ $cert.Cert | b64enc | quote }}
tls.key: {{ $cert.Key | b64enc | quote }}
ca.crt: {{ $ca.Cert | b64enc | quote }}
{{- end }}
{{- end }}