rancher-partner-charts/charts/aquarist-labs/s3gw/templates/tls-secret.yaml

47 lines
1.1 KiB
YAML

{{- if not .Values.useCertManager }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-{{ .Release.Namespace }}-ingress-tls
namespace: {{ .Release.Namespace }}
labels:
{{ include "s3gw.labels" . | indent 4 }}
type: kubernetes.io/tls
data:
tls.crt: |
{{ .Values.tls.publicDomain.crt }}
tls.key: |
{{ .Values.tls.publicDomain.key }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-{{ .Release.Namespace }}-cluster-ip-tls
namespace: {{ .Release.Namespace }}
labels:
{{ include "s3gw.labels" . | indent 4 }}
type: kubernetes.io/tls
data:
tls.crt: |
{{ .Values.tls.privateDomain.crt }}
tls.key: |
{{ .Values.tls.privateDomain.key }}
{{- if .Values.ui.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-{{ .Release.Namespace }}-ui-ingress-tls
namespace: {{ .Release.Namespace }}
labels:
{{ include "s3gw.labels" . | indent 4 }}
type: kubernetes.io/tls
data:
tls.crt: |
{{ .Values.tls.ui.publicDomain.crt }}
tls.key: |
{{ .Values.tls.ui.publicDomain.key }}
{{- end }}
{{- end }}