{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.secrets }}
apiVersion: v1
kind: Secret
metadata:
  name: longhorn
  namespace: {{ include "release_namespace" . }}
  labels: {{- include "longhorn.labels" . | nindent 4 }}
    app: longhorn
type: kubernetes.io/tls
data:
  tls.crt: {{ .certificate | b64enc }}
  tls.key: {{ .key | b64enc }}
---
{{- end }}
{{- end }}

{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.secrets }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ .name }}
  namespace: {{ include "release_namespace" $ }}
  labels: {{- include "longhorn.labels" $ | nindent 4 }}
    app: longhorn
type: kubernetes.io/tls
data:
  tls.crt: {{ .certificate | b64enc }}
  tls.key: {{ .key | b64enc }}
---
{{- end }}
{{- end }}

Fix ability to provide own tls certificate for ingress.
Fix ability to provide own tls certificate for ingress.

Signed-off-by: Jan Černý <66c5883bbb8b0cd04d3936cfb2c6f09dc3cc8e6c@Gmail.com>
