mirror of
https://github.com/penpot/penpot-helm.git
synced 2025-02-21 22:35:55 -05:00
31 lines
762 B
YAML
31 lines
762 B
YAML
|
{{- if .Values.route.enabled -}}
|
||
|
apiVersion: route.openshift.io/v1
|
||
|
kind: Route
|
||
|
metadata:
|
||
|
name: {{ include "penpot.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "penpot.labels" . | nindent 4 }}
|
||
|
{{- with .Values.route.annotations }}
|
||
|
annotations:
|
||
|
{{- range $key, $value := . }}
|
||
|
{{ $key }}: {{ $value | quote }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
host: {{ .Values.route.host }}
|
||
|
path: {{ .Values.route.path }}
|
||
|
to:
|
||
|
kind: Service
|
||
|
name: {{ include "penpot.fullname" . }}
|
||
|
port:
|
||
|
targetPort: http
|
||
|
{{- with .Values.route.tls }}
|
||
|
tls:
|
||
|
{{- range $key, $value := . }}
|
||
|
{{ $key }}: {{ $value | quote }}
|
||
|
{{- end }}
|
||
|
{{ end }}
|
||
|
wildcardPolicy: {{ .Values.route.wildcardPolicy | quote }}
|
||
|
{{- end }}
|