Files
charts/bitnami/kubeapps/templates/tls-secrets.yaml
Juan Ariza Toledano fa481f6c14 [bitnami/kubeapps] New major version: standardization (#6301)
* [bitnami/kubeapps] New major version: standardization

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

* Update bitnami/kubeapps/README.md

Co-authored-by: Michael Nelson <absoludity@gmail.com>

* Update bitnami/kubeapps/README.md

Co-authored-by: Michael Nelson <absoludity@gmail.com>

* Reorder parameters

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

* Apply suggestions from code review

Co-authored-by: Antonio Gámez <antgamdia@gmail.com>

* Update Chart.lock

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

* Fix kubeapps chart to use helper for pinniped-proxy full name.

* Remove hardcore settings and unused macros

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

* [bitnami/kubeapps] New major version: standardization

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

* Merge conflicts

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

* Remove some pending hardcore references

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

* Switch values order

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

* [bitnami/kubeapps] Update components versions

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

Co-authored-by: Michael Nelson <absoludity@gmail.com>
Co-authored-by: Antonio Gámez <antgamdia@gmail.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
2021-05-12 17:56:41 +02: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 "kubeapps-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 }}