16 lines
663 B
YAML
16 lines
663 B
YAML
|
{{- if and .Values.internalTLS.enabled }}
|
||
|
{{- if eq .Values.internalTLS.certSource "manual" }}
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: "{{ template "harbor.internalTLS.portal.secretName" . }}"
|
||
|
labels:
|
||
|
{{ include "harbor.labels" . | indent 4 }}
|
||
|
type: kubernetes.io/tls
|
||
|
data:
|
||
|
ca.crt: {{ (required "The \"internalTLS.trustCa\" is required!" .Values.internalTLS.trustCa) | b64enc | quote }}
|
||
|
tls.crt: {{ (required "The \"internalTLS.portal.crt\" is required!" .Values.internalTLS.portal.crt) | b64enc | quote }}
|
||
|
tls.key: {{ (required "The \"internalTLS.portal.key\" is required!" .Values.internalTLS.portal.key) | b64enc | quote }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|